/* NewsWatch — editorial design system.
 *
 * Built around the wordmark: a high-contrast Didone monogram in deep navy on
 * white. Three decisions follow from it.
 *
 *   Navy, not black. #010851 is sampled from the logo and is the only strong
 *   colour on the page. Everything else is ink, rule, or paper.
 *
 *   Serif display, sans UI. Playfair Display matches the monogram's stroke
 *   contrast and carries headlines and figures; labels, tables and metadata
 *   stay in the system sans, where a serif would be fussy and harder to scan.
 *
 *   Rules, not cards. Hairlines and whitespace separate things instead of
 *   boxes and shadows. A page of floating grey cards reads like a dashboard;
 *   this should read like a publication.
 *
 * Status colours are deliberately darker than the usual traffic-light set.
 * Measured on white: accurate 7.01, mixed 6.65, fabricated 7.92 — all clear
 * AA as text AND carry white labels on their own fill, so one treatment works
 * everywhere instead of per-segment exceptions.
 */

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-var.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic-var.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* ---- Foundation, ~60% -------------------------------------------------
   * Two tones and nothing else behind content. Every surface is white or
   * navy; there is no third background colour. */
  --navy:           #0a1128;
  --white:          #ffffff;
  --paper:          #ffffff;
  --paper-raised:   #ffffff;
  /* The single permitted card variation: navy at 3%, not a new grey. */
  --paper-sunk:     #f5f6f8;

  /* ---- Structural mid-tones, ~30% ---------------------------------------
   * Charcoal carries heavy text and major structural blocks. Slate handles
   * the softer register: metadata, table headers, inactive states.
   *
   * Slate measures 4.05 on white, which is sound for the UI roles above but
   * short of the 4.5 body-text threshold. Reading-length prose therefore uses
   * a darkened slate (--slate-deep, 7.25) so paragraphs stay legible without
   * introducing a hue that is not in the palette. */
  --charcoal:       #212529;
  --slate:          #708090;
  --slate-deep:     #4e5862;

  /* ---- Premium accent, ~10% ---------------------------------------------
   * Silver is treated like gold leaf: razor-thin rules, hover states and
   * interactive icon highlights only. It never fills an area and never
   * carries text. */
  --silver:         #c0c0c0;
  --silver-light:   #e5e5e5;

  /* ---- Applied roles ----------------------------------------------------- */
  --navy-900:       #0a1128;
  --navy-800:       #0a1128;
  --navy-600:       #1b2440;
  --navy-400:       #3d4a63;
  --navy-300:       var(--slate);
  --navy-100:       var(--silver);
  --navy-50:        var(--silver-light);

  --heading:        var(--navy);
  --accent:         var(--navy);
  --ink:            var(--charcoal);
  --ink-2:          var(--slate-deep);
  /* One step darker than --slate. The palette's slate stays exactly as
   * specified for fills, rules and the mixed verdict; this is the text role,
   * and at 11px #708090 reaches only 4.05:1 on white, under the 4.5 floor. */
  --ink-3:          #5f6c7c;
  --rule:           var(--silver-light);
  --rule-strong:    var(--silver);
  --border:         rgba(10, 17, 40, 0.12);
  --brass:          var(--silver);
  --brass-dark:     var(--slate);

  /* ---- Verdicts ----------------------------------------------------------
   * Accurate and mixed sit inside the palette: navy for the authoritative
   * case, slate for the unresolved one. Fabricated is the one deliberate
   * exception. A monochrome scheme cannot signal alarm, and flagging
   * fabrication is the single thing this site exists to do -- so one reserved
   * oxblood is admitted, used only as a small mark or a thin rail, never as a
   * broad fill, and always beside an icon and a text label. */
  --accurate:       #0a1128;
  --mixed:          #708090;
  --fabricated:     #8b2635;

  /* ---- Map ramps ---------------------------------------------------------
   * The chrome stays navy, slate and silver; data gets hue of its own. A
   * single-hue grey ramp reads as absence rather than quantity -- six steps of
   * near-grey are hard to tell apart and look like the map failed to load.
   *
   * Two ramps rather than one, because the maps measure different things and
   * a reader moving between them should not carry a scale across. Teal is
   * coverage (how much we assessed), amber is candidates filed.
   *
   * Steps straddle a gap in the middle: between L=0.183 and L=0.256 neither
   * the dark label ink nor the white one reaches 4.5:1, so no step sits there.
   * Every fill and ink pair is measured, lowest 4.65:1. */
  --map-a-1:        #e9f5f3;
  --map-a-2:        #c2e6e1;
  --map-a-3:        #8ecfc9;
  --map-a-4:        #2f807f;
  --map-a-5:        #1a5f66;
  --map-a-6:        #0c3a47;

  --map-b-1:        #fdf1dc;
  --map-b-2:        #f6dba8;
  --map-b-3:        #eec173;
  --map-b-4:        #9a6415;
  --map-b-5:        #7a4d12;
  --map-b-6:        #4f300e;

  /* Tile labels use the strongest ink available rather than body ink, because
   * the fill underneath them spans the whole lightness range. */
  --tile-ink:       #212529;
  --tile-ink-inv:   #ffffff;

  --accurate-wash:  #e9ecf3;
  --mixed-wash:     #eff1f3;
  --fabricated-wash:#f8ecee;

  --serif: "Playfair Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  /* Deliberately no Inter: it was named here but never shipped, so every
   * visitor without it installed -- nearly all of them -- fell through to
   * system-ui anyway. Naming only fonts that will really be used makes the
   * weights below predictable instead of aspirational. */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --radius: 2px;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --navy:           #0a1128;
    --white:          #ffffff;
    --paper:          #0a1128;
    --paper-raised:   #121a35;
    --paper-sunk:     #070c1d;
    --charcoal:       #e9ecf1;
    --slate:          #8f9bab;
    --slate-deep:     #c6ccd4;
    --silver:         #c0c0c0;
    --silver-light:   #e5e5e5;
    --navy-900:       #ffffff;
    --navy-800:       #c9d2e6;
    --navy-600:       #9aa6c4;
    --navy-400:       #6f7d9e;
    --navy-300:       #8f9bab;
    --navy-100:       #3a4663;
    --navy-50:        #232e4c;
    --heading:        #ffffff;
  --accent:         #ffffff;
    --accent:         #ffffff;
    --ink:            #ffffff;
    --ink-2:          #c6ccd4;
    --ink-3:          #8f9bab;
    --rule:           #1e2742;
    --rule-strong:    #33405c;
    --border:         rgba(255, 255, 255, 0.13);
    --brass:          #c0c0c0;
    --brass-dark:     #8f9bab;
    --accurate:       #9fb2e0;
    --mixed:          #9aa7b6;
    --fabricated:     #d9707b;
    --accurate-wash:  #16203c;
    --mixed-wash:     #1a2030;
    --fabricated-wash:#2c1a1f;
    /* Dark-mode ramps run dark to light, so "more" is still the heavier tile.
     * The step that flips label ink is the same index in both themes, which is
     * what lets one flag array serve both. */
    --map-a-1:        #0f2b2b;
    --map-a-2:        #15403e;
    --map-a-3:        #1d5a58;
    --map-a-4:        #58a8a2;
    --map-a-5:        #8fd0ca;
    --map-a-6:        #c2e7e2;
    --map-b-1:        #2b2011;
    --map-b-2:        #3f3018;
    --map-b-3:        #584021;
    --map-b-4:        #b98e3c;
    --map-b-5:        #d9b468;
    --map-b-6:        #f2d79c;
    --tile-ink:       #ffffff;
    --tile-ink-inv:   #0a1128;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
    --navy:           #0a1128;
  --white:          #ffffff;
  --paper:          #0a1128;
  --paper-raised:   #121a35;
  --paper-sunk:     #070c1d;
  --charcoal:       #e9ecf1;
  --slate:          #8f9bab;
  --slate-deep:     #c6ccd4;
  --silver:         #c0c0c0;
  --silver-light:   #e5e5e5;
  --navy-900:       #ffffff;
  --navy-800:       #c9d2e6;
  --navy-600:       #9aa6c4;
  --navy-400:       #6f7d9e;
  --navy-300:       #8f9bab;
  --navy-100:       #3a4663;
  --navy-50:        #232e4c;
  --heading:        #ffffff;
  --accent:         #ffffff;
  --ink:            #ffffff;
  --ink-2:          #c6ccd4;
  --ink-3:          #8f9bab;
  --rule:           #1e2742;
  --rule-strong:    #33405c;
  --border:         rgba(255, 255, 255, 0.13);
  --brass:          #c0c0c0;
  --brass-dark:     #8f9bab;
  --accurate:       #9fb2e0;
  --mixed:          #9aa7b6;
  --fabricated:     #d9707b;
  --accurate-wash:  #16203c;
  --mixed-wash:     #1a2030;
  --fabricated-wash:#2c1a1f;
  /* Dark-mode ramps run dark to light, so "more" is still the heavier tile.
    * The step that flips label ink is the same index in both themes, which is
    * what lets one flag array serve both. */
  --map-a-1:    #0f2b2b;
  --map-a-2:    #15403e;
  --map-a-3:    #1d5a58;
  --map-a-4:    #58a8a2;
  --map-a-5:    #8fd0ca;
  --map-a-6:    #c2e7e2;
  --map-b-1:    #2b2011;
  --map-b-2:    #3f3018;
  --map-b-3:    #584021;
  --map-b-4:    #b98e3c;
  --map-b-5:    #d9b468;
  --map-b-6:    #f2d79c;
  --tile-ink:     #ffffff;
  --tile-ink-inv:   #0a1128;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  /* No -webkit-font-smoothing: antialiased here. It looks crisper on a large
   * display and it thins every stem on macOS, which is the opposite of what
   * small text needs. Subpixel rendering is the browser default and is what
   * keeps 11px metadata legible. */
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-raised);
  box-shadow: inset 0 -1px 0 0 var(--silver);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 32px;
  max-width: 1040px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand { margin-right: auto; display: block; line-height: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand .logo-light { display: none; }

:root[data-theme="dark"] .brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: block; }

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .brand .logo-dark { display: none; }
  :root:where(:not([data-theme="light"])) .brand .logo-light { display: block; }
}

