/* ============================================================
   Sovereignty Atlas — briefing dossier
   Palette
     paper   #F2F3EE  cool bone
     panel   #FFFFFF
     ink     #182338  deep EU blue-ink
     soft    #4C5872  desaturated slate
     line    #D8DCDF
     gold    #A87B2D  ochre (section markers, key moments)
     navy    #101A2C  situation-board dark
     A #8C2F39 crimson · B #A9622B rust · C #2E6E4E green · D #5B5E76 grey-violet
   Type: Newsreader display · Public Sans body · IBM Plex Mono data
   ============================================================ */

:root {
  --paper: #F2F3EE;
  --panel: #FFFFFF;
  --ink: #182338;
  --soft: #4C5872;
  --line: #D8DCDF;
  --gold: #A87B2D;
  --gold-soft: #E9DFC8;
  --navy: #101A2C;
  --navy-2: #1A2740;
  --a: #8C2F39; --a-soft: #F3E2E4;
  --b: #A9622B; --b-soft: #F4E7DA;
  --c: #2E6E4E; --c-soft: #DFEDE5;
  --d: #5B5E76; --d-soft: #E4E5EC;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --sidebar-w: 288px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: var(--gold-soft); }

/* ---------------- Sidebar ---------------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--navy);
  color: #C7CEDC;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.brand {
  display: flex; gap: 12px; align-items: center;
  padding: 22px 20px 16px;
  text-decoration: none; color: inherit;
}
.brand-mark {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--gold);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px;
  border-radius: 50%; background: var(--gold);
  opacity: .35;
}
.brand-text strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }
.brand-text em { display: block; font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #7F8BA3; margin-top: 2px; }

.search-hint {
  margin: 0 20px 14px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #9AA5B8;
  font-family: var(--sans); font-size: .8rem;
  padding: 7px 10px; border-radius: 6px;
  cursor: pointer;
}
.search-hint:hover { border-color: rgba(255,255,255,.3); color: #C7CEDC; }
.search-hint kbd {
  font-family: var(--mono); font-size: .7rem;
  border: 1px solid rgba(255,255,255,.25); border-radius: 4px;
  padding: 1px 6px;
}

.nav-scroll { flex: 1; overflow-y: auto; padding: 0 12px 12px; scrollbar-width: thin; scrollbar-color: #33405C transparent; }

.nav-part {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  padding: 16px 8px 6px;
}
.nav-scroll a {
  display: flex; gap: 10px; align-items: baseline;
  color: #B4BDCD; text-decoration: none;
  font-size: .82rem; line-height: 1.35;
  padding: 5px 8px; border-radius: 5px;
  border-left: 2px solid transparent;
}
.nav-scroll a i {
  font-style: normal; font-family: var(--mono); font-size: .65rem;
  color: #67748E; min-width: 20px; text-align: right;
}
.nav-scroll a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-scroll a.current { background: rgba(168,123,45,.16); color: #fff; border-left-color: var(--gold); }
.nav-scroll a.sub { padding-left: 22px; font-size: .76rem; }

.nav-foot {
  padding: 12px 20px 16px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .05em;
  color: #5E6B85; border-top: 1px solid rgba(255,255,255,.08);
}

.nav-toggle { display: none; }
.nav-scrim { display: none; }

/* ---------------- Main column ---------------- */

main {
  margin-left: var(--sidebar-w);
  padding: 0 clamp(24px, 5vw, 72px) 60px;
  max-width: calc(var(--sidebar-w) + 980px);
}

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(48px, 9vh, 96px) 0 40px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.015em;
  max-width: 17ch;
}
.hero-lede {
  margin-top: 22px; max-width: 62ch;
  font-family: var(--serif); font-size: 1.16rem; line-height: 1.55;
  color: var(--soft);
}
.hero-lede em { color: var(--ink); }
.hero-facts {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.hero-facts div { background: var(--panel); padding: 16px 18px; }
.hero-facts b {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.7rem; letter-spacing: -.01em;
}
.hero-facts span { font-size: .78rem; color: var(--soft); line-height: 1.4; display: block; margin-top: 3px; }

/* ---------------- Sections ---------------- */

.section { padding: 56px 0 24px; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

.kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.kicker i {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px;
  border: 1px solid var(--gold); border-radius: 50%;
  font-size: .72rem; color: var(--gold);
}

.section h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.01em; line-height: 1.15;
  margin-bottom: 18px; max-width: 26ch;
}
.section h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem;
  margin: 34px 0 10px; letter-spacing: .002em;
}
.section h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.section p { max-width: 72ch; margin-bottom: 14px; }
.section-lede {
  font-family: var(--serif); font-style: italic; font-size: 1.08rem;
  color: var(--soft); max-width: 64ch; margin-bottom: 20px;
}

