/* ITEX Owner's Guide — shared stylesheet for all grow.itex.com pages. One file,
   edge-cached across every page.

   Design system (D-021): token layer + typography (ITX-68), designed section
   components with alternating full-bleed bands (ITX-69). Barlow (open-license
   DIN-style, self-hosted latin subsets, SIL OFL — assets/fonts/OFL-Barlow.txt)
   carries headings; body stays on the system stack. Barlow stands in for
   Bahnschrift until ITEX resolves licensing (ITX-56); swap = one token.

   Brand: charcoal carries text + primary buttons (WCAG AA); the bright brand
   green/blue are ACCENTS ONLY — arcs, borders, badges, icon strokes — never
   small-text colors (constitution/marketing/brand.md). Hex values are web
   approximations pending exact PMS swatches (ITX-56). */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Color roles — brand */
  --ink: #1a1a1a;              /* itex charcoal — body text + primary buttons */
  --ink-soft: #4b5158;         /* secondary text (AA on white and panel) */
  --brand-green: #8dc63f;      /* accent only (verify PMS/hex, ITX-56) */
  --brand-blue: #29abe2;       /* accent only (verify PMS/hex, ITX-56) */
  --brand-blue-ink: #0e6e96;   /* darkened blue — accessible text links */
  --brand-green-ink: #4e7d15;  /* darkened green — accessible small labels (.gov tag) */
  --brand: var(--ink);         /* primary button/brand color = charcoal (safe contrast) */
  --accent: var(--brand-green);

  /* Color roles — surfaces & bands */
  --bg: #fff;                  /* page base */
  --band: #f4f6f9;             /* alternating section band (cool panel) */
  --band-green: #f5f9ee;       /* whisper-green band (slow_times, callouts) */
  --card: #fff;                /* card surface */
  --border: #e3e8ee;           /* hairline borders */
  --border-strong: #c6cfd9;    /* form controls, emphasized borders */

  /* Color roles — dark band (scaling_growth close, footer) */
  --dark-bg: #17191c;
  --dark-card: #24272b;
  --dark-text: #f2f4f6;
  --dark-soft: #b8c0c8;        /* muted text on dark (AA) */
  --dark-border: #3a3f45;
  --dark-link: #7fcdf2;        /* accessible link blue on dark */

  /* Type — families ("Barlow-fallback" is the size-adjusted local fallback that
     zeroes out font-swap layout shift, ITX-71) */
  --font-head: "Barlow", "Barlow-fallback", "Bahnschrift", "DIN Alternate",
               "Franklin Gothic Medium", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type — scale (display → caption) */
  --fs-display: clamp(2.1rem, 1.45rem + 2.6vw, 3.3rem);  /* H1 */
  --fs-h2: clamp(1.45rem, 1.22rem + 0.9vw, 1.85rem);
  --fs-h3: 1.125rem;
  --fs-lede: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);     /* hero subhead */
  --fs-body: 1rem;
  --fs-small: .9rem;
  --fs-caption: .8rem;
  --fs-eyebrow: .78rem;                                   /* uppercase section labels */
  --fs-stat: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);      /* stat-callout figures */
  --lh-tight: 1.12;
  --lh-heading: 1.2;
  --lh-body: 1.65;
  --track-caps: .08em;                                    /* eyebrow letterspacing */

  /* Spacing scale */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radii & shadows */
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 24, 28, .06), 0 1px 3px rgba(20, 24, 28, .08);
  --shadow-2: 0 4px 14px rgba(20, 24, 28, .12);
  --shadow-3: 0 12px 32px rgba(20, 24, 28, .22);

  /* Layout: prose measure, the shared content-column width, and the full-bleed
     band padding that centers it. Header, hero, rail, sections, and footer all
     sit on the same column so every band's margins line up. */
  --maxw: 46rem;
  --maxw-content: 56rem;
  --gutter: 1.25rem;
  --pad-content: max(var(--gutter), calc(50vw - var(--maxw-content) / 2));
  /* Back-compat: pre-alignment names (hero/header used to sit on a wider rail) */
  --maxw-wide: var(--maxw-content);
  --pad-wide: var(--pad-content);

  /* Back-compat aliases (pre-token names) */
  --muted: var(--ink-soft);
  --panel: var(--band);
}

