/* ═══════════════════════════════════════════════════════════════════
   UFOPress — fonts.css  (v2 theme)
   The redesign uses three families:
     Source Serif 4  → headlines + article body (serif voice)
     Libre Franklin  → UI, nav, dek, buttons (sans voice)
     IBM Plex Mono   → meta, labels, data (mono voice)

   The page <head> loads these from Google Fonts so the design renders
   faithfully out of the box. If you want ZERO external requests on the
   public site (the old theme's philosophy), do this instead:

     1. Download WOFF2 files (open licenses):
          Source Serif 4 → https://fontsource.org/fonts/source-serif-4
          Libre Franklin → https://fontsource.org/fonts/libre-franklin
          IBM Plex Mono  → https://fontsource.org/fonts/ibm-plex-mono
     2. Drop them in /fonts/ on the bucket.
     3. Remove the Google Fonts <link> from the templates' <head>.
     4. Prepend a url() source to each @font-face below.

   Until then these @font-face blocks just map to graceful system
   fallbacks, so nothing breaks if the Google link is removed.
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('Source Serif 4'), local('SourceSerif4-Regular'), local('Georgia'), local('serif');
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap;
  src: local('Source Serif 4 SemiBold'), local('SourceSerif4-SemiBold'), local('Georgia'), local('serif');
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 700; font-display: swap;
  src: local('Source Serif 4 Bold'), local('SourceSerif4-Bold'), local('Georgia'), local('serif');
}
@font-face {
  font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: local('Source Serif 4 Italic'), local('SourceSerif4-Italic'), local('Georgia Italic'), local('serif');
}

@font-face {
  font-family: 'Libre Franklin'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('Libre Franklin'), local('LibreFranklin-Regular'), local('-apple-system'), local('Segoe UI'), local('Arial'), local('sans-serif');
}
@font-face {
  font-family: 'Libre Franklin'; font-style: normal; font-weight: 500; font-display: swap;
  src: local('Libre Franklin Medium'), local('LibreFranklin-Medium'), local('-apple-system'), local('Segoe UI'), local('Arial'), local('sans-serif');
}
@font-face {
  font-family: 'Libre Franklin'; font-style: normal; font-weight: 600; font-display: swap;
  src: local('Libre Franklin SemiBold'), local('LibreFranklin-SemiBold'), local('-apple-system'), local('Segoe UI'), local('Arial'), local('sans-serif');
}
@font-face {
  font-family: 'Libre Franklin'; font-style: normal; font-weight: 700; font-display: swap;
  src: local('Libre Franklin Bold'), local('LibreFranklin-Bold'), local('-apple-system'), local('Segoe UI'), local('Arial'), local('sans-serif');
}

@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('IBM Plex Mono'), local('IBMPlexMono'), local('SFMono-Regular'), local('Menlo'), local('monospace');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: local('IBM Plex Mono Medium'), local('IBMPlexMono-Medium'), local('SFMono-Regular'), local('Menlo'), local('monospace');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: local('IBM Plex Mono SemiBold'), local('IBMPlexMono-SemiBold'), local('SFMono-Regular'), local('Menlo'), local('monospace');
}

/* ═══════════════════════════════════════════════════════════════════
   UFOPress — main.css  (v2 theme)
   Design system: "Where the signal is" — modern newsroom, content-first.
   Light paper base, one signal-blue accent, monospace data voice,
   optional dark mode via <html data-theme="dark">.
   Replaces the previous dark "Authoritative editorial" system entirely.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --paper: #ffffff;  --surface: #f5f6f8;  --surface-2: #eceef2;
  --ink: #16191d;    --ink-2: #545b64;    --ink-3: #878d96;
  --line: #e4e7ec;   --line-strong: #cdd2da;
  --accent: #1d6fb8; --accent-ink: #155489; --accent-tint: #eaf2fb;
  --live: #c8362a;   --confirmed: #1d7a4d; --reported: #5f6873; --disputed: #a96e12;
  --shadow: rgba(20,28,40,.08); --mark: #ffe39e;

  --maxw: 1280px;
}

[data-theme="dark"] {
  --paper: #0e1116;  --surface: #161a20;  --surface-2: #1e232b;
  --ink: #e7eaee;    --ink-2: #a6aeb8;    --ink-3: #727b86;
  --line: #252b33;   --line-strong: #343c46;
  --accent: #5aa2e0; --accent-ink: #9cc6ef; --accent-tint: #16263a;
  --live: #e2685c;   --confirmed: #54b487; --reported: #9aa3ad; --disputed: #d6a44a;
  --shadow: rgba(0,0,0,.45); --mark: #4a3c14;
}

/* ── Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-tint); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

@keyframes ufopulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,54,42,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(200,54,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,54,42,0); }
}
.pulse { animation: ufopulse 2.4s infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* small shared atoms */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink);
}