.pull {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.5;
  border-left: 3px solid var(--gold); padding-left: 18px;
  color: var(--ink); max-width: 62ch; margin-top: 20px;
}

.mono-note { font-family: var(--mono); font-size: .68rem; color: var(--soft); letter-spacing: .03em; }

/* fact lists */
.fact-list { list-style: none; max-width: 76ch; }
.fact-list li {
  padding: 12px 0 12px 22px; position: relative;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list li::before {
  content: ""; position: absolute; left: 2px; top: 21px;
  width: 7px; height: 7px; background: var(--gold);
}
.fact-list.compact li { padding: 8px 0 8px 22px; border-bottom: 0; }
.fact-list.compact li::before { top: 16px; }

.numbered { max-width: 74ch; margin-left: 1.4rem; }
.numbered li { margin-bottom: 12px; font-size: .93rem; }
.numbered li::marker { font-family: var(--mono); font-size: .8rem; color: var(--gold); font-weight: 600; }

/* brief box */
.brief-box {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 20px 24px; margin-bottom: 26px; max-width: 76ch;
}
.brief-box p { margin: 0; font-size: .95rem; }

/* callouts */
.callout {
  background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--ink);
  padding: 20px 24px; margin: 24px 0; max-width: 76ch;
}
.callout.gold { border-left-color: var(--gold); background: #FCFAF4; }
.callout h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.callout p { font-size: .92rem; }
.callout p:last-child { margin-bottom: 0; }

.sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 76ch; }
.sources h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.sources p { font-size: .82rem; color: var(--soft); margin: 0; }

/* pairs & critique grid */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; max-width: 86ch; }
.pair-item { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; }
.pair-item h4 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.pair-item p { font-size: .88rem; margin: 0; }

.critique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 86ch; }
.critique { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; }
.critique.wide { grid-column: 1 / -1; border-left: 3px solid var(--ink); }
.critique h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.critique p { font-size: .88rem; margin: 0; }

/* objectives (chips) */
.objectives { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 86ch; margin: 16px 0; }
.objective { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; }
.objective.new { border-top: 3px solid var(--gold); }
.objective h4 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.objective ul { list-style: none; }
.objective li { font-size: .87rem; padding: 5px 0 5px 16px; position: relative; }
.objective li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--gold); }

/* tables */
.table-wrap { overflow-x: auto; margin: 16px 0 20px; max-width: 90ch; }
table { border-collapse: collapse; width: 100%; background: var(--panel); border: 1px solid var(--line); font-size: .88rem; }
thead th {
  background: var(--ink); color: #E8EBF1; text-align: left;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 14px; font-weight: 500;
}
tbody td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: #FAFAF7; }

/* presidency track */
.presidency-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 88ch; margin: 16px 0; }
.presidency { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 16px 18px; }
.presidency:nth-child(2) { border-top-color: var(--c); }
.pres-period { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; color: var(--soft); display: block; }
.pres-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; display: block; margin: 2px 0 8px; }
.presidency p { font-size: .84rem; margin: 0; }

