/* Well-Regulated Book Club — shared stylesheet
   Dark, data-forward. No external fonts or frameworks. */

:root {
  --bg: #0d1117;
  --bg-2: #111823;
  --card: #131b28;
  --card-2: #0f1620;
  --border: #232f42;
  --border-soft: #1b2432;
  --text: #e6edf3;
  --text-dim: #9fb0c3;
  --text-faint: #6b7d92;
  --accent: #c0392b;          /* WRBC red — alarm-tier */
  --accent-hover: #e04b3c;
  --accent-steel: #7f9cc4;    /* cool neutral data */
  --accent-steel-dim: #4d648a;
  --good: #3fb950;
  /* Broadsheet: flat panels, hairline chrome. 2px, not the rounded-SaaS 12px. */
  --radius: 2px;
  --radius-sm: 2px;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Display serif for headlines and the masthead — system stack, no web fonts. */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  /* Tabular monospace for every figure the eye compares. */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: var(--accent-steel); text-decoration: none; }
a:hover { color: #a9c2e6; text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-steel);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- masthead (two-deck newspaper header) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(10px);
  /* the folio: a 3px double-rule, two hairlines, under the whole header */
  border-bottom: 3px double var(--border);
}
.nav-container {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.4rem 1.5rem 0;
}
/* deck 1: masthead title (serif small-caps), mobile toggle on the right */
.nav-deck-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--serif); color: var(--text); font-weight: 700;
  font-size: 1.25rem; letter-spacing: 0.01em; font-variant: small-caps;
}
.logo:hover { text-decoration: none; color: #fff; }
.logo-mark { font-size: 1.15rem; }
/* deck 2: section links, separated from deck 1 by a thin rule */
.nav-links {
  display: flex; list-style: none; gap: 0.15rem; align-items: center;
  border-top: 1px solid var(--border-soft); margin-top: 0.35rem;
  padding: 0.25rem 0 0.3rem;
}
.nav-links a {
  display: block; color: var(--text-dim); font-weight: 500; font-size: 0.86rem;
  padding: 0.4rem 0.6rem; border-radius: 2px;
}
.nav-links a:hover { color: var(--text); background: rgba(127, 156, 196, 0.12); text-decoration: none; }
.nav-links li.active a { color: #fff; background: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 2px; width: 44px; height: 44px; cursor: pointer; padding: 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-dim); border-radius: 2px; margin: 3px 0; }

/* ---------- hero masthead band ---------- */
.hero-strip {
  border-bottom: 1px solid var(--border-soft);
  padding: 1.1rem 0 1rem;
}
.hero-strip h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.01em; max-width: 20ch;
}
.hero-strip p {
  color: var(--text-dim); margin-top: 0.55rem; font-size: 0.98rem; max-width: 66ch;
}
/* dateline: long-form date · N live trackers · updated daily (JS-populated) */
.dateline {
  color: var(--text-faint); font-size: 0.76rem; margin-top: 0.5rem;
  font-variant: small-caps; letter-spacing: 0.03em;
}
.dateline .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- section head ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 1.4rem 0 0.7rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-soft); padding-bottom: 0.4rem;
}
.section-head h2 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.section-head .muted { color: var(--text-faint); font-size: 0.8rem; }

