/* engine.css — Fusion Energy Survey dashboard styles.
   Design tokens up top; the fusion (light, default), dark and
   greyscale (high-contrast accessibility) themes override them on
   html[data-theme]. Forked 2026-08-21 from wxdash's 11_dashboard/site. */

:root {
  --bg: #faf9f7;                /* warm paper */
  --panel: #ffffff;
  --panel-border: #e7e3dc;
  /* The hairline between blocks. Every rule on the
     comparison cards and the About page asks for it by this
     name; it was never defined, so `1px solid var(--border)`
     was invalid at computed-value time and painted nothing. */
  --border: #e7e3dc;
  --text: #26221e;
  --text-muted: #6b645c;
  --accent: #8a1538;            /* fallback only; the fusion theme overrides */
  --accent-contrast: #ffffff;
  --nav-bg: #ffffff;
  --nav-text: #26221e;
  --control-bg: #ffffff;
  --control-border: #cfc9c0;
  --row-hover: #f5f2ec;
  --row-selected: #fdeef2;
  --map-hairline: rgba(38, 34, 30, 0.28);
  --shadow: 0 1px 3px rgba(40, 30, 20, 0.08);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Charter, "Bitstream Charter", Cambria, Georgia, serif;
}

/* Greyscale — high-contrast accessibility (B&W print, color-vision needs).
   Chrome only: chart data colors remain viridis (colorblind-safe by design). */
html[data-theme="greyscale"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-border: #444444;
  --border: #444444;
  --text: #000000;
  --text-muted: #333333;
  --accent: #000000;
  --accent-contrast: #ffffff;
  --nav-bg: #ffffff;
  --nav-text: #000000;
  --control-bg: #ffffff;
  --control-border: #444444;
  --row-hover: #eeeeee;
  --row-selected: #dddddd;
  --map-hairline: rgba(0, 0, 0, 0.55);
  --shadow: none;
  --font-display: var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  /* Column flex so the footer hugs the viewport bottom on short pages. */
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ---------- navbar ---------- */
/* ---------- IPPRA institutional bar ---------- */
/* Shared chrome above the dashboard's own header — index.html explains why it
   exists and how its two modes are chosen.

   Black with white text (21:1). There is deliberately NO crimson here at all.
   Crimson TEXT on black measures 2.11:1 and fails WCAG AA (4.5:1), so it was
   never an option for the lettering; a crimson rule under the bar was tried
   instead and removed on 2026-09-15 because it clashed with the purple
   masthead directly beneath it — black meeting dark purple reads cleaner than
   black, crimson, then dark purple. If this bar is ever reused above a
   lighter header, a rule may be worth revisiting.

   Deliberately NOT sticky. #navbar is `position: sticky; top: 0` and the data
   tables sticky their own headers; adding a second sticky layer above them
   means retuning all of those offsets for a 26px strip. It sits at the top of
   the document and scrolls away.

   Fixed black/white in every theme: institutional chrome should read the same
   on fusion, dark and greyscale. */
#ippra-bar {
  background: #000;
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 20px;
  min-height: 26px;
  display: flex;
  align-items: center;
}
#ippra-bar a { color: #fff; text-decoration: none; padding: 5px 0; }
#ippra-bar a:hover { text-decoration: underline; }
#ippra-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* One mode at a time. Default (no data-entry) is the institutional link, so a
   visitor still gets it if the script is blocked or throws. */
.ippra-bar-back { display: none; }
html[data-entry="referred"] .ippra-bar-home { display: none; }
html[data-entry="referred"] .ippra-bar-back { display: inline; }

#navbar {
  display: flex; align-items: center; gap: 24px;
  background: var(--nav-bg); color: var(--nav-text);
  border-bottom: 1px solid var(--panel-border);
  padding: 0 20px; height: 54px;
  position: sticky; top: 0; z-index: 1100;
  box-shadow: var(--shadow);
}
#nav-title { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; font-family: var(--font-display); }
#nav-pages { display: flex; gap: 4px; flex-wrap: wrap; }
#nav-pages a, #nav-pages .nav-group-btn {
  color: var(--text-muted); text-decoration: none;
  padding: 6px 12px; border-radius: 999px; font-size: 14px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
#nav-pages a:hover, #nav-pages .nav-group-btn:hover { background: var(--row-hover); color: var(--text); }
#nav-pages a.active, #nav-pages .nav-group-btn.active { background: var(--accent); color: var(--accent-contrast); }

/* ---------- layout ---------- */
/* Full viewport width. The fork centred the page in 1500px, which suited a
   map beside a sidebar; here the widest thing is a bar chart whose response
   labels are whole sentences, and every pixel of chart width is a pixel the
   labels do not have to wrap into. */
#app { padding: 18px; margin: 0 auto; width: 100%; flex: 1 0 auto; }
.page { display: flex; gap: 18px; align-items: flex-start; }
.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; font-family: var(--font-display); }
.card .subtitle { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; }

label.field-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13.5px; }
select.grouping {
  width: 100%; padding: 8px 10px; font-size: 14px;
  background: var(--control-bg); color: var(--text);
  border: 1px solid var(--control-border); border-radius: 6px;
}

/* ---------- charts ---------- */
.chart-wrap { position: relative; height: 520px; }
.chart-wrap canvas { max-width: 100%; }

/* ---------- tables ---------- */
.table-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.table-tools input[type="search"] {
  padding: 7px 10px; font-size: 14px; min-width: 240px;
  border: 1px solid var(--control-border); border-radius: 6px;
  background: var(--control-bg); color: var(--text);
}
.table-tools .count { color: var(--text-muted); font-size: 13px; margin-left: auto; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td {
  text-align: left; padding: 8px 10px; vertical-align: top;
  border-bottom: 1px solid var(--panel-border);
}
table.data th { position: sticky; top: 0; background: var(--panel); z-index: 5; }
table.data th .col-name { cursor: pointer; user-select: none; font-weight: 600; }
table.data th .col-name .arrow { color: var(--text-muted); font-size: 11px; }
table.data th input {
  width: 100%; margin-top: 6px; padding: 4px 6px; font-size: 12.5px;
  border: 1px solid var(--control-border); border-radius: 4px;
  background: var(--control-bg); color: var(--text);
}
table.data tbody tr:hover { background: var(--row-hover); }
table.data.clickable tbody tr { cursor: pointer; }
table.data tbody tr.selected { background: var(--row-selected); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 13px; }
.pager button {
  border: 1px solid var(--control-border); background: var(--control-bg); color: var(--text);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 13px;
}
.pager button:disabled { opacity: 0.4; cursor: default; }

/* ---------- viewer theme switcher ---------- */
#theme-switch { margin-left: auto; position: relative; }
#theme-btn {
  border: 1px solid var(--control-border); background: var(--control-bg); color: var(--text);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
#theme-btn:hover { background: var(--row-hover); }
#theme-menu {
  display: none; position: absolute; right: 0; top: 40px; min-width: 210px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  padding: 6px; z-index: 1200;
}
#theme-menu.open { display: block; }
#theme-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: none; background: none; color: var(--text); font: inherit; font-size: 13.5px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; text-align: left;
}
#theme-menu button:hover { background: var(--row-hover); }
#theme-menu button.active { background: var(--row-selected); font-weight: 600; }
#theme-menu .swatch {
  width: 16px; height: 16px; border-radius: 4px; flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,0.2);
}