/* ---- Webfont: Barlow (headings only; body stays on the system stack) ----
   Self-hosted latin subsets (~23 KB/weight woff2), font-display: swap.
   The local() sources let a visitor with Barlow installed skip the download. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Barlow SemiBold"), url(/assets/fonts/barlow-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Barlow Bold"), url(/assets/fonts/barlow-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local("Barlow ExtraBold"), url(/assets/fonts/barlow-800.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Size-adjusted local fallback (ITX-71, zero-CLS goal): Arial scaled to match
   Barlow-700's advance widths and vertical metrics (computed with fontTools:
   avgW 527/1000 vs Arial 904/2048; hhea 1000/-200/0), so the swap frame
   doesn't reflow headings. */
@font-face {
  font-family: "Barlow-fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 119.4%;
  ascent-override: 83.8%;
  descent-override: 16.8%;
  line-gap-override: 0%;
}

/* ---- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
}
.skip-link { position: absolute; left: -999px; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  margin: var(--sp-4) 0 var(--sp-3);
  max-width: 30ch;
}
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-heading); margin: 0 0 var(--sp-3); }
h3 { font-size: var(--fs-h3); font-weight: 700; margin: 0 0 var(--sp-2); }
/* Eyebrow label over a heading (reference-aesthetic pattern) */
.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--ink-soft);
  margin: 0 0 var(--sp-2);
}

/* ---- Full-bleed band layout ------------------------------------------------
   main spans the viewport; every direct child pads itself so its background can
   run edge-to-edge while content stays centered (wide chrome vs content column). */
main { max-width: none; margin: 0; padding: 0; }
main > * { padding-inline: var(--pad-content); }
main > section { margin: 0; padding-block: var(--sp-6); }
.site-header, .site-footer { max-width: none; margin: 0; padding-inline: var(--pad-content); }

/* ---- Header ---------------------------------------------------------------- */
.site-header { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-4); padding-bottom: var(--sp-4); gap: var(--sp-4); flex-wrap: wrap; border-bottom: 1px solid var(--border); }
/* Brand lockup: the traced wordmark SVG (assets/brand/, DRAFT pending ITEX
   sign-off ITX-56) is inlined by the generator; explicit dimensions = no CLS. */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--brand); font-weight: 700; font-size: 1.25rem; }
.brand svg { display: block; width: auto; height: 2.3rem; }
/* Header's quiet "Join ITEX" text link (D-019) — deliberately a link, not a button. */
.join-link { color: var(--brand-blue-ink); font-size: var(--fs-small); font-weight: 600; text-decoration: underline; margin-left: auto; }
.breadcrumbs { list-style: none; display: flex; gap: var(--sp-2); padding: 0; margin: 0; font-size: .85rem; color: var(--ink-soft); flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: var(--sp-2); color: var(--border-strong); }
.breadcrumbs a { color: var(--ink-soft); }

/* ---- Hero (D-019: sells the guide, not ITEX) -------------------------------
   Full-bleed band with the code-first brand-art slot (ITX-70) layered behind
   the copy. The art is absolutely positioned — zero layout space, zero CLS. */
.hero { position: relative; overflow: hidden; padding-inline: var(--pad-content); padding-block: var(--sp-8) var(--sp-7); background: linear-gradient(180deg, #fbfdf8 0%, var(--bg) 90%); }
.hero-inner { position: relative; z-index: 1; max-width: 40rem; }
.hero-art { position: absolute; inset-block: 0; right: 0; width: min(44vw, 34rem); z-index: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
/* Generated-hero variant (ITX-70): cover the slot; fade under the copy side so
   the headline always sits on a quiet field. */
.hero-art-photo picture, .hero-art-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fbfdf8 0%, rgba(251, 253, 248, 0) 50%); }
.subhead { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 42rem; }
@media (max-width: 56rem) { .hero-art { opacity: .35; width: 70vw; } }

/* ---- Sticky mini-TOC rail (D-019 wayfinding, ITX-69) ------------------------
   Plain anchors without JS; enhance.js adds scroll-spy (aria-current). The
   read-progress hairline is CSS scroll-driven — no JS, absent when unsupported. */
.toc-rail { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding-block: .55rem; }
.toc-rail ul { list-style: none; margin: 0; padding: 2px; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.toc-rail ul::-webkit-scrollbar { display: none; }
.toc-rail a { display: inline-block; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .28rem .8rem; font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--bg); }
.toc-rail a:hover, .toc-rail a:focus { border-color: var(--brand-blue-ink); color: var(--brand-blue-ink); }
.toc-rail a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toc-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--brand-green), var(--brand-blue)); transform: scaleX(0); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  .toc-progress { animation: toc-progress linear both; animation-timeline: scroll(root); }
}
@keyframes toc-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Anchor jumps clear the sticky rail. */
main [id] { scroll-margin-top: 4rem; }