/* ---------- tracker grid ---------- */
.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem 0.65rem;
  display: flex; flex-direction: column; min-height: 158px;
  transition: border-color 0.15s ease;
}
a.card { color: inherit; }
a.card:hover { border-color: var(--accent-steel-dim); text-decoration: none; }
a.card:hover .card-title { color: #fff; }

.card-title {
  font-size: 0.68rem; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.45rem;
}
.card-stat {
  font-family: var(--mono);
  font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.card-stat.alarm { color: var(--accent); }
.card-unit { font-size: 0.76rem; color: var(--text-faint); font-weight: 500; margin-top: 0.25rem; }

.card-delta { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.card-delta.up { color: var(--accent); }
.card-delta.down { color: var(--good); }
.card-delta.flat { color: var(--text-faint); }

.card-spark { margin: 0.5rem 0 0.15rem; }
.spark { display: block; width: 100%; height: 36px; }

.card-context {
  color: var(--text-dim); font-size: 0.82rem; line-height: 1.38;
  margin-top: auto; padding-top: 0.55rem;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.55rem; padding-top: 0.45rem; border-top: 1px solid var(--border-soft);
  font-size: 0.7rem; color: var(--text-faint);
}
.card-foot .go { color: var(--accent-steel); font-weight: 600; }

/* skeleton / states */
.card.is-loading .card-stat { color: var(--text-faint); }
.skeleton {
  display: inline-block; height: 2.2rem; width: 60%; border-radius: 6px;
  background: linear-gradient(90deg, #1a2434 25%, #223049 50%, #1a2434 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.card-error { color: var(--text-faint); font-size: 0.9rem; margin-top: 0.4rem; }
.card-error strong { color: var(--accent-steel); display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }

/* coming soon */
.card.soon { opacity: 0.82; border-style: dashed; min-height: 140px; }
.card.soon .card-stat { color: var(--text-faint); font-size: 1.2rem; font-weight: 600; }
.tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-steel);
  border: 1px solid var(--accent-steel-dim); border-radius: 2px;
  padding: 0.12rem 0.4rem; margin-bottom: 0.5rem; align-self: flex-start;
}

/* ---------- detail pages ---------- */
.detail-head { padding: 1.1rem 0 0.8rem; border-bottom: 1px solid var(--border-soft); }
.crumb { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.crumb a { color: var(--text-dim); }
.detail-head h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
.detail-why { color: var(--text-dim); margin-top: 0.55rem; max-width: 68ch; font-size: 0.96rem; }

.stat-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.stat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 3px solid var(--border); padding: 0.7rem 0.9rem; min-width: 140px; flex: 1 1 140px;
}
.stat-tile .big { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat-tile .big.alarm { color: var(--accent); }
.stat-tile .lbl { color: var(--text-faint); font-size: 0.72rem; margin-top: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }

.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.85rem 1rem; margin: 0.9rem 0;
}
.panel h2 { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; margin-bottom: 0.6rem; }

/* long-form prose reads like a paper at wide widths */
.prose-cols { column-width: 34ch; column-gap: 2.2rem; }
.prose-cols > *:first-child { margin-top: 0; }

/* chart svg helpers — sized in real px by the generator (1 unit = 1px) so axis text
   stays legible at every width; never wider than the container. */
.bar-chart, .step-chart, .line-chart { display: block; max-width: 100%; height: auto; overflow: visible; }
.bar-chart .grid, .step-chart .grid, .line-chart .grid, .mini-cols .grid {
  stroke: var(--border-soft); stroke-width: 1;
}
.bar-chart .axis-label, .step-chart .axis-label, .line-chart .axis-label {
  fill: var(--text-faint); font-size: 11px; font-family: var(--font);
}
.axis-label.num { font-variant-numeric: tabular-nums; }
.chart-empty { color: var(--text-faint); font-size: 0.9rem; }

/* mini column strip (cards) */
.mini-cols { display: block; width: 100%; height: 40px; }

/* horizontal bars (categorical magnitude) */
.hbars { display: grid; gap: 0.45rem; }
.hbar-row {
  display: grid; grid-template-columns: minmax(5.5rem, 38%) 1fr auto;
  align-items: center; gap: 0.7rem; font-size: 0.82rem;
}
.hbar-label { color: var(--text-dim); line-height: 1.25; }
.hbar-track {
  height: 12px; background: var(--border-soft); border-radius: 3px; overflow: hidden;
}
.hbar-fill { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
.hbar-val { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.hbar-val .hbar-sub { color: var(--text-faint); font-weight: 500; font-size: 0.9em; margin-left: 0.35rem; }
@media (max-width: 480px) {
  .hbar-row { grid-template-columns: minmax(4.5rem, 44%) 1fr auto; gap: 0.5rem; font-size: 0.78rem; }
}

/* proportion bar (one part of a whole) */
.prop-bar { margin: 0.4rem 0 0.2rem; }
.prop-track {
  height: 16px; background: var(--border-soft); border-radius: 4px; overflow: hidden;
}
.prop-fill { display: block; height: 100%; border-radius: 4px; min-width: 2px; }
.prop-legend { color: var(--text-dim); font-size: 0.84rem; margin-top: 0.5rem; }
.prop-legend strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- direction layer (Brennan / Guttmacher) ---------- */
/* homepage tile slot — hidden until populated, kept compact so tiles stay level */
.dir-slot { margin: 0.75rem 0 0; }
.dir-slot:empty { display: none; }
.dir-mini .prop-bar { margin: 0; }
.dir-mini .prop-track { height: 12px; }
.dir-mini .prop-legend { font-size: 0.76rem; margin-top: 0.35rem; line-height: 1.35; color: var(--text-faint); }
.dir-mini .prop-legend strong { color: var(--text-dim); }
.dir-enacted { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; color: var(--text-dim); font-size: 0.86rem; }
.dir-num { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.dir-num.alarm { color: var(--accent); }
.dir-sep { color: var(--text-faint); }
.dir-cap { color: var(--text-faint); font-size: 0.76rem; margin-top: 0.35rem; line-height: 1.35; }

/* detail-page direction panel */
.direction-slot:empty { display: none; }
.direction-panel .dir-method { font-size: 0.9rem; color: var(--text-dim); }
.direction-panel .dir-method + .dir-headline { margin-top: 1rem; }
.direction-panel .dir-headline { margin-bottom: 1.1rem; }
.direction-panel .dir-headline .prop-track { height: 18px; }
.direction-panel .dir-headline .prop-legend { font-size: 0.9rem; }
.direction-panel .dir-enacted { font-size: 1rem; }
.direction-panel .dir-cap { font-size: 0.84rem; }
.dir-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 0.5rem; vertical-align: middle; background: var(--accent-steel-dim);
}
.dir-dot.restrict { background: var(--accent); }
.dir-dot.expand, .dir-dot.protect { background: var(--accent-steel); }
.dir-table .dir-sub { color: var(--text-faint); font-weight: 500; }
.direction-panel .dir-figures, .direction-panel .dir-source { margin-top: 0.9rem; font-size: 0.85rem; }

/* small-multiple grid (wealth) */
.small-multiples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.small-multiples .sm-title {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 0.5rem; letter-spacing: 0.02em;
}
@media (max-width: 620px) { .small-multiples { grid-template-columns: 1fr; } }

/* data table */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.data th, table.data td {
  text-align: left; padding: 0.38rem 0.6rem; border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
table.data th { color: var(--text-faint); font-weight: 700; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; position: sticky; top: 0; background: var(--card); }
table.data td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr:hover td { background: rgba(127, 156, 196, 0.06); }
/* inline alarm text — e.g. a table cell whose value favored the administration */
.txt-alarm { color: var(--accent); font-weight: 600; }
.pill {
  display: inline-block; font-size: 0.72rem; padding: 0.1rem 0.45rem; border-radius: 2px;
  background: rgba(127,156,196,0.14); color: var(--accent-steel); margin: 0.1rem 0.2rem 0.1rem 0;
}

.source-note { color: var(--text-faint); font-size: 0.83rem; line-height: 1.55; }
.source-note strong { color: var(--text-dim); }

/* prominent methodology panel — the count is a search result, not a verdict */
.panel.method { border-left: 3px solid var(--accent); }
.panel.method .source-note { font-size: 0.86rem; color: var(--text-dim); }
.panel.method .source-note strong { color: var(--text); }
.method-cta { margin-top: 0.8rem; }

/* ---------- collapsed methodology (<details class="method">) ----------
   The source-and-methods prose stays on the page verbatim, folded away by default
   so the numbers lead. Flat panel, red left rule, small-caps summary. */
details.method {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  margin: 0.9rem 0; padding: 0 0.95rem 0;
}
details.method > summary {
  cursor: pointer; list-style: none; margin: 0 -0.95rem; padding: 0.55rem 0.95rem;
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem;
}
details.method > summary::-webkit-details-marker { display: none; }
details.method > summary::before {
  content: "\25B8"; color: var(--accent); font-size: 0.8em; transition: transform 0.15s ease;
}
details.method[open] > summary::before { transform: rotate(90deg); }
details.method[open] > summary { border-bottom: 1px solid var(--border-soft); margin-bottom: 0.75rem; }
details.method > summary:hover { color: var(--text); }
details.method > *:not(summary):last-child { padding-bottom: 0.85rem; }
details.method .source-note { font-size: 0.86rem; color: var(--text-dim); }
details.method .source-note strong { color: var(--text); }
details.method .method-cta { margin-bottom: 0.85rem; }

.updated-at { color: var(--text-faint); font-size: 0.78rem; }

/* ---------- footer: one-line colophon ---------- */
.site-foot {
  border-top: 1px solid var(--border); margin-top: 1.6rem; padding: 0.9rem 0 1.2rem;
  color: var(--text-faint); font-size: 0.8rem;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; justify-content: space-between; align-items: baseline; }
.site-foot a { color: var(--text-dim); }

/* ---------- propaganda ticker strip (slim, one line) ---------- */
.ticker {
  display: flex; align-items: baseline; gap: 0.6rem 0.85rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 0.5rem 0.85rem; margin: 0.9rem 0 0.5rem;
  color: inherit; font-size: 0.86rem;
}
a.ticker:hover { text-decoration: none; border-color: var(--accent-steel-dim); border-left-color: var(--accent); }
.ticker.is-loading { border-left-color: var(--border); }
.ticker-tag {
  color: var(--accent); font-weight: 700; font-size: 0.64rem;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto;
}
.ticker.live .ticker-tag::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 0.4rem; vertical-align: middle;
  animation: alert-pulse 2s ease-in-out infinite;
}
@keyframes alert-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(192, 57, 43, 0); } }
.ticker-body { color: var(--text-dim); flex: 1 1 12rem; min-width: 0; line-height: 1.4; }
.ticker-body .phrase { color: var(--text); font-weight: 600; }
.ticker-body .count { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ticker-go { color: var(--accent-steel); font-weight: 600; font-size: 0.8rem; white-space: nowrap; flex: 0 0 auto; }

/* ---------- wave 2: card variants ---------- */
/* daily-brief card (big-data) */
.card .brief-kicker {
  color: var(--accent-steel); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.card .brief-hed { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em; color: var(--text); }
.card .brief-outlet { color: var(--text-faint); font-size: 0.74rem; margin-top: 0.35rem; }

/* claim-counter (wars-ended) */
.card-stat .qmark { color: var(--text-faint); font-weight: 400; }
.card-stat .ended { position: relative; }
.card .counter-sub { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.35rem; }

/* mini state bars (alpr) */
.mini-bars { display: grid; gap: 0.3rem; margin: 0.7rem 0 0.2rem; }
.mini-bar { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--text-faint); }
.mini-bar .st { font-weight: 600; color: var(--text-dim); }
.mini-bar .track { height: 6px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.mini-bar .fill { height: 100%; background: var(--accent-steel); border-radius: 999px; }
.mini-bar .val { font-variant-numeric: tabular-nums; }

/* calm warming-up state (new feeds not live yet) */
.card.warming .card-stat { color: var(--text-faint); font-size: 1.25rem; font-weight: 600; }
.card-warming {
  color: var(--text-dim); font-size: 0.88rem; margin-top: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.card-warming .pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-steel-dim);
  flex: 0 0 auto; animation: warm-pulse 1.8s ease-in-out infinite;
}
@keyframes warm-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- wave 2: link-out / suggest cards ---------- */
.card.link-card { min-height: 180px; justify-content: center; text-align: left; }
.card.link-card .card-stat { font-size: 1.3rem; font-weight: 700; }
.card.link-card .card-context { margin-top: 0.6rem; }

.linkout {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 1.4rem 0;
}
.linkout h2 { font-size: 1.1rem; font-weight: 700; }
.linkout p { color: var(--text-dim); font-size: 0.92rem; max-width: 62ch; }
.linkout .btn { align-self: flex-start; margin-top: 0.4rem; }

/* ---------- wave 2: embedded map ---------- */
.map-frame {
  position: relative; width: 100%; height: 70vh; min-height: 420px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--card-2);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-credit {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  flex-wrap: wrap; margin-top: 0.7rem; color: var(--text-faint); font-size: 0.82rem;
}
.map-credit a { color: var(--accent-steel); font-weight: 600; }

/* ---------- wave 2: buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 0.9rem;
  color: #fff; background: var(--accent); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 0.6rem 1.15rem; cursor: pointer;
  text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--accent-steel); border-color: var(--accent-steel-dim); }
.btn.secondary:hover { background: rgba(127, 156, 196, 0.12); color: #fff; }

/* ---------- wave 2: suggest form ---------- */
.form-panel { max-width: 640px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field .hint { color: var(--text-faint); font-weight: 400; font-size: 0.8rem; }
.field textarea, .field input[type="text"], .field input[type="email"] {
  width: 100%; font: inherit; color: var(--text);
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem; resize: vertical;
}
.field textarea { min-height: 120px; line-height: 1.5; }
.field textarea:focus, .field input:focus { outline: 2px solid var(--accent-steel); outline-offset: 1px; border-color: var(--accent-steel-dim); }
.field .charcount { text-align: right; font-size: 0.76rem; color: var(--text-faint); margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.field .charcount.warn { color: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--radius-sm); padding: 0.85rem 1rem; font-size: 0.92rem; margin-bottom: 1.1rem; line-height: 1.5; }
.form-msg.ok { background: rgba(63, 185, 80, 0.10); border: 1px solid rgba(63, 185, 80, 0.4); color: var(--text); }
.form-msg.err { background: rgba(192, 57, 43, 0.10); border: 1px solid rgba(192, 57, 43, 0.4); color: var(--text); }
.form-msg strong { display: block; margin-bottom: 0.15rem; }

/* ---------- wave 2: assessment table / maturity ---------- */
.status-yes { color: var(--good); font-weight: 600; }
.status-no { color: var(--accent); font-weight: 600; }
.status-mixed { color: var(--accent-steel); font-weight: 600; }
.maturity {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 2px; padding: 0.25rem 0.7rem;
}
.maturity .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-steel-dim); }
.maturity.live .pip { background: var(--good); }
.timeline { list-style: none; display: grid; gap: 0.9rem; }
.timeline li { border-left: 2px solid var(--border); padding: 0.1rem 0 0.1rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.35rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-steel); }
.timeline .t-date { color: var(--text-faint); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
.timeline .t-quote { color: var(--text); font-size: 0.95rem; margin: 0.2rem 0; }
.timeline .t-count { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- analysis block (Sound Report / The pattern) ----------
   Quiet editorial voice: inset, left red hairline, serif-feel via weight and
   italic within the system stack. Distinct from the data UI, not shouting. */
.analysis-slot:empty { display: none; }
.analysis {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 2px solid var(--accent);
  max-width: 68ch;
}
.analysis-kicker {
  color: var(--accent); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.analysis-headline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; font-style: italic;
  line-height: 1.22; letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 0.7rem;
}
.analysis-body p {
  color: var(--text-dim); font-size: 0.98rem; line-height: 1.62;
  margin-bottom: 0.75rem;
}
.analysis-body p:last-child { margin-bottom: 0; }
.analysis-throughlines { margin-top: 1rem; }
.analysis-tl-title {
  color: var(--text-faint); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.45rem;
}
.analysis-throughlines ul { list-style: none; display: grid; gap: 0.4rem; }
.analysis-throughlines li {
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.4;
  padding-left: 0.95rem; position: relative;
}
.analysis-throughlines li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-steel-dim);
}
.analysis-prov {
  color: var(--text-faint); font-size: 0.76rem; font-style: italic;
  line-height: 1.5; margin-top: 1rem;
}

/* ---------- Sound digest (Pages/sound.html) ---------- */
.sound-track { margin: 1.1rem 0; }
.sound-track-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem;
}
.sound-track-head h2 { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; }
.sound-track-head h2 a { color: var(--text); }
.sound-track-head h2 a:hover { color: #fff; }
.sound-track-head .updated-at { flex: 0 0 auto; }
.sound-stat {
  font-family: var(--mono);
  font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.sound-stat.alarm { color: var(--accent); }
.sound-brief { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--text); }
/* The pattern block sits flush inside a Sound panel */
.sound-track .analysis { margin: 1rem 0 0; }

/* ---------- Narrative Watch lifecycle cards (trackers/propaganda.html) ---------- */
.nw-legend {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.4rem;
  color: var(--text-dim); font-size: 0.86rem; align-items: center;
}
.nw-legend .step {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--border); border-radius: 2px; padding: 0.3rem 0.75rem;
}
.nw-legend .step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem; font-weight: 700;
  background: var(--accent); color: #fff;
}
.nw-legend .arr { color: var(--accent-steel-dim); font-weight: 700; }