/* category badge */
.cat-badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent-tint);
  padding: 3px 8px; border-radius: 2px; font-weight: 600; white-space: nowrap;
}

/* verification status pill */
.verify { display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.verify .dot.confirmed { background: var(--confirmed); }
.verify .dot.reported  { background: var(--reported); }
.verify .dot.disputed  { background: var(--disputed); }

/* buttons */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer;
  border-radius: 4px; padding: 11px 18px; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-3); }

/* ── Header / masthead ─────────────────────────────────────────────── */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 24px 18px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand-mark { position: relative; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-mark .ring { position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 50%; }
.brand-mark .ring-2 { position: absolute; inset: 8px; border: 1.5px solid var(--accent); opacity: .45; border-radius: 50%; }
.brand-mark .core { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: -.015em; }
.brand-tagline { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.header-tools { display: flex; align-items: center; gap: 10px; }

.header-search {
  display: flex; align-items: center; gap: 8px; min-width: 170px;
  border: 1px solid var(--line); border-radius: 4px; padding: 8px 11px;
  background: var(--surface); color: var(--ink-3); font-size: 13px; text-decoration: none;
}
.header-search .magnifier { width: 13px; height: 13px; border: 1.5px solid var(--ink-3);
  border-radius: 50%; flex: none; }

.theme-toggle {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 12px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--line-strong); }

/* category nav */
.category-nav {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40; background: var(--paper);
}
.nav-inner {
  display: flex; align-items: center; gap: 26px; overflow-x: auto;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { height: 0; display: none; }
.nav-link {
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 14px 0; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { font-weight: 600; color: var(--ink); border-bottom-color: var(--accent); }
.nav-link.developing { display: inline-flex; align-items: center; gap: 7px; }
.nav-link.developing .dot { background: var(--live); }

/* ── Layout grids ──────────────────────────────────────────────────── */
.home-layout {
  display: grid; gap: 36px; align-items: start;
  grid-template-columns: 230px minmax(0,1fr) 300px;
  grid-template-areas: 'wire lead rail';
}
.split-layout {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: minmax(0,1fr) 312px;
  grid-template-areas: 'body rail';
}
.area-wire { grid-area: wire; min-width: 0; }
.area-lead { grid-area: lead; min-width: 0; }
.area-rail { grid-area: rail; min-width: 0; }
.area-body { grid-area: body; min-width: 0; }

@media (max-width: 1180px) {
  .home-layout { grid-template-columns: 208px minmax(0,1fr); grid-template-areas: 'wire lead' 'rail rail'; }
  .split-layout { grid-template-columns: 1fr; grid-template-areas: 'body' 'rail'; }
}
@media (max-width: 740px) {
  .home-layout { grid-template-columns: 1fr; grid-template-areas: 'lead' 'wire' 'rail'; }
  .masthead { flex-wrap: wrap; gap: 14px; }
}

/* ── Daily brief bar ───────────────────────────────────────────────── */
.daily-brief {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding: 20px 0 15px; margin-bottom: 26px;
}
.brief-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); }
.brief-day { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1; }
.brief-date { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.brief-week { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.brief-stats { margin-left: auto; display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3); flex-wrap: wrap; }
.brief-stats b { color: var(--ink); font-size: 14px; font-weight: 600; }
.brief-sep { width: 1px; height: 13px; background: var(--line-strong); }

/* ── The Wire (home left rail) ─────────────────────────────────────── */
.wire-sticky { position: sticky; top: 66px; }
.wire-head { display: flex; align-items: center; justify-content: space-between;
  border-top: 2px solid var(--ink); padding-top: 9px; }
.wire-title { font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); }
.wire-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--live); }
.wire-live .dot { width: 6px; height: 6px; background: var(--live); }
.wire-list { border-left: 2px solid var(--line); padding-left: 15px; margin-top: 10px; }
.wire-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative; }
.wire-item:hover { opacity: .65; }
.wire-item .node { position: absolute; left: -20px; top: 14px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--line-strong); }
.wire-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  font-family: var(--mono); font-size: 10px; }
.wire-meta time { color: var(--accent-ink); }
.wire-meta .cat { color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.wire-headline { font-family: var(--serif); font-size: 13.5px; line-height: 1.32; color: var(--ink); margin-bottom: 3px; }
.wire-src { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); }