/* ---- Links, buttons, common ------------------------------------------------ */
main a:not(.btn):not(.link-card) { color: var(--brand-blue-ink); }
dl dt { font-weight: 600; margin-top: var(--sp-3); }
dl dd { margin: 0 0 var(--sp-1); color: var(--ink-soft); }
.btn { display: inline-block; padding: .7rem 1.25rem; border-radius: var(--radius); text-decoration: none; font-family: var(--font-head); font-weight: 700; margin: var(--sp-1) var(--sp-2) var(--sp-1) 0; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: #000; }
.btn-secondary { background: var(--bg); color: var(--brand); border: 1px solid var(--border-strong); }
.btn-secondary:hover, .btn-secondary:focus { border-color: var(--ink); }
.local-badge { background: var(--band); border-left: 4px solid var(--accent); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); max-width: var(--maxw); }

/* ---- Guide sections as designed components (ITX-69) ------------------------ */
.sec { margin: 0; padding-block: var(--sp-7); }
.sec.band { background: var(--band); }
.sec .body { max-width: var(--maxw); }
.sec .body p { margin: var(--sp-3) 0; }
.local-intro { padding-block: var(--sp-6) var(--sp-4); }
.local-intro h2 { max-width: var(--maxw); }
.local-intro p { max-width: var(--maxw); font-size: 1.05rem; }
/* Section header: icon badge + eyebrow + heading */
.sec-head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.sec-head .eyebrow { margin-bottom: var(--sp-1); }
.sec-head h2 { margin: 0; max-width: 30ch; }
.sec-icon { flex: 0 0 auto; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.sec-icon svg { width: 2rem; height: 2rem; }
.si-g { stroke: var(--brand-green); }
.si-b { stroke: var(--brand-blue); }
.si-k { stroke: var(--ink); }
/* Citation superscripts (D-011) */
sup.fn { line-height: 0; }
sup.fn a { font-size: .7em; font-weight: 700; text-decoration: none; padding: 0 .1em; }
.disclaimer { background: #fbf6ee; border-left: 3px solid #d9b24a; padding: .6rem .9rem; font-size: var(--fs-small); color: #6b5320; border-radius: var(--radius-s); max-width: var(--maxw); }

/* Stat callouts — numbers as heroes (cited local facts, D-011) */
.stats { list-style: none; margin: var(--sp-5) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--sp-4); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-1); padding: var(--sp-4) var(--sp-5); }
.stat-figure { display: block; font-family: var(--font-head); font-size: var(--fs-stat); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; }
.stat-figure::after { content: ""; display: block; width: 2.6rem; height: 4px; margin-top: .45rem; border-radius: 2px; background: linear-gradient(90deg, var(--brand-green), var(--brand-blue)); }
.stat-caption { display: block; margin-top: var(--sp-2); font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.5; }

/* Resource / checklist card grids (destinations untouched — ITX-73) */
.links { margin-top: var(--sp-5); }
.links-h { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--ink-soft); margin: 0 0 var(--sp-3); }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--sp-3); }
.link-card { display: block; height: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); text-decoration: none; }
.link-card:hover, .link-card:focus { border-color: var(--brand-blue-ink); box-shadow: var(--shadow-1); }
.link-card-label { display: block; font-weight: 600; color: var(--brand-blue-ink); }
.link-card-meta { display: block; margin-top: .15rem; font-size: var(--fs-caption); color: var(--ink-soft); overflow-wrap: anywhere; }
.gov { color: var(--brand-green-ink); font-weight: 700; font-size: var(--fs-caption); }
/* Numbered checklist variant ("…and 10 other good ideas") */
.checklist { counter-reset: idea; }
.checklist li { counter-increment: idea; }
.checklist .link-card::before { content: counter(idea, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--brand-green-ink); margin-bottom: .1rem; }

