@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-500.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-700.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-dev-400.woff2") format("woff2");
}

:root {
  --primary: #2c7a36;
  --primary-ink: #16461c;
  --accent: #b05d00;
  --accent-ink: #6a3800;
  --background: #f6fbf3;
  --background-2: #eef6ea;
  --surface: #ffffff;
  --surface-2: #e6f2df;
  --text: #1f3020;
  --muted: #5c705d;
  --border: #cbe0c4;
  --line: #b7d0af;
  --focus: #16461c;
  --danger: #8a2b1a;
  --shadow: 0 10px 28px rgba(31, 48, 32, 0.08);
  --radius: 12px;
  --header-h: 68px;
  --sticky-cta: 64px;
  --rail: 248px;
  --max: 1180px;
  --font: "Roboto", "Noto Sans Devanagari", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
}

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

a {
  color: var(--primary-ink);
}

a:hover {
  color: var(--accent-ink);
}

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

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

.skip:focus {
  top: 12px;
}

.nowrap {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 251, 243, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 34px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

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

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

.nav-primary a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-play {
  background: var(--primary);
  color: #fff;
}

.btn-play:hover {
  background: var(--primary-ink);
  color: #fff;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}

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

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

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

.drawer {
  display: none;
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 28px;
}

.inner {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.hero-visual {
  margin: 0 0 8px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
}

.toc a {
  color: inherit;
}

.home-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.rail h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.rail p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}

.rail ol {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
}

.rail li {
  margin: 0 0 8px;
  font-size: 14px;
}

.rail .btn {
  width: 100%;
}

.stream {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  min-width: 0;
}

.section.tint {
  background: var(--surface-2);
}

.section.bare {
  background: transparent;
  border: 0;
  padding: 0;
}

.section h1,
.section h2,
.article-body h2 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: pretty;
}

.section h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  max-width: 18ch;
}

.section h2,
.article-body h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.section h3,
.article-body h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.lede,
.article-body p,
.section p {
  margin: 0 0 12px;
  max-width: 68ch;
}

.kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
}

.compliance strong {
  color: var(--text);
}

.chapters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chapters a {
  flex: 0 0 auto;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.tabs {
  display: grid;
  gap: 12px;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tablist button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--background);
  border-radius: 999px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.tablist button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--background);
  min-width: 0;
}

.tab-panel[hidden] {
  display: none;
}

.thumb-stream {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.thumb-stream figure,
.media figure {
  margin: 0;
}

.thumb-stream img,
.media img,
.hero-visual img {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}

.thumb-stream figcaption,
.media figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.ranked {
  display: grid;
  gap: 10px;
}

.rank {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.rank:last-child {
  border-bottom: 0;
}

.rank b {
  font-size: 28px;
  color: var(--primary);
  line-height: 1;
}

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

.pathways article {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}

.pathways article:first-child {
  grid-row: span 2;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split > * {
  min-width: 0;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ledger th,
.ledger td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.ledger th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.limits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 14px;
}

.limits article {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--background);
}

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

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-left: 2px solid var(--line);
  margin-left: 12px;
  padding-left: 16px;
}

.step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-left: -32px;
}

.evidence {
  position: relative;
}

.evidence .more {
  margin-top: 8px;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
}

.evidence .extra {
  max-height: 0;
  overflow: hidden;
  opacity: 1;
}

.evidence:hover .extra,
.evidence:focus-within .extra,
.evidence.is-open .extra {
  max-height: 240px;
}

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

.workshop article {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}

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

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

.feed time {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.next-step {
  background: var(--primary-ink);
  color: #fff;
  border-color: var(--primary-ink);
}

.next-step h2,
.next-step p {
  color: #fff;
}

.next-step .btn-play {
  background: #fff;
  color: var(--primary-ink);
}

.colophon {
  font-size: 14px;
  color: var(--muted);
}

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

.article-body {
  display: grid;
  gap: 8px;
}

.article-body .media {
  margin: 16px 0;
}

.meta-line {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 20px 96px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-grid h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.footer-grid li {
  margin: 0 0 8px;
}

.footer-grid a {
  text-decoration: none;
  color: var(--text);
}

.legal {
  max-width: var(--max);
  margin: 18px auto 0;
  font-size: 13px;
  color: var(--muted);
}

.sticky-cta {
  display: none;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

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

.check-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  top: 14px;
}

@media (max-width: 1024px) {
  .home-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
  }

  .thumb-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 880px) {
  .nav-primary,
  .header-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .drawer {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    visibility: hidden;
    z-index: 45;
    padding: 16px 20px 20px;
  }

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

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

  .drawer li {
    border-bottom: 1px solid var(--border);
  }

  .drawer a {
    display: flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
  }

  .drawer .btn {
    width: 100%;
    margin-top: 12px;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 251, 243, 0.96);
    border-top: 1px solid var(--border);
  }

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

  .split,
  .split.reverse,
  .pathways,
  .limits {
    grid-template-columns: minmax(0, 1fr);
  }

  .pathways article:first-child {
    grid-row: auto;
  }

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

  .site-footer {
    padding-bottom: 120px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .page-shell {
    padding: 12px 14px 24px;
  }

  .section {
    padding: 16px;
  }

  .section h1 {
    font-size: 32px;
    max-width: none;
  }

  .thumb-stream,
  .workshop,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .evidence .extra,
  .drawer {
    transition: none;
  }
}