/* ── Lead column ───────────────────────────────────────────────────── */
.signal-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.hero-article { border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 30px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
.hero-meta time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.hero-title { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -.015em;
  margin: 0 0 16px; font-size: clamp(30px, 3.5vw, 46px); }
.hero-title a { color: var(--ink); text-decoration: none; }
.hero-title a:hover { color: var(--accent-ink); }
.hero-dek { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 22px; max-width: 60ch; }

/* verification strip (hero + article) */
.verify-strip { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; background: var(--surface); margin: 0 0 22px; }
.verify-cell { flex: 1; min-width: 120px; padding: 11px 16px; border-right: 1px solid var(--line); }
.verify-cell:last-child { border-right: none; }
.verify-cell .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.verify-cell .v { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.verify-cell .v.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.verify-cell .v.prov { font-size: 12.5px; font-weight: 400; }
.confidence { display: inline-flex; align-items: center; gap: 8px; }
.confidence .bars { display: inline-flex; gap: 3px; }
.confidence .bars span { width: 15px; height: 5px; border-radius: 1px; background: var(--line-strong); }
.confidence .bars span.on { background: var(--accent); }
.confidence .label { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }

/* hero figure + read-more */
.hero-figure { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px;
  background: var(--surface); margin-bottom: 11px; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.figcaption { font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  color: var(--accent-ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.read-more:hover { gap: 11px; }

/* ── Tease cards (home secondary grid) ─────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px 26px; }
@media (max-width: 740px) { .card-grid { grid-template-columns: 1fr; } }
.tease { text-decoration: none; color: inherit; display: flex; gap: 14px; }
.tease-thumb { flex: none; width: 96px; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 4px; background: var(--surface); }
.tease-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tease-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tease-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.tease-meta time { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.tease-title { font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.24;
  margin: 0; color: var(--ink); }
.tease:hover .tease-title { color: var(--accent-ink); }

/* ── Developing section (home) ─────────────────────────────────────── */
.section-rule { margin-top: 38px; border-top: 2px solid var(--ink); padding-top: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head .label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.section-head .more { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); text-decoration: none; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.dev-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
.dev-row .srcs { flex: none; font-family: var(--mono); font-size: 11px; color: var(--accent-ink); width: 58px; }
.dev-row .title { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.25;
  color: var(--ink); text-decoration: none; display: block; margin-bottom: 4px; }
.dev-row .title:hover { color: var(--accent-ink); }
.dev-row .upd { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ── Rail widgets ──────────────────────────────────────────────────── */
.rail-block { margin-bottom: 24px; }
.rail-head { border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.verified-item { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.verified-item .dot { width: 7px; height: 7px; margin-top: 6px; }
.verified-item .title { font-family: var(--serif); font-size: 14.5px; line-height: 1.3; font-weight: 500;
  color: var(--ink); text-decoration: none; display: block; margin-bottom: 3px; }
.verified-item .title:hover { color: var(--accent-ink); }
.verified-item .status { font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); }

.otd { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.otd-head { background: var(--ink); color: var(--paper); padding: 13px 16px; }
.otd-head .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; opacity: .65; margin-bottom: 3px; }
.otd-head .t { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.otd-list { list-style: none; margin: 0; padding: 4px 16px 8px; }
.otd-item { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.otd-item:last-child { border-bottom: none; }
.otd-item .year { flex: none; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); width: 36px; }
.otd-item .text { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }

.newsletter { border: 1px solid var(--accent); border-radius: 6px; padding: 20px; background: var(--accent-tint); margin-bottom: 24px; }
.newsletter h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin: 0 0 7px; color: var(--ink); }
.newsletter p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 14px; }
.newsletter .field { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 11px 12px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.newsletter .btn-primary { width: 100%; }
.newsletter .formid { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); margin-top: 10px; letter-spacing: .04em; }

/* ad slots */
.ad-slot { border: 1px dashed var(--line-strong); border-radius: 5px; background: var(--surface);
  min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; color: var(--ink-3); margin-bottom: 24px; }
.ad-slot .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.ad-slot .size { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.ad-slot .unit { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.ad-slot.inline { min-height: 120px; }

/* ── Article page ──────────────────────────────────────────────────── */
.article-back { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-decoration: none; }
.article-header { margin: 16px 0 24px; max-width: 760px; }
.article-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-eyebrow time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.article-title { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.012em;
  margin: 0 0 18px; font-size: clamp(29px, 3.6vw, 43px); }
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.byline strong { color: var(--ink); }
.provenance-note { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 9px; letter-spacing: .02em; }

.article-figure { margin: 0 0 28px; }
.article-figure .frame { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--surface); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
.article-figure figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 9px; line-height: 1.45; font-style: italic; }
.article-figure figcaption .src { font-family: var(--mono); font-style: normal; }

.article-body { max-width: 720px; font-size: 18.5px; line-height: 1.72; color: var(--ink); }
.article-body p { margin: 0 0 24px; }
.article-body h2 { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.2;
  margin: 38px 0 14px; color: var(--ink); }
.article-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body em { font-style: italic; }
.article-body blockquote { margin: 34px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 23px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.article-body blockquote cite { display: block; font-family: var(--mono); font-style: normal;
  font-size: 12px; font-weight: 400; color: var(--ink-3); margin-top: 14px; letter-spacing: .02em; }

/* ── Tier 1 typographic pass ───────────────────────────────────────── */
/* reading-time in the eyebrow, with a small dot separator from the date */
.article-eyebrow .read-time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.eyebrow-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); flex: none; }

/* dek / standfirst (article.summary) */
.article-dek { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5; color: var(--ink-2); margin: 0 0 22px; max-width: 40ch; }

/* drop cap — only when the body opens with prose (graceful when it opens on a heading) */
.article-body > p:first-child::first-letter { font-family: var(--serif); font-weight: 700;
  font-size: 3.3em; line-height: .82; float: left; padding: 6px 10px 0 0; color: var(--accent-ink); }

/* section kicker above an h2 — markup wired in Tier 2; CSS ready now */
.article-body h2 .kicker { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 7px; }

/* PULL QUOTE — display treatment, deliberately distinct from the source-quote
   blockquote above (centered serif + rules, no left border) so the two never
   read as the same thing. */
.article-body blockquote.pullquote { margin: 40px 0; padding: 6px 0; border-left: none;
  text-align: center; font-family: var(--serif); font-weight: 700;
  font-size: clamp(23px, 3vw, 30px); line-height: 1.28; letter-spacing: -.012em; color: var(--ink); }
.article-body blockquote.pullquote::before,
.article-body blockquote.pullquote::after { content: ""; display: block; width: 44px; height: 3px;
  background: var(--accent); }
.article-body blockquote.pullquote::before { margin: 0 auto 22px; }
.article-body blockquote.pullquote::after { margin: 22px auto 0; }
.article-body blockquote.pullquote p { margin: 0; text-wrap: balance; }
.article-body blockquote.pullquote cite { display: block; font-family: var(--mono); font-weight: 400;
  font-size: 12px; color: var(--ink-3); margin-top: 16px; letter-spacing: .02em; }

/* ── in-body modules shell (Tier 2) ────────────────────────────────── */
.article-module { margin: 38px 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden;
  background: var(--surface); max-width: 720px; }
.article-module .module-head { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* timeline module */
.timeline { padding: 8px 18px 16px; }
.tl-row { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px 0; }
.tl-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.tl-date { font-family: var(--mono); font-size: 11.5px; color: var(--accent-ink); padding-top: 2px; letter-spacing: .02em; }
.tl-date .tl-approx { display: block; color: var(--ink-3); font-style: italic; }
.tl-node { position: relative; padding-left: 22px; }
.tl-node::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent); }
.tl-node .tl-lbl { font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.4; }

/* ── "How we know this" — source cards (Tier 2) ────────────────────── */
.provenance { margin: 52px 0 0; padding-top: 26px; border-top: 2px solid var(--ink); }
.provenance > h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.provenance > .sub { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .src-grid { grid-template-columns: 1fr; } }
.src-card { border: 1px solid var(--line); border-radius: 6px; padding: 14px 15px; background: var(--surface);
  display: flex; flex-direction: column; gap: 8px; }
.src-card .st-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.src-card .wt { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: auto; }
.src-card .st-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
a.st-title:hover { color: var(--accent-ink); }
.src-card .st-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
/* credibility tier badges, strongest → weakest */
.tier { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  font-weight: 600; padding: 2px 7px; border-radius: 3px; }
.tier.t1 { color: #fff; background: var(--confirmed); }
.tier.t2 { color: var(--accent-ink); background: var(--accent-tint); border: 1px solid var(--accent); }
.tier.t3 { color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); }
.tier.t4 { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-strong); }
.tier.t5 { color: var(--ink-3); background: var(--surface-2); border: 1px dashed var(--line-strong); }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.tag { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 4px 9px; text-decoration: none; }

/* article rail */
.rail-card { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; margin-bottom: 22px; }
.rail-card h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.rail-card .body { padding: 6px 16px 10px; }
.latest-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.latest-item:last-child { border-bottom: none; }
.latest-item a { font-size: 14px; line-height: 1.4; color: var(--ink); text-decoration: none; display: block; }
.latest-item a:hover { color: var(--accent-ink); }

/* "Most Read" rail — Latest shell + a monospace rank badge */
.mostread-item { display: flex; gap: 11px; align-items: baseline; }
.mostread-item .mr-rank { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent-ink); min-width: 1.1em; text-align: right; }
.mostread-item a { flex: 1; }

/* "Who's involved" entity rail (Tier 2) — reuses the .rail-card shell */
.actor { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.actor:last-child { border-bottom: none; }
.actor .ac-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.actor .ac-av.et-person { background: var(--accent-ink); }
.actor .ac-av.et-org { background: var(--reported); }
.actor .ac-av.et-place { background: var(--disputed); }
.actor .ac-av.et-other { background: var(--ink-3); }
.actor .ac-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.actor .ac-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 3px; }
.actor .ac-bio { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.45; }

.timeline-card { border: 1px solid var(--line); border-radius: 5px; padding: 16px; margin-bottom: 22px; }
.timeline-card h3 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--line); }
.timeline li .node { position: absolute; left: -5px; top: 3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--paper); }
.timeline time { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--accent-ink);
  display: block; margin-bottom: 3px; }