/* Section Q&A */
.faqs dl { margin: var(--sp-4) 0 0; max-width: var(--maxw); }
.faqs dt { font-family: var(--font-head); font-size: 1.02rem; }
/* Contextual "Ask Boone about X" section links (D-020) */
.ask-boone { margin: var(--sp-4) 0 0; font-size: var(--fs-small); }
.boone-ask { font-weight: 600; }

/* slow_times — the calm half of the CTA sandwich (D-010): quiet green wash band */
.callout.downturn { background: var(--band-green); border: 0; border-radius: 0; padding-block: var(--sp-7); }

/* scaling_growth — the growth half: high-energy dark-band close (D-010) */
.sec.grow { background: var(--dark-bg); color: var(--dark-text); padding-block: var(--sp-8); }
.sec.grow h2 { color: #fff; }
.sec.grow .eyebrow { color: var(--dark-soft); }
.sec.grow .sec-icon { background: var(--dark-card); border-color: var(--dark-border); box-shadow: none; }
.sec.grow .si-k { stroke: var(--dark-text); }
.sec.grow .body { color: var(--dark-text); }
.sec.grow a:not(.btn):not(.link-card) { color: var(--dark-link); }
.sec.grow .cta-feature { background: linear-gradient(135deg, rgba(141, 198, 63, .14), rgba(41, 171, 226, .10)), var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius-l); padding: var(--sp-6); margin: var(--sp-2) 0 var(--sp-5); }
.cta-feature .cta-kicker { font-family: var(--font-head); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 800; margin: 0 0 .35rem; color: var(--brand-green); }
.cta-feature .cta-sub { margin: 0 0 var(--sp-4); color: var(--dark-text); max-width: 40rem; }
.sec.grow .cta-feature .btn-primary { background: var(--brand-green); color: var(--ink); }
.sec.grow .cta-feature .btn-primary:hover, .sec.grow .cta-feature .btn-primary:focus { background: #9fd455; }
.sec.grow .links-h { color: var(--dark-soft); }
.sec.grow .link-card { background: var(--dark-card); border-color: var(--dark-border); }
.sec.grow .link-card:hover, .sec.grow .link-card:focus { border-color: var(--dark-link); }
.sec.grow .link-card-label { color: var(--dark-link); }
.sec.grow .link-card-meta { color: var(--dark-soft); }
.sec.grow .checklist .link-card::before { color: var(--brand-green); }
.sec.grow .faqs dt { color: var(--dark-text); }
.sec.grow .faqs dd { color: var(--dark-soft); }
.sec.grow .disclaimer { background: rgba(217, 178, 74, .12); color: #e8d5a0; }

/* ---- ITEX closing zone (D-019): office context → About → Join → Boone ------- */
.itex-zone { background: var(--band); padding-block: var(--sp-7); }
.itex-zone > section { margin: var(--sp-5) 0; }
.itex-zone > section:first-child { margin-top: 0; }
.local-context { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand-blue); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); max-width: var(--maxw); }
.local-context h2 { font-size: 1.15rem; }
.office-contact { font-size: var(--fs-small); color: var(--ink-soft); margin: var(--sp-1) 0 0; }
.about-itex { max-width: var(--maxw); }
.about-itex h2 { font-size: 1.15rem; }
.about-itex p { color: var(--ink-soft); font-size: var(--fs-small); }
.join-cta { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius-l); box-shadow: var(--shadow-1); padding: var(--sp-5) var(--sp-6); max-width: var(--maxw-content); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-2); }
.cta-contact { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }

