html {
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

a,
button,
input,
select,
textarea {
  min-width: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
li {
  overflow-wrap: anywhere;
}

main p,
.article-content p,
.prose p,
.record-content p,
.chronicle-content p,
.intelligence-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  letter-spacing: normal;
  word-spacing: normal;
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

main p {
  max-width: 820px;
}

.article-content,
.prose,
.record-content,
.chronicle-content,
.intelligence-content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

main h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

main h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

main p,
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main li {
  overflow-wrap: break-word;
  word-break: normal;
}

body > nav > div > a[href="/"],
body > nav > div > a[href="/connect"],
body > nav > div > div a {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

body > nav > div {
  column-gap: clamp(1.25rem, 2vw, 2.5rem) !important;
}

body > nav > div > div {
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  min-width: 0 !important;
  gap: clamp(0.55rem, 0.78vw, 1rem) !important;
}

body > nav > div > div.hidden.md\:flex {
  margin-left: clamp(1rem, 1.4vw, 2rem) !important;
  margin-right: clamp(1rem, 1.4vw, 2rem) !important;
}

body > nav > div > div a,
body > nav > div > a[href="/connect"] {
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
}

body > nav > div > a[href="/"] {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

body > nav > div > a[href="/connect"] {
  flex-shrink: 0 !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.px-margin-desktop {
  padding-left: clamp(1.25rem, 5vw, 4rem) !important;
  padding-right: clamp(1.25rem, 5vw, 4rem) !important;
}

.max-w-container-max {
  width: min(100%, 1280px);
}

.text-display-lg,
.text-display-lg-mobile {
  font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.text-headline-lg {
  font-size: clamp(2rem, 5vw, 2.5rem) !important;
  line-height: 1.18 !important;
}

.text-headline-md {
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  line-height: 1.24 !important;
}

.text-body-lg {
  font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
  line-height: 1.6 !important;
}

.font-label-caps {
  letter-spacing: 0.08em;
}

.credibility {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid #c4c6d1;
  border-bottom: 1px solid #c4c6d1;
}

.credibility p {
  max-width: 60rem;
  margin: 0 auto;
  color: #43474f;
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
}

.credibility p + p {
  margin-top: 0.85rem;
}

.credibility strong {
  color: #00193c;
}

.credibility a {
  color: #8f4e00;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.grid {
  min-width: 0;
}

.grid > * {
  min-width: 0;
}

.aspect-square,
.aspect-video,
div[class*="aspect-"] {
  max-width: 100%;
}

.matte-card,
article,
section,
footer {
  min-width: 0;
}

input,
select,
textarea {
  max-width: 100%;
}

.intel-record-card {
  border-left: 0 solid transparent;
}

.intel-record-card:hover {
  border-left: 3px solid var(--cat);
  background: #ffffff;
  transform: translateY(-1px);
}

.intel-section > summary::-webkit-details-marker {
  display: none;
}

.intel-section > summary::after {
  content: "expand_less";
  font-family: "Material Symbols Outlined";
  color: var(--cat);
  font-size: 20px;
  line-height: 1;
}

.intel-section:not([open]) > summary::after {
  content: "expand_more";
}

@media (max-width: 767px) {
  main p,
  .article-content p,
  .prose p,
  .record-content p,
  .chronicle-content p,
  .intelligence-content p {
    text-align: left !important;
    hyphens: none;
    line-height: 1.75;
  }

  .reveal-hidden,
  .scale-hidden {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  nav .h-20 {
    height: 4.5rem;
  }

  main {
    padding-top: 4.5rem !important;
  }

  section {
    padding-top: clamp(3rem, 12vw, 5rem) !important;
    padding-bottom: clamp(3rem, 12vw, 5rem) !important;
  }

  .min-h-\[90vh\] {
    min-height: auto !important;
  }

  .px-10 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .py-24 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .gap-gutter {
    gap: 1.25rem !important;
  }

  .space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  .w-\[45\%\],
  .w-\[55\%\],
  .w-1\/2,
  .w-1\/3 {
    width: 100% !important;
  }

  .pr-20,
  .pl-20 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .absolute.left-1\/2,
  .absolute.-left-\[12px\],
  .absolute.-left-\[24px\] {
    display: none !important;
  }

  .flex.items-center.justify-between {
    align-items: flex-start;
  }

  .rounded-2xl {
    border-radius: 0.5rem !important;
  }

  .text-\[10px\] {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 1320px) {
  body > nav > div > div.hidden.md\:flex {
    display: none !important;
  }

  #mobile-menu-btn {
    display: flex !important;
  }

  #mobile-menu {
    display: block !important;
    top: 4.5rem !important;
  }

  body > nav > div {
    height: 4.5rem !important;
    align-items: center !important;
  }

  main {
    padding-top: 4.5rem !important;
  }
}

@media (min-width: 1321px) {
  #mobile-menu-btn,
  #mobile-menu {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .px-margin-desktop {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1536px) {
  body {
    background: #f8f9fa;
  }

  .max-w-container-max {
    width: min(100%, 1360px);
  }
}

body > nav,
body > nav a,
body > footer a,
#mobile-menu,
#mobile-menu a,
#mobile-menu-btn,
#mobile-menu-btn .mbar {
  transition-duration: 200ms !important;
}

body > nav,
#mobile-menu,
#mobile-menu-btn .mbar {
  transition-property: opacity, transform, background-color, border-color !important;
}

body > nav a,
body > footer a,
#mobile-menu a,
#mobile-menu-btn {
  transition-property: color, background-color, border-color, opacity !important;
}

/* Site-wide static spacing normalization: layout only, no color/font changes. */
main p,
main li {
  line-height: 1.6 !important;
  text-align: left !important;
  text-justify: auto !important;
}

main p {
  max-width: 68ch;
}

main section {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

body > footer {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

body > footer > div {
  gap: 1.5rem !important;
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

main img:not([src*="orcid"]):not([src*="ORCID"]) {
  width: 100% !important;
  height: auto !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

main img[src*="portrait"],
main img[src*="nitish-kumar"],
main img[src*="cover"],
main img[alt*="portrait" i],
main img[alt*="cover" i] {
  max-width: 28rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

main img[src*="diagram"],
main img[src*="disha-architecture"],
main img[src*="intelligence-architecture"],
main img[src*="digital-constitutional-personhood-dcp"],
main img[src*="article-12-infected"],
main img[alt*="diagram" i],
main img[alt*="architecture" i] {
  max-width: 56rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
}

main img:not([src*="portrait"]):not([src*="nitish-kumar"]):not([src*="cover"]):not([src*="diagram"]):not([src*="disha-architecture"]):not([src*="intelligence-architecture"]):not([src*="digital-constitutional-personhood-dcp"]):not([src*="article-12-infected"]):not([src*="orcid"]):not([src*="ORCID"]) {
  max-width: 42rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

main p,
article p,
.article-content p,
.prose p,
.record-content p,
.chronicle-content p,
.intelligence-content p {
  max-width: 68ch !important;
  line-height: 1.6 !important;
  text-align: left !important;
  text-justify: auto !important;
  hyphens: none !important;
}

main li,
article li,
.article-content li,
.prose li,
.record-content li,
.chronicle-content li,
.intelligence-content li {
  line-height: 1.6 !important;
}

body main p,
body article p,
body .article-content p,
body .prose p,
body .record-content p,
body .chronicle-content p,
body .intelligence-content p,
body .credibility p {
  max-width: 68ch !important;
  line-height: 1.6 !important;
  text-align: left !important;
  text-justify: auto !important;
  hyphens: none !important;
}

body main li,
body article li,
body .article-content li,
body .prose li,
body .record-content li,
body .chronicle-content li,
body .intelligence-content li {
  line-height: 1.6 !important;
}

main section:first-of-type {
  padding-top: 2.75rem !important;
}

.hero-anchor {
  max-width: 21em !important;
  font-size: clamp(1.35rem, 2.7vw, 1.9rem) !important;
  line-height: 1.38 !important;
  letter-spacing: 0 !important;
}

.hero-lede {
  max-width: 58ch !important;
  line-height: 1.62 !important;
}

main picture img {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

main .matte-card img,
main article img {
  max-width: 100% !important;
}

main p.font-label-caps,
main p.text-label-caps,
main p.text-xs,
main p.text-sm {
  line-height: 1.55 !important;
}

@media (max-width: 767px) {
  main section:first-of-type {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  .text-display-lg,
  .text-display-lg-mobile,
  .text-5xl {
    font-size: clamp(2.25rem, 11vw, 3rem) !important;
    line-height: 1.08 !important;
  }

  .text-headline-lg {
    font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
    line-height: 1.14 !important;
  }

  .text-headline-md {
    font-size: clamp(1.45rem, 6.8vw, 2rem) !important;
    line-height: 1.24 !important;
  }

  .hero-anchor {
    font-size: clamp(1.18rem, 5.7vw, 1.55rem) !important;
    line-height: 1.34 !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-lede {
    padding-left: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
}

.disha-diagram-scroll {
  overflow-x: auto;
}

.disha-diagram-scroll img {
  min-width: 640px;
}

@media (min-width: 768px) {
  main section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  body > footer,
  body > footer > div {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .disha-diagram-scroll img {
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  main section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}
