@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Manrope-400.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Manrope-500.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Manrope-600.woff2") format("woff2");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Manrope-700.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/NotoSansDevanagari-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/NotoSansDevanagari-SemiBold.woff2") format("woff2");
}

:root {
  --primary: #9a3d20;
  --primary-ink: #ffffff;
  --accent: #0a5f5b;
  --background: #fff8f2;
  --surface: #ffffff;
  --surface-2: #fce8d7;
  --text: #312019;
  --muted: #5c4539;
  --border: #ebcdba;
  --rule: #d9b49a;
  --shadow: 0 10px 28px rgb(49 32 25 / 0.08);
  --header-h: 68px;
  --sticky-cta-h: 72px;
  --max: 1180px;
  --gutter: 20px;
  --radius-sheet: 2px;
  --radius-chip: 999px;
  --focus: 2px solid var(--accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: Manrope, "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

body {
  min-height: 100dvh;
  padding-top: var(--header-h);
  background-image:
    linear-gradient(180deg, rgb(252 232 215 / 0.35), transparent 220px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgb(235 205 186 / 0.22) 32px
    );
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7a2c14;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--text);
  color: var(--background);
  padding: 8px 12px;
  white-space: nowrap;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgb(255 248 242 / 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--background);
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 2px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.primary-nav {
  justify-self: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 0;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover {
  color: var(--primary);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-chip);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary,
.header-cta,
.sticky-cta .btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover,
.header-cta:hover,
.sticky-cta .btn-primary:hover {
  background: #7f3018;
  color: var(--primary-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.score-chip,
.kicker,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-chip);
}

.kicker {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
}

.score-chip::before,
.tick::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

main {
  min-width: 0;
}

.section {
  padding: 56px 0;
  min-width: 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 24px;
}

.section-head h2,
.prose h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 700;
}

.lede,
.prose p,
.muted {
  color: var(--text);
}

.muted,
.meta,
.figcaption,
.small {
  color: var(--muted);
  font-size: 0.95rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.hero {
  padding-top: 28px;
  padding-bottom: 36px;
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.scoreboard-visual,
.media-frame,
.figure {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
}

.scoreboard-visual img,
.media-frame img,
.figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.scoreboard-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 8px 8px;
  border-left: 3px solid var(--text);
}

.latest-news-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 28px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--text);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sheet);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.latest-news-card:hover,
.latest-news-card:focus-visible {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.latest-news-card > .figure {
  margin: 0;
}

.latest-news-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border-left: 3px solid var(--accent);
}

.latest-news-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.latest-news-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.latest-news-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.latest-news-cta {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 1023px) {
  .latest-news-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .latest-news-meta {
    border-left: 0;
    border-top: 3px solid var(--accent);
    padding: 12px 4px 0;
  }
}

.scoreboard-copy p {
  margin: 0 0 18px;
  max-width: 36rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--text);
  background: var(--surface);
}

.score-mod {
  min-width: 0;
  padding: 18px 16px 16px;
  border-right: 1px solid var(--rule);
}

.score-mod:last-child {
  border-right: 0;
}

.score-mod strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}

.score-mod p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.score-mod a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.walkthrough {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding: 0 0 22px 56px;
  border-left: 1px solid var(--border);
  min-width: 0;
}

.step-list li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: var(--background);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.step-list h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.step-list p {
  margin: 0;
}

.proof-desk {
  display: grid;
  gap: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar label {
  cursor: pointer;
}

.filter-bar input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-chip);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.filter-bar input:checked + span,
.filter-bar input:focus-visible + span {
  background: var(--text);
  color: var(--background);
  border-color: var(--text);
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.bento article {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
}

.bento article:first-child {
  grid-row: span 2;
  background: var(--surface-2);
}

.bento h3 {
  margin: 8px 0 10px;
  font-size: 1.2rem;
}

.bento p {
  margin: 0;
}

.ledger-wrap {
  overflow-x: auto;
  border: 1px solid var(--text);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.ledger {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ledger th,
.ledger td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  min-width: 0;
}

.ledger th {
  background: var(--surface-2);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bench {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--text);
}

.bench li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.bench {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bench .tick {
  color: var(--accent);
  font-weight: 700;
}

.panel {
  background: var(--surface);
  border: 2px solid var(--text);
  padding: 28px;
  max-width: 52rem;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pay;
}

.steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--rule);
}

.steps li::before {
  counter-increment: pay;
  content: counter(pay, decimal-leading-zero);
  font-weight: 700;
  color: var(--accent);
}

.gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.gate article {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  min-width: 0;
}

.checkpoint {
  background: var(--text);
  color: var(--background);
  padding: 48px 0;
}

.checkpoint h2,
.checkpoint p,
.checkpoint a {
  color: var(--background);
}

.checkpoint .disclosure {
  color: #f3e0d2;
}

.checkpoint .btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.register {
  display: grid;
  gap: 0;
}

.register a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.register time {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.colophon,
.split,
.tree,
.media-rail,
.index-grid,
.source-rail,
.contrast,
.step-rail,
.end-matter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

.colophon article,
.split article,
.tree article,
.source-rail article,
.contrast article,
.step-rail article {
  min-width: 0;
  border-top: 3px solid var(--text);
  padding-top: 16px;
}

.hairline {
  padding: 14px 0;
  font-size: 0.95rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.defs {
  margin: 0;
}

.defs dt {
  font-weight: 700;
  margin-top: 14px;
}

.defs dd {
  margin: 4px 0 0;
}

.newspaper-index {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.newspaper-index li {
  list-style: none;
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

.newspaper-index a {
  display: block;
  padding: 8px 0;
  break-inside: avoid;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.figure {
  margin: 28px 0;
}

.figure figcaption,
.figcaption {
  padding: 10px 12px 12px;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.1rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.note {
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  padding: 14px 16px;
  margin: 20px 0;
}

.disclosure {
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--text);
  padding: 40px 0 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid h2 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid a {
  display: inline-block;
  padding: 5px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-grid a:hover {
  color: var(--primary);
}

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 248 242 / 0.98);
  border-top: 1px solid var(--border);
}

.sticky-cta .btn-primary {
  width: 100%;
}

.drawer-close {
  display: none;
}

.hi {
  font-family: "Noto Sans Devanagari", Manrope, sans-serif;
}

.crumbs {
  padding: 14px 0 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--rule);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.article-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wide-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.portrait-hero img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: var(--background);
    padding: 88px 24px 32px;
    transform: translateX(100%);
    visibility: hidden;
    z-index: 50;
  }

  .primary-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .primary-nav a {
    font-size: 1.25rem;
    padding: 10px 0;
  }

  .drawer-close {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: var(--sticky-cta-h);
  }

  .scoreboard,
  .walkthrough,
  .bento,
  .gate,
  .colophon,
  .split,
  .tree,
  .media-rail,
  .index-grid,
  .source-rail,
  .contrast,
  .step-rail,
  .end-matter,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .score-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .score-mod {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .newspaper-index {
    columns: 1;
  }

  .register a {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  :root {
    --gutter: 16px;
  }

  .section {
    padding: 40px 0;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