/* ---- Boone inline section (no-JS fallback + AEO surface, D-020) ------------ */
.boone { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--sp-4) var(--sp-5); max-width: var(--maxw-content); }
.boone-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-3) 0; }
.boone-form label { flex: 1 0 100%; font-weight: 600; }
.boone-form input { flex: 1 1 auto; min-width: 12rem; padding: .6rem .75rem; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; }
.boone-form button { padding: .6rem 1.1rem; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; cursor: pointer; }
.boone-form button:hover, .boone-form button:focus { background: #000; }
.boone-suggestions { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.boone-seed { background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: .35rem .8rem; cursor: pointer; font-size: .85rem; }
.boone-seed:hover, .boone-seed:focus { border-color: var(--brand-blue-ink); color: var(--brand-blue-ink); }
.boone-answer { white-space: pre-wrap; }
.boone-disclosure { font-size: var(--fs-caption); color: var(--ink-soft); margin-top: var(--sp-3); }

/* ---- FAQ (AEO payload, D-003) + References (D-011) as credible footnotes --- */
.faq { padding-block: var(--sp-6); }
.faq h2 { max-width: var(--maxw); }
.faq dl { max-width: var(--maxw); }
.faq dt { font-family: var(--font-head); font-size: 1.02rem; padding-top: var(--sp-4); border-top: 1px solid var(--border); margin-top: var(--sp-4); }
.faq dl > dt:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.references { border-top: 1px solid var(--border); margin-top: 0; padding-block: var(--sp-6) var(--sp-7); }
.references h2 { font-family: var(--font-head); font-size: var(--fs-eyebrow); font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--ink-soft); }
.ref-note { font-size: .85rem; color: var(--ink-soft); max-width: var(--maxw); }
.references ol { padding-left: 1.4rem; font-size: .82rem; color: var(--ink-soft); }
.references li { margin: .4rem 0; overflow-wrap: anywhere; }
@media (min-width: 60rem) { .references ol { columns: 2; column-gap: var(--sp-6); } .references li { break-inside: avoid; } }

/* ---- Hub / state pages -------------------------------------------------- */
.area-list { columns: 2; gap: var(--sp-5); max-width: var(--maxw-content); }
@media (max-width: 40rem) { .area-list { columns: 1; } }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--dark-bg); color: var(--dark-soft); margin-top: 0; padding-top: var(--sp-6); padding-bottom: var(--sp-7); font-size: var(--fs-small); }
.fine { font-size: var(--fs-caption); }
/* Legal + corporate links — small-print row, centered across the footer with
   center-dot separators. Light text (not the body link blue, which is illegible
   on the dark band). */