.timeline p { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0; }

/* ── Category page ─────────────────────────────────────────────────── */
.page-header { max-width: 760px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.page-header .eyebrow { margin-bottom: 12px; display: block; }
.page-header h1 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 42px); }
.page-header p { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 66ch; }
.page-header .label-live { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.page-header .label-live .dot { width: 8px; height: 8px; background: var(--live); }

.cat-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 34px; }
@media (max-width: 600px) { .cat-hero { grid-template-columns: 1fr; } }
.cat-hero .img { display: block; aspect-ratio: 4/3; background: var(--surface); overflow: hidden; }
.cat-hero .img img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero .body { padding: 24px 24px 24px 0; }
@media (max-width: 600px) { .cat-hero .body { padding: 0 20px 24px; } }
.cat-hero .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.cat-hero .meta .top { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.cat-hero .meta time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.cat-hero h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.18; margin: 0 0 11px; }
.cat-hero h2 a { color: var(--ink); text-decoration: none; }
.cat-hero h2 a:hover { color: var(--accent-ink); }
.cat-hero p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; }
.cat-hero .read-more { font-size: 14px; border-bottom-width: 2px; }

.cat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 30px; }
@media (max-width: 740px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { padding: 22px 0; border-top: 1px solid var(--line); }
.cat-card .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.cat-card .meta .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.cat-card .meta time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.cat-card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.24; margin: 0 0 8px; }
.cat-card h3 a { color: var(--ink); text-decoration: none; }
.cat-card h3 a:hover { color: var(--accent-ink); }
.cat-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.page-num { font-family: var(--mono); font-size: 13px; width: 34px; height: 34px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 4px; text-decoration: none; }
.page-num.current { border-color: var(--accent); background: var(--accent); color: #fff; }
.page-next { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-left: 6px; text-decoration: none; }

/* ── Developing page ───────────────────────────────────────────────── */
.dev-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .dev-layout { grid-template-columns: 1fr; } }
.dev-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width: 560px) { .dev-grid { grid-template-columns: 1fr; } }
.dev-card { border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; }
.dev-card:hover { border-color: var(--line-strong); box-shadow: 0 2px 10px var(--shadow); }
.dev-card .status-row { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.dev-card h2 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.22; margin: 0 0 9px; }
.dev-card h2 a { color: var(--ink); text-decoration: none; }
.dev-card h2 a:hover { color: var(--accent-ink); }
.dev-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; flex: 1; }
.dev-card .tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dev-card .tags .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--accent-ink);
  background: var(--accent-tint); border: none; border-radius: 3px; padding: 3px 7px; }
