/* ============================================================
   LetsGame — Grass Field Editorial System
   Palette: light green field; deep green ink; warm orange accent
   Type: DM Sans (display + body) + Noto Sans Devanagari
   ============================================================ */

:root {
  --primary: #2C7A36;
  --primary-strong: #1F5A27;
  --primary-soft: #4F9A57;
  --accent: #8C4700;
  --accent-soft: #964500;
  --background: #F6FBF3;
  --surface: #FFFFFF;
  --surface-2: #E6F2DF;
  --surface-3: #F0F8EB;
  --ink: #1F3020;
  --ink-2: #344A36;
  --muted: #4F6350;
  --muted-2: #5C705D;
  --border: #CBE0C4;
  --border-strong: #A6C49C;
  --shadow-card: 0 1px 2px rgba(31, 48, 32, 0.04), 0 4px 12px rgba(31, 48, 32, 0.06);
  --shadow-lift: 0 6px 24px rgba(31, 48, 32, 0.10);
  --radius-hero: 14px;
  --radius-card: 12px;
  --radius-thumb: 8px;
  --radius-pill: 999px;
  --container: 1240px;
  --gutter: 24px;
  --font-display: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-devanagari: "Noto Sans Devanagari", "DM Sans", "DM Sans Fallback", sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", "SF Mono", Menlo, monospace;
  --header-h: 68px;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-relaxed: 1.65;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--leading-relaxed);
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
img { border-radius: var(--radius-card); }

a { color: var(--primary-strong); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: var(--leading-tight); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important;
  border: 0 !important;
}
.dossier-card .dossier-h2 { font-size: 20px; margin: 0 0 8px; font-weight: 700; }

/* ===================  CONTAINER  =================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* ===================  HEADER / NAV  =================== */
.site-header {
  position: sticky; top: 0; z-index: 250;
  background: rgba(246, 251, 243, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-link:hover { text-decoration: none; color: var(--primary-strong); }
.brand-link svg { width: 168px; height: auto; }
.brand-link-text { display: none; }

.main-nav {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; margin-right: 12px;
}
.main-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--primary-strong); text-decoration: none; }
.main-nav a.is-active { color: var(--primary-strong); background: var(--surface-2); }
.header-cta { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
  z-index: 300;
  padding: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; top: 0; right: 0;
  width: min(86vw, 360px); height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(31, 48, 32, 0.12);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 220;
  padding: calc(var(--header-h) + 16px) 20px 32px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a {
  padding: 12px 14px; border-radius: 10px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mobile-drawer nav a.is-active { background: var(--surface-2); color: var(--primary-strong); }
.mobile-drawer nav a:last-child { border-bottom: 0; }
.mobile-drawer .drawer-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.scrim {
  position: fixed; inset: 0; background: rgba(31, 48, 32, 0.42);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  z-index: 210;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ===================  BUTTONS  =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none !important; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  cursor: pointer;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--primary-strong); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #8C4700; color: #fff; }
.btn-affiliate {
  background: var(--primary); color: #fff;
  font-weight: 800; letter-spacing: 0.01em;
}
.btn-affiliate:hover { background: var(--primary-strong); color: #fff; }

/* ===================  HERO  (sidebar-led cover)  =================== */
.hero {
  padding: 48px 0 24px;
  background: var(--background);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--primary-strong);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--primary-strong); }
.hero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  margin-bottom: 18px;
}
.hero h1 .accent-line { color: var(--primary-strong); }
.hero-lede {
  font-size: clamp(17px, 1.8vw, 19.5px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 22px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 14px 0; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted);
  /* Reserve vertical space so font-swap cannot push the row down. Two
   * rows of 13.5px @ 1.65 line-height + 28px padding covers three <span>
   * items in the worst-case 390px viewport wrap. */
  min-height: 76px;
}
.hero-meta strong { color: var(--ink); font-weight: 700; }

.dossier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.dossier-card .dossier-image {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 3; margin: -4px -4px 16px;
}
.dossier-card .dossier-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.dossier-card .dossier-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 8px;
}
.dossier-card h3 {
  font-size: 20px; margin: 0 0 8px;
}
.dossier-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }
.dossier-card .dossier-list { list-style: none; padding: 0; margin: 0 0 14px; }
.dossier-card .dossier-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.dossier-card .dossier-list li:last-child { border-bottom: 0; }
.dossier-card .dossier-list li::before {
  content: "•"; color: var(--primary); font-weight: 800; font-size: 18px;
  line-height: 1; margin-top: 1px;
}
.dossier-card .dossier-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono);
}

