/* ─────────────────────────────────────────────────────────────────────────
   ARTICLE / ANSWER-BLOCK PAGES — Nirvana Forest, light reading surface.

   Shared by the Phase 4 reference pages. Same tokens, type scale, and
   band-and-surface model as the rest of the site: dark forest bands for
   nav/hero/footer, a light reading surface for the prose.

   Versioned filename (never ?v=), per PERF_STANDARDS.

   Contrast: body #111827 on #FFFFFF, headings --pine #0D2B1E, links
   --emerald #0F7A57 — all >= 4.5:1. --pine-mid is fill/border only and
   is never used for text.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --pine:      #0D2B1E;
  --pine-mid:  #1D9E75;  /* decorative fill/border only — never text */
  --emerald:     #0F7A57;  /* accessible green for link/text on light */
  --pine-light:#9FE1CB;
  --pine-pale: #E1F5EE;
  --white:       #FFFFFF;
  --text:        #111827;
  --muted:       #5C6470;
  --rule:      #E5E7EB;
  --bg:          #F9FAFB;
  --radius:           8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', 'Lato Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald); text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif; font-weight: 500; line-height: 1.25; }

/* NAV
   These were a bare `nav {}` and a bare `.nav-inner {}`, which styled EVERY
   <nav> on the page. Once a second <nav> existed — the breadcrumb — it
   inherited a dark band and overlapped the header. Scoped to .site-nav, and
   the hard height:60px became a min-height so the mobile nav can wrap. */
.site-nav { background: var(--pine); padding: 0 24px; }
.site-nav .nav-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 60px; height: auto; }

/* HERO */
.page-hero { background: var(--pine); color: var(--white); padding: 56px 24px 48px; }
.page-hero-inner { max-width: 860px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1rem; max-width: 62ch; }