.masthead nav { display: flex; gap: 26px; flex-wrap: wrap; }

.masthead nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover { color: var(--accent); border-bottom-color: var(--silver); }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-2);
  border-radius: var(--radius);
  font: inherit;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 11px;
  cursor: pointer;
}

.theme-toggle:hover { color: var(--accent); border-color: var(--silver); }

/* --- Page scaffolding ---------------------------------------------------- */

main { padding: 56px 0 96px; }

.page-head { margin-bottom: 44px; }

h1 {
  color: var(--heading);
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 14px;
}

/* Section labels echo the wordmark's letterspaced caps. */
h2 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: var(--measure);
}

.meta-line {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  letter-spacing: 0.02em;
}

.meta-line .dot { color: var(--rule-strong); }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 30px;
}

section + section { margin-top: 52px; }

/* --- The three figures --------------------------------------------------- */

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }

@media (max-width: 760px) { .kpi-row { grid-template-columns: 1fr; } }

.tile {
  display: block;
  text-decoration: none;
  padding: 30px 28px 26px;
  border-left: 1px solid var(--rule);
  transition: background 140ms ease;
}

.kpi-row .tile:first-child { border-left: none; padding-left: 0; }
@media (max-width: 760px) {
  .tile { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; }
  .kpi-row .tile:first-child { border-top: none; }
}

