/* ============================================================
   THE MAGNA BUREAU — v3 design system
   "Federal authority" · fbi.gov-inspired, newsroom-adapted
   Canvas #000 · cards #111 · federal gold #c9a227 · HUD gold #fddf00
   Old Glory Red #b22234 = alert semantics ONLY (BREAKING badges)
   Zero build tools. Static. Fast.
   ============================================================ */

:root {
  --black: #000000;
  --card: #111111;
  --card-2: #161616;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.35);
  --hud: #fddf00;
  --hud-dim: rgba(253, 223, 0, 0.06);
  --red: #b22234;
  --text: #f4f4f4;
  --muted: #b9bdc7;
  --faint: #7a808c;
  --paper: #faf8f4;
  --ink: #14181d;
  --ink-muted: #4a525c;
  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  /* legacy aliases consumed by factbook.js inline styles (dark profile panel) */
  --navy: #c9a227;
  --slate-soft: #b9bdc7;
  --slate-faint: #7a808c;
  --brass: #c9a227;
  --steel: #7a808c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--gold); }
a:hover { color: var(--hud); }

::selection { background: var(--gold); color: #000; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ================= TRUST STRIP (top of page) ================= */
.trust-strip {
  background: #000;
  border-bottom: 1px solid var(--gold-dim);
  text-align: center;
  padding: 7px 16px;
}
.trust-strip span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ================= HEADER — two-row sticky ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-row1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px 10px;
}

.menu-btn {
  justify-self: start;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-btn .bars i { display: block; width: 22px; height: 2px; background: var(--text); transition: background 0.2s; }
.menu-btn:hover { color: var(--hud); }
.menu-btn:hover .bars i { background: var(--hud); }

.masthead-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.masthead-center .seal { width: 66px; height: 66px; }
.masthead-center .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.masthead-center .submark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.header-search { justify-self: end; }
.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
}
.search-pill svg { width: 15px; height: 15px; stroke: var(--muted); flex: none; }
.search-pill input {
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 130px;
}
.search-pill input::placeholder { color: var(--faint); letter-spacing: 0.06em; }
.search-pill:focus-within { border-color: var(--gold); }

.header-row2 {
  border-top: 1px solid var(--line);
}
.header-row2 nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.navlink {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 13px 18px 11px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.navlink:hover, .navlink.active { color: var(--gold); border-bottom-color: var(--gold); }

/* gold reading-progress bar */
.progressbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--hud));
  z-index: 400;
}

/* ================= EYEBROW BADGE (HUD signature) ================= */
.eb { position: relative; display: inline-block; padding: 3px; }
.eb::before, .eb::after,
.eyebrow::before, .eyebrow::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
}
.eb::before { top: 0; right: 0; border-top: 2px solid var(--hud); border-right: 2px solid var(--hud); }
.eb::after { bottom: 0; left: 0; border-bottom: 2px solid var(--hud); border-left: 2px solid var(--hud); }
.eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hud);
  background: var(--hud-dim);
  border: 1px dashed rgba(201, 162, 39, 0.7);
  padding: 0.5rem 1.1rem;
}
.eyebrow::before { top: -1px; left: -1px; border-top: 2px solid var(--hud); border-left: 2px solid var(--hud); }
.eyebrow::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--hud); border-right: 2px solid var(--hud); }
.eyebrow.red {
  color: #fff;
  background: rgba(178, 34, 52, 0.14);
  border: 1px dashed rgba(178, 34, 52, 0.8);
}
.eyebrow.red::before { border-color: var(--red); }
.eyebrow.red::after { border-color: var(--red); }
.eb.red::before { border-top-color: var(--red); border-right-color: var(--red); }
.eb.red::after { border-bottom-color: var(--red); border-left-color: var(--red); }

/* ================= SECTION RHYTHM ================= */
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section-head-centered { text-align: center; margin-bottom: 44px; }
.section-head-centered h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 18px 0 10px;
  line-height: 1.05;
}
.section-head-centered .lede { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.02rem; }

.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 30px; flex-wrap: wrap;
}
.section-bar h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff; margin: 0;
}
.more-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); text-decoration: none;
}
.more-link:hover { color: var(--hud); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  padding: 13px 26px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s, transform 0.18s;
}
.btn:hover { border-color: var(--gold); color: var(--hud); transform: translateY(-1px); }
.btn-gold {
  background: var(--hud); border-color: var(--hud); color: #000;
}
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: #000; }

