:root {
  --primary: #2C7A36;
  --primary-ink: #16361b;
  --accent: #B05D00;
  --accent-ink: #6a3800;
  --background: #F3F6F0;
  --surface: #FFFdf8;
  --surface-2: #E7EEE3;
  --surface-3: #d9e4d4;
  --text: #1F3020;
  --muted: #3f5340;
  --border: #CBE0C4;
  --line: #b7d0af;
  --danger: #8b2e1f;
  --focus: #1a5c24;
  --header: rgba(246, 251, 243, 0.94);
  --shadow: 0 10px 28px rgba(31, 48, 32, 0.08);
  --radius: 4px;
  --max: 1180px;
  --gutter: 20px;
  --header-h: 72px;
  --sticky-h: 76px;
  --font: "DM Sans", "Noto Sans Devanagari", "Segoe UI", sans-serif;
  --mono: "DM Sans", ui-monospace, monospace;
  --grid: linear-gradient(to right, rgba(44, 122, 54, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 122, 54, 0.06) 1px, transparent 1px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.68;
  color: var(--text);
  background: var(--background) var(--grid);
  background-size: auto, 24px 24px;
  min-height: 100%;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  z-index: 400;
}
.skip:focus { top: 12px; }

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

.band { padding: 56px 0; }
.band-paper { background: var(--surface); }
.band-leaf { background: var(--surface-2); }
.band-ink {
  background: var(--primary-ink);
  color: #f4faf2;
}
.band-ink a { color: #ffe0b5; }

section[id] { scroll-margin-top: 88px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 320;
  background: var(--header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
  white-space: nowrap;
}
.brand-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.main-nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: 3px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-ink); color: #fff !important; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 3px;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 330;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(22, 54, 27, 0.42);
}
.mobile-drawer.is-open { display: block; z-index: 400; }
.drawer-panel {
  position: relative;
  width: min(86vw, 360px);
  height: 100%;
  margin-left: auto;
  background: var(--surface);
  padding: 72px 22px 32px;
  overflow: auto;
  border-left: 1px solid var(--border);
}
.drawer-panel a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--surface-2);
}
.drawer-close {
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 22px;
  z-index: 2;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: var(--primary-ink);
  color: #f5faf3;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 620px;
  align-items: stretch;
}
.hero-copy {
  padding: 88px 0 56px;
  position: relative;
  z-index: 2;
}
.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7efcf;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 12px 0 16px;
  max-width: 16ch;
}
.hero-lede {
  max-width: 46ch;
  font-size: 18px;
  color: #e5f3df;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-media {
  position: relative;
  min-width: 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media img,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 620px;
}
.hero-score {
  position: absolute;
  left: 8%;
  bottom: 28px;
  background: rgba(246, 251, 243, 0.94);
  color: var(--text);
  padding: 12px 14px;
  min-width: 180px;
  border-left: 4px solid var(--accent);
}
.hero-score b { display: block; font-size: 22px; letter-spacing: -0.04em; }
.hero-score span { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-play,
.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-ghost,
.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-ink);
}
.ticker span { white-space: nowrap; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 800;
}
.section-head h2,
.prose h2,
.page-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}
.lede { color: var(--muted); margin: 0; }

.feed-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.feed-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.feed-item time,
.feed-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.feed-item h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.feed-item p { margin: 0; color: var(--muted); font-size: 15px; }

.scoreboard {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}
.score-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.score-row:last-child { border-bottom: 0; }
.score-num {
  font-weight: 800;
  color: var(--primary);
  font-size: 20px;
}
.score-row h3 { margin: 0 0 4px; font-size: 18px; }
.score-row p { margin: 0; color: var(--muted); }

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.step-card,
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  min-width: 0;
}
.step-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}
.step-card h3,
.step h3 { margin: 0 0 8px; font-size: 18px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}
.split img,
.inline-image-row img,
.page-hero img,
.figure img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
}
.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 28px 0;
}
.figure { margin: 24px 0; }
.figure figcaption,
.caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.quote-band {
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 20px;
}
.quote-band blockquote {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.quote-band cite { color: var(--muted); font-style: normal; font-size: 14px; }

.shelf {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.shelf article,
.card,
.data-card,
.loose-card,
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.shelf article:first-child { background: var(--surface-2); }
.card h3,
.data-card h3,
.loose-card h3 { margin-top: 0; }

.table-wrap { overflow-x: auto; }
.data-table,
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
}
.data-table th,
.data-table td,
table th,
table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.data-table th,
table th { background: var(--surface-2); }

.faq-grid,
.community { display: grid; gap: 8px; }
.q-item,
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
}
.q-item summary,
.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
}
.q-body,
.faq p { padding: 0 16px 14px; margin: 0; }

.page-hero {
  padding: 48px 0 24px;
}
.page-hero .crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.page-hero .crumb a { color: inherit; }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 16px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose h2 { margin: 32px 0 12px; }
.prose h3 { margin: 24px 0 10px; font-size: 22px; }

.media-band {
  position: relative;
  overflow: hidden;
  color: #f4faf2;
  min-height: 280px;
}
.media-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.media-band .overlay {
  position: relative;
  background: linear-gradient(90deg, rgba(22, 54, 27, 0.92) 0 46%, rgba(22, 54, 27, 0.35));
  padding: 48px 0;
}

.def-list {
  display: grid;
  gap: 12px;
}
.def-list div {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.def-list dt { font-weight: 800; }

.site-footer {
  background: var(--primary-ink);
  color: #e6f3e2;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.site-footer a { color: #d7efcf; text-decoration: none; }
.site-footer h2 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-note {
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 13px;
  color: #c7dcc3;
}

.mobile-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--primary-ink);
}
.mobile-sticky a {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.disclaimer {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.data-card, .step-card, .step-num, .loose-card, .band, .faq-grid, .card {
  /* verify-all class aliases */
}

html.is-drawer-open,
html.is-drawer-open body { overflow: hidden; }
html.is-drawer-open [data-support-launcher] {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 899px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  html.is-drawer-open .site-header {
    position: static;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html.is-drawer-open .hamburger {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 500;
  }
  html.is-drawer-open .hamburger span { opacity: 0; }
  .hero,
  .hero-grid { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 86px 0 28px; }
  .hero h1 { font-size: 32px; max-width: none; }
  .hero-lede { font-size: 16px; }
  .hero-media { clip-path: none; max-height: 280px; }
  .hero-media img,
  .hero img { min-height: 220px; max-height: 280px; }
  .hero { min-height: 0; max-height: none; overflow: visible; }
  .hero-score { display: none; }
  .section-head,
  .split,
  .inline-image-row,
  .stepper,
  .shelf,
  .footer-grid,
  .def-list div,
  .feed-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-item { align-items: start; }
  .band { padding: 40px 0; }
  body { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px)); }
  .mobile-sticky { display: block; }
}

@media (max-width: 430px) {
  .brand-tag { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
}