.lifecycle-card {
  background: var(--card);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 0.85rem; margin: 0 0 0.9rem;
}
/* Untraced surges (below the lifecycle threshold): softer frame, no red rule */
.lifecycle-card.is-untraced {
  border-left-color: var(--border);
}
.lc-head { border-bottom: 1px solid var(--border-soft); padding-bottom: 0.85rem; margin-bottom: 0.9rem; }
.lc-kicker {
  color: var(--accent); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem;
}
.is-untraced .lc-kicker { color: var(--text-faint); }
.lc-phrase { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; }
.lc-phrase .q { color: var(--accent-hover); }
.lc-meta { color: var(--text-faint); font-size: 0.8rem; margin-top: 0.4rem; }
.lc-meta .dot { margin: 0 0.45rem; opacity: 0.6; }
.lc-trigger { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; margin: 0.5rem 0 0;
  padding-left: 0.7rem; border-left: 2px solid var(--accent-steel); }
.lc-trigger strong { color: var(--text); font-variant-numeric: tabular-nums; }
.lc-trigger-k { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.lc-untraced {
  color: var(--text-faint); font-size: 0.86rem; line-height: 1.55; font-style: italic;
}

.lc-stages { display: flex; align-items: stretch; gap: 0; }
.lc-stage {
  flex: 1 1 0; min-width: 0;
  background: var(--card-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.9rem 0.95rem;
}
.lc-arrow {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  padding: 0 0.45rem; color: var(--accent-steel-dim); font-size: 1.3rem; font-weight: 700;
}
.lc-stage-label {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--text-faint); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.lc-stage-label .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; font-size: 0.68rem;
  background: rgba(127,156,196,0.16); color: var(--accent-steel);
}

.lc-doc-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.lc-date { color: var(--text-faint); font-size: 0.76rem; margin: 0.3rem 0 0.5rem; }
.lc-quote {
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; font-style: italic;
  border-left: 2px solid var(--accent-steel-dim); padding-left: 0.7rem; margin-top: 0.4rem;
}
.lc-nofound strong { color: var(--text); display: block; font-size: 0.92rem; margin-bottom: 0.3rem; }
.lc-nofound p, .lc-pending { color: var(--text-faint); font-size: 0.84rem; line-height: 1.5; }
.lc-pending { font-style: italic; }

/* amplification: stacked outlet-lean bar + share + outlet chips */
.seg-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--border-soft); margin-bottom: 0.55rem; }
.seg { height: 100%; min-width: 2px; }
.seg.right { background: var(--accent); }
.seg.center { background: var(--accent-steel); }
.seg.unrated { background: var(--text-faint); opacity: 0.5; }
.lc-share { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.lc-share strong { color: var(--accent-hover); font-variant-numeric: tabular-nums; }
.lc-share.none strong { color: var(--text); }
.seg-key { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.72rem; color: var(--text-faint); margin-bottom: 0.6rem; }
.seg-key span { display: inline-flex; align-items: center; gap: 0.35rem; }
.seg-key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.seg-key i.right { background: var(--accent); }
.seg-key i.center { background: var(--accent-steel); }
.seg-key i.unrated { background: var(--text-faint); opacity: 0.5; }
.lc-outlets { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lc-chip {
  font-size: 0.74rem; padding: 0.16rem 0.5rem; border-radius: 2px;
  border: 1px solid var(--border); color: var(--text-dim);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lc-chip.right { border-color: rgba(192,57,43,0.55); color: #e79b93; }
.lc-chip.center { border-color: var(--accent-steel-dim); color: #a9c2e6; }
.lc-chip.unrated { border-color: var(--border); color: var(--text-faint); }
.lc-chip .a { color: var(--text-faint); margin-left: 0.3rem; }

.lc-landed { list-style: none; display: grid; gap: 0.5rem; }
.lc-landed li { line-height: 1.35; }
.lc-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); border: 1px solid rgba(192,57,43,0.5);
  border-radius: 2px; padding: 0.06rem 0.42rem; margin-right: 0.4rem; vertical-align: middle;
}
.lc-landed a { font-size: 0.88rem; }
.lc-landed .lc-date { display: inline; margin: 0 0 0 0.15rem; }

.lc-heds { list-style: none; display: grid; gap: 0.35rem; margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--border-soft); }
.lc-heds .lc-heds-title { color: var(--text-faint); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.11em; text-transform: uppercase; }
.lc-heds li.hed { color: var(--text-dim); font-size: 0.85rem; line-height: 1.35; padding-left: 0.9rem; position: relative; }
.lc-heds li.hed::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-steel-dim); }
.lc-heds .outlet { color: var(--text-faint); font-size: 0.78rem; }