.tile:hover { background: var(--paper-sunk); box-shadow: inset 2px 0 0 -1px var(--silver); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tile-head { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }

.tile-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Serif figures at display size, proportional numerals — tabular-nums makes a
 * large standalone number look loose. */
.tile-value {
  color: var(--heading);
  font-family: var(--serif);
  font-size: 68px;
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tile-value .unit {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-left: 3px;
}

.tile-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

.tile-blurb {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
  max-width: 34ch;
}

.tile-cta {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
  font-weight: 600;
}

.tile:hover .tile-cta { color: var(--accent); }

/* --- Verdict marks ------------------------------------------------------- */

.vicon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--mark, var(--ink-3));
}

.vicon svg { width: 9px; height: 9px; display: block; }
.vicon--real  { --mark: var(--accurate); }
.vicon--mixed { --mark: var(--mixed); }
.vicon--fake  { --mark: var(--fabricated); }
.vicon--sm { width: 12px; height: 12px; }
.vicon--sm svg { width: 7px; height: 7px; }

/* --- Share bar ----------------------------------------------------------- */

.split { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--rule); }

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.split-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
}

.split-note { font-size: 12px; color: var(--ink-3); }

.stack { display: flex; gap: 2px; height: 20px; }

.stack-seg {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2px;
  text-decoration: none;
  transition: opacity 140ms ease;
}

.stack-seg:hover { opacity: 0.84; }
.stack-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stack-seg--real  { background: var(--accurate); }
.stack-seg--mixed { background: var(--mixed); }
.stack-seg--fake  { background: var(--fabricated); }

/* One ink works on all three fills: measured 6.65-7.92 against white. */
.stack-seg .seg-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  padding: 0 8px;
  white-space: nowrap;
}

:root[data-theme="dark"] .stack-seg .seg-label { color: var(--navy); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .stack-seg .seg-label { color: var(--navy); }
}

.stack-empty {
  flex: 1;
  background: var(--paper-sunk);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink-3);
}

.legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-2);
}

.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-swatch { width: 9px; height: 9px; flex: 0 0 auto; }
.legend-swatch--real  { background: var(--accurate); }
.legend-swatch--mixed { background: var(--mixed); }
.legend-swatch--fake  { background: var(--fabricated); }
.legend-value { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.scope-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: var(--measure);
}

.scope-note em { color: var(--ink-2); font-style: italic; }
.scope-note a { color: var(--accent); text-decoration: none; font-weight: 500; }
.scope-note a:hover { text-decoration: underline; }

/* --- Debrief ------------------------------------------------------------- */

.debrief { padding: 0; border: none; }

.debrief h3 {
  color: var(--heading);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
  font-weight: 600;
  max-width: 24ch;
}

.debrief-body {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: var(--measure);
  columns: 1;
}

.debrief-body p { margin: 0 0 18px; }
.debrief-body p:last-child { margin-bottom: 0; }

.debrief-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* --- Article lists ------------------------------------------------------- */

.article-list { list-style: none; padding: 0; margin: 0; }

.article-item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  display: flex;
  gap: 20px;
}

.article-item:first-child { padding-top: 0; }
.article-item:last-child { border-bottom: none; padding-bottom: 0; }