.loading { color: var(--text-muted); padding: 40px; text-align: center; }
.error { color: #b00020; padding: 24px; }

@media (max-width: 900px) {
  .page { flex-direction: column; }
}

/* ================= Fusion theme additions =============================== */

/* Fusion theme (light default) — the viridis #443A83 purple as
   brand anchor, refined: cool-violet paper, midnight display ink, monospace
   for station codes/values (NWS station-identifier vernacular), and a viridis
   spectrum strip under the navbar tying chrome to the data palette. */
html[data-theme="fusion"] {
  --bg: #f7f6fb;
  --panel: #ffffff;
  --panel-border: #e2e1ec;
  --border: #e2e1ec;
  --text: #232130;
  --text-muted: #6a6780;
  --accent: #443A83;
  --accent-contrast: #ffffff;
  --display-ink: #2e2a57;
  --nav-bg: #2e2a57;
  --nav-text: #f0eef8;
  --control-bg: #ffffff;
  --control-border: #c9c6dd;
  --row-hover: #f1f0f7;
  --row-selected: #e9e6f5;
  --map-bg: #eef1f4;
  --map-line: #b8b8c0;
  --map-hairline: rgba(35, 33, 48, 0.28);
  --shadow: 0 1px 3px rgba(40, 30, 90, 0.10);
  --font-display: var(--font);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Dark theme — for presentation screens and low-light reading. (Inherited
   managers working dark radar rooms. Drought-Dashboard "operations" lineage:
   deep slate chrome, luminous viridis-teal accent (sampled from the data
   ramp itself). Data colors stay viridis — they glow on dark. */
html[data-theme="dark"] {
  --bg: #0b1220;
  --panel: #0f172a;
  --panel-border: #1e293b;
  --border: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #22a884;
  --accent-contrast: #06130d;
  --display-ink: #e2e8f0;
  --nav-bg: #060b16;
  --nav-text: #cbd5e1;
  --control-bg: #1e293b;
  --control-border: #334155;
  --row-hover: #16223a;
  --row-selected: #1b2c4a;
  --map-bg: #101a2e;
  --map-line: #2c3b57;
  --map-hairline: rgba(226, 232, 240, 0.32);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --font-display: var(--font);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Viridis spectrum strip under the navbar — the two branded themes only */
html[data-theme="fusion"] #navbar::after,
html[data-theme="dark"] #navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #440154, #414487, #2a788e, #22a884, #7ad151, #fde725);
}
html[data-theme="fusion"] #navbar,
html[data-theme="dark"] #navbar { position: sticky; border-bottom: none; }

/* ---------- maps ---------- */
.fu-map-card { padding: 0; overflow: hidden; }
/* Compound selector on purpose: Leaflet puts .leaflet-container on this same
   element, and its default #ddd would show through as the grey slab this is
   removing. */
.fu-map, .fu-map.leaflet-container { height: 620px; background: transparent; }
.fu-map-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .fu-map-row { grid-template-columns: 1fr; } }
.leaflet-container { font-family: var(--font); }

.fu-legend { padding: 10px 14px; }
.fu-legend-title { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.fu-legend-bar { height: 10px; border-radius: 5px; }
.fu-legend-labels { display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---------- shared widgets ---------- */
.fu-note { font-size: 13px; color: var(--text-muted); }
.fu-note ul { padding-left: 18px; }
.fu-check { display: block; margin-top: 10px; font-size: 14px; }


.fu-detail { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--panel-border); }
.fu-detail h4 { margin: 0 0 2px; }
.fu-measure-name { font-size: 12px; color: var(--text-muted); margin: 0 0 8px; }
.fu-detail-row { display: flex; justify-content: space-between; gap: 8px;
  font-size: 13px; margin: 4px 0; }
.fu-detail-hint { font-size: 13px; color: var(--text-muted); }

/* ---------- misc ---------- */
.fu-caption { font-size: 12px; color: var(--text-muted); margin: 6px 4px 0; }
.chart-wrap.tall { height: 560px; }
.fu-static { line-height: 1.65; }
.fu-static h3 { margin-top: 22px; }

/* ============ Design pass: typography ================================== */

/* Station codes and data values read in monospace — the NWS station-
   identifier vernacular (OUN, APP 61.4) as the typographic signature. */
.fu-detail-row strong, .fu-meta-line,
.fu-eyebrow { font-family: var(--mono, monospace); }

.fu-eyebrow {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 10px;
}

/* ---------- landing hero: live CWA choropleth backdrop + search console -- */
.fu-hero {
  position: relative; overflow: hidden;
  min-height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--map-bg, #eef1f4);
  box-shadow: var(--shadow);
  display: flex; align-items: center;
}
/* Leaflet adds .leaflet-container to this same element — compound selector,
   or its default #ddd canvas shows through as a grey slab. */
.fu-hero-content {
  position: relative; z-index: 500;
  max-width: 640px; padding: 48px 20px 48px 44px;
}
.fu-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  color: var(--display-ink, var(--text));
  margin: 0 0 14px;
}
.fu-hero-sub { font-size: 16px; color: var(--text-muted); margin: 0 0 24px; max-width: 520px; }
.fu-hero-search .fu-hero-search .fu-meta-line { margin-top: 18px; font-size: 12px; color: var(--text-muted); }
.fu-meta-line b { color: var(--text); font-weight: 600; }

/* ---------- landing: an argument, not a dashboard ------------------------
   No chart and no headline figure. The page has one job - make a reader who
   works in fusion want the finding - so it is set as prose: one wide measure
   for the lede, a numbered three-step argument, and the pivot that says why
   it is their problem. Everything is type and space; the only colour is the
   accent on the two calls to action. */
.fu-hero {
  display: block; min-height: 0; overflow: visible;
  background: none; border: none; box-shadow: none; border-radius: 0;
  padding: 60px 44px 52px;
}
/* One column, like the sections under it. Two columns balanced only while the
   headline was a six-line slogan and the lede three paragraphs; with the
   project's own summary the halves never match, and the whole page reads
   better as a single left-aligned measure. */
.fu-hero .fu-hero-content { max-width: none; padding: 0; display: block; }
.fu-hero .fu-hero-content h1 {
  font-size: clamp(27px, 3.2vw, 40px); margin: 0 0 20px; max-width: 26ch;
  /* Balanced so the last line is not one orphaned word under a full one. */
  text-wrap: balance;
}
.fu-hero-body { padding-top: 0; }
/* What is here: three tabs, one per part of the site. A connected row rather
   than three loose buttons, so they read as the whole of it and not as three
   suggestions - and each carries the line that the directory list used to. */
.fu-hero-tabs {
  margin: 30px 0 20px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--panel-border); border-radius: 8px;
  overflow: hidden; max-width: 900px;
}
.fu-tab {
  display: block; text-decoration: none; color: var(--text);
  padding: 16px 20px 18px; background: var(--card-bg, #fff);
}
.fu-tab + .fu-tab { border-left: 1px solid var(--panel-border); }
.fu-tab-label {
  display: block; font-weight: 650; font-size: 15px; margin-bottom: 4px;
}
.fu-tab-note {
  display: block; font-size: 12.5px; line-height: 1.45;
  color: var(--text-muted);
}
.fu-tab:hover { background: var(--row-hover); }
.fu-tab:hover .fu-tab-label {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.fu-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* Stacked at the same width the rest of the page reflows. Three across on a
   narrow screen leaves each tab about 230px, which wraps its note to five
   lines. */
@media (max-width: 900px) {
  .fu-hero-tabs { grid-template-columns: 1fr; }
  .fu-tab + .fu-tab { border-left: none; border-top: 1px solid var(--panel-border); }
}
.fu-hero .fu-hero-sub {
  font-size: 17px; line-height: 1.65; max-width: 68ch; margin: 0 0 16px;
}
.fu-hero .fu-hero-sub:last-of-type { margin-bottom: 26px; }
.fu-hero-cta { margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.fu-cta-button {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: var(--accent-contrast);
  padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: 15px;
}
.fu-cta-button:hover { filter: brightness(1.12); }
.fu-cta-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* The body sections. Prose at a readable measure, with an optional numbered
   list beside it where the source is itself a list. Nothing here is a card:
   the page is a summary, and boxing its paragraphs made it look like a
   dashboard with the charts taken out. */
.fu-sec {
  padding: 34px 44px 32px;
  border-top: 1px solid var(--panel-border);
}
.fu-sec-lead {
  font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px;
}
.fu-sec-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 56px; align-items: start;
}
.fu-sec-wide { grid-template-columns: minmax(0, 1fr); }
/* In a pair the column is already the measure, so the cap does nothing but
   leave a ragged right edge in the left half. */
.fu-sec-col .fu-sec-prose p { max-width: none; }
.fu-sec-col .fu-sec-lead { margin-bottom: 14px; }
.fu-sec-prose p {
  margin: 0 0 14px; font-size: 15.5px; line-height: 1.68; max-width: 68ch;
}
.fu-sec-prose p:last-child { margin-bottom: 0; }
.fu-sec-points {
  margin: 0; padding-left: 20px; display: grid; gap: 10px;
  font-size: 14px; line-height: 1.55; color: var(--text-muted);
}
.fu-sec-points li::marker { font-family: var(--mono, monospace);
                            color: var(--text-muted); font-size: 12px; }

.fu-dir-lead {
  font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 600; margin: 0 0 10px; padding: 0 24px;
}
.fu-colophon { padding: 30px 44px 8px; }
.fu-colophon p {
  margin: 0; max-width: 78ch; font-size: 13px; line-height: 1.65;
  color: var(--text-muted);
}
/* The colophon carries a mailto; without this it renders in the browser's
   default blue, which is the one link on the site not in the theme. */
.fu-colophon a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .fu-hero { padding: 30px 18px 26px; }
  .fu-sec, .fu-colophon { padding-left: 18px; padding-right: 18px; }
  .fu-sec-cols { grid-template-columns: 1fr; gap: 18px; }
  .fu-dir-lead { padding: 0 18px; }
}
}

/* ---------- toolbar explorer layout (Joe's Aug-2026 redesign) ------------
   Intro line, control bar, question heading, full-width chart,
   response-key caption, question table below. Opt-in via page.layout. */
.fu-page-head { margin: 0 2px 4px; }
/* The rule between the About page's sections. Light, because it separates
   parts of one argument rather than unrelated blocks. */
.fu-static hr {
  border: 0; border-top: 1px solid var(--border); margin: 26px 0 22px;
}
/* A section heading, marked with a short accent rule rather than by size
   alone: the About page is one column of prose and needs somewhere for the
   eye to stop. */
.fu-static h3 {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  font-family: var(--mono, monospace);
}
.fu-static h3::after {
  content: ""; display: block; width: 34px; height: 2px; margin-top: 8px;
  background: var(--accent); opacity: .5;
}
.fu-static ul { margin: 0 0 14px; padding-left: 20px; }
.fu-static li { margin-bottom: 6px; }
/* The opening paragraph carries the whole programme, so it is set larger than
   what follows rather than being one paragraph among four. */
.fu-about-lede {
  font-size: 16.5px; line-height: 1.6; color: var(--text); margin: 0 0 14px;
}

/* The three surveys, side by side. Each panel leads with its size, because
   that is the fact a reader is looking for when they come to this section. */
.fu-survey-grid {
  display: grid; gap: 14px; margin: 16px 0 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fu-survey {
  border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px 12px;
  border-top: 3px solid var(--accent); background: var(--bg);
}
.fu-survey-kicker {
  margin: 0; font-family: var(--mono, monospace); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 600;
}
.fu-survey-n {
  margin: 6px 0 0; font-size: 30px; line-height: 1.05; font-weight: 700;
  color: var(--accent);
}
.fu-survey-who {
  margin: 1px 0 10px; font-size: 12.5px; color: var(--text-muted);
}
.fu-survey-body { margin: 0; font-size: 13.5px; line-height: 1.55; }

/* Each section of the site as a link rather than a bullet: a reader who has
   just been told what Comparisons holds should be one click from it. */
.fu-about-links { display: grid; gap: 8px; margin: 14px 0 16px; }
.fu-about-link {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 10px 14px; background: var(--bg);
}
.fu-about-link:hover { border-color: var(--accent); }
.fu-about-link-name {
  display: block; font-weight: 650; font-size: 14.5px; color: var(--accent);
}
.fu-about-link-name::after { content: " \2192"; }
.fu-about-link-body {
  display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 2px;
}

/* The caveat, set off the way a comparison card sets off its insight. */
.fu-about-note {
  margin: 22px 0 0; padding: 2px 0 2px 16px;
  border-left: 3px solid var(--panel-border);
}
.fu-about-note-label {
  margin: 0 0 5px; font-family: var(--mono, monospace); font-size: 10.5px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 600;
}
.fu-about-note-body { margin: 0; font-size: 14px; line-height: 1.6; }
/* Sized against the card headlines rather than the hero: this sits inside the
   page, above a paragraph, not on a title screen. */
.fu-page-title {
  margin: 0 0 6px; font-size: 26px; line-height: 1.25; font-weight: 650;
  letter-spacing: -0.01em; color: var(--text);
}
@media (max-width: 700px) { .fu-page-title { font-size: 21px; } }
.fu-explore-intro { color: var(--text-muted); font-size: 14px; margin: 0 2px; }
.fu-toolbar {
  display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap;
  padding: 14px 18px;
}
.fu-toolbar .grouping { width: auto; min-width: 240px; }
.fu-ci-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; padding-bottom: 9px; cursor: pointer;
}
.fu-ci-label input { accent-color: var(--accent); width: 15px; height: 15px; }
.fu-ci-label:has(input:disabled) { opacity: 0.45; cursor: default; }
.fu-question-head { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
/* The stem a battery of items shares, above the item itself. Quieter and
   smaller, because it is the same sentence on every item in the battery and
   the item is what changes. */
.fu-question-intro {
  font-size: 13px; line-height: 1.45; color: var(--text-muted);
  margin: 0 0 6px;
}
/* Split-sample marker. Deliberately not red: the item is usable, it just is
   not a single population measure, and the popover beside it says why. */
.fu-question-flags { margin: 0 0 10px; display: flex; align-items: center; }
.fu-flag {
  display: inline-block; font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  color: var(--text-muted); border: 1px solid var(--border);
}
.fu-explore-caption { margin: 10px 4px 0; line-height: 1.5; }
.fu-explore-caption p { margin: 0 0 8px; }
.fu-explore-caption p:last-child { margin-bottom: 0; }
/* The caption's second paragraph is provenance boilerplate — one step
   quieter than the survey-line above it, so the numbers stay in front. */
.fu-caption-provenance { opacity: 0.85; }
/* The variable code sits under the provenance sentence, not in it. */
.fu-caption-variable { margin-top: 6px; }

.fu-caption-provenance a, .fu-explore-caption a { color: var(--accent); }
.fu-caption-provenance code { font-family: var(--mono, monospace); font-size: 11px; }

/* PDF download — quiet outline button, right end of the toolbar. */
.fu-pdf-btn {
  margin-left: auto; align-self: flex-end;
  border: 1px solid var(--control-border); border-radius: 6px;
  background: var(--control-bg); color: var(--text);
  padding: 8px 14px; font-size: 13.5px; cursor: pointer;
}
.fu-pdf-btn:hover { border-color: var(--accent); color: var(--accent); }
.fu-pdf-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Map explorer, Joe's Aug-2026 layout: controls across the top, map full
   width below. The toolbar needs a stacking context above Leaflet's panes
   (≤700) so the place-search dropdown overlays the map. */
.fu-map-toolbar { position: relative; z-index: 800; }
.fu-map-toolbar .fu-toolbar-search { flex: 1 1 240px; max-width: 340px; }
.fu-toolbar-search .fu-map-fullwidth .fu-map { height: clamp(460px, 72vh, 880px); }

/* Full-bleed breakout: the map page escapes #app's 1500px column and takes
   most of the viewport; a ResizeObserver in the engine re-frames CONUS as
   the width changes. 48px total gutter also clears the scrollbar, so no
   horizontal overflow. */
.fu-map-page { width: calc(100vw - 48px); margin-left: calc(50% - (100vw - 48px) / 2); }
@media (max-width: 700px) {
  .fu-map-page { width: calc(100vw - 24px); margin-left: calc(50% - (100vw - 24px) / 2); }
}

/* Control labels across the toolbars pick up the mono
   vernacular — the theme's typographic signature, applied where people
   actually operate the dashboard. */
.fu-toolbar .field-label {
  font-family: var(--mono, monospace);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.fu-toolbar .grouping { font-size: 14.5px; }

/* Per-measure notes under the map (Joe's caption block), set like it was
   typeset: a lede line, the survey items in the left reading column, the
   methodology and provenance in the right. The prose runs the full width of
   its column rather than to a reading measure — Joe's call, so the block
   fills the page it is given. */
.fu-map-notes { padding: 24px 28px 26px; line-height: 1.6; font-size: 14px; }
.fu-map-notes .fu-lede {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35;
  color: var(--display-ink, var(--text));
  margin: 0 0 6px;
}
.fu-note-cols {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 56px; margin-top: 12px;
}
@media (max-width: 1000px) { .fu-note-cols { grid-template-columns: 1fr; } }
.fu-map-notes .fu-asked { margin: 0 0 8px; }
.fu-map-notes .fu-asked strong {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.fu-map-notes ul { margin: 0; padding-left: 20px; }
.fu-map-notes li { margin: 5px 0; line-height: 1.5; color: var(--text); }
.fu-map-notes li::marker { color: var(--control-border); }
.fu-note-cols > div:last-child p, .fu-map-notes .fu-note-single {
  font-size: 13.5px; color: var(--text-muted); margin: 0 0 12px;
}
.fu-note-cols > div:last-child p:last-child { margin-bottom: 0; }
.fu-map-notes .fu-note-single { font-size: 14px; margin-top: 12px; }
.fu-map-notes strong { color: var(--text); }
/* Comparing: one note per map, in the same two columns and with the same
   divider the maps above use. Each note's own two-column layout runs as one
   column here — four columns across the card is not a reading width. */
.fu-notes-pair { display: grid; grid-template-columns: 1fr 1fr; }
.fu-note-half { min-width: 0; padding-right: 34px; }
.fu-note-half + .fu-note-half {
  padding-right: 0; padding-left: 34px;
  border-left: 1px solid var(--panel-border);
}
.fu-notes-pair .fu-note-cols { display: block; }
.fu-notes-pair .fu-note-cols > div + div { margin-top: 14px; }
@media (max-width: 900px) {
  .fu-notes-pair { grid-template-columns: 1fr; }
  .fu-note-half { padding-right: 0; }
  .fu-note-half + .fu-note-half {
    padding-left: 0; border-left: none;
    border-top: 1px solid var(--panel-border);
    margin-top: 22px; padding-top: 22px;
  }
}
.fu-map-notes a { color: var(--accent); text-underline-offset: 2px; }

/* Scan sheet — every measure for one area, under the map. Six columns held in
   one grid so the dots line up down the page: that column IS the instrument,
   and a per-row layout would let each strip drift by the width of its label. */
.fu-scan-card { padding: 22px 26px 24px; margin-top: 20px; --scan-width: 820px; }
.fu-scan-head {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--panel-border);
}
.fu-scan-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 650;
  letter-spacing: -0.01em; color: var(--display-ink, var(--text)); margin: 0;
}
.fu-scan-sub {
  font-family: var(--mono, monospace); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin: 5px 0 0;
}
.fu-scan-actions { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.fu-scan-actions .fu-pdf-btn { margin-left: 0; align-self: center; }
.fu-clear-btn {
  border: none; background: none; color: var(--text-muted);
  font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.fu-clear-btn:hover { color: var(--accent); }
.fu-clear-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* In the toolbar it sits on the same baseline as the PDF button beside it,
   which is nudged off the bottom edge to line up with the labelled selects. */
.fu-toolbar-clear { align-self: flex-end; margin-bottom: 10px; }
.fu-scan-lede p {
  font-size: 13.5px; color: var(--text-muted); max-width: var(--scan-width);
  margin: 14px 0 0; line-height: 1.55;
}
.fu-scan-key {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--text-muted); margin: 12px 0 4px;
  max-width: var(--scan-width);
}
.fu-scan-key span { display: inline-flex; align-items: center; gap: 5px; }
.fu-scan-hint { margin-left: auto; font-style: italic; }

/* Held to --scan-width rather than the page: a row whose label sits a third
   of a screen from its marks cannot be read across. The prose above and below
   takes the same width, so the sheet reads as one block.

   The label track is a fixed width rather than max-content because every row
   is its own grid — a content-sized track resolves per row, and the columns
   come out ragged down the sheet. 260px holds the longest label on one line;
   the strip takes whatever is left. */
.fu-scan-table { margin-top: 4px; max-width: var(--scan-width); }
.fu-scan-cols, .fu-scan-row {
  display: grid;
  grid-template-columns: 260px 46px 1fr 46px 58px 54px;
  align-items: center; column-gap: 10px;
}
.fu-scan-plot { min-width: 0; }
.fu-scan-strip { max-width: 100%; }
.fu-scan-cols { padding: 0 8px 6px; }
.fu-scan-colhead {
  font-family: var(--mono, monospace); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.fu-scan-center { text-align: center; }
.fu-scan-right { text-align: right; }

.fu-scan-group {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono, monospace); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-contrast); background: var(--display-ink, var(--text));
  padding: 5px 8px; margin: 12px 0 0; border-radius: 3px;
}
.fu-scan-unit { opacity: 0.75; letter-spacing: 0.1em; }

.fu-scan-row {
  width: 100%; text-align: left; font: inherit; color: var(--text);
  border: none; border-bottom: 1px solid var(--panel-border);
  background: none; padding: 2px 8px; cursor: pointer;
}
.fu-scan-row.is-band { background: var(--row-hover); }
.fu-scan-row:hover { background: var(--row-selected); }
.fu-scan-row:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* The mapped measure keeps a marker in the margin, so the sheet says which
   row the map above it is showing. */
.fu-scan-row.is-current { box-shadow: inset 3px 0 0 var(--accent); }
.fu-scan-row.is-current .fu-scan-label { font-weight: 650; }
.fu-scan-label { font-size: 13.5px; line-height: 1.3; }
.fu-scan-lo, .fu-scan-hi {
  font-family: var(--mono, monospace); font-size: 10.5px; color: var(--text-muted);
}
.fu-scan-lo { text-align: right; }
.fu-scan-plot { display: block; line-height: 0; }
.fu-scan-value {
  font-family: var(--mono, monospace); font-size: 13px; font-weight: 700;
  text-align: right; color: var(--display-ink, var(--text));
}
.fu-scan-pct {
  font-family: var(--mono, monospace); font-size: 11.5px;
  text-align: right; color: var(--text-muted);
}
.fu-scan-note p {
  font-size: 12.5px; color: var(--text-muted); max-width: var(--scan-width);
  margin: 14px 0 0; line-height: 1.55;
}
.fu-scan-note a { color: var(--accent); }
.fu-scan-link { display: inline-block; margin-top: 6px; font-size: 12.5px; }

/* Narrow screens: the strip drops onto its own line under the label rather
   than out of the sheet — it is the reason the sheet exists. */
@media (max-width: 860px) {
  .fu-scan-cols { display: none; }
  .fu-scan-card { padding: 18px 14px 20px; }
  .fu-scan-row {
    grid-template-columns: 1fr 58px 54px; row-gap: 2px; padding: 6px 8px;
  }
  .fu-scan-lo, .fu-scan-hi { display: none; }
  .fu-scan-plot { grid-column: 1 / -1; }
  .fu-scan-actions { margin-left: 0; }
}

/* Comparison as two maps rather than a crossfade (Joe's ruling, Aug 2026):
   one measure, one alert history, drawn at the same size on the same page.
   A fade shows one picture at a time and asks the reader to remember the
   other; two maps let the eye travel between them. */
.fu-map-pair { display: grid; grid-template-columns: 1fr; }
.fu-map-pair.is-paired { grid-template-columns: 1fr 1fr; }
/* min-width:0 or the grid tracks refuse to shrink below the maps' content
   width and the card overflows the page. */
.fu-map-pane { min-width: 0; }
.fu-map-pair.is-paired .fu-map-pane + .fu-map-pane {
  border-left: 1px solid var(--panel-border);
}
/* Half the width means half the map: aspect-ratio keeps CONUS filling its
   frame instead of floating in a letterbox the fixed height would leave. */
.fu-map-pair.is-paired .fu-map { height: auto; aspect-ratio: 1.8; }
.fu-map-pane-title {
  font-family: var(--mono, monospace);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); margin: 0;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--panel-border);
}
/* One map names itself in its legend; the heading would only repeat it. */
.fu-map-pair:not(.is-paired) .fu-map-pane-title { display: none; }
@media (max-width: 900px) {
  .fu-map-pair.is-paired { grid-template-columns: 1fr; }
  .fu-map-pair.is-paired .fu-map-pane + .fu-map-pane {
    border-left: none; border-top: 1px solid var(--panel-border);
  }
}