@media (max-width: 720px) {
  .lc-stages { flex-direction: column; }
  .lc-arrow { transform: rotate(90deg); padding: 0.35rem 0; align-self: center; }
}

/* ---------- Phase D: The counterforce (Sound digest + tracker panels) ---------- */
.cf-kicker {
  color: var(--good); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem;
}
/* Compact block sits under a Sound track's pattern analysis. */
.cf-block {
  margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border-soft);
}
/* Fuller panel on a tracker detail page — green left rule mirrors the red method rule. */
.panel.cf-panel { border-left: 3px solid var(--good); }
.cf-panel h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.7rem; }
.cf-lead { margin-bottom: 1rem; }
.cf-intro {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--good);
  border-radius: var(--radius); padding: 0.7rem 0.95rem; margin: 0.9rem 0;
}
.cf-intro p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; max-width: 74ch; }

.cf-list { list-style: none; display: grid; gap: 0.55rem; margin: 0; padding: 0; }
.cf-entry {
  padding: 0.55rem 0 0; border-top: 1px solid var(--border-soft);
}
.cf-entry:first-child { border-top: 0; padding-top: 0; }
.cf-name { font-weight: 700; font-size: 0.94rem; color: var(--text); }
.cf-name a { color: var(--text); }
.cf-name a:hover { color: #fff; }
.cf-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; vertical-align: middle; margin-left: 0.4rem;
  padding: 0.08rem 0.4rem; border-radius: 2px;
  color: var(--accent-steel); border: 1px solid var(--accent-steel-dim);
}
.cf-what { color: var(--text-dim); font-size: 0.85rem; line-height: 1.4; margin-top: 0.2rem; }
.cf-win, .cf-disc, .cf-fund {
  font-size: 0.82rem; line-height: 1.4; margin-top: 0.2rem; color: var(--text-dim);
}
.cf-win { color: var(--text); }
.cf-k {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; margin-right: 0.4rem; vertical-align: 1px;
}
.cf-k-win { color: var(--good); }
.cf-k-flag { color: var(--accent); }
.cf-k-fund { color: var(--accent-steel); }
.cf-date { color: var(--text-faint); }
.cf-src { color: var(--accent-steel); font-size: 0.82rem; }
.cf-events {
  display: inline-block; margin-top: 1rem; font-weight: 600; font-size: 0.86rem;
  color: var(--accent-steel);
}