/* Hero ticker band */
.hero-ticker {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 0;
  overflow: hidden;
}
.hero-ticker-inner {
  display: flex; gap: 36px; align-items: center;
  animation: ticker-pan 38s linear infinite;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px; color: var(--ink-2);
}
.hero-ticker-inner span { display: inline-flex; gap: 10px; align-items: center; }
.hero-ticker-inner strong { color: var(--primary-strong); font-weight: 700; }
.hero-ticker-inner .tk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
@keyframes ticker-pan {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================  PHOTO-CAPTION RAIL  =================== */
.photo-rail {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 14px; align-items: start;
  margin-top: 28px;
}
.photo-rail-strip {
  display: flex; flex-direction: column; gap: 8px;
}
.photo-rail-strip .stamp {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  border-left: 2px solid var(--primary);
  padding-left: 8px; line-height: 1.2;
}
.photo-rail-img {
  aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.photo-rail-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.photo-rail-caption {
  font-size: 13.5px; color: var(--muted); margin-top: 6px;
}

/* ===================  QUICK ACTIONS  (rail)  =================== */
.quick-actions {
  padding: 36px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quick-actions-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.qa-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
  text-decoration: none !important;
}
.qa-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.qa-card .qa-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.14em; font-weight: 700;
}
.qa-card h3 { font-size: 17px; margin: 0; color: var(--ink); }
.qa-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.qa-card .qa-go { font-size: 12px; color: var(--primary-strong); font-weight: 700; margin-top: auto; }

/* ===================  DEEP-DIVE CHAPTER  (8/4 split)  =================== */
.deep-dive {
  padding: 56px 0;
  background: var(--background);
}
.dd-grid {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 36px; align-items: start;
}
.dd-content h2 { margin-bottom: 14px; }
.dd-content .dd-lede { font-size: 18px; color: var(--ink-2); margin-bottom: 18px; }
.dd-content p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.dd-steps { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: ddstep; }
.dd-steps li {
  counter-increment: ddstep;
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.dd-steps li::before {
  content: counter(ddstep, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em; padding-top: 4px;
}
.dd-steps li strong { display: block; color: var(--ink); margin-bottom: 4px; }
.dd-steps li span { font-size: 14.5px; color: var(--muted); }

.dd-visual {
  position: sticky; top: calc(var(--header-h) + 24px);
}
.dd-visual .frame {
  position: relative; border-radius: var(--radius-hero);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
}
.dd-visual .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.dd-visual .pin {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink);
  font-weight: 700; letter-spacing: 0.04em;
  box-shadow: var(--shadow-card);
  display: inline-flex; gap: 6px; align-items: center;
}
.dd-visual .pin::before {
  content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.dd-visual .pin.top { top: 18px; left: 18px; }
.dd-visual .pin.mid { top: 48%; right: 18px; background: var(--ink); color: #fff; border-color: var(--ink); }
.dd-visual .pin.mid::before { background: var(--accent-soft); }
.dd-visual .pin.bot { bottom: 18px; left: 18px; }
.dd-visual .legend {
  margin-top: 14px;
  display: grid; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.dd-visual .legend div { display: flex; gap: 8px; align-items: center; }
.dd-visual .legend strong { color: var(--ink); }

/* ===================  ANNOTATED VISUAL  (single-image band)  =================== */
.annotated {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.annotated-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px; align-items: center;
}
.annotated-text h2 { margin-bottom: 12px; }
.annotated-text p { font-size: 16px; color: var(--ink-2); }
.annotated-figure {
  position: relative; border-radius: var(--radius-hero);
  overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-card);
}
.annotated-figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.annotated-figure .annot-chip {
  position: absolute; top: 16px; right: 16px;
  background: rgba(31, 48, 32, 0.92); color: #fff;
  padding: 8px 12px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em;
}
.annotated-figure .annot-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(31,48,32,0) 0%, rgba(31,48,32,0.85) 100%);
  color: #fff; padding: 18px 20px;
  font-size: 14.5px;
}
.annotated-figure .annot-strip strong { color: var(--accent-soft); font-weight: 700; }

/* ===================  DATA POSTER  (points system / scoring)  =================== */
.data-poster {
  padding: 56px 0;
  background: var(--background);
}
.data-poster-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.data-poster-head h2 { margin: 0; }
.data-poster-head .lede { color: var(--muted); max-width: 56ch; margin: 6px 0 0; font-size: 15.5px; }
.data-poster-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-3); }
.data-table .num { font-family: var(--font-mono); font-weight: 700; color: var(--primary-strong); white-space: nowrap; }
.data-table caption { caption-side: top; text-align: left; font-size: 12px; color: var(--muted); padding: 8px 0; font-family: var(--font-mono); letter-spacing: 0.04em; }