.rank {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-3);
  width: 22px;
  flex: 0 0 auto;
  padding-top: 3px;
}

.article-body { min-width: 0; flex: 1; }

.article-title {
  color: var(--heading);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: 0 0 7px;
  line-height: 1.28;
}

.article-title a { text-decoration: none; }
.article-title a:hover { color: var(--accent); }

.article-summary {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 11px;
  line-height: 1.6;
  max-width: var(--measure);
}

.article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.article-meta a { color: var(--ink-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius);
  color: var(--ink);
}

.chip--real  { background: var(--accurate-wash); }
.chip--mixed { background: var(--mixed-wash); }
.chip--fake  { background: var(--fabricated-wash); }

.pickup { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }

/* --- Article detail ------------------------------------------------------ */

.verdict-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border-left: 2px solid var(--mark, var(--ink-3));
}

.verdict-banner--real  { background: var(--accurate-wash);   --mark: var(--accurate); }
.verdict-banner--mixed { background: var(--mixed-wash);      --mark: var(--mixed); }
.verdict-banner--fake  { background: var(--fabricated-wash); --mark: var(--fabricated); }

.verdict-title {
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 4px;
}

.verdict-conf { font-size: 13.5px; color: var(--ink-2); margin: 0; }

.signal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.signal-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--rule);
}

.signal-table td { padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.signal-table tr:last-child td { border-bottom: none; }

.signal-table .num {
  text-align: right;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  width: 60px;
  color: var(--ink);
  font-size: 16px;
}

.signal-name { font-weight: 600; font-size: 13.5px; }
.signal-desc { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }

.meter { width: 150px; height: 3px; background: var(--rule); overflow: hidden; }
.meter-fill { height: 100%; background: var(--accent); }

.evidence { list-style: none; padding: 0; margin: 0; }
.evidence li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 14px; }
.evidence li:last-child { border-bottom: none; }

.assess {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
  height: fit-content;
  flex: 0 0 auto;
  color: var(--ink);
}

.assess--supported    { background: var(--accurate-wash); }
.assess--unverifiable { background: var(--paper-sunk); color: var(--ink-2); }
.assess--unsupported  { background: var(--mixed-wash); }
.assess--contradicted { background: var(--fabricated-wash); }

.claim { font-size: 14.5px; margin: 0 0 4px; }
.claim-note { font-size: 13px; color: var(--ink-2); margin: 0; }

.caveats {
  background: var(--paper-sunk);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.caveats ul { margin: 0; padding-left: 18px; }
.caveats li { margin-bottom: 7px; }
.caveats li:last-child { margin-bottom: 0; }

.prose { font-size: 15.5px; color: var(--ink-2); max-width: var(--measure); line-height: 1.68; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose--serif { font-family: var(--serif); font-size: 17px; }
.prose strong { color: var(--ink); }

/* --- Tables -------------------------------------------------------------- */

.table { width: 100%; border-collapse: collapse; font-size: 13px; }

.table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--rule);
}

.table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  vertical-align: top;
}

.table td.num { font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; }
.table tr:last-child td { border-bottom: none; }

.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius);
}

.pill--ok   { background: var(--accurate-wash); color: var(--ink); }
.pill--bad  { background: var(--fabricated-wash); color: var(--ink); }
.pill--warn { background: var(--mixed-wash); color: var(--ink); }

.btn {
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.btn:hover { border-color: var(--silver); color: var(--accent); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn--primary:hover:not([disabled]) { opacity: 0.86; color: var(--paper); }

.empty { text-align: center; padding: 64px 24px; color: var(--ink-3); font-size: 14.5px; }

.empty strong {
  display: block;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 21px;
  margin-bottom: 8px;
  font-weight: 600;
}

.back {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 600;
}

.back:hover { color: var(--accent); }

footer {
  margin-top: 72px;
  background: var(--navy);
  border-top: 1px solid var(--silver);
  padding: 40px 0 52px;
  font-size: 12.5px;
  color: var(--silver-light);
  line-height: 1.7;
}

footer a { color: var(--white); text-decoration-color: var(--silver); }
footer a:hover { text-decoration-color: var(--white); }
footer .wrap > div { max-width: var(--measure); }

.disclaimer {
  background: var(--paper-sunk);
  border-left: 2px solid var(--rule-strong);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 32px;
  line-height: 1.6;
}

.disclaimer strong { color: var(--ink); }

/* --- Social review ------------------------------------------------------- */

.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.slide-thumb { margin: 0; }
.slide-thumb--vertical img { aspect-ratio: 1080 / 1920; }

.slide-thumb img {
  width: 100%;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  border: 1px solid var(--rule);
  display: block;
  background: var(--paper-sunk);
}

.slide-thumb figcaption {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

.caption-box {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.68;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 460px;
  overflow-y: auto;
}

.decision-form { display: flex; flex-direction: column; gap: 16px; }

.note-input {
  font: inherit;
  font-size: 13.5px;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.note-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.decision-buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* --- Tooltip ------------------------------------------------------------- */

.tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 260px;
  opacity: 0;
  transition: opacity 90ms ease;
}

.tip[data-show="1"] { opacity: 1; }
.tip b { font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- Debrief bullets ------------------------------------------------------ */

.debrief-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  max-width: var(--measure);
}

.debrief-bullets li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 15px;
  font-size: 16.5px;
  line-height: 1.52;
  color: var(--ink);
}

/* A brass rule rather than a bullet glyph — quieter, and it echoes the
 * hairline under the masthead. */
.debrief-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 1px;
  background: var(--silver);
}

.debrief-bullets li:last-child { margin-bottom: 0; }

.read-full {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--navy-300);
  padding-bottom: 3px;
}