/* ---------- Against the record (historical benchmarks, tracker pages) ----------
   Compact panel sits after the analysis slot, before the chart panels. Steel left
   rule (neutral context, not the red alarm rule); serif read line as the one-sentence
   headline; a dense benchmark table reusing table.data (mono tabular figures, hairline
   rules); caveats as one small line below. Full-width table — no forced columns. */
.panel.bm-panel { border-left: 3px solid var(--accent-steel-dim); }
.bm-kicker {
  color: var(--accent-steel); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.bm-read {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  color: var(--text); margin-bottom: 0.85rem; letter-spacing: -0.005em;
}
.bm-table { table-layout: auto; }
.bm-table td.bm-label { color: var(--text); white-space: normal; }
.bm-label-t { display: block; font-weight: 600; }
.bm-note { display: block; color: var(--text-faint); font-size: 0.76rem; line-height: 1.35; margin-top: 0.15rem; }
.bm-table td.bm-val { color: var(--text); font-weight: 600; }
.bm-table td.bm-period a { color: var(--accent-steel); }
.bm-caveat {
  color: var(--text-faint); font-size: 0.78rem; line-height: 1.45; margin-top: 0.7rem;
}

/* mobile nav — deck 2 collapses into a toggled dropdown */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-container { position: relative; padding-bottom: 0.4rem; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-top: 0;
    border-bottom: 1px solid var(--border);
    margin-top: 0; padding: 0.4rem 1rem 0.8rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0.8rem; border-radius: 2px; min-height: 44px; }
  .logo-text { font-size: 1.1rem; }
}

/* ---------- Phase E: The Playbook (Pages/playbook.html) ----------
   The thesis, the causal chains, the throughlines. Additive only. Chains reuse the
   dark-theme tokens; the → arrows stack vertically on narrow screens. */