.matrix-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.matrix-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 18px;
}
.matrix-card h3, .matrix-card h4 { color: var(--primary-strong); margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.matrix-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ===================  COMMUNITY QUESTIONS  (accordion)  =================== */
.community {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.community h2 { margin-bottom: 8px; }
.community .lede { color: var(--muted); margin-bottom: 24px; font-size: 16px; max-width: 56ch; }
.faq-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.faq-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; line-height: 1; color: var(--primary); font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7;
}
.faq-item .faq-body p { margin: 0 0 .8em; }
.faq-item .faq-body p:last-child { margin: 0; }
.faq-item .faq-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--muted); font-family: var(--font-mono);
}

/* ===================  RELATED PATHWAYS  =================== */
.related {
  padding: 56px 0 32px;
  background: var(--background);
}
.related-head { margin-bottom: 24px; }
.related-head .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--primary-strong); text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.related-head .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--primary-strong); }
.related-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pathway-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
  text-decoration: none !important;
  min-width: 0;
}
.pathway-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.pathway-card .pathway-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.pathway-card .pathway-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pathway-card .pathway-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pathway-card .pathway-eyebrow {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase;
}
.pathway-card h3 { font-size: 16.5px; margin: 0; color: var(--ink); line-height: 1.3; }
.pathway-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===================  RESPONSIBLE-USE CLOSE  =================== */
.responsible {
  padding: 48px 0 64px;
  background: var(--ink);
  color: #DCE8DD;
}
.responsible .container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.responsible h2 { color: #fff; }
.responsible p { color: #C5D4C6; font-size: 15px; }
.responsible .resp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.responsible .resp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px;
}
.responsible .resp-card h3, .responsible .resp-card h4 { color: #fff; font-size: 14px; margin-bottom: 4px; font-weight: 700; }
.responsible .resp-card p { font-size: 13px; color: #B7C9B8; margin: 0; }

/* ===================  FOOTER  =================== */
.site-footer {
  background: #0F1F11;
  color: #A9B9AA;
  padding: 48px 0 24px;
  font-size: 14px;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h3, .site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; font-family: var(--font-mono); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #C5D4C6; }
.site-footer a:hover { color: var(--accent-soft); text-decoration: underline; }
.site-footer .footer-about p { color: #95A696; font-size: 13.5px; line-height: 1.65; margin: 12px 0 16px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .footer-brand svg { width: 152px; }
.site-footer .footer-foot {
  border-top: 1px solid #1A2E1C;
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: #9DAE9E;
}
.site-footer .footer-foot a { color: #C5D4C6; }

/* ===================  STICKY MOBILE CTA  =================== */
.mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 16px rgba(31, 48, 32, 0.08);
}
.mobile-sticky .ms-row { display: flex; gap: 10px; align-items: center; max-width: 540px; margin: 0 auto; }
.mobile-sticky .ms-note { font-size: 11px; color: var(--muted); line-height: 1.3; flex: 1; min-width: 0; }
.mobile-sticky .ms-note strong { color: var(--ink); display: block; }
.mobile-sticky .ms-cta { flex: 0 0 auto; }
.mobile-sticky .ms-cta .btn { padding: 10px 18px; min-height: 42px; }
@media (max-width: 720px) {
  body { padding-bottom: 78px; }
  .mobile-sticky { display: block; }
}

/* ===================  PAGE HERO  (subpages)  =================== */
.page-hero {
  padding: 48px 0 32px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.page-hero .ph-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px; align-items: center;
}
.page-hero .ph-content .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--primary-strong); font-weight: 700; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.page-hero .ph-content .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--primary-strong); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 14px; }
.page-hero .lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; margin-bottom: 18px; }
.page-hero .ph-meta { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.page-hero .ph-image { aspect-ratio: 4 / 3; border-radius: var(--radius-hero); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.page-hero .ph-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ===================  PROSE  (long-form body content)  =================== */
.prose { padding: 48px 0; }
.prose .container { max-width: 820px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 36px 0 14px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; color: var(--primary-strong); }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .5em; line-height: 1.65; }
.prose a { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 8px 18px; margin: 1.2em 0;
  background: var(--surface-2); border-radius: 6px;
  color: var(--ink-2); font-style: normal;
  font-size: 16.5px;
}
.prose .inline-figure { margin: 28px 0; }
.prose .inline-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); }
.prose .inline-figure figcaption { font-size: 12.5px; color: var(--muted); padding-top: 8px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.prose .callout {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 20px; margin: 20px 0;
}
.prose .callout h3, .prose .callout h4 { color: var(--primary-strong); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); margin-bottom: 6px; font-weight: 700; }
.prose .callout p { font-size: 15px; margin: 0; }
.prose .toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin: 0 0 28px;
}
.prose .toc h4, .prose .toc h2 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.prose .toc ol { padding-left: 18px; margin: 0; }
.prose .toc a { text-decoration: none; color: var(--ink); font-size: 14.5px; }
.prose .toc a:hover { color: var(--primary-strong); text-decoration: underline; }