.read-full:hover { border-bottom-color: var(--accent); }

/* --- Charts --------------------------------------------------------------- */

.chart-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 820px) { .chart-grid { grid-template-columns: 1fr; gap: 36px; } }

.chart { margin: 0; }
.chart--wide { margin-top: 44px; }

.chart-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 16px;
}

.chart-svg { width: 100%; height: auto; display: block; }
.chart-tick { font-size: 10px; fill: var(--ink-3); font-family: var(--sans); }

.tier-bar { display: flex; gap: 2px; height: 20px; }
.tier-seg { min-width: 2px; transition: opacity 140ms ease; }
.tier-seg:hover { opacity: 0.8; }
.tier-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tier-key { list-style: none; padding: 0; margin: 16px 0 0; }

.tier-key li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 5px 0;
}

.tier-dot { width: 8px; height: 8px; flex: 0 0 auto; transform: translateY(1px); }
.tier-name { flex: 1; }
.tier-pct { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.reach-list { list-style: none; padding: 0; margin: 0; }

.reach-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 28px;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.reach-row:last-child { border-bottom: none; }

.reach-title {
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reach-title:hover { color: var(--accent); }
.reach-track { height: 6px; background: var(--paper-sunk); }
.reach-fill { display: block; height: 100%; }
.reach-fill--real  { background: var(--accurate); }
.reach-fill--mixed { background: var(--mixed); }
.reach-fill--fake  { background: var(--fabricated); }

.reach-count {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .reach-row { grid-template-columns: minmax(0, 1fr) 70px 24px; gap: 10px; }
}

/* The trend legend reports the right-hand edge of the chart — one refresh —
 * which is not the same figure as the 24-hour headline above it. Saying so
 * costs one line and prevents the two numbers looking contradictory. */
.legend-note {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* --- Language switcher ---------------------------------------------------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-opt {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink-3);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.lang-opt:first-child { border-left: none; }
.lang-opt:hover { color: var(--accent); background: var(--paper-sunk); }

/* The active language is a span, not a link: it reads as state rather than as
 * somewhere to go, and there is nothing to navigate to. */
.lang-opt.is-current {
  color: var(--paper);
  background: var(--accent);
  cursor: default;
}

/* Simplified Chinese has no coverage in the Latin serif, so the display face
 * is swapped wholesale rather than letting the browser substitute per glyph —
 * which produces visibly mismatched stroke weights mid-headline. */
:root[lang="zh"] {
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", "PingFang SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* CJK sets tighter than Latin at the same size; loosen it back out. */
:root[lang="zh"] h1,
:root[lang="zh"] .debrief h3,
:root[lang="zh"] .article-title { letter-spacing: 0; line-height: 1.35; }

:root[lang="zh"] .lede,
:root[lang="zh"] .debrief-bullets li,
:root[lang="zh"] .prose { line-height: 1.85; }

/* Letterspaced uppercase is a Latin convention; applied to CJK it just adds
 * gaps between characters. */
:root[lang="zh"] h2,
:root[lang="zh"] .tile-label,
:root[lang="zh"] .chart-title { letter-spacing: 0.04em; }

/* Korean gets its own face rather than sharing the Chinese one. Simplified
 * Chinese fonts do carry Hangul, so nothing looks broken if they are shared —
 * which is the problem: the shapes and metrics are not the Korean ones, and
 * the result reads as subtly wrong to someone who knows the script. */
:root[lang="ko"] {
  --serif: "Noto Serif KR", "Source Han Serif K", "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Myeongjo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

/* Hangul sets tighter than Latin at the same size, as CJK does, but it wraps
 * at word boundaries rather than between any two characters — so it needs the
 * looser leading without the tighter tracking that suits Chinese. */
:root[lang="ko"] h1,
:root[lang="ko"] .debrief h3,
:root[lang="ko"] .article-title { letter-spacing: -0.01em; line-height: 1.4; }

:root[lang="ko"] .lede,
:root[lang="ko"] .debrief-bullets li,
:root[lang="ko"] .prose { line-height: 1.8; }

:root[lang="ko"] h2,
:root[lang="ko"] .tile-label,
:root[lang="ko"] .chart-title { letter-spacing: 0.04em; }

/* Korean wraps on spaces, so a long unbroken clause can overflow a narrow
 * tile or chip; keep-all stops a word being split mid-syllable-block. */
:root[lang="ko"] { word-break: keep-all; }

/* --- Lookup --------------------------------------------------------------- */

/* One field and one button, sized so the field is obviously the subject and
 * the button obviously secondary. Silver hairline, navy on focus: the accent
 * is the only place the palette allows a colour change on interaction. */
.lookup { display: flex; gap: 0; margin: 24px 0 8px; max-width: var(--measure); }

.lookup-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-right: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.lookup-input::placeholder { color: var(--ink-3); opacity: 0.85; }
.lookup-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.lookup-go {
  flex: 0 0 auto;
  padding: 14px 24px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
}

.lookup-go:hover { opacity: 0.88; }

/* A label that screen readers need and sighted readers do not: the
 * placeholder is not a label, and a field with no label is unusable without
 * sight. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Per-domain record. Bars are deliberately small: this describes an outlet,
 * not the article the reader asked about, and sizing it like a verdict would
 * invite reading it as one. */
.record-list { list-style: none; margin: 16px 0 0; padding: 0; }
.record-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}

.record-n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  min-width: 28px;
  text-align: right;
  color: var(--ink-2);
}

.record-bar {
  flex: 1 1 auto;
  height: 6px;
  background: var(--paper-sunk);
  border-radius: 1px;
  overflow: hidden;
}

.record-fill { display: block; height: 100%; }
.record-fill--real { background: var(--accurate); }
.record-fill--mixed { background: var(--mixed); }
.record-fill--fake { background: var(--fabricated); }

.group-head {
  margin: 26px 0 10px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.resource-list { list-style: none; margin: 0; padding: 0; }
.resource-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.resource-list li:last-child { border-bottom: none; }
.resource-list li:first-child { padding-top: 0; }

.resource-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.resource-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: var(--measure);
}

@media (max-width: 560px) {
  .lookup { flex-direction: column; }
  .lookup-input { border-right: 1px solid var(--rule-strong); }
}

/* --- Contact form --------------------------------------------------------- */

.contact-form { max-width: var(--measure); margin: 26px 0 0; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field .opt {
  margin-left: 6px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-3);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { resize: vertical; line-height: 1.6; min-height: 150px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* The select needs its own arrow once appearance is stripped. */
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.field-row { display: flex; gap: 18px; }
.field-row .field { flex: 1 1 0; min-width: 0; }

.field-err {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--fabricated);
}

/* Honeypot: off-screen rather than display:none, because some bots skip
 * fields that are not rendered at all. aria-hidden and tabindex keep it away
 * from anyone using a keyboard or a screen reader. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--rule-strong);
  background: var(--paper-raised);
  font-size: 14.5px;
  line-height: 1.6;
}

.notice--ok { border-left-color: var(--accurate); }
.notice--bad { border-left-color: var(--fabricated); }
.notice strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* Operator inbox. Plain and dense -- it is read by one person looking for
 * what needs answering, not browsed. */
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.msg:last-child { border-bottom: none; }
.msg.is-done { opacity: 0.5; }

.msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.msg-topic {
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}

.msg-about { font-size: 12.5px; margin-bottom: 6px; word-break: break-all; }
.msg-body { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; }

.msg-btn {
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
}
.msg-btn:hover { border-color: var(--accent); color: var(--ink); }

.contact-link { margin-top: 18px; font-size: 12px; }
.contact-link a { text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.contact-link a:hover { border-bottom-color: var(--accent); }

@media (max-width: 560px) {
  .field-row { flex-direction: column; gap: 0; }
}

/* --- Range selector ------------------------------------------------------ */

/* One control row above everything it scopes, never inside a card. */
.range-switch { display: flex; gap: 0; margin: 20px 0 0; flex-wrap: wrap; }

.range-opt {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 13px;
  text-decoration: none;
  color: var(--ink-3);
  border: 1px solid var(--border);
  border-left-width: 0;
  white-space: nowrap;
}

.range-opt:first-child { border-left-width: 1px; border-radius: var(--radius) 0 0 var(--radius); }
.range-opt:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.range-opt:hover { color: var(--accent); background: var(--paper-sunk); }
.range-opt.is-current { color: var(--paper); background: var(--accent); border-color: var(--accent); cursor: default; }

.pagination {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.page-link { color: var(--accent); text-decoration: none; }
.page-link:hover { text-decoration: underline; }
.page-link.is-off { color: var(--ink-3); opacity: 0.45; }
.page-at { color: var(--ink-3); margin-left: auto; }

/* Machine-translated copy is labelled where it appears. A reader comparing a
 * translated figure against the English should know which one is the original. */
.mt-flag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 6px;
}

.section-more {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-more a { color: var(--accent); text-decoration: none; }
.section-more a:hover { text-decoration: underline; }

/* Deliberately quiet: the operator needs a way back in, a reader does not
 * need to wonder what it is. */
/* Footer visit counter. Tabular figures so the number does not jitter the
 * line as digits change, and the silver rule above it is the one place a
 * hairline is allowed to do the separating. */
.visit-count {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.visit-n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.visit-note { text-transform: none; letter-spacing: 0.02em; opacity: 0.7; }

.operator-link { margin-top: 14px; font-size: 11px; opacity: 0.5; }
.operator-link a { text-decoration: none; }
.operator-link a:hover { opacity: 1; text-decoration: underline; }

/* --- State map ----------------------------------------------------------- */

.map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }

/* Equal-area tile cartogram. Real borders would encode land area as visual
 * weight, and the quantity here is articles assessed, not square mileage. */
.tile-map {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 3px;
  aspect-ratio: 12 / 8;
}

.state-tile {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--fill, var(--paper-sunk));
  border-radius: 1px;
  text-decoration: none;
  transition: outline-color 120ms ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
  min-height: 0;
}

.state-tile:hover, .state-tile:focus-visible { outline-color: var(--accent); z-index: 2; }
.state-tile.is-empty { background: var(--paper-sunk); opacity: 0.55; }

/* Label ink is chosen per shade in charts.py rather than by a blend mode.
 * mix-blend-mode produced unreadable labels across the middle of the ramp,
 * which is most of the map. */
.state-code {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tile-ink);
}

.state-tile.on-dark .state-code { color: var(--tile-ink-inv); }
.state-tile.is-empty .state-code { color: var(--ink-3); opacity: 0.7; }

.state-flag {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fabricated);
}

.state-flag.is-inline { position: static; display: inline-block; }

.map-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  font-size: 10.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.map-legend-step { width: 20px; height: 8px; }
.map-legend-label { letter-spacing: 0.06em; }
.map-legend-sep { width: 1px; height: 12px; background: var(--rule); margin: 0 8px; }

.state-panel {
  border-left: 1px solid var(--rule);
  padding-left: 26px;
  min-height: 190px;
}

@media (max-width: 860px) {
  .state-panel { border-left: none; border-top: 1px solid var(--rule); padding: 22px 0 0; }
}

.state-panel-hint { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.6; }

.state-panel-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--heading);
  margin: 0 0 4px;
  font-weight: 600;
}

.state-panel-count { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; }
.state-panel-bar { display: flex; gap: 2px; height: 10px; margin-bottom: 16px; }
.state-panel-bar .sp-real { background: var(--accurate); }
.state-panel-bar .sp-mixed { background: var(--mixed); }
.state-panel-bar .sp-fake { background: var(--fabricated); }

.state-panel-key { list-style: none; padding: 0; margin: 0 0 20px; }
.state-panel-key li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 4px 0;
}
.state-panel-key b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }

.figure-list { list-style: none; padding: 0; margin: 0; }
.figure-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.figure-list li:last-child { border-bottom: none; }
.figure-name { color: var(--ink); }
.figure-count { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }

.link-list { list-style: none; padding: 0; margin: 14px 0 0; }
.link-list li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.link-list li:last-child { border-bottom: none; }
.link-list a { color: var(--accent); text-decoration: none; }
.link-list a:hover { text-decoration: underline; }

/* --- Operator stat row --------------------------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat-cell { padding: 20px 18px; border-left: 1px solid var(--rule); }
.stat-row .stat-cell:first-child { border-left: none; padding-left: 0; }

.stat-cell-value {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.stat-unit { font-size: 17px; color: var(--ink-3); margin-left: 1px; }

.stat-cell-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 9px;
  font-weight: 600;
}

.sub-head {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin: 28px 0 12px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; gap: 20px; } }

/* --- Races and candidates ------------------------------------------------ */

.race-list { list-style: none; padding: 0; margin: 0; }

.race-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}

.race-row:last-child { border-bottom: none; }
.race-name { font-size: 15.5px; color: var(--ink); text-decoration: none; }
.race-name:hover { color: var(--accent); }
.race-meta { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

/* Party marks use the brand ramp, not red/blue. Partisan colour on a
 * non-partisan site is an editorial statement, and the letter already carries
 * the information. */
.poll-party {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  vertical-align: 2px;
  margin-left: 5px;
}

.poll { border-top: 1px solid var(--rule); padding: 22px 0 24px; }
.poll:first-of-type { border-top: none; padding-top: 4px; }

.poll-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.poll-source { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.poll-source:hover { text-decoration: underline; }
.poll-date { font-size: 11.5px; color: var(--ink-3); margin-left: 9px; }
.poll-meta { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.poll-bars { display: flex; flex-direction: column; gap: 9px; }

.poll-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 210px) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

@media (max-width: 620px) {
  .poll-bar-row { grid-template-columns: minmax(96px, 1fr) minmax(0, 1.2fr) 40px; gap: 9px; }
}

.poll-bar-name { font-size: 13.5px; }
.poll-cand { color: var(--ink); text-decoration: none; }
.poll-cand:hover { color: var(--accent); text-decoration: underline; }
.poll-other { color: var(--ink-3); }

.poll-track { height: 16px; background: var(--paper-sunk); }
.poll-fill { display: block; height: 100%; background: var(--navy-400); }
.poll-fill.party-fill-dem { background: var(--navy-600); }
.poll-fill.party-fill-rep { background: var(--navy-300); }

.poll-pct {
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}

.poll-attrib {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.poll-attrib a { color: var(--ink-2); }

.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.cand-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 140ms ease;
}

.cand-card:hover { border-color: var(--silver); }

.cand-photo, .cand-hero-photo {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-sunk);
  display: grid;
  place-items: center;
}

.cand-photo img, .cand-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.cand-initials {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-3);
  font-weight: 600;
}