.dev-card .foot { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono);
  font-size: 11px; color: var(--ink-3); padding-top: 12px; border-top: 1px solid var(--line); }
.dev-card .foot .srcs { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.dev-card .foot .srcs .dot { width: 5px; height: 5px; background: var(--accent); }

.topic-panel { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--surface); }
.topic-panel .eyebrow { font-size: 11.5px; letter-spacing: .1em; margin-bottom: 6px; display: block; }
.topic-panel h2 { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.22; margin: 0 0 18px; }
.topic-panel .timeline li { padding: 0 0 22px 24px; border-left-color: var(--line-strong); }
.topic-panel .timeline li .node { left: -6px; top: 2px; width: 10px; height: 10px; border-color: var(--surface); }
.topic-panel .timeline time { font-size: 11px; margin-bottom: 5px; }
.topic-panel .timeline p { font-size: 13.5px; line-height: 1.5; margin: 0 0 5px; }
.topic-panel .timeline .src { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* ── Search page ───────────────────────────────────────────────────── */
.search-page { max-width: 820px; }
.search-form { display: flex; gap: 10px; margin-bottom: 18px; }
.search-input {
  flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong);
  border-radius: 5px; padding: 13px 15px; background: var(--surface); font-size: 16px;
  color: var(--ink); font-family: var(--sans);
}
.search-input::placeholder { color: var(--ink-3); }
.search-submit { background: var(--accent); color: #fff; border: none; border-radius: 5px; padding: 0 22px;
  font-weight: 600; font-size: 15px; font-family: var(--sans); cursor: pointer; }