.fu-legend-row { display: flex; flex-wrap: wrap; column-gap: 40px; }
.fu-legend-row .fu-legend { flex: 1 1 320px; max-width: 560px; }

/* Legend joins the data vernacular: mono title and endpoints. */
.fu-legend-title {
  font-family: var(--mono, monospace);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.fu-legend-labels { font-family: var(--mono, monospace); font-size: 11px; }

/* Hover tooltip: place name in ink, value as a station-code readout. */
.fu-tt-val { font-family: var(--mono, monospace); font-size: 12px; font-weight: 600; }
.fu-tip-hint { color: #666; font-size: 11.5px; }

@media (max-width: 700px) {
  .fu-toolbar { gap: 12px; }
  .fu-toolbar > div { width: 100%; }
  .fu-toolbar .grouping { width: 100%; }
  .fu-toolbar-search { max-width: none; }
  .fu-pdf-btn { margin-left: 0; }
}

/* ---------- landing surface cards ---------- */
/* Landing directory — a table of contents, not a feature-card grid: hairline
   rows, whole row clickable, hover is an underline. Deliberately quiet. */
.fu-directory-card {
  padding: 0; overflow: hidden; margin-top: 8px;
  border-top: 1px solid var(--panel-border);
}
.fu-directory { display: grid; grid-template-columns: 1fr 1fr; }
.fu-dir-row {
  display: block; text-decoration: none; color: var(--text);
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--panel-border);
}
.fu-dir-row:nth-child(odd) { border-right: 1px solid var(--panel-border); }
.fu-dir-row:nth-last-child(-n+2) { border-bottom: none; }
.fu-dir-row h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.fu-dir-row p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.fu-dir-row:hover { background: var(--row-hover); }
.fu-dir-row:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fu-dir-row:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 760px) {
  .fu-directory { grid-template-columns: 1fr; }
  .fu-dir-row:nth-child(odd) { border-right: none; }
  .fu-dir-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--panel-border); }
  .fu-dir-row:last-child { border-bottom: none; }
}