.cand-body { min-width: 0; }
.cand-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.cand-tag {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 600;
}
.cand-summary { font-size: 13px; color: var(--ink-2); margin: 9px 0 0; line-height: 1.55; }
.cand-summary--empty { color: var(--ink-3); font-style: italic; }

.cand-hero { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 36px; }
.cand-hero-photo { width: 110px; height: 110px; }
.cand-hero-body h1 { margin-bottom: 8px; }
@media (max-width: 620px) { .cand-hero { flex-direction: column; gap: 18px; } }

.priority-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.priority-list li {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
}

/* A state with no race this cycle is a fact, not missing data, so it reads as
 * struck out rather than merely faint. */
.state-tile.is-norace {
  background: transparent;
  border: 1px dashed var(--rule-strong);
  opacity: 0.5;
  cursor: default;
}

.state-tile.is-norace .state-code { color: var(--ink-3); }
.state-tile.is-norace:hover { outline-color: transparent; opacity: 0.75; }

.state-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accurate);
}

.state-dot.is-inline { position: static; display: inline-block; }

.norace-key {
  display: inline-block;
  width: 12px;
  height: 9px;
  border: 1px dashed var(--rule-strong);
  vertical-align: -1px;
}

#race-panel .state-panel-key li {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
}

#race-panel .state-panel-key li:last-child { border-bottom: none; }