/* ================= HERO — TOP STORY ================= */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  margin-top: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.hero:hover { transform: translateY(-6px); border-color: var(--gold-dim); box-shadow: 0 24px 60px rgba(0,0,0,0.65); }
.hero-main { padding: 44px 44px 40px; }
.hero-main h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase;
  color: #fff; margin: 20px 0 16px;
}
.hero-main h1 a { color: inherit; text-decoration: none; }
.hero-main h1 a:hover { color: var(--hud); }
.dek { color: var(--muted); font-size: 1.06rem; line-height: 1.65; margin: 0 0 18px; }
.byline {
  font-size: 0.8rem; color: var(--faint); letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 500; margin: 0 0 24px;
}
.byline b { color: var(--gold); font-weight: 600; }
.hero-side {
  border-left: 1px solid var(--line);
  padding: 40px 36px;
  background: var(--card-2);
  display: flex; flex-direction: column; justify-content: center;
}
.consensus-mini h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--hud); margin: 0 0 16px;
}
.consensus-mini dl { margin: 0; display: grid; gap: 12px; }
.consensus-mini dt {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.consensus-mini dd { margin: 2px 0 0; font-size: 0.92rem; color: var(--muted); }

/* ================= ARTICLE RIVER ================= */
.river { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.story-card:hover { transform: translateY(-6px); border-color: var(--gold-dim); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.story-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.12; color: #fff; margin: 4px 0 0;
}
.story-card h3 a { color: inherit; text-decoration: none; }
.story-card h3 a:hover { color: var(--hud); }
.story-card .dek { font-size: 0.94rem; margin: 0; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600;
}
.meta-row .lenses { color: var(--gold); }
.story-card .card-link {
  margin-top: auto; padding-top: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-decoration: none;
}
.story-card .card-link:hover { color: var(--hud); }

/* ================= METHOD STRIP ================= */
.method-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.method-cell {
  background: var(--card); border: 1px solid var(--line); padding: 36px 30px; text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.method-cell:hover { transform: translateY(-6px); border-color: var(--gold-dim); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.method-cell .n {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--hud); letter-spacing: 0.04em;
}
.method-cell h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin: 10px 0 8px;
}
.method-cell p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ================= FEATURE PANELS (factbook / dossiers / essays) ================= */
.panel {
  background: var(--card); border: 1px solid var(--line); padding: 48px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.panel:hover { transform: translateY(-6px); border-color: var(--gold-dim); box-shadow: 0 24px 60px rgba(0,0,0,0.65); }
.panel h3 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.03em; text-transform: uppercase; color: #fff; margin: 16px 0 12px;
}
.panel .dek { max-width: 620px; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teaser {
  background: var(--card); border: 1px solid var(--line); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.teaser:hover { transform: translateY(-6px); border-color: var(--gold-dim); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.teaser h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: #fff; margin: 6px 0 0;
}
.teaser p { color: var(--muted); font-size: 0.94rem; margin: 0; flex: 1; }
.teaser a.card-link {
  font-family: var(--font-display); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-decoration: none;
}
.teaser a.card-link:hover { color: var(--hud); }
.lock-tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-display); font-weight: 700; font-size: 0.64rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: #000;
  background: var(--hud); padding: 5px 12px; border-radius: 0.6rem;
}

/* ================= GRADING BOARD ================= */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.board-col { background: var(--card); border: 1px solid var(--line); }
.board-col header {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.board-col.best header { color: var(--hud); border-bottom-color: var(--gold-dim); }
.board-col.worst header { color: #e0687a; }
.board-col ul { list-style: none; margin: 0; padding: 8px 24px 18px; }
.board-col li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text);
}
.board-col li:last-child { border-bottom: 0; }
.grade-pill {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em;
  background: transparent; border: 1px solid var(--gold); color: var(--hud);
  border-radius: 0.6rem; padding: 4px 14px;
}
.board-col.worst .grade-pill { border-color: var(--red); color: #e0687a; }
.board-note { color: var(--faint); font-size: 0.85rem; margin-top: 14px; text-align: center; }

/* ================= FOOTER ================= */
footer { border-top: 1px solid var(--gold-dim); background: #050505; margin-top: 40px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.footer-inner h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.footer-inner p { color: var(--faint); font-size: 0.9rem; margin: 0; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-inner ul a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-inner ul a:hover { color: var(--hud); }
.copyright {
  text-align: center; color: var(--faint); font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0 24px 30px; margin: 0;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero { padding: 64px 0 8px; text-align: center; }
.article-hero .kicker-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.article-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: 0.01em;
  text-transform: uppercase; color: #fff; max-width: 920px; margin: 0 auto 18px;
}
.article-hero .dek { max-width: 760px; margin: 0 auto 20px; font-size: 1.12rem; }
.article-hero .byline { margin-bottom: 30px; }

.share-row {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 auto; max-width: 860px;
}
.share-row > span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); margin-right: 6px;
}
.share-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted);
  border-radius: 0.6rem; padding: 8px 14px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.share-btn:hover { border-color: var(--gold); color: var(--hud); }

/* --- paper reading zone: high-contrast long-form --- */
.paper {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--gold-dim);
  margin-top: 44px;
}
.paper-inner { max-width: 780px; margin: 0 auto; padding: 56px 24px 64px; }
.paper p { font-size: 1.09rem; line-height: 1.78; color: var(--ink); margin: 0 0 1.15em; }
.paper p.dropcap::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.4em;
  float: left; line-height: 0.82; padding: 6px 10px 0 0; color: var(--ink);
}
.paper a.country-link { color: #8a6d1a; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }
.paper a.country-link:hover { color: #000; }

.databox {
  background: #fff; border: 1px solid #d8d2c4; border-top: 3px solid var(--gold);
  padding: 26px 26px 18px; margin: 34px 0 40px; box-shadow: 0 6px 22px rgba(20,24,29,0.07);
}
.databox h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: #8a6d1a; margin: 0 0 14px;
}
.databox table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.databox th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-muted); padding: 8px 10px; border-bottom: 2px solid var(--gold);
  font-family: var(--font-display); font-weight: 700;
}
.databox td { padding: 10px; border-bottom: 1px solid #e9e4d6; vertical-align: top; color: var(--ink); }
.databox tr:last-child td { border-bottom: 0; }
.databox td:nth-child(2) { font-weight: 700; white-space: nowrap; }

.bloc-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  border: 1px solid; margin: 1px 2px; white-space: nowrap;
}
.bloc-west { color: #2f5fb3; border-color: #2f5fb3; background: rgba(47,95,179,0.07); }
.bloc-east { color: #a3541c; border-color: #a3541c; background: rgba(163,84,28,0.07); }
.bloc-south { color: #1e7a4c; border-color: #1e7a4c; background: rgba(30,122,76,0.07); }

.lens-head { margin: 52px 0 6px; }
.lens-head .eyebrow { font-size: 0.7rem; }

.consensus {
  background: var(--black); color: var(--text);
  border: 1px solid var(--gold-dim); border-left: 4px solid var(--gold);
  padding: 34px 34px 26px; margin: 44px 0;
}
.consensus h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--hud); margin: 0 0 20px;
}
.consensus dl { margin: 0; display: grid; gap: 16px; }
.consensus dt {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.consensus dd { margin: 4px 0 0; color: var(--muted); font-size: 0.99rem; line-height: 1.65; }

.sources { margin: 44px 0 8px; }
.sources h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 14px;
}
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources li { font-size: 0.92rem; color: var(--ink-muted); padding-left: 18px; position: relative; }
.sources li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--gold); }