.pb-thesis {
  background: var(--card);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 0.95rem 1.1rem; margin: 1rem 0;
}
.pb-thesis .pb-thesis-kicker {
  color: var(--accent); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.pb-thesis p { color: var(--text-dim); font-size: 0.96rem; line-height: 1.55; }
/* broadsheet columns for the thesis at wide widths */
.pb-thesis-body { column-width: 34ch; column-gap: 2.2rem; }
.pb-thesis-body p { max-width: none; break-inside: avoid; }
.pb-thesis-body p + p { margin-top: 0.75rem; }
.pb-thesis p + p { margin-top: 0.75rem; }
.pb-thesis strong { color: var(--text); font-weight: 600; }
.pb-thesis .pb-arrow-inline { color: var(--accent-steel); font-weight: 700; padding: 0 0.15rem; }

/* chain panels */
.pb-chain-panel { margin: 1.4rem 0; }
.pb-chain-head { margin-bottom: 1rem; }
.pb-chain-head h2 { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; margin: 0; }
.pb-chain-sub { color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; margin-top: 0.4rem; max-width: 68ch; }

.pb-chain { display: flex; align-items: stretch; gap: 0; }
.pb-stage {
  flex: 1 1 0; min-width: 0;
  background: var(--card-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.95rem 1rem;
  display: flex; flex-direction: column;
}
.pb-arrow {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  padding: 0 0.5rem; color: var(--accent-steel-dim); font-size: 1.4rem; font-weight: 700;
}
.pb-stage-label {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--text-faint); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.pb-stage-label .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; font-size: 0.68rem;
  background: rgba(127,156,196,0.16); color: var(--accent-steel); flex: 0 0 auto;
}
.pb-stage-stat {
  font-family: var(--mono);
  font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: 0.15rem;
}
.pb-stage-stat.alarm { color: var(--accent); }
.pb-stage-unit { color: var(--text-faint); font-size: 0.8rem; line-height: 1.4; margin-bottom: 0.5rem; }
.pb-stage-note { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; margin-bottom: 0.6rem; }
.pb-stage-note:last-child { margin-bottom: 0; }
.pb-stage-links { margin-top: auto; display: flex; flex-direction: column; gap: 0.25rem; }
.pb-stage-link { color: var(--accent-steel); font-weight: 600; font-size: 0.85rem; }
.pb-stage-stat .skeleton { display: inline-block; width: 3.5ch; height: 1em; }

/* compact direction readouts reused inside the legislative chain */
.pb-stage .dir-mini { margin-top: 0.2rem; margin-bottom: 0.6rem; }
.pb-stage .dir-mini + .dir-mini { margin-top: 0.7rem; }

/* shadow-docket stat block (getTracker('scotus') → static Brennan fallback) */
.pb-scotus { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.pb-scotus .pb-scotus-figs { display: flex; flex-wrap: wrap; gap: 1rem; }
.pb-scotus .pb-fig {
  flex: 1 1 150px; min-width: 140px;
  background: var(--card-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem;
}
.pb-scotus .pb-fig .big {
  font-family: var(--mono);
  font-size: 1.8rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.pb-scotus .pb-fig .big.alarm { color: var(--accent); }
.pb-scotus .pb-fig .lbl {
  color: var(--text-faint); font-size: 0.78rem; line-height: 1.4; margin-top: 0.45rem;
}
.pb-scotus .pb-src { color: var(--text-faint); font-size: 0.82rem; line-height: 1.55; margin-top: 0.8rem; }
.pb-scotus .pb-src a { color: var(--accent-steel); font-weight: 600; }

/* global-pattern closing section */
.pb-global-list { list-style: none; display: grid; gap: 1.1rem; margin: 0; padding: 0; }
.pb-global-item { border-top: 1px solid var(--border-soft); padding-top: 0.95rem; }
.pb-global-item:first-child { border-top: 0; padding-top: 0; }
.pb-global-item h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.pb-global-item p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; max-width: 70ch; }
.pb-global-item .pb-src { color: var(--text-faint); font-size: 0.82rem; margin-top: 0.4rem; }
.pb-global-item .pb-src a { color: var(--accent-steel); font-weight: 600; }

@media (max-width: 720px) {
  .pb-chain { flex-direction: column; }
  .pb-arrow { transform: rotate(90deg); padding: 0.35rem 0; align-self: center; }
}

/* ============================================================
   Narrative Watch — campaigns / watch / trending split (Feature 1)
   Additive; reuses the lifecycle-card, seg-bar and lc-* language.
   ============================================================ */
.nw-band { margin: 0 0 1.6rem; }
.nw-band:last-child { margin-bottom: 0; }
.nw-band-head {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700; letter-spacing: 0;
  padding-bottom: 0.4rem; margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
.nw-band-campaign .nw-band-head { color: var(--accent-hover); border-bottom-color: rgba(192, 57, 43, 0.5); }
.nw-band > .source-note { margin-bottom: 0.85rem; }
.nw-sweep { color: var(--text-dim); }
.nw-classnote { color: var(--text-faint); font-size: 0.82rem; line-height: 1.5; margin-top: 0.6rem; }

/* Watch — compact cards */
.nw-compact {
  background: var(--card-2); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 0.85rem 0.95rem; margin-bottom: 0.6rem;
}
.nw-compact:last-child { margin-bottom: 0; }
.nw-c-phrase { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.nw-c-phrase .q { color: var(--accent-hover); }
.nw-compact .lc-meta { margin: 0.35rem 0 0.55rem; }
.nw-compact .seg-bar { height: 10px; }

/* Trending — de-emphasized one-line entries */
.nw-band-trending { opacity: 0.92; }
.nw-trend-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-soft); }
.nw-trend {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border-soft);
}
.nw-t-phrase { color: var(--text-dim); font-size: 0.9rem; }
.nw-t-meta { color: var(--text-faint); font-size: 0.76rem; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nw-t-note { flex: 1 1 100%; color: var(--text-faint); font-size: 0.78rem; line-height: 1.45; }

/* ============================================================
   Standing narratives (trackers/propaganda.html) — the permanent,
   hand-curated campaign themes checked against the right-wing
   ecosystem every run. Additive .sn-* language; reuses the nw-band
   and chip vocabulary. "quiet" is a finding, so it renders faint,
   never hidden — the section only disappears when the field is absent.
   ============================================================ */
.nw-band-standing .nw-band-head { color: var(--text); }
.sn-list { display: grid; gap: 0.6rem; }
/* Rows are short — two-column desktop flow reads well past 1000px. */
@media (min-width: 1000px) { .sn-list { grid-template-columns: 1fr 1fr; align-items: start; } }
.sn-row {
  background: var(--card-2); border: 1px solid var(--border-soft);
  border-left: 3px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.sn-row.sn-surging { border-left-color: var(--accent); }
.sn-row.sn-steady { border-left-color: var(--accent-steel-dim); }
.sn-row.sn-quiet, .sn-row.sn-unavailable { opacity: 0.62; }
.sn-rowhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 0.55rem; }
.sn-label { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; line-height: 1.25; margin: 0; }
.sn-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.1rem 0.45rem; border-radius: 2px; border: 1px solid var(--border);
}
.sn-tag-surging { color: var(--accent); border-color: rgba(192, 57, 43, 0.5); }
.sn-tag-steady { color: var(--accent-steel); border-color: var(--accent-steel-dim); }
.sn-tag-quiet, .sn-tag-unavailable { color: var(--text-faint); border-color: var(--border-soft); }
.sn-count {
  margin-left: auto; color: var(--text-faint); font-size: 0.74rem;
  font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sn-note { color: var(--text-dim); font-size: 0.86rem; line-height: 1.5; margin: 0.45rem 0 0; }
.sn-outlets { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.sn-chip {
  font-size: 0.72rem; padding: 0.12rem 0.45rem; border-radius: 2px;
  border: 1px solid var(--border); color: var(--text-faint); white-space: nowrap;
}
.sn-heds { margin-top: 0.55rem; }
.sn-heds > summary {
  color: var(--accent-steel); font-size: 0.76rem; cursor: pointer; list-style: none;
}
.sn-heds > summary::-webkit-details-marker { display: none; }
.sn-heds > summary::before {
  content: "\25B8"; color: var(--accent-steel-dim); font-size: 0.8em;
  margin-right: 0.35rem; display: inline-block; transition: transform 0.15s ease;
}
.sn-heds[open] > summary::before { transform: rotate(90deg); }
.sn-hed-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.sn-hed-list li {
  color: var(--text-dim); font-size: 0.82rem; line-height: 1.35;
  padding-left: 0.9rem; position: relative;
}
.sn-hed-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent-steel-dim);
}
.sn-hed-outlet { color: var(--text-faint); font-size: 0.76rem; }
.sn-queries {
  color: var(--text-faint); font-size: 0.76rem; line-height: 1.45;
  margin: 0.5rem 0 0; font-style: italic;
}

/* Trending demoted to a background footer drawer — neutral rule, not alarm. */
.nw-trending-footer { border-left-color: var(--border-soft); margin-top: 0.6rem; }
.nw-trending-footer .nw-trend-list { border-top: none; margin-top: 0.4rem; }

/* ============================================================
   Iran War — cost and lives tracker (Feature 2)
   ============================================================ */
.stat-tile .stat-asof {
  color: var(--text-faint); font-size: 0.7rem; line-height: 1.4; margin-top: 0.4rem;
  max-width: 30ch;
}
.conflict-line {
  color: var(--text-dim); font-size: 0.84rem; line-height: 1.5; margin: 0 0 1rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--border-soft);
}
.conflict-line .dot { margin: 0 0.45rem; opacity: 0.6; }
.conflict-line a { color: var(--accent-steel); font-size: 0.78rem; }

table.data td .sub { color: var(--text-dim); padding-left: 0.6rem; }

/* cost block */
.cost-block { display: grid; gap: 0.9rem; }
.cost-line { display: flex; gap: 0.9rem; align-items: baseline; padding-top: 0.9rem; border-top: 1px solid var(--border-soft); }
.cost-line:first-child { padding-top: 0; border-top: 0; }
.cost-fig {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--text);
  flex: 0 0 auto; min-width: 5.5rem;
}
.cost-fig.dim { color: var(--text-faint); font-size: 1.2rem; }
.cost-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 700; }
.cost-note { color: var(--text-dim); font-size: 0.86rem; line-height: 1.5; margin-top: 0.3rem; }
.cost-note.dim { color: var(--text-faint); }
.cost-note a { color: var(--accent-steel); }