.search-submit:hover { background: var(--accent-ink); }
.search-validation { font-family: var(--mono); font-size: 12.5px; color: var(--live); margin: 0 0 14px; min-height: 1.2em; }

.search-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 14px; }
.search-count { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin: 0; }
.search-sort { display: inline-flex; align-items: center; gap: 9px; }
.search-sort .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sort-group { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; }
.sort-btn { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border: none; background: transparent; color: var(--ink-2); cursor: pointer; }
.sort-btn.is-active { background: var(--accent); color: #fff; }

.facets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.facet-chip { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 5px 11px; color: var(--ink-2); background: transparent; cursor: pointer; }
.facet-chip .count { opacity: .6; margin-left: 2px; }
.facet-chip.is-active { border-color: var(--accent); color: #fff; background: var(--accent); }

.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 20px 0; border-bottom: 1px solid var(--line); }
.result-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.result-meta .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; }
.result-meta time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.result h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.22; margin: 0 0 7px; }
.result h2 a { color: var(--ink); text-decoration: none; }
.result h2 a:hover { color: var(--accent-ink); }
.result .excerpt { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 9px; }
.result .excerpt mark { background: var(--mark); color: var(--ink); border-radius: 2px; padding: 0 2px; font-weight: 600; }
.result-foot { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.result-foot .url { color: var(--confirmed); }
.result-foot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* ── 404 ───────────────────────────────────────────────────────────── */
.error-page { padding: 80px 0 100px; display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 560px; margin: 0 auto; }
.error-tag { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--live); margin-bottom: 18px; }
.error-code { font-family: var(--serif); font-size: 88px; font-weight: 700; line-height: 1; color: var(--ink); margin-bottom: 18px; }
.error-page h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 12px; }
.error-page p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 28px; }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Prose (privacy / static) ──────────────────────────────────────── */
.prose { max-width: 720px; }
.prose .eyebrow { color: var(--ink-3); margin-bottom: 12px; display: block; }
.prose h1 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 10px; font-size: clamp(28px,3.4vw,40px); }
.prose .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin: 0 0 30px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.prose .body { font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose .body p { margin: 0 0 22px; }
.prose .body h2 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 32px 0 12px; }
.prose .body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px;
  max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; }
@media (max-width: 740px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .row { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.footer-brand .mark { position: relative; width: 30px; height: 30px; display: inline-flex;
  align-items: center; justify-content: center; flex: none; }
.footer-brand .mark .ring { position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 50%; }
.footer-brand .mark .core { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.footer-brand .name { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.footer-brand .tagline { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .06em; margin: 0 0 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 38ch; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; }
.footer-bottom .copy { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.footer-bottom .daily { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom .daily .dot { width: 6px; height: 6px; background: var(--live); }

/* page padding wrapper used by all content pages */
.page { padding: 28px 0 64px; }
.page.home { padding: 0 0 64px; }
.page.search { padding: 34px 0 64px; }