/* phases + observations */
.phases, .observations { list-style: none; counter-reset: ph; max-width: 76ch; }
.phases li, .observations li { counter-increment: ph; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.phases li:last-child, .observations li:last-child { border-bottom: 0; }
.phases li::before, .observations li::before {
  content: counter(ph);
  position: absolute; left: 0; top: 14px;
  width: 32px; height: 32px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .8rem; color: var(--gold);
}
.observations h4 { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; margin-bottom: 6px; }
.observations p { font-size: .9rem; }
.observations p:last-child { margin-bottom: 0; }

/* ---------------- Widgets shared ---------------- */

.widget { margin: 20px 0; }
.widget-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }

/* assurance ladder */
.dist { max-width: 86ch; }
.dist-bar { display: flex; gap: 3px; height: 58px; }
.dist-seg {
  border: 0; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 10px; min-width: 34px;
  color: #fff; font-family: var(--mono);
  transition: filter .15s;
}
.dist-seg b { font-size: .78rem; font-weight: 600; }
.dist-seg span { font-size: .68rem; opacity: .85; }
.dist-seg:hover { filter: brightness(1.15); }
.dist-seg.lvl1 { background: #92A0B8; }
.dist-seg.lvl2 { background: #56688A; }
.dist-seg.lvl3 { background: #2C3E63; }
.dist-seg.lvl4 { background: var(--gold); }

.ladder { margin-top: 18px; max-width: 86ch; display: flex; flex-direction: column; gap: 8px; }
.rung { background: var(--panel); border: 1px solid var(--line); }
.rung.lvl1 { border-left: 4px solid #92A0B8; }
.rung.lvl2 { border-left: 4px solid #56688A; }
.rung.lvl3 { border-left: 4px solid #2C3E63; }
.rung.lvl4 { border-left: 4px solid var(--gold); }
.rung.flash { outline: 2px solid var(--gold); outline-offset: 2px; }
.rung-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; cursor: pointer;
  padding: 13px 16px; font: inherit; color: inherit; text-align: left;
}
.rung-num { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; min-width: 74px; }
.rung-share { font-family: var(--mono); font-size: .7rem; color: var(--soft); flex: 1; }
.rung-caret {
  width: 8px; height: 8px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft);
  transform: rotate(45deg); transition: transform .18s; margin-right: 4px;
}
.open .rung-caret { transform: rotate(-135deg); }
.rung-body { display: none; padding: 0 16px 16px 16px; }
.rung.open .rung-body { display: block; }
.rung-body p { font-size: .89rem; max-width: 76ch; }
.rung-effect { color: var(--soft); margin-bottom: 0 !important; }

/* ---------------- Situation board (dark section) ---------------- */

.dark-section {
  background: var(--navy);
  color: #D6DCE7;
  margin: 0 calc(-1 * clamp(24px, 5vw, 72px));
  padding: 56px clamp(24px, 5vw, 72px) 48px;
  border-bottom: 0;
}
.dark-section h2 { color: #fff; }
.dark-section .section-lede { color: #93A0B6; }

.board { display: grid; grid-template-columns: minmax(300px, 430px) 1fr; gap: 32px; align-items: start; }

.matrix-wrap { position: relative; padding: 0 0 34px 34px; position: sticky; top: 24px; }
.axis {
  position: absolute; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: #68758F;
}
.axis-x { bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.axis-y { left: 8px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg) ; white-space: nowrap; }

.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; aspect-ratio: 1; }
.quad {
  border: 1px solid rgba(255,255,255,.14);
  background: var(--navy-2);
  color: #C6CEDD; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 14px; gap: 3px; text-align: left;
  font: inherit;
  transition: transform .12s, border-color .12s, background .12s;
}
.quad i {
  font-style: normal; font-family: var(--mono); font-size: .68rem;
  border: 1px solid currentColor; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  margin-bottom: auto;
}
.quad b { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.15; color: #fff; }
.quad span { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.quad:hover { transform: translateY(-2px); }
.quad.sc-a.active { background: var(--a); border-color: #C56E78; }
.quad.sc-b.active { background: var(--b); border-color: #D69A63; }
.quad.sc-c.active { background: var(--c); border-color: #6FA98B; }
.quad.sc-d.active { background: var(--d); border-color: #9A9DB4; }
.quad.active { color: rgba(255,255,255,.85); }

.scenario-detail {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-top-width: 3px;
  padding: 24px 26px;
  min-height: 320px;
}
.scenario-detail.sc-a { border-top-color: #C56E78; }
.scenario-detail.sc-b { border-top-color: #D69A63; }
.scenario-detail.sc-c { border-top-color: #6FA98B; }
.scenario-detail.sc-d { border-top-color: #9A9DB4; }
.sc-eyebrow { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #8B98AF; margin-bottom: 10px; }
.sc-eyebrow b { color: var(--gold); }
.scenario-detail h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: #fff; margin-bottom: 14px; }
.scenario-detail p { font-size: .93rem; max-width: 66ch; margin-bottom: 12px; color: #C3CBD9; }
.sc-dynamic { border-left: 3px solid var(--gold); padding-left: 14px; color: #E4E9F1 !important; font-family: var(--serif); font-size: 1rem !important; }

/* ---------------- Provision matrix ---------------- */

.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: .8rem; font-weight: 600;
  background: var(--panel); color: var(--soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 8px; cursor: pointer;
}
.sc-tab i {
  font-style: normal; font-family: var(--mono); font-size: .68rem;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.sc-tab.sc-a i { background: var(--a); }
.sc-tab.sc-b i { background: var(--b); }
.sc-tab.sc-c i { background: var(--c); }
.sc-tab.sc-d i { background: var(--d); }
.sc-tab.active.sc-a { border-color: var(--a); color: var(--a); background: var(--a-soft); }
.sc-tab.active.sc-b { border-color: var(--b); color: var(--b); background: var(--b-soft); }
.sc-tab.active.sc-c { border-color: var(--c); color: var(--c); background: var(--c-soft); }
.sc-tab.active.sc-d { border-color: var(--d); color: var(--d); background: var(--d-soft); }

.prov-list { display: flex; flex-direction: column; gap: 6px; max-width: 92ch; }
.prov { background: var(--panel); border: 1px solid var(--line); }
.prov-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; cursor: pointer;
  padding: 12px 16px; font: inherit; color: inherit; text-align: left;
}
.prov-name { font-weight: 700; font-size: .88rem; min-width: 200px; flex: 0 0 26%; }
.prov-active { flex: 1; font-size: .84rem; color: var(--soft); padding-left: 12px; border-left: 3px solid var(--line); }
.prov-active.sc-a { border-left-color: var(--a); }
.prov-active.sc-b { border-left-color: var(--b); }
.prov-active.sc-c { border-left-color: var(--c); }
.prov-active.sc-d { border-left-color: var(--d); }
.prov-body { display: none; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 16px 16px; }
.prov.open .prov-body { display: grid; }
.prov-cell { border: 1px solid var(--line); padding: 10px 12px; font-size: .8rem; border-top-width: 3px; }
.prov-cell b { display: block; font-size: .68rem; font-family: var(--mono); letter-spacing: .04em; margin-bottom: 5px; }
.prov-cell p { margin: 0; }
.prov-cell.sc-a { border-top-color: var(--a); } .prov-cell.sc-a b { color: var(--a); }
.prov-cell.sc-b { border-top-color: var(--b); } .prov-cell.sc-b b { color: var(--b); }
.prov-cell.sc-c { border-top-color: var(--c); } .prov-cell.sc-c b { color: var(--c); }
.prov-cell.sc-d { border-top-color: var(--d); } .prov-cell.sc-d b { color: var(--d); }
.prov-cell.hl.sc-a { background: var(--a-soft); }
.prov-cell.hl.sc-b { background: var(--b-soft); }
.prov-cell.hl.sc-c { background: var(--c-soft); }
.prov-cell.hl.sc-d { background: var(--d-soft); }

/* ---------------- Indicators ---------------- */

.ind-list { max-width: 86ch; display: flex; flex-direction: column; }
.ind {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  transition: background .15s; border-left: 3px solid transparent;
}
.ind.hl { background: var(--panel); border-left-color: var(--gold); }
.ind p { margin: 0; font-size: .89rem; max-width: 64ch; }
.ind-note { color: var(--soft); font-style: italic; font-size: .84rem; }
.ind-chips { display: flex; gap: 5px; flex-shrink: 0; padding-top: 2px; }
.chip {
  font-family: var(--mono); font-size: .68rem; color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.chip.sc-a { background: var(--a); }
.chip.sc-b { background: var(--b); }
.chip.sc-c { background: var(--c); }
.chip.sc-d { background: var(--d); }

/* ---------------- Likelihood ---------------- */

.lk-list { display: flex; flex-direction: column; gap: 8px; max-width: 86ch; margin: 20px 0; }
.lk {
  display: grid; grid-template-columns: 44px 220px 1fr; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left-width: 4px;
  padding: 14px 18px; cursor: pointer; font: inherit; text-align: left; color: inherit;
}
.lk:hover { transform: translateY(-1px); }
.lk.sc-a { border-left-color: var(--a); }
.lk.sc-b { border-left-color: var(--b); }
.lk.sc-c { border-left-color: var(--c); }
.lk.sc-d { border-left-color: var(--d); }
.lk-rank {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--soft);
  border-right: 1px solid var(--line); align-self: stretch; display: flex; align-items: center;
}
.lk-name b { display: block; font-size: .95rem; }
.lk-name em { font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.lk-note { font-size: .84rem; color: var(--soft); }

/* ---------------- Timeline ---------------- */

.tl { position: relative; max-width: 82ch; padding-left: 0; }
.tl-row {
  display: grid; grid-template-columns: 120px 30px 1fr; gap: 0 10px;
  position: relative; padding: 9px 0;
}
.tl-row::before {
  content: ""; position: absolute; left: 143px; top: 0; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-date { font-family: var(--mono); font-size: .7rem; color: var(--soft); text-align: right; padding-top: 4px; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid #98A2B5;
  justify-self: center; margin-top: 6px; z-index: 1;
}
.tl-row.key .tl-dot { background: var(--gold); border-color: var(--gold); width: 12px; height: 12px; }
.tl-row.now .tl-dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(24,35,56,.15); }
.tl-row.key .tl-text { font-weight: 600; }
.tl-row.future .tl-text, .tl-row.future .tl-date { color: var(--soft); }
.tl-text { font-size: .88rem; margin: 0; max-width: 62ch; }
.tl-legend { margin-bottom: 14px; }

/* ---------------- Glossary ---------------- */

.gloss { max-width: 80ch; display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.gloss dt {
  font-weight: 700; font-size: .88rem; padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
}
.gloss dd { font-size: .88rem; color: var(--soft); padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------------- Palette ---------------- */

.palette[hidden] { display: none; }
.palette {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16,26,44,.5); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 0;
}
.palette-panel {
  width: min(560px, 100%);
  background: var(--panel); border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(10,16,28,.4);
}
#paletteInput {
  width: 100%; border: 0; outline: 0;
  padding: 16px 20px; font: inherit; font-size: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel); color: var(--ink);
}
#paletteResults { list-style: none; max-height: 46vh; overflow-y: auto; }
#paletteResults li {
  padding: 10px 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px;
  border-left: 3px solid transparent;
}
#paletteResults li b { font-size: .9rem; font-weight: 600; }
#paletteResults li span { font-size: .74rem; color: var(--soft); }
#paletteResults li.sel { background: #F5F2E8; border-left-color: var(--gold); }

/* ---------------- Provenance tags ---------------- */

.tag {
  display: inline-block; vertical-align: baseline;
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 3px;
  border: 1px solid; white-space: nowrap;
  position: relative; top: -1px;
}
.t-proposal   { color: #2C4A78; border-color: #A9BCD8; background: #EBF0F8; }
.t-commission { color: #8A6215; border-color: #D8C08A; background: #F8F1DE; }
.t-external   { color: #2E6E4E; border-color: #A3C8B4; background: #E5F1EA; }
.t-assessment { color: #5B4A76; border-color: #BCAFD0; background: #EFEAF6; }
.dark-section .tag, .scenario-detail .tag { filter: none; }

.labels-box p { line-height: 1.9; }

.present-hint {
  margin: 0 20px 14px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(168,123,45,.14);
  border: 1px solid rgba(168,123,45,.45);
  color: #D8BC85;
  font-family: var(--sans); font-size: .8rem;
  padding: 7px 10px; border-radius: 6px;
  cursor: pointer;
}
.present-hint:hover { background: rgba(168,123,45,.25); color: #F0DDB4; }
.present-hint kbd {
  font-family: var(--mono); font-size: .7rem;
  border: 1px solid rgba(216,188,133,.5); border-radius: 4px;
  padding: 1px 6px;
}

/* ---------------- Present mode ---------------- */

body.presenting .sidebar,
body.presenting .nav-toggle,
body.presenting .nav-scrim,
body.presenting .page-foot { display: none; }

body.presenting main {
  margin-left: 0; max-width: none; padding: 0;
}
body.presenting main > .hero,
body.presenting main > .section { display: none; }

body.presenting main > .slide-active {
  display: block;
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  padding: clamp(40px, 7vh, 80px) clamp(28px, 8vw, 140px) 110px;
  border-bottom: 0;
  font-size: 1.05em;
}
body.presenting main > .hero.slide-active {
  display: flex; flex-direction: column; justify-content: center;
}
body.presenting main > .dark-section.slide-active {
  margin: 0; padding-left: clamp(28px, 8vw, 140px); padding-right: clamp(28px, 8vw, 140px);
}
body.presenting .section h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
body.presenting .section p { max-width: 76ch; }

.hud {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #C7CEDC;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 10px 34px rgba(10,16,28,.35);
  max-width: min(92vw, 720px);
}
.hud[hidden] { display: none; }
.hud-btn {
  font: inherit; font-size: .85rem;
  background: rgba(255,255,255,.08); color: #E4E9F1;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 4px 12px; cursor: pointer;
}
.hud-btn:hover { background: rgba(255,255,255,.18); }
.hud-exit { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; }
.hud-count { font-family: var(--mono); font-size: .72rem; color: var(--gold); white-space: nowrap; }
.hud-title {
  font-size: .8rem; color: #AEB8C9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}
@media (max-width: 700px) {
  .hud-title { display: none; }
}

/* ---------------- Footer ---------------- */

.page-foot { padding: 40px 0 0; }
.page-foot p { font-family: var(--mono); font-size: .65rem; letter-spacing: .05em; color: var(--soft); }

/* ---------------- Focus ---------------- */

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .board { grid-template-columns: 1fr; }
  .matrix-wrap { position: static; max-width: 430px; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  main { margin-left: 0; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .22s ease;
    width: 300px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(10,16,28,.35); }
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(16,26,44,.45);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    position: fixed; top: 14px; left: 14px; z-index: 50;
    width: 42px; height: 42px; padding: 0 11px;
    background: var(--navy); border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; }
  .hero { padding-top: 76px; }
  .pair, .critique-grid, .objectives, .presidency-track { grid-template-columns: 1fr; }
  .prov-body { grid-template-columns: 1fr 1fr; }
  .prov-head { flex-wrap: wrap; gap: 6px; }
  .prov-name { flex: 1 1 100%; min-width: 0; }
  .prov-active { border-left-width: 3px; }
  .gloss { grid-template-columns: 1fr; }
  .gloss dt { border-bottom: 0; padding-bottom: 0; }
  .ind { flex-direction: column; gap: 8px; }
  .lk { grid-template-columns: 36px 1fr; }
  .lk-note { grid-column: 1 / -1; }
  .tl-row { grid-template-columns: 86px 24px 1fr; }
  .tl-row::before { left: 106px; }
  .tl-date { font-size: .62rem; }
}

@media (max-width: 560px) {
  .prov-body { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
}