/* integrity — the honesty block, visible not collapsed */
.panel.integrity-block { border-left: 3px solid var(--accent-steel); }
.integrity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.integrity-list li {
  color: var(--text-dim); font-size: 0.88rem; line-height: 1.55; padding-left: 1rem; position: relative;
}
.integrity-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px;
  background: var(--accent-steel); border-radius: 50%;
}

/* source list in methodology drawer */
.src-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.src-list li { font-size: 0.84rem; padding-left: 0.9rem; position: relative; }
.src-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-steel-dim); }
.src-list a { color: var(--accent-steel); }

/* ============================================================
   The Record — completed runs of the playbook (Feature 3)
   ============================================================ */
.pb-record-intro {
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; color: var(--text-dim);
  max-width: 74ch; margin: 0 0 1.2rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.record-case { border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 0.7rem; background: var(--card-2); }
.record-case:last-child { margin-bottom: 0; }
.record-case[open] { border-color: var(--border); }
.pb-rec-summary {
  list-style: none; cursor: pointer; padding: 0.85rem 1rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem;
}
.pb-rec-summary::-webkit-details-marker { display: none; }
.pb-rec-summary::before {
  content: "▸"; color: var(--accent-steel-dim); font-size: 0.85rem; flex: 0 0 auto;
  transition: transform 0.15s ease; align-self: center;
}
.record-case[open] .pb-rec-summary::before { transform: rotate(90deg); }
.pb-rec-summary:hover .pb-rec-title { color: var(--accent-hover); }
.pb-rec-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text); flex: 1 1 16rem; }
.pb-rec-figs { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; flex: 1 1 auto; }
.pb-rec-fig { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.pb-rec-fig .v { font-family: var(--mono); font-weight: 700; font-size: 0.92rem; color: var(--accent-hover); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-rec-fig .l { color: var(--text-faint); font-size: 0.72rem; max-width: 22ch; line-height: 1.3; }
.pb-rec-body { padding: 0 1rem 1rem; border-top: 1px solid var(--border-soft); }
.pb-rec-stage { padding-top: 0.85rem; margin-top: 0.85rem; border-top: 1px solid var(--border-soft); }
.pb-rec-stage:first-child { border-top: 0; }
.pb-rec-stage-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 0.35rem;
}
.pb-rec-stage-text { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; max-width: 76ch; }
.pb-rec-caveat {
  margin-top: 0.95rem; padding: 0.6rem 0.75rem; background: var(--card);
  border-left: 3px solid var(--accent-steel); border-radius: var(--radius);
  color: var(--text-faint); font-size: 0.83rem; line-height: 1.5;
}
.pb-rec-caveat .k {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-steel); margin-right: 0.4rem;
}
.pb-rec-sources { margin-top: 0.95rem; border-top: 1px solid var(--border-soft); padding-top: 0.6rem; }
.pb-rec-sources > summary {
  list-style: none; cursor: pointer; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-steel);
}
.pb-rec-sources > summary::-webkit-details-marker { display: none; }
.pb-rec-sources > summary::before { content: "+ "; }
.pb-rec-sources[open] > summary::before { content: "− "; }
.pb-rec-sources[open] > summary { margin-bottom: 0.5rem; }