/* ===================  BAND  (full-width sections)  =================== */
.band { padding: 56px 0; }
.band-paper { background: var(--background); }
.band-warm { background: var(--surface-2); }
.band-white { background: var(--surface); }
.band-ink { background: var(--ink); color: #DCE8DD; }
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: #fff; }
.band-ink p { color: #C5D4C6; }

/* ===================  TWO-COL UTILITY  =================== */
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.split-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.split-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* ===================  REUSABLE TILES  =================== */
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.tile h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.tile p { font-size: 14px; color: var(--muted); margin: 0; }

.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.kpi .kpi-num { font-family: var(--font-mono); font-size: 28px; font-weight: 800; color: var(--primary-strong); }
.kpi .kpi-label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); margin-top: 4px; }

/* ===================  CTA BANNER  =================== */
.cta-band { padding: 56px 0; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-band .cta-inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px; align-items: center;
}
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 18px; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-band .cta-disclosure { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* ===================  SCROLL-SNAP CHAPTERS  (deep-dive module alt)  =================== */
.chapter {
  padding: 64px 0;
  background: var(--background);
  border-top: 1px solid var(--border);
}
.chapter h2 { margin-bottom: 10px; }
.chapter .lede { color: var(--muted); max-width: 56ch; margin-bottom: 28px; font-size: 16px; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.chapter-rail {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 10px;
}
.chapter-rail button {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink-2);
  display: flex; align-items: center; gap: 12px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chapter-rail button::before {
  content: counter(chap, decimal-leading-zero);
  counter-increment: chap;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  font-weight: 700; letter-spacing: 0.1em;
}
.chapter-rail { counter-reset: chap; }
.chapter-rail button:hover, .chapter-rail button.is-active {
  border-color: var(--primary); background: var(--surface-2); color: var(--primary-strong);
}
.chapter-panels { display: grid; gap: 18px; }
.chapter-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 20px 22px;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.chapter-panel h3 { font-size: 18px; margin: 0 0 8px; }
.chapter-panel p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 10px; }
.chapter-panel ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.chapter-panel li { margin-bottom: 6px; font-size: 14.5px; }

/* ===================  RESPONSIVE  =================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dossier-card { max-width: 520px; }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-visual { position: static; }
  .annotated-grid { grid-template-columns: 1fr; }
  .cta-band .cta-inner { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-cards { grid-template-columns: 1fr; }
  .responsible .container { grid-template-columns: 1fr; }
  .page-hero .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero .ph-grid > * { min-width: 0; }
  .page-hero .ph-meta { flex-wrap: wrap; row-gap: 6px; column-gap: 14px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .split-3, .split-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .split-2 { grid-template-columns: 1fr; }
  .mobile-sticky .ms-row { min-width: 0; }
  .mobile-drawer { max-width: 100vw; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 32px 0 18px; }
  .quick-actions-grid, .related-grid, .kpi-row { grid-template-columns: 1fr; }
  .split-3, .split-4 { grid-template-columns: 1fr; }
  .responsible .resp-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .band, .deep-dive, .annotated, .data-poster, .community, .related, .cta-band, .chapter, .hero, .page-hero { padding: 36px 0; }
  .hero h1, h1 { font-size: clamp(28px, 7vw, 38px); }
  h2 { font-size: clamp(22px, 5.4vw, 28px); }
  .data-table { min-width: 520px; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 13.5px; }
  .dossier-card { padding: 14px; }
  .dossier-card .dossier-image { aspect-ratio: 16 / 10; }
  .hero-ticker-inner { font-size: 11.5px; gap: 24px; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero h1, h1 { font-size: 28px; }
  .pathway-card h3 { font-size: 15px; }
  .btn { padding: 11px 16px; font-size: 14px; }
}

/* Print */
@media print {
  .site-header, .mobile-drawer, .scrim, .mobile-sticky, .site-footer { display: none; }
  body { background: #fff; color: #000; padding: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-ticker-inner { animation: none; }
}