/* ============================================================
   COMMENTS — FootMercato energy, federal chrome
   ============================================================ */
.comments-shell {
  background: var(--card); border: 1px solid var(--line);
  max-width: 860px; margin: 56px auto 0; padding: 40px 40px 34px;
}
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.comments-head h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin: 0;
}
.comment-count {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; color: #000; background: var(--hud);
  padding: 5px 13px; border-radius: 999px; text-transform: uppercase;
}
.sort-tabs { display: flex; gap: 4px; margin: 14px 0 6px; border-bottom: 1px solid var(--line); }
.sort-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); padding: 10px 16px 8px;
}
.sort-tab.active { color: var(--hud); border-bottom-color: var(--hud); }

.comment-box { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
  background: #222; color: var(--hud); border: 1px solid var(--gold-dim);
}
.avatar.gold { background: var(--gold); color: #000; border-color: var(--gold); }
.avatar.steel { background: #2a2e35; color: #cfd4dc; border-color: var(--line-strong); }
.comment-box-main { flex: 1; }
.comment-box textarea {
  width: 100%; min-height: 84px; resize: vertical;
  background: #0a0a0a; border: 1px solid var(--line-strong); border-radius: 0.6rem;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px; outline: 0;
}
.comment-box textarea:focus { border-color: var(--gold); }
.comment-box-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.signin-hint { font-size: 0.8rem; color: var(--faint); }
.signin-hint button {
  background: none; border: 0; padding: 0 2px; cursor: pointer;
  color: var(--gold); font-weight: 600; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 2px;
}
.signin-hint button:hover { color: var(--hud); }

.comment { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-name { font-weight: 700; color: #fff; font-size: 0.92rem; }
.comment-name .flair {
  font-family: var(--font-display); font-weight: 700; font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #000; background: var(--gold);
  border-radius: 4px; padding: 2px 7px; margin-left: 8px; vertical-align: 2px;
}
.comment-time { font-size: 0.76rem; color: var(--faint); }
.comment-text { color: var(--muted); font-size: 0.96rem; line-height: 1.62; margin: 0 0 10px; }
.comment-actions { display: flex; align-items: center; gap: 8px; }
.vote {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font-size: 0.8rem; font-weight: 600; padding: 5px 12px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.vote:hover { border-color: var(--gold); color: var(--hud); }
.vote.on-up { border-color: var(--hud); color: var(--hud); }
.vote.on-down { border-color: var(--red); color: #e0687a; }
.vote svg { width: 12px; height: 12px; }
.reply-link {
  background: none; border: 0; cursor: pointer; color: var(--faint);
  font-family: var(--font-display); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 5px 8px;
}
.reply-link:hover { color: var(--hud); }
.replies { margin: 16px 0 0 0; padding-left: 18px; border-left: 2px solid var(--gold-dim); display: grid; }
.replies .comment { padding: 14px 0; }
.replies .avatar { width: 36px; height: 36px; font-size: 0.85rem; }
.reply-form { display: none; margin-top: 12px; }
.reply-form.open { display: block; }
.reply-form textarea {
  width: 100%; min-height: 64px; resize: vertical; background: #0a0a0a;
  border: 1px solid var(--line-strong); border-radius: 0.6rem;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem; padding: 10px 12px; outline: 0;
}
.reply-form textarea:focus { border-color: var(--gold); }
.reply-form .btn { margin-top: 8px; padding: 9px 20px; font-size: 0.7rem; }

.disqus-note { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.disqus-note summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.disqus-note summary:hover { color: var(--gold); }
.disqus-note pre {
  background: #0a0a0a; border: 1px solid var(--line); border-radius: 0.6rem;
  padding: 16px; overflow-x: auto; font-size: 0.76rem; color: var(--muted); margin-top: 12px;
}
.disqus-note code { font-family: ui-monospace, monospace; }

/* ============================================================
   FACTBOOK PAGE
   ============================================================ */
.fb-search { max-width: 560px; margin: 0 auto 10px; }
.fb-search input {
  width: 100%; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--text); font-size: 1rem; padding: 14px 24px; outline: 0;
  font-family: var(--font-body);
}
.fb-search input::placeholder { color: var(--faint); }
.fb-search input:focus { border-color: var(--gold); }
.search-results { max-width: 560px; margin: 0 auto 18px; display: grid; gap: 6px; }
.search-results button {
  text-align: left; background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; border-radius: 0.6rem; cursor: pointer; font-size: 0.92rem;
}
.search-results button:hover { border-color: var(--gold); color: var(--hud); }

.region-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 30px; }
.region-chips button {
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.region-chips button:hover { border-color: var(--gold); color: var(--hud); }
.region-chips button.active { border-color: var(--hud); color: var(--hud); }

.fb-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: start; }
.map-shell {
  background: #050505; border: 1px solid var(--line); padding: 18px; position: relative;
}
.map-shell svg { width: 100%; height: auto; background: #000; }
.map-legend { display: flex; gap: 22px; justify-content: center; margin-top: 12px; font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
.map-note { color: var(--faint); font-size: 0.85rem; margin-top: 12px; text-align: center; }

.profile {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  padding: 30px 28px; min-height: 420px;
}
.profile h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  letter-spacing: 0.03em; text-transform: uppercase; color: #fff; margin: 0 0 4px;
}
.profile .profile-empty p:first-child { color: #fff; }
.profile p { color: var(--muted); font-size: 0.94rem; }
.profile .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.profile .stat { background: #0a0a0a; border: 1px solid var(--line); padding: 12px 14px; border-radius: 0.6rem; }
.profile .stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.profile .stat span { color: var(--text); font-size: 0.95rem; font-weight: 600; }

/* observer chip */
.observer-chip {
  font-family: var(--font-display); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--hud);
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: 6px 14px;
  background: var(--hud-dim);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); }
  .river { grid-template-columns: 1fr 1fr; }
  .method-strip, .teaser-grid { grid-template-columns: 1fr; }
  .fb-layout { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .header-row1 { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 640px) {
  .river { grid-template-columns: 1fr; }
  .header-row2 nav { display: none; flex-direction: column; align-items: stretch; text-align: center; padding-bottom: 8px; }
  .header-row2.open nav { display: flex; }
  .navlink { border-bottom: 1px solid var(--line); padding: 14px; }
  .navlink:hover, .navlink.active { border-bottom-color: var(--gold); }
  .hero-main { padding: 30px 24px; }
  .hero-side { padding: 28px 24px; }
  .comments-shell { padding: 28px 20px; }
  .paper-inner { padding: 40px 20px 48px; }
  .panel { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .masthead-center .wordmark { font-size: 1.25rem; }
  .masthead-center .seal { width: 54px; height: 54px; }
  .menu-btn span.menu-word { display: none; }
}

/* ============================================================
   v4 — MOBILE + SEXY OVERHAUL (appended 2026-09-27)
   Mobile-first fluidity · overflow fixes · federal glow.
   Palette (#000/#111/#c9a227/#fddf00/#b22234), Rajdhani/Inter,
   and the seal are untouched. Pure CSS — no HTML/JS changes.
   ============================================================ */

/* ---------- 0. ROOT SAFETY: no horizontal scroll, ever ---------- */
html { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
body {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(1200px 620px at 50% -120px, rgba(201, 162, 39, 0.055), transparent 62%),
    #000;
}

/* ---------- 1. OVERFLOW FIXES — the "lines out of borders" complaint ---------- */
/* grid/flex children must be allowed to shrink */
.hero-main, .hero-side,
.story-card, .teaser, .method-cell,
.board-col, .panel, .profile, .map-shell,
.comments-shell, .comment-main, .comment-box-main,
.paper-inner, .consensus, .databox,
.section-bar, .comment-meta, .board-col li,
.footer-inner > div, .profile .stat {
  min-width: 0;
}
/* long uppercase Rajdhani headlines may break anywhere rather than escape */
.hero-main h1, .article-hero h1,
.story-card h3, .teaser h3, .profile h2,
.section-head-centered h2, .section-bar h2,
.panel h3, .comments-head h3,
.dek, .byline, .meta-row, .comment-text, .comment-name,
.consensus dd, .sources li, .board-col li,
.profile .stat span, .map-note, .board-note,
.trust-strip span, .submark, .wordmark, .observer-chip {
  overflow-wrap: anywhere;
}
img { height: auto; }
img, svg, video, iframe { max-width: 100%; }
.eyebrow { max-width: 100%; }
.map-legend { flex-wrap: wrap; row-gap: 8px; }
.board-col li { gap: 12px; }

/* ---------- 2. FLUID TYPE + SPACING SCALE ---------- */
body { font-size: clamp(0.95rem, 2.2vw, 1rem); }
.wrap { padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
.section { padding: clamp(48px, 7vw, 76px) 0; }
.hero-main h1 { font-size: clamp(1.75rem, 7.5vw, 3.4rem); }
.article-hero h1 { font-size: clamp(1.8rem, 8vw, 3.8rem); }
.section-head-centered h2 { font-size: clamp(1.55rem, 6.5vw, 3rem); letter-spacing: 0.02em; }
.section-bar h2 { font-size: clamp(1.3rem, 5.2vw, 2.1rem); }
.story-card h3 { font-size: clamp(1.12rem, 4.6vw, 1.45rem); }
.teaser h3 { font-size: clamp(1.08rem, 4.4vw, 1.35rem); }
.panel h3 { font-size: clamp(1.35rem, 5.6vw, 2.2rem); }
.profile h2 { font-size: clamp(1.35rem, 5.8vw, 1.9rem); }
.comments-head h3 { font-size: clamp(1.1rem, 4.8vw, 1.5rem); }
.dek { font-size: clamp(0.95rem, 2.4vw, 1.06rem); }
.paper p { font-size: clamp(1.02rem, 2.6vw, 1.09rem); }

/* ---------- 3. SEXY — federal glow, motion, presence ---------- */
@keyframes mb-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero, .article-hero { animation: mb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .comments-shell, .paper { animation: mb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
}
/* pure-CSS scroll reveal where supported; ignored elsewhere */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section:not(#top) {
      animation: mb-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}

/* hero: gold aura backdrop + fine top rule */
#top {
  background: radial-gradient(900px 340px at 50% -90px, rgba(201, 162, 39, 0.10), transparent 70%);
}
.hero { border-top: 2px solid var(--gold); }

/* card hover: lift + gold border glow */
.hero:hover, .story-card:hover, .teaser:hover,
.method-cell:hover, .panel:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px var(--gold-dim),
    0 0 44px rgba(201, 162, 39, 0.10);
}

/* section headings with presence */
.section-head-centered h2::after {
  content: ""; display: block; width: 64px; height: 3px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--hud));
  box-shadow: 0 0 12px rgba(253, 223, 0, 0.35);
}
.section-bar h2 { border-left: 3px solid var(--gold); padding-left: 14px; }

/* eyebrow badges: faint HUD glow */
.eyebrow { box-shadow: 0 0 20px rgba(253, 223, 0, 0.10), inset 0 0 12px rgba(253, 223, 0, 0.04); }

/* gold CTA glow */
.btn-gold:hover { box-shadow: 0 10px 28px rgba(253, 223, 0, 0.28); }

/* anchored sections clear the sticky header */
section[id], footer[id] { scroll-margin-top: 132px; }

/* custom scrollbar: thin, dark, gold thumb */
html { scrollbar-color: #333 #050505; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 8px; border: 2px solid #050505; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* visible keyboard focus */
:focus-visible { outline: 2px solid var(--hud); outline-offset: 3px; }

/* ---------- 4. TAP TARGETS ≥44px ---------- */
.menu-btn { min-height: 44px; }
.vote { min-height: 40px; padding: 6px 14px; }
.reply-link { display: inline-flex; align-items: center; min-height: 44px; }
.sort-tab { padding: 12px 16px 10px; }
.region-chips button { padding: 10px 18px; }
.search-results button { padding: 12px 16px; }
.signin-hint button { padding: 8px 6px; }
.share-btn { padding: 10px 16px; }
.more-link { display: inline-block; padding: 10px 0; }
.disqus-note summary { display: inline-block; padding: 10px 0; }

/* ---------- 5. TABLET ≤1023px — desktop keeps 2-col hero / 3-col river ---------- */
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); }
  .river { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .method-strip { grid-template-columns: repeat(2, 1fr); }
  .fb-layout { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- 6. PHONE ≤640px ---------- */
@media (max-width: 640px) {
  .river, .teaser-grid, .method-strip { grid-template-columns: 1fr; }
  .profile .stat-grid { grid-template-columns: 1fr; }

  /* slim sticky header */
  .header-row1 { padding: 10px 16px 8px; gap: 10px; }
  .masthead-center .seal { width: 44px; height: 44px; }
  .masthead-center .wordmark { font-size: clamp(1.02rem, 5.4vw, 1.35rem); letter-spacing: 0.1em; }
  .masthead-center .submark { font-size: 0.56rem; letter-spacing: 0.2em; }
  .menu-btn { font-size: 0.72rem; }
  .trust-strip { padding: 6px 12px; }
  .trust-strip span { font-size: 0.58rem; letter-spacing: 0.16em; }

  /* fluid section padding */
  .hero-main { padding: clamp(24px, 6vw, 30px) clamp(20px, 5vw, 24px); }
  .hero-side { padding: clamp(24px, 6vw, 28px) clamp(20px, 5vw, 24px); }
  .hero-main h1 { letter-spacing: 0; }
  .comments-shell { padding: clamp(24px, 5vw, 28px) clamp(16px, 4.5vw, 20px); }
  .paper-inner { padding: clamp(36px, 7vw, 40px) clamp(18px, 4.5vw, 20px) clamp(48px, 8vw, 48px); }
  .panel { padding: clamp(28px, 6vw, 32px) clamp(20px, 5vw, 24px); }
  .consensus { padding: clamp(24px, 5.5vw, 34px) clamp(20px, 5vw, 34px); }
  .profile { padding: clamp(22px, 5vw, 30px) clamp(18px, 4.5vw, 28px); }
  .comment, .comment-box { gap: 12px; }
  .replies { padding-left: 12px; }

  /* wide data tables scroll instead of breaking layout */
  .databox { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .databox table { min-width: 520px; }
  .disqus-note pre { -webkit-overflow-scrolling: touch; }

  /* stop iOS auto-zoom on form focus */
  .comment-box textarea, .reply-form textarea,
  .search-pill input, .fb-search input { font-size: 16px; }
}

/* ============================================================
   v5 — CIA × WASHINGTON POST FUSION (2026-09-27)
   Chrome stays federal: black/gold, Rajdhani, HUD eyebrows.
   Content goes editorial: Playfair Display headlines, Source
   Serif body, small-caps kickers, hairline rules, clean measure.
   ============================================================ */
:root {
  --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hairline-paper: #e4ded0;
}

/* ---------- editorial headlines: serif, sentence case ---------- */
.hero-main h1,
.story-card h3,
.article-hero h1,
.teaser h3 {
  font-family: var(--serif-display);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.hero-main h1 { line-height: 1.08; }
.story-card h3 { line-height: 1.24; }
.article-hero h1 { line-height: 1.1; max-width: 980px; }
.teaser h3 { line-height: 1.28; }

/* ---------- small-caps kickers (editorial language) ---------- */
.kicker-sc {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
}
.article-hero .kicker-row { margin-bottom: 18px; }

/* ---------- WaPo byline: author + timestamp, hairline rules ---------- */
.article-hero .byline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  max-width: 860px; margin-left: auto; margin-right: auto;
  margin-bottom: 8px;
}
.byline .byline-author { color: #fff; font-weight: 700; }

/* ---------- article reading experience: serif body, measure ---------- */
.paper p {
  font-family: var(--serif-body);
  font-size: 1.13rem;
  line-height: 1.82;
  max-width: 68ch;
}
.paper p.dropcap::first-letter {
  font-family: var(--serif-display);
  font-weight: 800;
  float: left;
  font-size: 3.6em;
  line-height: 0.86;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--ink);
}
/* pull quotes */
.pullquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.42;
  color: var(--ink);
  text-align: center;
  max-width: 640px;
  margin: 40px auto;
  padding: 24px 12px;
  border-top: 1px solid var(--hairline-paper);
  border-bottom: 1px solid var(--hairline-paper);
}
/* hairline rule */
.hairline { border: 0; border-top: 1px solid var(--hairline-paper); margin: 44px 0; }
/* databox, lenses, consensus, sources stay federal sans (registry chrome) */
.databox, .databox table,
.consensus, .lens-head, .sources { font-family: var(--font-body); }
.consensus h4, .databox h4 { font-family: var(--font-display); }

/* ---------- comments: WaPo-style shell (contract IDs) ---------- */
#comments { scroll-margin-top: 132px; }
#comments > h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: 0;
  text-transform: none;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}
#comments-count {
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.comments-sub {
  color: var(--faint); font-size: 0.9rem; margin: 0 0 8px; padding-left: 19px;
}
/* composer */
#comment-composer .composer-box {
  display: flex; gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.composer-avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: #1c1f24; border: 1px solid var(--line-strong);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display); font-weight: 700; font-size: 1.05rem;
}
.composer-main { flex: 1; min-width: 0; }
.composer-main textarea {
  width: 100%; min-height: 88px; resize: vertical;
  background: #0d0e11; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0.6rem;
  padding: 14px 16px; font-size: 16px; font-family: var(--font-body); line-height: 1.55;
}
.composer-main textarea:focus { border-color: var(--gold); outline: none; }
.composer-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.signin-prompt { color: var(--faint); font-size: 0.86rem; }
.signin-prompt button {
  background: none; border: 0; padding: 0 2px; cursor: pointer;
  color: var(--gold); font-weight: 700; font-size: 0.86rem;
  min-height: 44px;
}
.signin-prompt button:hover { color: var(--hud); text-decoration: underline; }
/* sort tabs */
.sort-tabs-v5 {
  display: flex; gap: 4px; margin: 16px 0 4px;
  border-bottom: 1px solid var(--line);
}
/* comment thread */
#comments-list .comment {
  display: flex; gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
#comments-list .avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: #1c1f24; border: 1px solid var(--line-strong);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em;
}
#comments-list .avatar.gold { background: var(--gold); color: #000; border-color: var(--gold); }
#comments-list .avatar.steel { background: #2a2e35; color: #cfd4dc; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment-name { color: #fff; font-weight: 700; font-size: 0.92rem; }
.comment-name .flair {
  display: inline-block; margin-left: 8px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hud); border: 1px solid var(--gold-dim); border-radius: 0.6rem;
  padding: 2px 8px; vertical-align: 1px;
}
.comment-time { color: var(--faint); font-size: 0.78rem; }
.comment-text {
  color: var(--text); font-size: 0.97rem; line-height: 1.65; margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.comment-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.like-btn, .reply-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; border: 1px solid transparent; border-radius: 0.6rem;
  color: var(--faint); font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.like-btn svg { width: 15px; height: 15px; }
.like-btn:hover, .reply-btn:hover { color: var(--hud); border-color: var(--line); }
.like-btn.on { color: var(--hud); border-color: var(--gold-dim); }
.replies {
  margin: 14px 0 0 21px; padding-left: 18px;
  border-left: 2px solid var(--gold-dim);
  display: grid;
}
.replies .avatar { width: 34px; height: 34px; font-size: 0.72rem; }
.reply-form-v5 { display: none; margin-top: 12px; }
.reply-form-v5.open { display: block; }
.reply-form-v5 textarea {
  width: 100%; min-height: 72px; resize: vertical;
  background: #0d0e11; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 0.6rem;
  padding: 12px 14px; font-size: 16px; font-family: var(--font-body);
}
.reply-form-v5 textarea:focus { border-color: var(--gold); outline: none; }
.reply-form-v5 .btn { margin-top: 10px; }
/* empty state */
.comments-empty {
  padding: 34px 0; text-align: center; color: var(--faint); font-size: 0.94rem;
}
.comments-empty strong { color: var(--gold); display: block; margin-bottom: 6px; font-family: var(--serif-display); font-size: 1.1rem; }

/* ---------- auth modal: sexy sign-in gate ---------- */
#auth-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#auth-modal[hidden] { display: none; }
.auth-card {
  background: #0b0c0e;
  border: 1px solid var(--gold-dim);
  border-top: 3px solid var(--gold);
  max-width: 430px; width: 100%;
  padding: 38px 34px 32px;
  text-align: center; position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,0.75), 0 0 46px rgba(201,162,39,0.10);
  animation: mb-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-card .auth-seal { width: 54px; height: 54px; margin: 0 auto 16px; }
.auth-card h3 {
  font-family: var(--serif-display); font-weight: 700;
  font-size: 1.55rem; color: #fff; margin: 0 0 8px; line-height: 1.2;
}
.auth-card .auth-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 20px; line-height: 1.6; }
.provider-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 54px;
  padding: 12px 18px; margin: 0 0 10px;
  background: #ffffff; color: #141414;
  border: 1px solid transparent; border-radius: 0.6rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.provider-btn svg { width: 22px; height: 22px; flex: none; }
.provider-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(253, 223, 0, 0.22);
  border-color: var(--gold);
}
.provider-btn .provider-note { margin-left: auto; font-size: 0.72rem; color: #8a8a8a; font-weight: 500; }
.auth-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  background: transparent; border: 0; color: var(--faint);
  font-size: 1.3rem; cursor: pointer; border-radius: 0.6rem;
}
.auth-close:hover { color: var(--hud); }
.auth-fineprint { margin-top: 16px; color: var(--faint); font-size: 0.74rem; line-height: 1.6; }
.auth-status { margin-top: 12px; font-size: 0.86rem; color: var(--hud); min-height: 1.2em; }

/* ---------- v5 mobile hardening: 360px, zero overflow ---------- */
@media (max-width: 480px) {
  .header-row1 {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .header-search { grid-column: 1 / -1; order: 5; margin-top: 2px; }
  .search-pill { width: 100%; }
  .search-pill input { width: 100%; flex: 1; }
  .header-row2 { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .header-row2::-webkit-scrollbar { display: none; }
  /* REMOVED 2026-09-27: this rule forced the nav permanently open on phones,
     killing the MENU button and crowding the articles. The 640px dropdown
     behavior (hidden until tapped) now governs all mobile widths. */
  .header-row2 nav { flex-wrap: nowrap; }
  .navlink {
    white-space: nowrap; flex: none;
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .hero-main h1 { font-size: clamp(1.62rem, 8.4vw, 2.3rem); }
  .article-hero h1 { font-size: clamp(1.65rem, 8.6vw, 2.4rem); }
  .article-hero { padding-top: 44px; }
  #comments-list .comment { gap: 10px; padding: 16px 0; }
  #comments-list .avatar { width: 38px; height: 38px; font-size: 0.74rem; }
  #comment-composer .composer-box { gap: 10px; }
  .composer-avatar { width: 38px; height: 38px; font-size: 0.9rem; }
  .replies { margin-left: 19px; padding-left: 12px; }
  .auth-card { padding: 30px 22px 26px; }
  .provider-btn { min-height: 56px; }
  .pullquote { margin: 30px auto; }
  .share-row { gap: 8px; }
}

/* ---------- Factbook profile: bloc chips, key stats, history timeline ---------- */
.profile-head h3 { margin: 0 0 4px; font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
.profile-head .region { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; }
.bloc { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid; vertical-align: 1px; }
.bloc-west { color: #8fb8ff; border-color: #8fb8ff; background: rgba(143,184,255,0.08); }
.bloc-east { color: #ff8f8f; border-color: #ff8f8f; background: rgba(255,143,143,0.08); }
.bloc-globalsouth { color: #8fdca0; border-color: #8fdca0; background: rgba(143,220,160,0.08); }
.bloc-neutral { color: #9aa1ad; border-color: #9aa1ad; background: rgba(154,161,173,0.08); }
.keystats { list-style: none; margin: 0 0 18px; padding: 0; }
.keystats li { position: relative; padding: 7px 0 7px 20px; font-size: 0.9rem; color: var(--text);
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.keystats li::before { content: "▸"; position: absolute; left: 2px; color: var(--gold); }
.timeline-h { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 20px 0 10px; }
.timeline { list-style: none; margin: 0 0 18px; padding: 0 0 0 4px; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; gap: 12px; padding: 8px 0 8px 16px; font-size: 0.88rem;
  color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(253,223,0,0.55); }
.timeline .yr { flex: 0 0 auto; min-width: 64px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; }
.grade-stub { background: #0a0a0a; border: 1px dashed var(--gold); border-radius: 0.6rem;
  padding: 12px 14px; font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.grade-stub b { color: var(--gold); }
.profile-body { min-width: 0; }
@media (max-width: 640px) {
  .timeline .yr { min-width: 56px; }
  .timeline li { gap: 10px; padding-left: 14px; }
  .profile-head h3 { overflow-wrap: anywhere; }
}

/* ============================================================
   Key facts — replaces the old databox table (2026-09-27).
   Plain-language lines inside the existing .databox paper card.
   Every number carries its meaning in words; source attribution
   is a light small-caps line under each fact. Mobile-safe.
   ============================================================ */
.keyfacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.keyfacts li {
  position: relative; padding-left: 24px;
  font-size: 0.99rem; line-height: 1.65; color: var(--ink);
  overflow-wrap: break-word;
}
.keyfacts li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}
.keyfacts li strong { color: #111; }
.keyfacts .src {
  display: block; margin-top: 4px;
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
@media (max-width: 640px) {
  .keyfacts li { font-size: 0.94rem; padding-left: 22px; }
  .databox { padding: 22px 20px 16px; }
}

/* ============================================================
   v6 — BBC LIGHT RE-THEME (2026-09-27, Boss direct order)
   "This looks like a tech dashboard or CRM — I want white
   background, BBC style." White newspaper canvas, ink text,
   BBC red (#B80000) accent. Federal glow / neon / HUD chrome
   removed — clean, editorial, fresh, intuitive.
   Strategy: palette vars are remapped in the :root below (a
   later :root block wins the cascade), then every hardcoded
   dark value is overridden. Desktop nav (>640px) is untouched.
   The world map stays a dark dataviz panel on purpose.
   ============================================================ */

/* ---------- 0. palette remap ---------- */
:root {
  --black: #ffffff;
  --card: #ffffff;
  --card-2: #f6f6f6;
  --line: #e4e4e4;
  --line-strong: #d2d2d2;
  --gold: #B80000;
  --gold-dim: rgba(184, 0, 0, 0.20);
  --hud: #B80000;
  --hud-dim: rgba(184, 0, 0, 0.05);
  --red: #B80000;
  --text: #161616;
  --muted: #4d545c;
  --faint: #7c828a;
  --paper: #ffffff;
  --ink: #14181d;
  --ink-muted: #4d545c;
  --navy: #B80000;
  --slate-soft: #4d545c;
  --slate-faint: #7c828a;
  --brass: #B80000;
  --steel: #7c828a;
}

/* ---------- 1. base ---------- */
body { background: #ffffff; }
a { color: #B80000; }
a:hover { color: #7a0000; }
::selection { background: #B80000; color: #ffffff; }
html { scrollbar-color: #c9c9c9 #f1f1f1; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c9c9c9; border: 2px solid #f1f1f1; }
::-webkit-scrollbar-thumb:hover { background: #B80000; }
:focus-visible { outline: 2px solid #B80000; outline-offset: 3px; }

/* ---------- 2. trust strip + header ---------- */
.trust-strip { background: #ffffff; border-bottom: 1px solid #e4e4e4; }
.trust-strip span { color: #B80000; }
.site-header { background: #ffffff; border-bottom: 1px solid #e4e4e4; backdrop-filter: none; -webkit-backdrop-filter: none; }
.masthead-center .wordmark { color: #141414; }
.masthead-center .seal { background: #0a0a0a; border-radius: 50%; }
.progressbar { background: linear-gradient(90deg, #B80000, #e02020); }

/* ---------- 3. eyebrows: HUD corner ticks die, solid BBC red badge ---------- */
.eb { padding: 0; }
.eb::before, .eb::after,
.eyebrow::before, .eyebrow::after { display: none; }
.eyebrow {
  color: #ffffff; background: #B80000; border: 0;
  box-shadow: none; border-radius: 2px;
}
.eyebrow.red { color: #ffffff; background: #B80000; border: 0; }
.kicker-sc { color: #B80000; }

/* ---------- 4. sections, cards, panels ---------- */
.section-head-centered h2 { color: #141414; }
.section-head-centered h2::after { background: #B80000; box-shadow: none; }
.section-bar h2 { color: #141414; }
.hero { background: #ffffff; }
.hero:hover, .story-card:hover, .teaser:hover,
.method-cell:hover, .panel:hover {
  box-shadow: 0 18px 44px rgba(20, 20, 20, 0.10);
  border-color: rgba(184, 0, 0, 0.35);
}
.hero-main h1 { color: #141414; }
.story-card h3 { color: #141414; }
.method-cell h3 { color: #141414; }
.panel h3 { color: #141414; }
.teaser h3 { color: #141414; }
.method-cell .n { color: #B80000; }
.lock-tag { background: #B80000; color: #ffffff; }
#top { background: none; }

/* ---------- 5. buttons ---------- */
.btn { color: #141414; background: #ffffff; border-color: #d2d2d2; }
.btn:hover { border-color: #B80000; color: #B80000; transform: translateY(-1px); }
.btn-gold { background: #B80000; border-color: #B80000; color: #ffffff; }
.btn-gold:hover { background: #8a0000; border-color: #8a0000; color: #ffffff; box-shadow: 0 10px 28px rgba(184, 0, 0, 0.18); }

/* ---------- 6. grading board ---------- */
.board-col.best header { color: #B80000; }
.grade-pill { border-color: #B80000; color: #B80000; }
.vote.on-down { border-color: #B80000; color: #B80000; }

/* ---------- 7. article page ---------- */
.article-hero h1 { color: #141414; }
.byline .byline-author { color: #141414; }
.paper a.country-link { color: #B80000; text-decoration-color: rgba(184, 0, 0, 0.35); }
.paper a.country-link:hover { color: #7a0000; }

/* ---------- 8. databox + key facts ---------- */
.databox h4 { color: #B80000; }

/* ---------- 9. consensus + sources ---------- */
.consensus { background: #f8f8f8; }

/* ---------- 10. comments ---------- */
.comments-head h3 { color: #141414; }
.comment-count { background: #B80000; color: #ffffff; }
.comment-box textarea, .reply-form textarea,
.composer-main textarea, .reply-form-v5 textarea { background: #ffffff; }
.avatar { background: #ececec; color: #333333; border-color: #d9d9d9; }
.avatar.gold { background: #B80000; color: #ffffff; border-color: #B80000; }
.avatar.steel { background: #e4e4e4; color: #555555; border-color: #d2d2d2; }
.comment-name { color: #141414; }
.comment-name .flair { color: #ffffff; background: #B80000; border-color: #B80000; }
.composer-avatar { background: #ececec; color: #B80000; border-color: #d9d9d9; }
#comments-list .avatar { background: #ececec; color: #555555; border-color: #d9d9d9; }
#comments-list .avatar.gold { background: #B80000; color: #ffffff; border-color: #B80000; }
#comments-list .avatar.steel { background: #e4e4e4; color: #555555; }
#comments > h2 { color: #141414; }
.disqus-note pre { background: #f6f6f6; }

/* ---------- 11. auth modal ---------- */
.auth-card { background: #ffffff; border: 1px solid #e4e4e4; border-top: 3px solid #B80000; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25); }
.auth-card h3 { color: #141414; }
.provider-btn:hover { box-shadow: 0 8px 24px rgba(184, 0, 0, 0.16); border-color: #B80000; }
.auth-status { color: #B80000; }

/* ---------- 12. factbook: chrome goes light, map stays dark dataviz ---------- */
.profile h2 { color: #141414; }
.profile .profile-empty p:first-child { color: #141414; }
.profile .stat { background: #f6f6f6; }
.bloc-west { color: #1d4fa3; border-color: #1d4fa3; background: rgba(29, 79, 163, 0.07); }
.bloc-east { color: #b23c2a; border-color: #b23c2a; background: rgba(178, 60, 42, 0.07); }
.bloc-globalsouth { color: #1e7a4c; border-color: #1e7a4c; background: rgba(30, 122, 76, 0.07); }
.bloc-neutral { color: #5a616b; border-color: #5a616b; background: rgba(90, 97, 107, 0.07); }
.timeline li::before { background: #B80000; box-shadow: none; }
.grade-stub { background: #f6f6f6; }

/* ---------- 13. footer: deep black band (BBC-style), light type ---------- */
footer { background: #0a0a0a; border-top: 3px solid #B80000; }
.footer-inner h4 { color: #f0f0f0; }
.footer-inner ul a { color: #c9cdd3; }
.footer-inner ul a:hover { color: #ff6b6b; }

/* ---------- 14. observer chip: reader counter hidden (Boss order 2026-09-27) ----------
   The element + its localStorage counting JS in assets/js/main.js should be
   fully removed in a later cleanup; CSS hides it for now. */
.observer-chip { display: none; }

/* ---------- 15. mobile nav: floating dropdown panel (Boss order) ----------
   ≤640px the nav is NOT an in-flow expanding list. The hamburger opens a
   floating white panel anchored under the sticky header; page content does
   not shift. Desktop (>640px) keeps the classic horizontal newspaper bar. */
@media (max-width: 640px) {
  .header-row2 {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 400;
    background: #ffffff;
    border-top: 1px solid #e4e4e4;
    border-bottom: 3px solid #B80000;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.16);
  }
  .header-row2.open { display: block; }
  .header-row2 nav {
    display: flex; flex-direction: column; align-items: stretch;
    max-width: none; margin: 0; padding: 6px 0 10px; gap: 0;
    text-align: left;
  }
  .header-row2 .navlink {
    display: flex; align-items: center;
    min-height: 48px; padding: 14px 24px;
    border-bottom: 1px solid #ececec;
    white-space: normal;
    color: #141414;
  }
  .header-row2 .navlink:last-child { border-bottom: 0; }
  .header-row2 .navlink:hover,
  .header-row2 .navlink.active {
    color: #B80000; background: #fafafa;
    border-bottom-color: #ececec;
  }
}
@media (max-width: 480px) {
  /* neutralize the old horizontal-strip leftovers (superseded by the panel) */
  .header-row2 { overflow-x: visible; }
  .header-row2 nav { flex-wrap: wrap; }
}