/* CONTENT */
.content-wrap { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
h2 { font-size: 1.45rem; margin: 44px 0 12px; color: var(--pine); }
h2:first-of-type { margin-top: 0; }
h3 { font-size: 1.08rem; margin: 30px 0 8px; color: var(--pine); }
p  { margin-bottom: 14px; font-size: 1rem; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 9px; font-size: 1rem; line-height: 1.65; }
strong { font-weight: 700; }

.lede { font-size: 1.08rem; color: var(--text); }

/* Definition / key-point box */
.keypoint {
  background: var(--pine-pale); border-left: 3px solid var(--pine-mid);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 22px 0;
  font-size: .97rem; color: var(--pine); line-height: 1.7;
}
.keypoint p:last-child { margin-bottom: 0; }

/* Comparison table — wide content scrolls inside its own container so the
   page body never scrolls horizontally. */
.table-scroll { overflow-x: auto; margin: 20px 0 8px; border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
caption {
  caption-side: top; text-align: left; padding: 14px 16px 12px;
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-size: 1.05rem; color: var(--pine); border-bottom: 1px solid var(--rule);
}
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--bg); color: var(--pine); font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
tbody th { font-weight: 700; color: var(--text); background: #FCFDFC; width: 30%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
.table-note { font-size: .88rem; color: var(--muted); margin: 0 0 28px; }

/* Sources */
.sources { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 26px; margin-top: 44px; }
.sources h2 { margin-top: 0; font-size: 1.15rem; }
.sources ol { margin-bottom: 0; }
.sources li { font-size: .92rem; margin-bottom: 10px; }
.sources li:last-child { margin-bottom: 0; }

/* FAQ */
.faq h3 { font-size: 1.02rem; margin-top: 26px; }

/* The single entity sentence */
.entity-line { font-size: .95rem; color: var(--muted); margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* FOOTER */
footer { background: var(--pine); color: rgba(255,255,255,.6); padding: 32px 24px; text-align: center; font-size: .82rem; }
footer a { color: rgba(255,255,255,.72); }
footer a:hover { color: var(--white); }
.footer-usops { margin-top: 10px; color: rgba(255,255,255,.5); }

@media (max-width: 600px) {
  .content-wrap { padding: 36px 20px 64px; }
  .page-hero { padding: 44px 20px 38px; }
}

/* ── SITE NAV ───────────────────────────────────────────────────────────
   Persistent header nav, shared by every non-homepage page. It replaced a
   lone "← Home" link, which made every article a dead end: the only way out
   was back to the homepage or the browser button. Links real pages, never
   fragments — a fragment in nav is why Google was indexing homepage anchors
   as separate results. */
.site-nav { position: sticky; top: 0; z-index: 50; }
.site-nav .nav-inner {
  padding: 12px 0; gap: 20px; flex-wrap: wrap;
  justify-content: flex-start;
}
.site-nav .logo-wrap {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; margin-right: auto;
}
.site-nav .logo-mark {
  background: #0F7A57; color: #FFFFFF;
  font-family: 'Courier Prime', monospace; font-size: .72rem; font-weight: 700;
  line-height: 1.1; padding: 5px 7px; border-radius: 4px;
  letter-spacing: .05em; text-align: center;
}
.site-nav .logo-text { color: #FFFFFF; font-weight: 700; font-size: .95rem; }
.site-nav .nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav .nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .88rem;
  /* 44px minimum touch target. */
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a[aria-current="page"] {
  color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px;
}
.site-nav .nav-cta {
  background: #0F7A57; color: #FFFFFF; text-decoration: none;
  padding: 9px 16px; border-radius: 6px; font-size: .86rem; font-weight: 600;
  /* 44px minimum touch target, per guardrail 11 and the 375px requirement. */
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav .nav-cta:hover { opacity: .9; }
.site-nav a:focus-visible { outline: 2px solid #9FE1CB; outline-offset: 3px; }

@media (max-width: 640px) {
  .site-nav .nav-inner { padding: 10px 16px; gap: 12px; }
  .site-nav .logo-wrap { margin-right: 0; }
  .site-nav .nav-links { order: 3; width: 100%; gap: 14px; }
  
}

/* ── BREADCRUMBS ─────────────────────────────────────────────────────── */
.breadcrumb { max-width: 1080px; margin: 0 auto; padding: 14px 24px 0; }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: #5C6470; }
.breadcrumb li + li::before { content: "›"; color: #9aa1ab; }
/* 24px minimum target for inline navigation links (WCAG 2.5.8 AA). */
.breadcrumb li { min-height: 24px; }
.breadcrumb a { color: #0F7A57; text-decoration: none;
  min-height: 24px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #5C6470; }

@media (max-width: 640px) { .breadcrumb { padding: 12px 16px 0; } }

/* ── LEARN HUB ───────────────────────────────────────────────────────── */
.hub-intro { max-width: 1080px; margin: 0 auto; padding: 8px 24px 0; }
.hub-grid {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}
.hub-section-title {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px 0;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500;
  font-size: 1.35rem; color: var(--pine, #0D2B1E);
}
.hub-card {
  border: 1px solid #E5E7EB; border-radius: 10px; padding: 22px 20px;
  background: #FFFFFF; display: flex; flex-direction: column; gap: 8px;
}
.hub-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.hub-card h3 a { color: var(--pine, #0D2B1E); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; }
.hub-card h3 a:hover { text-decoration: underline; }
.hub-card p { margin: 0; font-size: .89rem; color: #5C6470; line-height: 1.65; }
.hub-card .hub-tag {
  font-family: 'Courier Prime', monospace; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: #0F7A57;
}
@media (max-width: 640px) { .hub-grid { padding: 22px 16px 44px; } .hub-intro { padding: 8px 16px 0; } .hub-section-title { padding: 22px 16px 0; } }

/* Transcript block. Carries the spoken content of a recorded explainer as
   indexable text — answer engines cite text, not video. Styled as secondary
   reading so it does not compete with the article itself. */
.transcript {
  border-left: 3px solid var(--pine-mid, #1D9E75);
  padding: 4px 0 4px 18px;
  margin: 8px 0 28px;
}
.transcript p { color: #3f4750; font-size: .94rem; }