/* --- Small-text legibility ------------------------------------------------
 *
 * Everything under 14px carries more weight than the body copy, and nothing
 * sits below 11px. Small type at weight 400 is the single biggest legibility
 * problem a layout like this has: the stems get thin enough that low-vision
 * readers, poor screens and bright rooms all lose them, and it is exactly the
 * text that carries the qualifications -- confidence figures, source
 * attribution, the caveats under a verdict.
 *
 * Collected in one block rather than edited into fifty rules so the policy is
 * visible in one place and a new small-text class can join it by name. It sits
 * at the end of the file so it wins on cascade order without !important.
 *
 * Weight 500, not 450: the stack is system fonts, which ship discrete weights.
 * 450 would round to 400 on most of them and change nothing.
 *
 * Headings, the wordmark and the serif display face are deliberately absent --
 * they are large enough that weight is a style choice there, not an access
 * one, and the request was to leave them alone. */

.article-meta,
.caption-box,
.caveats,
.chart-tick,
.claim-note,
.contact-link,
.debrief-foot,
.field label,
.field-err,
.figure-count,
.group-head,
.legend,
.lookup-go,
.map-legend,
.meta-line,
.msg-about,
.msg-btn,
.msg-head,
.note-input,
.operator-link,
.poll-attrib,
.poll-bar-name,
.poll-date,
.poll-meta,
.priority-list li,
.race-meta,
.reach-count,
.reach-title,
.resource-desc,
.scope-note,
.signal-desc,
.signal-table,
.slide-thumb figcaption,
.split-note,
.stack-empty,
.state-panel-count,
.state-panel-hint,
.state-panel-key li,
#race-panel .state-panel-key li,
.theme-toggle,
.tier-key li,
.tile-blurb,
.tile-sub,
.verdict-conf,
footer {
  font-weight: 500;
}

/* Nothing below 11px. Below that, weight stops rescuing it. */
.chart-tick { font-size: 11px; }
.map-legend,
.slide-thumb figcaption,
.theme-toggle { font-size: 11.5px; }

/* The state tiles are the one place 9.5px has to stay -- a two-letter code in
 * a grid cell that cannot grow -- so it gets weight instead, and its contrast
 * is already measured by tools/check_map_contrast.py. */
.state-code { font-weight: 800; }

/* The two 9.5px tags are short uppercase labels, so weight already carries
 * them, but 9.5px is below where that holds on a dense screen. The map tile
 * code stays at 9.5 because its grid cell cannot grow; it takes weight 800
 * above instead. */
.assess,
.cand-tag { font-size: 10.5px; }

/* The last of the sub-floor labels. All uppercase and already weight 600, so
 * half a pixel is the whole fix; none of them sits in a box that cannot take
 * it. */
.mt-flag,
.pill,
.poll-party,
.signal-table th,
.stack-seg .seg-label,
.stat-cell-label,
.table th { font-size: 10.5px; }