.footer-legal { margin-top: var(--sp-4); }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: var(--sp-1); }
.footer-legal li { display: flex; align-items: center; }
.footer-legal li:not(:last-child)::after { content: "\00B7"; margin: 0 var(--sp-3); color: var(--dark-soft); }
.footer-legal a { color: var(--dark-text); text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus { color: #fff; text-decoration: underline; }
.copyright { margin-top: var(--sp-3); text-align: center; color: var(--dark-soft); }

/* ---- Root menu (public ToC at /) ------------------------------------------
   Full-bleed vertical bands that ALTERNATE white / light-grey (matches the
   landing-page section rhythm). nth-child(even) is grey, so the bands keep
   alternating automatically as verticals are added. */
/* Wrapper is a `main > section`, which line 193 pads with --pad-content — zero it
   so each band below can go edge-to-edge and set its own --pad-content inset. */
.menu-index { padding-inline: 0; padding-block: 0; }
.menu-vertical { padding-inline: var(--pad-content); padding-block: var(--sp-6); }
.menu-vertical:nth-child(even) { background: var(--band); }
.menu-vertical > * { max-width: var(--maxw-content); }
.menu-vertical > h2 { font-family: var(--font-head); font-size: var(--fs-h2); margin: 0 0 var(--sp-2); }
.menu-intro { color: var(--ink-soft); max-width: var(--maxw); margin: 0 0 var(--sp-3); }
.menu-hub { margin: 0 0 var(--sp-3); font-weight: 600; }
.menu-hub a { color: var(--brand-blue-ink); }
.menu-metros { margin-top: var(--sp-2); }

/* ---- Boone floating launcher (D-020) ----------------------------------------
   Fixed overlay: reserves no layout space, so revealing it causes no CLS. The
   wrapper ships `hidden` and boone.js unhides it (progressive enhancement). */
.boone-launcher { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
/* The author display:flex above would defeat the [hidden] attribute the wrapper
   ships with — keep no-JS pages free of a dead launcher button (D-020). */
.boone-launcher[hidden] { display: none; }
.boone-launcher-toggle { min-height: 3rem; padding: .7rem 1.3rem; border: 0; border-radius: var(--radius-pill); background: var(--brand); color: #fff; font: inherit; font-family: var(--font-head); font-weight: 700; cursor: pointer; box-shadow: var(--shadow-2); }
.boone-launcher-toggle:hover, .boone-launcher-toggle:focus { background: #000; }
.boone-panel { display: flex; flex-direction: column; gap: var(--sp-2); width: min(24rem, calc(100vw - 2rem)); height: min(34rem, 80vh); min-height: 15rem; max-height: 90vh; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-3); padding: .9rem 1rem; }
/* Drag handle at the top of the panel — resize taller/shorter (boone.js). */
.boone-resize { align-self: center; flex: 0 0 auto; width: 100%; height: 12px; margin: -.4rem 0 .1rem; display: flex; align-items: center; justify-content: center; cursor: ns-resize; touch-action: none; }
.boone-resize::before { content: ""; width: 2.4rem; height: 4px; border-radius: 2px; background: var(--border-strong); }
.boone-resize:hover::before { background: var(--brand); }
.boone-panel[hidden] { display: none; }
.boone-panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.boone-panel-title { margin: 0; font-family: var(--font-head); font-weight: 700; }
.boone-panel-close { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: .2rem .4rem; }
.boone-panel-close:hover, .boone-panel-close:focus { color: var(--ink); }
.boone-panel-scroll { overflow-y: auto; min-height: 3rem; flex: 1 1 auto; }
.boone-panel-intro { margin: 0 0 var(--sp-2); font-size: var(--fs-small); color: var(--ink-soft); }
/* Session transcript: chat bubbles (UI-only — the backend stays one-q-per-POST) */
.boone-panel-transcript { display: flex; flex-direction: column; gap: var(--sp-2); }
.boone-msg { border-radius: var(--radius); padding: .45rem .7rem; font-size: .95rem; white-space: pre-wrap; max-width: 88%; }
.boone-msg-user { align-self: flex-end; background: var(--ink); color: #fff; }
.boone-msg-boone { align-self: flex-start; background: var(--band); }
.boone-pending { color: var(--ink-soft); }
.boone-panel-handoff { font-size: var(--fs-small); }
.boone-panel-handoff a { margin-right: .6rem; }
/* Panel form: input on its own full-width row so the placeholder never clips */
.boone-panel .boone-form { margin: 0; }
.boone-panel .boone-form input { flex: 1 1 100%; min-width: 0; font-size: .95rem; }
.boone-panel .boone-disclosure { margin-top: 0; }
/* Starter seed questions + the scroll-contextual suggestion inside the panel */
.boone-context-label { margin: 0 0 var(--sp-1); font-family: var(--font-head); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--ink-soft); }
.boone-panel-suggestions-wrap { max-height: 8.5rem; overflow-y: auto; }
.boone-panel .boone-suggestions { margin: 0; }
.boone-panel .boone-seed { font-size: var(--fs-caption); text-align: left; }
.boone-context-seed { background: var(--band-green); border-color: var(--brand-green); }
/* Once a conversation starts, intro + starter chips make room for the chat */
.boone-has-chat .boone-panel-intro,
.boone-has-chat .boone-panel-suggestions-wrap { display: none; }

/* ---- Motion (ITX-71, D-021) --------------------------------------------------
   Everything lives behind prefers-reduced-motion: no-preference — reduced-motion
   visitors get the complete static page, nothing missing, nothing moving. Only
   opacity/transform animate — zero contribution to CLS.

   Scroll-reveals are one-shot: enhance.js pre-hides ONLY elements fully below
   the first viewport (.pre-reveal) and reveals them once on entry (.revealed).
   Nothing above the fold is ever hidden, and nothing sits mid-animation bound
   to scroll position (a scroll-linked view() reveal parks partially-scrolled
   text at partial opacity — a real readability + WCAG contrast failure). */
@media (prefers-reduced-motion: no-preference) {
  .link-card, .btn, .boone-seed, .toc-rail a, .stat, .boone-launcher-toggle,
  .boone-form button {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease,
                background-color .18s ease, color .18s ease;
  }
  .link-card:hover, .link-card:focus { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .btn:hover, .btn:focus, .boone-launcher-toggle:hover { transform: translateY(-1px); }
  .boone-panel:not([hidden]) { animation: panel-in .22s ease; }

  .pre-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .pre-reveal.revealed { opacity: 1; transform: none; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