.fu-landing-page .content { max-width: 1180px; margin: 0 auto; }

/* ============ Navbar refinement ======================================== */
/* Scoped to the two branded themes: full-height text links whose underline
   docks onto the viridis spectrum strip; institutional brand lockup; ghost
   theme button. Other themes keep the pill navbar (S3OK approved look). */

html[data-theme="fusion"] #navbar,
html[data-theme="dark"] #navbar { height: 60px; gap: 26px; }

html[data-theme="fusion"] #nav-title,
html[data-theme="dark"] #nav-title { line-height: 1.15; }
html[data-theme="fusion"] .brand-sub,
html[data-theme="dark"] .brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 400;
}
html[data-theme="fusion"] .brand-sub { color: rgba(240, 238, 248, 0.55); }
html[data-theme="dark"]  .brand-sub { color: rgba(203, 213, 225, 0.5); }
@media (max-width: 1080px) {
  html[data-theme="fusion"] .brand-sub, html[data-theme="dark"] .brand-sub { display: none; }
}

html[data-theme="fusion"] #nav-pages,
html[data-theme="dark"] #nav-pages {
  align-self: stretch; gap: 0; flex-wrap: nowrap; overflow-x: auto;
}
html[data-theme="fusion"] #nav-pages a, html[data-theme="fusion"] #nav-pages .nav-group-btn,
html[data-theme="dark"] #nav-pages a, html[data-theme="dark"] #nav-pages .nav-group-btn {
  display: flex; align-items: center; height: 100%;
  padding: 3px 13px 0;               /* top pad balances the 3px indicator */
  border-radius: 0; font-size: 14px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