/* ============================================================
   Use the width — two-column desktop flow (additive; >=1000/1100px only)
   The redesign's vertical density is right; this reclaims the horizontal
   dead space at desktop widths. Measure-capped analysis blocks flow into
   broadsheet columns; compact repeated sections sit side by side. Every
   rule is behind a min-width query, so mobile/tablet are untouched. All
   selectors style content that has already rendered, so the
   hidden-when-absent contract (.analysis-slot:empty { display:none }) is
   preserved — an empty slot has no .analysis to widen.
   ============================================================ */

/* Generic two-column row wrapper for pairing panels on detail pages.
   Grid (not flex) so equal columns; panels drop their own vertical margin. */
@media (min-width: 1100px) {
  .two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; align-items: start; margin: 0.9rem 0;
  }
  .two-col > .panel { margin: 0; }
}

/* Analysis blocks — The pattern, the Sound Report, today's throughlines,
   this week in the counterforce. Fill the container and flow the multi-
   paragraph body into ~38ch broadsheet columns with a hairline rule.
   column-width (not column-count) means the block gracefully falls to a
   single column inside a narrow container (e.g. a half-width Sound cell). */
@media (min-width: 1000px) {
  .analysis { max-width: none; }
  .analysis-body {
    column-width: 38ch; column-gap: 2.5rem;
    column-rule: 1px solid var(--border-soft);
  }
}

/* The Sound page — one compact section per tracker, two per row like a
   ledger. The Sound Report and weekly-counterforce blocks sit above
   #sound-tracks and keep the full-width column-flow above. */
@media (min-width: 1100px) {
  #sound-tracks {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px 1.5rem; align-items: start;
  }
  #sound-tracks > .sound-track { margin: 0; }
}

/* The counterforce (full panel, tracker pages) — entries flow two-up as a
   ledger. break-inside keeps each org whole; the row hairlines already read
   as separators between stacked entries. */
@media (min-width: 1100px) {
  .cf-panel .cf-list {
    display: block; columns: 2; column-gap: 2.5rem;
    column-rule: 1px solid var(--border-soft);
  }
  .cf-panel .cf-entry { break-inside: avoid; }
  .cf-panel .cf-entry:first-child { padding-top: 0; border-top: 0; }
}

/* The Record (playbook) — the five stages inside an open case flow in two
   columns; each stage stays whole. Caveat + sources sit full-width below
   (they are siblings of .pb-rec-stages, not inside it). */
@media (min-width: 1000px) {
  .pb-rec-stages {
    columns: 2; column-gap: 2.5rem;
    column-rule: 1px solid var(--border-soft);
  }
  .pb-rec-stages > .pb-rec-stage { break-inside: avoid; }
}

/* Use-the-width follow-up: the global-pattern list joins the two-column flow */
@media (min-width: 1000px) {
  .pb-global-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}


/* ============================================================
   COMPREHENSION LAYER (R5) — brevity and graphics
   A one-line caption under each H1, a zero-word gloss (title
   attribute), the benchmark bar that IS the alert, and the
   carrier split. Flat 2px chrome, no motion, no decoration.
   ============================================================ */

/* One-line caption under the H1. A caption, not a paragraph. */
.page-plain {
  margin: 0.5rem 0 0;
  padding: 0 0 0 0.7rem;
  border-left: 2px solid var(--accent);
  max-width: 74ch;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* First-use gloss: the definition rides in the title attribute, so it costs no
   visible words. Focusable so keyboard and screen-reader users can reach it. */
.gloss { border-bottom: 1px dotted var(--accent-steel); cursor: help; }
.gloss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- The benchmark bar ----------
   The reading as a filled bar, the line as a marker it overshoots. Two figures,
   no sentence. This is the alert, for a reader who is not an analyst. */
.bm { display: flex; align-items: center; gap: 0.6rem; margin: 0.45rem 0 0.1rem; flex-wrap: wrap; }
.bm-track {
  position: relative; flex: 1 1 190px; min-width: 130px; max-width: 420px; height: 10px;
  background: var(--card-2); border: 1px solid var(--border);
}
.bm-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-steel-dim); }
.bm.is-over .bm-fill { background: var(--accent); }
.bm-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); }
.bm-nums {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bm-nums b { color: var(--text); font-size: 0.95rem; font-weight: 700; }
.bm.is-over .bm-nums b { color: var(--accent-hover); }
.bm-norm { color: var(--text-faint); font-size: 0.72rem; }

/* ---------- Carrier split (stacked bar) ---------- */
.split { display: flex; align-items: center; gap: 0.6rem; margin: 0.35rem 0 0.1rem; flex-wrap: wrap; }
.split-bar {
  display: flex; flex: 1 1 190px; min-width: 130px; max-width: 420px; height: 8px;
  border: 1px solid var(--border); background: var(--card-2); overflow: hidden;
}
.split-bar .sg { display: block; height: 100%; }
.split-bar .sg.right { background: var(--accent); }
.split-bar .sg.left { background: var(--accent-steel); }
.split-bar .sg.center { background: var(--accent-steel-dim); }
.split-bar .sg.unrated { background: var(--border); }
.split-cap { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }

/* ---------- Recent alerts — last 14 days ---------- */
.recent-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.ra-row {
  border: 1px solid var(--border); border-left: 2px solid var(--accent-steel);
  background: var(--card); padding: 0.5rem 0.7rem;
}
.ra-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; }
.ra-state {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-steel); border: 1px solid var(--border); padding: 0.05rem 0.3rem;
}
.ra-what { color: var(--text); font-size: 0.9rem; font-weight: 600; }
.ra-when { font-family: var(--mono); font-size: 0.7rem; color: var(--text-faint); }
.ra-evidence { margin: 0.25rem 0 0; color: var(--text-dim); font-size: 0.82rem; line-height: 1.5; max-width: 90ch; }
.ra-evidence a { color: var(--accent-steel); }

/* Campaign lean / decline captions inside a lifecycle card (drill-down). */
.lc-lean, .lc-declining { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.lc-lean b { color: var(--text); font-weight: 700; }
.lc-declining { color: var(--accent-steel); }