html[data-theme="fusion"] #nav-pages a, html[data-theme="fusion"] #nav-pages .nav-group-btn { color: rgba(240, 238, 248, 0.7); }
html[data-theme="dark"]  #nav-pages a, html[data-theme="dark"] #nav-pages .nav-group-btn { color: rgba(203, 213, 225, 0.7); }
html[data-theme="fusion"] #nav-pages a:hover, html[data-theme="fusion"] #nav-pages .nav-group-btn:hover,
html[data-theme="dark"] #nav-pages a:hover, html[data-theme="dark"] #nav-pages .nav-group-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-text);
}
html[data-theme="fusion"] #nav-pages a.active, html[data-theme="fusion"] #nav-pages .nav-group-btn.active,
html[data-theme="dark"] #nav-pages a.active, html[data-theme="dark"] #nav-pages .nav-group-btn.active {
  background: none; color: #ffffff;
  border-bottom-color: #ffffff; font-weight: 600;
}
/* Group wrapper must stretch so the button keeps the full-height underline. */
html[data-theme="fusion"] #nav-pages .nav-group,
html[data-theme="dark"] #nav-pages .nav-group { display: flex; align-self: stretch; }

html[data-theme="fusion"] #theme-btn,
html[data-theme="dark"] #theme-btn {
  background: transparent; color: var(--nav-text);
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 6px;
}
html[data-theme="fusion"] #theme-btn:hover,
html[data-theme="dark"] #theme-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* ============ Responsive pass (2026-08-06) ============================== */
/* Base rules first (all themes): wrap the
   navbar, keep tables scrollable instead of crushed. Then theme-specific
   tuning. Desktop rendering is unchanged. */

@media (max-width: 900px) {
  /* align-items:flex-start is right for the row layout, but in a column it
     stops children stretching — .content would shrink-to-fit and Leaflet
     would init against a ~0-width map div. */
  .page { flex-direction: column; align-items: stretch; }
  #app { padding: 12px; }
  .chart-wrap { height: 420px; }
  table.data { min-width: 560px; }   /* .table-scroll provides the scroll */
}

@media (max-width: 820px) {
  #navbar {
    height: auto; min-height: 54px;
    flex-wrap: wrap; padding: 10px 12px; gap: 8px 16px;
    position: static;                 /* two rows sticky would eat the viewport */
  }
  #nav-pages {
    order: 3; flex-basis: 100%;
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #nav-pages::-webkit-scrollbar { display: none; }
  #nav-pages a { white-space: nowrap; }
  #theme-switch { margin-left: auto; }
  #theme-menu { top: 34px; }
}

/* Navbar overrides for the same breakpoint (these selectors outrank
   the base #navbar rules, so the desktop 60px height must be re-set here). */
@media (max-width: 820px) {
  html[data-theme="fusion"] #navbar,
  html[data-theme="dark"] #navbar { height: auto; gap: 8px 16px; }
  html[data-theme="fusion"] #nav-pages,
  html[data-theme="dark"] #nav-pages { align-self: auto; }
  html[data-theme="fusion"] #nav-pages a,
  html[data-theme="dark"] #nav-pages a { height: 42px; border-bottom-width: 2px; }
}

/* Card surfaces on small screens */
@media (max-width: 640px) {
  .fu-hero { min-height: 380px; }
  .fu-hero-content { padding: 26px 18px 30px; }
  .fu-hero-content h1 { font-size: 25px; }
  .fu-hero-sub { font-size: 14.5px; }
    .fu-map { height: min(64vh, 520px); min-height: 340px; }
    .chart-wrap { height: 360px; }
  .chart-wrap.tall { height: 430px; }
  .fu-legend { padding: 8px 12px; }
}

/* ============ Methodology affordances (2026-08-06) ====================== */
/* "What does this number mean?" popovers — text from config.explainers.
   Panels open BELOW their trigger (house preference). */
.tip-wrap { position: relative; display: inline-block; }
.tip-btn {
  border: 1px solid var(--control-border); background: var(--control-bg);
  color: var(--text-muted); width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 600; line-height: 1; padding: 0;
  cursor: pointer; vertical-align: 2px;
}
.tip-btn:hover, .tip-wrap.open .tip-btn { color: var(--accent); border-color: var(--accent); }
.tip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tip-btn.text {
  width: auto; height: auto; border: none; background: none; border-radius: 0;
  font-size: 12.5px; font-weight: 400; color: var(--accent);
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.tip-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 1300;
  width: min(320px, 82vw);
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  padding: 12px 14px; font-size: 12.5px; font-weight: 400; line-height: 1.5;
  color: var(--text); text-align: left; text-transform: none; letter-spacing: normal;
}
.tip-panel.align-right { left: auto; right: 0; }
.tip-wrap.open .tip-panel { display: block; }
.tip-panel p { margin: 0 0 8px; }
.tip-panel p:last-child { margin-bottom: 0; }

.fu-whatis { margin: 10px 0 0; font-size: 12.5px; }


/* ============ Nav dropdowns + footer + table page-size (2026-08-12) ===== */

/* Dropdown group: panel opens under the navbar; menu links use panel colors
   regardless of theme (html prefix out-specifies the theme nav rules). */
.nav-group { position: relative; }
.nav-caret { font-size: 10px; opacity: 0.7; }
#nav-pages .nav-menu {
  /* fixed + JS-set coordinates: escapes the navbar's overflow clip */
  display: none; position: fixed;
  min-width: 230px; padding: 6px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
#nav-pages .nav-group.open .nav-menu { display: block; }
html #nav-pages .nav-menu a {
  display: block; height: auto; padding: 9px 12px;
  color: var(--text); border-radius: 6px; border-bottom: 0; font-weight: 400;
}
html #nav-pages .nav-menu a { max-width: 300px; }
.nav-item-label { display: block; font-weight: 600; font-size: 14px; }
.nav-item-note {
  display: block; margin-top: 2px; font-size: 12px; line-height: 1.4;
  color: var(--text-muted); font-weight: 400; white-space: normal;
}
html #nav-pages .nav-menu a:hover { background: var(--row-hover); color: var(--text); }
html #nav-pages .nav-menu a:hover .nav-item-note { color: var(--text-muted); }
html #nav-pages .nav-menu a.active { background: var(--row-selected); color: var(--text); font-weight: 600; }

/* Footer: navbar-colored bookend — an unmistakable end of page. */
#site-footer {
  margin-top: 56px;
  background: var(--nav-bg); color: var(--nav-text);
  border-top: 3px solid var(--accent);
}
.foot-inner {
  max-width: 1500px; margin: 0 auto; padding: 34px 20px 30px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px; align-items: start;
}
#site-footer .brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.foot-tag { margin: 8px 0 0; font-size: 13px; opacity: 0.72; line-height: 1.55; max-width: 44ch; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: inherit; opacity: 0.85; text-decoration: none; font-size: 13.5px; width: fit-content; }
.foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-meta p { margin: 0 0 10px; font-size: 12.5px; opacity: 0.72; line-height: 1.55; }
.foot-build { font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: 0.12em; opacity: 0.45; }
@media (max-width: 860px) {
  .foot-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* Test Your Knowledge quiz: one question at a time, options as full-width
   quiet buttons; the correct answer keeps the accent, a wrong pick fades.
   Marks (✓/✗) carry the state — never color alone. */
.fu-quiz-card { max-width: 760px; margin: 12px auto 0; padding: 28px 32px 30px; }
.fu-quiz-intro { margin-bottom: 18px; }
.fu-quiz-q {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 650; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--display-ink, var(--text));
  margin: 6px 0 16px;
}
.fu-quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.fu-quiz-opt {
  text-align: left; font: inherit; font-size: 15px;
  padding: 12px 16px; cursor: pointer;
  background: var(--control-bg); color: var(--text);
  border: 1px solid var(--control-border); border-radius: 8px;
}
.fu-quiz-opt:hover:not(:disabled) { border-color: var(--accent); }
.fu-quiz-opt:disabled { cursor: default; }
.fu-quiz-opt.correct { border-color: var(--accent); border-width: 2px; font-weight: 600; }
.fu-quiz-opt.wrong { opacity: 0.55; }
.fu-quiz-reveal { margin-top: 16px; }
.fu-quiz-reveal p { margin: 0; line-height: 1.55; }
.fu-quiz-nav { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.fu-quiz-explore { color: var(--accent); font-size: 14.5px; }
.fu-quiz-again {
  font: inherit; font-size: 14px; cursor: pointer;
  background: none; border: 1px solid var(--control-border); border-radius: 6px;
  color: var(--text); padding: 10px 18px;
}
.fu-quiz-again:hover { border-color: var(--accent); color: var(--accent); }

/* Progress: one segment per prompt. State is carried by the ✓/✗ glyph, not
   color alone (greyscale theme: correct=accent bg vs wrong=muted bg are both
   near-black there — the glyphs do the work). */
.fu-quiz-progress { display: flex; gap: 4px; margin: 0 0 16px; }
.fu-quiz-seg {
  flex: 1 1 0; height: 20px; border-radius: 5px;
  border: 1px solid var(--control-border); background: var(--control-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; color: var(--accent-contrast);
}
.fu-quiz-seg.correct { background: var(--accent); border-color: var(--accent); }
.fu-quiz-seg.wrong { background: var(--text-muted); border-color: var(--text-muted); }
.fu-quiz-seg.current { border-color: var(--accent); border-width: 2px; }

/* Reveal chart: the real distribution, rendered with the explorer's own
   chart machinery. .grouped = follow-up subgroup split (more bars + legend). */
.fu-quiz-chart { margin-top: 16px; border-top: 1px solid var(--panel-border); padding-top: 14px; }
.fu-quiz-chart .fu-eyebrow { margin-bottom: 4px; }
.fu-quiz-chartwrap { position: relative; height: 250px; }
.fu-quiz-chartwrap.grouped { height: 360px; }
.fu-quiz-chart .fu-caption a { color: var(--accent); }

/* Finale recap: per-question marks + topic + explorer deep link. */
.fu-quiz-score { font-size: 26px; }
.fu-quiz-recap { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.fu-quiz-recap-row {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14px; line-height: 1.4;
}
.fu-quiz-recap-marks { font-family: var(--mono, monospace); color: var(--text-muted); white-space: nowrap; }
.fu-quiz-recap-topic { flex: 1 1 auto; }
.fu-quiz-recap-row .fu-quiz-explore { white-space: nowrap; font-size: 13.5px; }

/* Question/reveal entrances (charts animate via Chart.js on draw). */
.fu-quiz-step, .fu-quiz-reveal, .fu-quiz-chart, .fu-quiz-nav, .fu-quiz-recap {
  animation: fu-quiz-in 260ms ease-out both;
}
@keyframes fu-quiz-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fu-quiz-step, .fu-quiz-reveal, .fu-quiz-chart, .fu-quiz-nav, .fu-quiz-recap { animation: none; }
}

/* Rows-per-page control in table tools. */
.table-tools .pagesize {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); white-space: nowrap;
}
.table-tools .pagesize select {
  padding: 4px 6px; font-size: 13px;
  background: var(--control-bg); color: var(--text);
  border: 1px solid var(--control-border); border-radius: 6px;
}

/* Table cell: the stem above an item, in the question column. Muted and one
   size down, because it repeats across every item in a battery and the item
   below it is what distinguishes the row. */
.fu-row-intro {
  font-size: 12px; line-height: 1.35; color: var(--text-muted);
  margin-bottom: 3px;
}

/* Column filter menu — same footprint as the text filter it replaces, so a
   header row mixing the two stays level. */
table.data th select {
  width: 100%; margin-top: 6px; padding: 4px 6px; font: inherit; font-size: 12.5px;
  border: 1px solid var(--control-border); border-radius: 4px;
  background: var(--control-bg); color: var(--text);
}

/* Split-sample arm menu. Sits with the chart rather than in the page toolbar,
   because it belongs to this question and goes away with it. */
.fu-arm-pick { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.fu-arm-label {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); font-family: var(--mono, monospace);
}
.fu-arm-select {
  padding: 5px 8px; font: inherit; font-size: 13.5px; max-width: 420px;
  background: var(--control-bg); color: var(--text);
  border: 1px solid var(--control-border); border-radius: 6px;
}

/* Pages whose data is not collected yet. Deliberately plain: it should read as
   a page that has nothing on it, not as a page that failed to load. */
.fu-placeholder { max-width: 62ch; }
.fu-placeholder-note {
  color: var(--text-muted); border-left: 3px solid var(--panel-border);
  padding-left: 12px; margin: 12px 0;
}

/* ---------- open responses ---------- */
/* Word list. Rows rather than a chart: 2,500 words is a list a reader scans
   and searches, not a plot, and the bar is there for comparison rather than
   for reading a value off an axis. */
.fu-wordlist { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
/* The word list's header, where the data labels its columns. Same grid as a
   row so the labels sit over the numbers they name. */
.fu-word-head {
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); padding-bottom: 4px;
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.fu-word-head .fu-word-val { font-family: inherit; line-height: 1.2; }
/* The header's spacer sits in the bar column and must not draw a bar. */
.fu-word-head .fu-word-track { background: none; }
/* Two share columns instead of a share and a valence: both hold a percentage,
   and the header above them holds a word. */
.fu-wordlist-2 .fu-word-row {
  grid-template-columns: minmax(120px, 22ch) 1fr 6ch 7ch;
}
.fu-wordlist-2 .fu-word-head { align-items: end; }
.fu-word-row {
  display: grid; grid-template-columns: minmax(120px, 22ch) 1fr 5ch 4ch;
  align-items: center; gap: 10px; font-size: 13.5px;
}
.fu-word-name { overflow-wrap: anywhere; }
.fu-word-track {
  background: var(--row-hover); border-radius: 3px; height: 16px;
  overflow: hidden;
}
/* Outlined, because the ramp's midpoint is near white: a word people felt
   neutral about would otherwise read as an empty track rather than as the
   most-mentioned word on the page. */
.fu-word-fill {
  display: block; height: 100%; border-radius: 3px;
  border: 1px solid rgba(128, 128, 128, 0.45); box-sizing: border-box;
}
.fu-word-pct { text-align: right; font-family: var(--mono, monospace); font-size: 12px; }
.fu-word-val {
  text-align: right; font-family: var(--mono, monospace); font-size: 12px;
  color: var(--text-muted); cursor: help;
}
.fu-valence-legend {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 4px;
  font-size: 11.5px; color: var(--text-muted);
}
.fu-valence-strip {
  flex: 0 1 220px; height: 10px; border-radius: 5px;
  border: 1px solid var(--panel-border);
}
/* Verbatims are sentences, so the response column reads as prose rather than
   as a table cell clipped to one line. */
.fu-verbatim-text { line-height: 1.5; overflow-wrap: anywhere; }

/* Theme distribution, above the verbatims it summarises. Deliberately the same
   row shape as the word list: label, track, value. A reader who has scrolled
   past one recognises the other, and neither pretends to be a plot with an
   axis - the bar is for comparison, the number beside it is for reading. */
.fu-theme-dist { margin: 12px 0 18px; }
.fu-theme-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.fu-theme-hint { font-size: 11.5px; color: var(--text-muted); }
.fu-theme-legend {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px;
}
.fu-theme-key { display: inline-flex; align-items: center; gap: 5px; }
.fu-theme-dot {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
}
.fu-theme-rows { display: flex; flex-direction: column; gap: 4px; }
/* Theme labels run to 48 characters and are never truncated, so the name
   column wraps and each row grows to fit it - the same rule the chart tick
   labels follow. */
.fu-theme-row {
  display: grid; grid-template-columns: minmax(140px, 34ch) 1fr;
  align-items: center; gap: 12px; font-size: 13.5px;
  border-radius: 4px; padding: 2px 4px;
}
/* The header over the two number columns: same grid as a row so the labels
   land over the numbers they name, and "Responses" needs more than the 5ch a
   count does. */
.fu-theme-head {
  font-family: var(--mono, monospace); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 4px; margin-bottom: 4px;
  border-bottom: 1px solid var(--panel-border);
}
.fu-theme-head .fu-theme-pct, .fu-theme-head .fu-theme-n {
  font-family: inherit; font-size: inherit; color: inherit;
}
.fu-theme-row.dim { opacity: 0.42; }
.fu-theme-row.on { background: var(--row-hover); }
.fu-theme-name {
  text-align: left; overflow-wrap: anywhere; cursor: pointer;
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
}
.fu-theme-name:hover { text-decoration: underline; }
.fu-theme-row.on .fu-theme-name { font-weight: 600; }
.fu-theme-bars { display: flex; flex-direction: column; gap: 2px; }
/* Wide enough, and spaced enough, that the two header labels read as two
   columns rather than as the phrase "Share responses".
   In px, not ch: the header sets its own smaller font-size, and ch columns
   resolve against it, so the header's columns came out narrower than the
   rows' and the labels sat off their numbers in a split. */
.fu-theme-bar {
  display: grid; grid-template-columns: 1fr 52px 86px; align-items: center;
  gap: 18px;
}
.fu-theme-track {
  background: var(--row-hover); border-radius: 3px; height: 14px;
  overflow: hidden;
}
.fu-theme-fill { display: block; height: 100%; border-radius: 3px; }
.fu-theme-pct {
  text-align: right; font-family: var(--mono, monospace); font-size: 12px;
}
/* The unweighted count, muted: it is there so a two-response theme cannot be
   read as a rate, not as the headline number. */
.fu-theme-n {
  text-align: right; font-family: var(--mono, monospace); font-size: 12px;
  color: var(--text-muted); cursor: help;
}
@media (max-width: 640px) {
  .fu-theme-row { grid-template-columns: 1fr; gap: 2px; }
}

/* The toolbar's download buttons, kept together. .fu-pdf-btn takes
   margin-left:auto so a lone one sits at the right edge; two loose in the row
   each take it and end up at opposite ends. The group takes it once. */
.fu-toolbar-actions {
  margin-left: auto; display: flex; align-items: flex-end; gap: 10px;
  flex-wrap: wrap;
}
.fu-toolbar-actions .fu-pdf-btn { margin-left: 0; }

/* ---------- findings deck ---------- */
/* A strip you slide rather than a page you scroll. Scroll-snap does the work,
   so a swipe, a trackpad, the arrow keys and the buttons are one behaviour
   instead of four. */
.fu-deck { margin-top: 6px; }
/* One card fills the frame and the next one snaps into its place, so the two
   buttons sit where the card's edges are rather than in a bar underneath.
   The padding is what keeps them off the card instead of over it. */
.fu-deck-frame { position: relative; padding: 0 46px; }
.fu-deck-strip {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden;
  /* Natural heights, not stretched: a flex row makes every child as tall as
     the tallest, and one card carrying a ten-row table would leave the other
     eight with a screen of empty space under them. */
  align-items: flex-start;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 10px; scrollbar-width: thin;
}
.fu-deck-strip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fu-card {
  scroll-snap-align: center; flex: 0 0 100%;
  background: var(--card-bg, #fff); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 24px 20px;
  display: flex; flex-direction: column;
  /* Capped and scrolled inside rather than allowed to run to any height: the
     full-ranking card is two and a half times the height of the others, and
     without this the deck's own controls end up a screen and a half below the
     card you are reading. */
  max-height: min(78vh, 820px); overflow-y: auto;
}
.fu-card-kicker {
  margin: 0 0 6px; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.fu-card-headline {
  margin: 0 0 16px; font-size: 21px; line-height: 1.3; font-weight: 650;
}
/* The numbers the headline rests on. Big, because the point of the page is
   that a reader takes the finding away without reading the chart. */
.fu-stat-row {
  display: flex; flex-wrap: wrap; gap: 26px; margin: 0 0 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.fu-stat { min-width: 130px; max-width: 260px; }
/* Who the two sides of a paired figure are. Sits between the number and the
   sentence about it, smaller than both so it reads as a key rather than as a
   third claim. */
.fu-stat-who {
  font-size: 12.5px; color: var(--text-muted); margin-top: 3px;
  font-weight: 500;
}
.fu-stat-value {
  font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--accent);
}
.fu-stat-label { font-size: 13px; margin-top: 2px; }
.fu-stat-caption {
  font-size: 11.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.4;
}
.fu-card-links {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.fu-card-link { font-size: 12.5px; text-decoration: none; color: var(--accent); }
.fu-card-link:hover { text-decoration: underline; }
.fu-deck-bar {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-top: 4px;
}
.fu-deck-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--control-border); background: var(--control-bg);
  color: var(--text); font-size: 19px; line-height: 1;
}
.fu-deck-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.fu-deck-nav:disabled { opacity: 0.35; cursor: default; }
.fu-deck-prev { left: 0; }
.fu-deck-next { right: 0; }
.fu-deck-dots { display: flex; gap: 7px; }
.fu-deck-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--control-border); background: transparent;
}
.fu-deck-dot.on { background: var(--accent); border-color: var(--accent); }
.fu-deck-count { font-size: 12px; color: var(--text-muted); min-width: 6ch; }
/* The first-visit "Scroll for more" pill. Absolutely placed by the engine
   under the opening card (see components.comparison), so it never sits on a
   figure. pointer-events: none keeps it from ever intercepting a click on the
   card or a swipe on the strip. Accent-on-contrast in every theme, so it is
   the one loud thing on the page - which is the point of it. */
.fu-deck-hint {
  position: absolute; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: opacity .35s ease;
}
.fu-deck-hint.gone { opacity: 0; }
.fu-deck-hint-arrow {
  display: inline-block; font-size: 15px; line-height: 1;
  animation: fu-deck-hint-nudge 1.1s ease-in-out infinite;
}
@keyframes fu-deck-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .fu-deck-hint-arrow { animation: none; }
  .fu-deck-hint { transition: none; }
}
@media (max-width: 700px) {
  .fu-deck-frame { padding: 0 34px; }
  .fu-deck-nav { width: 30px; height: 30px; font-size: 17px; }
  .fu-card { padding: 18px 16px 16px; }
  .fu-card-headline { font-size: 18px; }
  .fu-stat-value { font-size: 25px; }
}

/* The single actual value on a comparison card whose public side is one number
   rather than a series. Stated as well as drawn: a reader who skips the
   caption must not read the expert bars as the answer. */
.fu-compare-benchmark {
  margin: 8px 0 0; font-size: 13.5px; padding: 8px 12px;
  border-left: 3px solid var(--accent); background: var(--row-hover);
  border-radius: 0 4px 4px 0;
}

/* The numbers behind a comparison's bars. Narrower than the explore table and
   with no filter row: ten rows have nothing to filter. */

/* Per-category links on a findings card. Replaces the coefficient table: each
   factor is a split on the explore page, so the reader can look at the
   relationship instead of reading a number standing in for it. */
/* The aligned figures that replace a chart. A three-column grid rather than a
   table element: the row label wraps freely and the two number columns stay
   locked, which a table would only manage with fixed widths. */
/* The whole block is one grid and each row is display: contents, so every row
   shares the same columns. Sizing the label column per row instead lets each
   row pick its own width and the figures stop lining up; sizing it 1fr pushes
   them to the far edge of a wide card, where the eye has to travel to pair a
   number with its label. max-content is the longest label and no more, and
   minmax(0, ...) lets it shrink again when the labels are long. */
.fu-compare {
  margin: 4px 0 2px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0, max-content) 9ch 9ch;
  gap: 0 12px; align-items: baseline;
}
/* One value column can afford to be wider, and its header needs to be: a name
   like "Experts' estimate of public awareness" wraps to four lines in the 9ch
   a two-column table gives it. */
.fu-compare-1 { grid-template-columns: minmax(0, max-content) 20ch; }
.fu-compare-row { display: contents; }
.fu-compare-row > * {
  padding: 9px 2px; border-bottom: 1px solid var(--border);
}
.fu-compare-head > * {
  padding: 0 2px 6px; font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
}
.fu-compare-label { font-size: 13.5px; line-height: 1.35; }
.fu-compare-val {
  text-align: right; font-family: var(--mono, monospace); font-size: 13.5px;
  color: var(--text-muted);
}
/* The larger of the pair, so the shape of the comparison is legible without
   reading every number. */
.fu-compare-val.lead { color: var(--accent); font-weight: 700; }
.fu-compare-head .fu-compare-val {
  font-family: inherit; font-size: 11px; line-height: 1.25;
}

/* The lede: the sentence that says what the numbers mean. */
.fu-card-lede {
  font-size: 14.5px; line-height: 1.6; margin: 0 0 16px;
}

/* The implication: the one forward-looking sentence on a card, after the
   evidence it rests on. A left rule in the part's own colour rather than a
   filled box, so it does not compete with the tinted question block above it
   while still reading as a different kind of statement. */
.fu-implication {
  margin: 18px 0 4px; padding: 2px 0 2px 16px;
  border-left: 3px solid var(--panel-border);
}
.fu-implication-label {
  margin: 0 0 5px; font-family: var(--mono, monospace); font-size: 10.5px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 600;
}
.fu-implication-body {
  margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text);
}
.fu-part-1 .fu-implication { border-left-color: #1f5fa9; }
.fu-part-2 .fu-implication { border-left-color: #8a6508; }
.fu-part-3 .fu-implication { border-left-color: #146856; }
.fu-part-1 .fu-implication-label { color: #1f5fa9; }
.fu-part-2 .fu-implication-label { color: #8a6508; }
.fu-part-3 .fu-implication-label { color: #146856; }

/* Which part a card belongs to, marked on the card rather than only in the
   text: part one is a difference of view, part two is a right-or-wrong
   prediction, and a reader who lands mid-deck needs to know which. */
.fu-card { border-top: 4px solid var(--border); }
.fu-part-1 { border-top-color: #1f5fa9; }
.fu-part-2 { border-top-color: #b8860b; }
.fu-part-3 { border-top-color: #1a7f6b; }
.fu-part-tag {
  font-weight: 700; letter-spacing: .06em;
}
.fu-part-1 .fu-card-kicker, .fu-part-1 .fu-stat-value { color: #1f5fa9; }
.fu-part-2 .fu-card-kicker, .fu-part-2 .fu-stat-value { color: #8a6508; }
.fu-part-1 .fu-compare-val.lead { color: #1f5fa9; }
.fu-part-2 .fu-compare-val.lead { color: #8a6508; }
.fu-part-3 .fu-card-kicker, .fu-part-3 .fu-stat-value,
.fu-part-3 .fu-compare-val.lead { color: #146856; }
/* The card that announces each part. Shorter, centred, nothing but the claim. */
.fu-card-divider {
  justify-content: center; flex: 0 0 min(420px, 74%);
  background: var(--row-hover);
}
.fu-card-divider .fu-card-headline { font-size: 24px; margin-bottom: 12px; }
.fu-card-divider .fu-card-lede { margin-bottom: 0; }

/* What each side was asked. On part three the two questions differ and that
   difference is the finding, so both stems sit on the card rather than being
   summarised in a caption. */
.fu-asked {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 6px;
  background: var(--row-hover); border: 1px solid var(--border);
}
.fu-asked-lead {
  margin: 0 0 10px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 600;
}
.fu-asked-row {
  display: grid; grid-template-columns: 15ch 1fr; gap: 14px;
  align-items: baseline; padding: 6px 0;
}
.fu-asked-row + .fu-asked-row { border-top: 1px solid var(--border); }
.fu-asked-who { font-size: 12.5px; font-weight: 650; }
.fu-asked-text {
  margin: 0; font-size: 13px; line-height: 1.5; font-style: italic;
  color: var(--text);
}
.fu-asked-text strong { font-style: normal; }
/* A closing line under the quoted stems, where the block needs one. */
.fu-asked-foot {
  margin: 12px 0 0; padding-top: 10px; font-size: 13px; line-height: 1.5;
  color: var(--text-muted); border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .fu-asked-row { grid-template-columns: 1fr; gap: 2px; }
}

/* The question as it was put. Set in a tinted rule-led block rather than as
   another caption line, so a reader can see at a glance what everything under
   it is an answer to. Same treatment the findings deck gives the stems it
   compares. */
.fu-asked-q {
  margin: 10px 0 14px; padding: 12px 0 12px 18px;
  border-left: 3px solid var(--accent);
}
.fu-asked-q-label {
  margin: 0 0 6px; font-family: var(--mono, monospace); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.fu-asked-q-text {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: 16.5px; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--display-ink, var(--text)); max-width: 74ch;
}

/* Headings for the two halves of an open-response card - the chart that
   summarises, and the responses themselves. */
.fu-subhead {
  margin: 26px 0 10px; font-family: var(--mono, monospace); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 600; padding-bottom: 6px;
  border-bottom: 1px solid var(--panel-border);
}

/* The options whose wording differs, in full, behind a disclosure. */
.fu-mark { cursor: help; }
.fu-wording {
  margin-top: 12px; font-size: 12.5px; border-top: 1px solid var(--border);
  padding-top: 10px;
}
.fu-wording summary { cursor: pointer; color: var(--text-muted); }
.fu-wording summary:hover { color: var(--accent); }
.fu-wording-item { margin: 12px 0 0; }
.fu-wording-label { margin: 0 0 4px; font-weight: 650; font-size: 12.5px; }
.fu-wording-line {
  margin: 0 0 3px; display: grid; grid-template-columns: 7ch 1fr; gap: 10px;
  line-height: 1.45; color: var(--text-muted);
}
.fu-wording-who { font-weight: 650; color: var(--text); }
