/* ════════════════════════════════════════════════════════════════
   Data Room — shared UI layer (light institutional)
   Top bar · global search field · canonical record row · PERISPACE
   Used by: Entry (Hub) v2, Search v2
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Additive tokens ONLY. The base palette + typography come from
     colors_and_type.css (the single canonical token file, loaded first).
     Do not redefine tokens that already live there — keep one :root of truth. */

  /* severity ramp (dark variants for light bg) */
  --sev-low-d:  #5A8A6E;
  --sev-mid-d:  #C08B3A;
  --sev-high-d: #B84E52;

  /* surfaces + hairlines specific to the data-room embed shell */
  --page-bg: #FFFFFF;
  --hair:    var(--color-ecru);
  --hair-2:  var(--color-jacket);

  /* navy top-bar internals */
  --bar-surface-1: rgba(244,243,245,0.07);
  --bar-surface-2: rgba(244,243,245,0.13);
  --bar-hair:      rgba(244,243,245,0.16);
  --bar-text:      #F4F3F5;
  --bar-muted:     #B9C6C9;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--fg-body);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════════
   NAV MODEL — "Ink" frame: a white document sheet on a dark canvas, a
   quiet static masthead (scrolls away), a red→teal identity band, and a
   floating dock (Advanced search · ⌘K · PERISPACE). Replaces the old
   navy top band. (Design handover: Data Spaces — Navigation Refresh.)
   ════════════════════════════════════════════════════════════════ */

/* ── dark canvas + white sheet ── */
body.dataroom { background: #1E2630; }
.app { display: flex; flex-direction: column; min-height: 100dvh; }
.shell {
  --shellw: 82rem;   /* one sheet width for every page (Nav & Table redesign §A.2) */
  width: 100%; max-width: var(--shellw); margin: 0 auto; flex: 1 1 auto;
  background: #fff; box-shadow: 0 2px 80px rgba(0,0,0,0.5);
}
/* page content fills the sheet — its own padding insets it from the edge */
.shell .wrap, .shell #search-wrap, .shell .peri-layout, .shell .r-hero-wrap { max-width: none; }

/* ── static masthead (sits on the sheet, scrolls away) ── */
.mainmenu { position: relative; background: #fff; }
.mainmenu::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-eurepoc-red) 0 58px, #002C38 58px);
}
.mm-inner { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-5) clamp(1.25rem, 4vw, 2.75rem); }
.mm-brand { display: flex; align-items: center; gap: var(--space-4); flex: none; }
.mm-logo { display: inline-flex; text-decoration: none; flex: none; }
.mm-logo img { height: 40px; width: auto; display: block; }
.mm-sep { width: 1px; height: 26px; background: var(--color-oatmeal); flex: none; }
.mm-product { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--color-charcoal); white-space: nowrap; flex: none; }
.mm-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 2rem); }
.mm-nav a { position: relative; font-family: var(--font-ui); font-size: var(--text-base); color: var(--color-stone); text-decoration: none; padding: 4px 0; white-space: nowrap; transition: color var(--transition-base); }
.mm-nav a:hover { color: var(--color-charcoal); }
.mm-nav a.on { color: var(--color-navy); font-weight: var(--weight-medium); }
.mm-nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--color-navy); border-radius: 2px; }
.mm-dockspace { width: 372px; flex: none; }

/* ── floating dock — pinned at the sheet's right edge, always visible ── */
.dock {
  position: fixed; top: 18px; z-index: 120; display: flex; align-items: center; gap: var(--space-3);
  right: max(clamp(1.25rem, 4vw, 2.75rem), calc((100% - var(--dockw, 82rem)) / 2 + clamp(1.25rem, 4vw, 2.75rem)));
}
.dock-search {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; flex: none;
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--color-navy); background: #fff; border: 1px solid var(--color-navy); border-radius: var(--radius-md);
  text-decoration: none; white-space: nowrap; transition: background var(--transition-base), color var(--transition-base);
}
.dock-search:hover { background: var(--color-navy); color: #fff; }
.dock-search i { font-size: 15px; }
/* the "/" badge hints the jump-and-search shortcut (the key opens the palette,
   not this link). A keycap look — contrasting fill + bottom lip — so it reads on
   the white Search button (the old ⌘K key sat on the darker ecru command button). */
.dock-search kbd { font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-medium); line-height: 1; color: var(--color-navy); background: var(--color-ecru); border: 1px solid var(--color-oatmeal); border-radius: var(--radius-sm); padding: 2px 6px; box-shadow: 0 1px 0 var(--color-oatmeal); transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
.dock-search:hover kbd { color: #fff; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.dock-cmd {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 9px; cursor: pointer;
  background: var(--color-ecru); border: 1px solid var(--color-oatmeal); border-radius: var(--radius-md); color: var(--color-stone);
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.dock-cmd:hover { background: var(--color-bone); border-color: var(--color-stone); color: var(--color-charcoal); }
.dock-cmd i { font-size: 16px; }
.dock-cmd kbd { font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--color-stone); background: var(--color-linen); border: 1px solid var(--color-oatmeal); border-radius: var(--radius-sm); padding: 3px 5px; }
.dock .peri-wrap { position: relative; }
.peri-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; height: 34px;
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--color-navy); background: var(--color-ecru); border: 1px solid var(--color-oatmeal); border-radius: var(--radius-md);
  padding: 0 11px; cursor: pointer; white-space: nowrap; transition: background var(--transition-base), border-color var(--transition-base);
}
.peri-btn:hover { background: var(--color-bone); border-color: var(--color-stone); }
.peri-btn i { font-size: 16px; }
.peri-btn .ct {
  display: none; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-semibold);
  color: #fff; background: var(--color-navy); border-radius: 999px;
}
.peri-btn .ct.show { display: inline-flex; }

/* the self-referential control is dropped on its own page */
body.nav-search .dock-search { display: none; }
body.nav-perispace .dock .peri-wrap { display: none; }

@media (max-width: 980px) { .mm-dockspace { width: 250px; } .dock-search .ds-lbl, .dock-search kbd { display: none; } .dock-search { padding: 0 9px; } }
@media (max-width: 880px) { .mm-nav a[data-sec-link] { display: none; } }
@media (max-width: 720px) { .mm-dockspace { display: none; } .mm-nav { display: none; } .peri-btn .lbl { display: none; } }

/* ── ⌘K command palette overlay ── */
.cmdk-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(17,25,26,0.45); opacity: 0; visibility: hidden; transition: opacity var(--transition-base), visibility var(--transition-base); }
.cmdk-scrim.open { opacity: 1; visibility: visible; }
.cmdk {
  position: fixed; z-index: 210; top: 11vh; left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(640px, 92vw); max-height: 72vh; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--hair-2); border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(17,25,26,0.30);
  opacity: 0; visibility: hidden; transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}
.cmdk.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cmdk-field { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--hair); }
.cmdk-field i { font-size: 18px; color: var(--color-stone); flex: none; }
.cmdk-field input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-family: var(--font-ui); font-size: var(--text-lg); color: var(--color-charcoal); }
.cmdk-field input::placeholder { color: var(--color-oatmeal); }
.cmdk-field kbd { font-family: var(--font-mono); font-size: 11px; color: var(--color-stone); background: var(--color-linen); border: 1px solid var(--color-oatmeal); border-radius: var(--radius-sm); padding: 3px 6px; flex: none; }
.cmdk-body { overflow-y: auto; padding: var(--space-2); scrollbar-width: thin; }
.cmdk-lab { font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone); padding: var(--space-3) var(--space-3) var(--space-1); }
.cmdk-quick { display: flex; flex-direction: column; }
.cmdk-quick a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); text-decoration: none; color: var(--color-charcoal); font-size: var(--text-md); }
.cmdk-quick a:hover, .cmdk-quick a.on { background: var(--color-linen); }
.cmdk-quick a i { font-size: 18px; color: var(--color-navy); flex: none; }
.cmdk-quick a .sub { margin-left: auto; font-size: var(--text-xs); color: var(--color-stone); }
.cmdk-loading { padding: var(--space-5); text-align: center; font-size: var(--text-sm); color: var(--color-stone); }

/* ── persistent left rail ("side paper") — every document page is two-column,
   so the sheet/masthead/rail stay put when navigating (Nav & Table redesign §A.3).
   The band stack lives in the right column; the rail is a tonal column with a fold
   line carrying the section nav (scroll-spy via rail_nav.js). ── */
.rail-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
.railcol { align-self: stretch; background: var(--color-linen); border-right: 1px solid var(--color-oatmeal); }
.rail-sticky { position: sticky; top: var(--space-5); padding: var(--space-8) var(--space-5) var(--space-8) clamp(1.25rem, 4vw, 2.75rem); }
.rail-eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone); margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-oatmeal); }
.rail-nav { display: flex; flex-direction: column; }
.rail-nav a { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--color-stone); text-decoration: none; padding: 8px 0 8px var(--space-4); border-left: 2px solid transparent; margin-left: -2px; transition: color var(--transition-base), border-color var(--transition-base); }
.rail-nav a:hover { color: var(--color-charcoal); }
.rail-nav a.on { color: var(--color-navy); font-weight: var(--weight-medium); border-left-color: var(--color-navy); }
/* Rail "Actions" zone — a peer section to Contents (it reuses .rail-eyebrow, so
   the same uppercase label + hairline rule), reliably under the contents index.
   Quiet text links (muted icon · dark label), not boxed buttons; the PERISPACE
   link is the one stateful control — it turns navy with a check once in your
   dossier (perispace.js flips the icon ph-plus → ph-check). */
.rail-acts { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-8); align-items: flex-start; }
.ra-btn { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-charcoal); background: none; border: none; border-radius: var(--radius-sm); padding: 2px 0; cursor: pointer; text-decoration: none; transition: color var(--transition-base); }
.ra-btn i { font-size: 17px; flex: none; color: var(--color-stone); transition: color var(--transition-base); }
.ra-btn:hover { color: var(--color-navy); }
.ra-btn:hover i { color: var(--color-navy); }
.ra-btn:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }
.ra-peri.in, .ra-peri.in i { color: var(--color-navy); }
.bandstack { min-width: 0; }
@media (max-width: 880px) {
  .rail-grid { grid-template-columns: 1fr; }
  /* The rail is relocated into the bottom dock on mobile: TOC pages (region /
     landing / country) get a Contents tab built from the rail nav, while incident /
     response get a Share tab built from the rail's PDF / dossier actions. Hide the
     whole rail column — rail_nav.js reads & proxies it before it's hidden. */
  .railcol { display: none; }
}

/* ───────── dropdown panels (search portal + PERISPACE) ───────── */
.gs-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(17,25,26,0.28);
  opacity: 0; visibility: hidden; transition: opacity var(--transition-base), visibility var(--transition-base);
}
.gs-scrim.open { opacity: 1; visibility: visible; }

.drop {
  position: absolute; top: calc(100% + 8px); z-index: 110;
  background: #FFFFFF; border: 1px solid var(--hair-2);
  border-radius: var(--radius-md); box-shadow: var(--shadow-overlay, 0 4px 16px rgba(50,41,47,0.14)), 0 14px 40px rgba(17,25,26,0.12);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}
.drop.open { opacity: 1; visibility: visible; transform: translateY(0); }

.gs-panel { left: 0; right: 0; max-height: min(64vh, 520px); overflow-y: auto; padding: var(--space-2); scrollbar-width: thin; }
.gs-hint { font-size: var(--text-sm); color: var(--color-stone); padding: var(--space-3); }
.gs-hint b { font-family: var(--font-mono); font-weight: var(--weight-medium); color: var(--color-charcoal); }
.gs-empty { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-3); font-size: var(--text-sm); color: var(--color-stone); }
.gs-empty i { font-size: 16px; color: var(--color-oatmeal); }
.gs-group + .gs-group { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--hair); }
.gs-glab { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-1); }
.gs-glab .l { font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone); display: inline-flex; align-items: center; gap: 6px; }
.gs-glab .l i { font-size: 12px; color: var(--color-oatmeal); }
.gs-glab .n { font-family: var(--font-mono); font-size: 10px; color: var(--color-oatmeal); }
.gs-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-2); padding: var(--space-3); border-top: 1px solid var(--hair); background: #FFFFFF;
}
.gs-foot .enter { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-navy); text-decoration: none; font-weight: var(--weight-medium); }
.gs-foot .enter:hover { color: var(--color-navy-mid); }
.gs-foot .enter i { font-size: 15px; }
.gs-foot .keys { font-family: var(--font-mono); font-size: 11px; color: var(--color-oatmeal); }

/* PERISPACE dropdown */
.peri-wrap { position: relative; justify-self: end; }
.peri-panel { right: 0; width: min(420px, 92vw); max-height: min(60vh, 480px); display: flex; flex-direction: column; }
.peri-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); border-bottom: 1px solid var(--hair); }
.peri-head .t { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-charcoal); }
.peri-head .n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-stone); }
/* dossier switcher — pick the active dossier from the nav panel */
.peri-doss { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hair); }
.peri-doss .pd-lab { font-size: 9.5px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone); }
/* dropdown switcher (scales to many dossiers; native option list escapes the panel) */
.pd-select-wrap { position: relative; display: flex; align-items: center; }
.pd-select-wrap .pd-ic { position: absolute; left: 11px; font-size: 15px; color: var(--color-navy); pointer-events: none; }
.pd-select-wrap .pd-caret { position: absolute; right: 10px; font-size: 14px; color: var(--color-stone); pointer-events: none; }
.pd-select { width: 100%; appearance: none; -webkit-appearance: none; -moz-appearance: none; font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-charcoal); background: #fff; border: 1px solid var(--color-oatmeal); border-radius: var(--radius-md); padding: 8px 30px 8px 33px; cursor: pointer; text-overflow: ellipsis; transition: border-color var(--transition-base); }
.pd-select:hover { border-color: var(--color-stone); }
.pd-select:focus { outline: none; border-color: var(--color-navy); }

/* ── nowcast overlay on .tl monthly bars (in-progress month) ──
   .tl-est = striped extension from observed up to the Bayesian median;
   .tl-whisker = thin capped line spanning the credible interval. Both are
   absolutely placed inside the position:relative .tl-bar-wrap, with bottom/
   height set inline (bar_px units) so they align with the grey base bar. */
.tl-bar-wrap .tl-est {
  position: absolute; left: 0; right: 0; width: 100%; border-radius: 2px 2px 0 0;
  background-image: repeating-linear-gradient(45deg, var(--color-stone) 0 2px, transparent 2px 5px);
  opacity: 0.6;
}
.tl-bar-wrap .tl-whisker {
  position: absolute; left: 50%; transform: translateX(-50%); width: 2px;
  background: var(--color-charcoal); opacity: 0.65;
}
.tl-bar-wrap .tl-whisker::before, .tl-bar-wrap .tl-whisker::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 7px; height: 2px; background: var(--color-charcoal);
}
.tl-bar-wrap .tl-whisker::before { top: 0; }
.tl-bar-wrap .tl-whisker::after { bottom: 0; }
.peri-list { overflow-y: auto; min-height: 0; padding: var(--space-2) var(--space-3); }
.peri-empty { padding: var(--space-6) var(--space-4); text-align: center; font-size: var(--text-sm); color: var(--color-stone); }
.peri-empty i { display: block; font-size: 24px; color: var(--color-oatmeal); margin-bottom: var(--space-2); }
.peri-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: var(--space-3); padding: 9px var(--space-2); border-bottom: 1px solid var(--hair); }
.peri-item:last-child { border-bottom: none; }
.peri-sub { font-size: 9.5px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone); padding: var(--space-3) var(--space-2) var(--space-1); }
a.peri-search { text-decoration: none; transition: background var(--transition-base); border-radius: var(--radius-sm); }
a.peri-search:hover { background: var(--color-slate-pale); }
a.peri-search .pn { white-space: normal; display: flex; align-items: flex-start; gap: 6px; }
a.peri-search .pn i { color: var(--color-navy); font-size: 14px; margin-top: 2px; flex: none; }
.new-badge { display: inline-block; margin-left: 8px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--color-navy); border-radius: var(--radius-pill); padding: 1px 6px; vertical-align: middle; line-height: 1.6; }
.peri-item .pn { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peri-item .pk { font-size: var(--text-xs); color: var(--color-stone); }
.peri-item .rm { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; background: none; border: none; border-radius: var(--radius-sm); color: var(--color-stone); cursor: pointer; transition: background var(--transition-base), color var(--transition-base); }
.peri-item .rm:hover { background: var(--color-linen); color: var(--color-charcoal); }
.peri-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--hair); }
.peri-foot .build {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-medium); color: #fff;
  background: var(--color-navy); border: none; border-radius: var(--radius-sm);
  padding: 9px 14px; cursor: pointer; transition: background var(--transition-base);
}
.peri-foot .build:hover { background: var(--color-navy-mid); }
.peri-foot .build:disabled { background: var(--color-bone); color: var(--color-stone); cursor: default; }
.peri-foot .open-link { font-size: var(--text-xs); color: var(--color-stone); text-decoration: none; }
.peri-foot .open-link:hover { color: var(--color-navy); }

/* ───────── canonical record row ─────────
   One component for: search results, hub pulse, dropdown portal, dossier lists.
   Density via container class: .rows (regular) / .rows.compact            */
.row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: start; gap: var(--space-3) var(--space-4);
  width: 100%; text-align: left;
  padding: 15px var(--space-3);   /* Option F: room for the sigil chip + two-line rail */
  border-bottom: 1px solid var(--hair);
  cursor: pointer; color: inherit; text-decoration: none;
  transition: background var(--transition-base);
}
.row:hover, .row.active, .row:focus-visible { background: var(--color-linen); outline: none; }
.rows > .row:last-child, .gs-group .row:last-child { border-bottom: none; }

.mk { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; font-size: 17px; margin-top: 1px; }
.mk.inc { background: var(--color-linen); border: 1px solid var(--hair-2); color: var(--color-navy); }
.row:hover .mk.inc { background: #FFFFFF; }

.bd { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nm { font-size: 15.5px; font-weight: var(--weight-medium); color: var(--color-charcoal); line-height: 1.32; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.nm mark { background: var(--color-slate-pale); color: var(--color-navy); padding: 0 1px; border-radius: 2px; }
.mt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-4); }
.mo { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.mo i.ph { font-size: 14px; flex: none; color: var(--color-oatmeal); }
.mo .v { font-size: 12.5px; color: var(--color-stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo.re .v { font-style: italic; }

/* attribution → response, as two linked dots (filled = present; navy when both) */
.att { display: inline-flex; align-items: center; }
.att .d { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--color-oatmeal); background: transparent; box-sizing: border-box; flex: none; }
.att .d.on { background: var(--color-stone); border-color: var(--color-stone); }
.att .lnk { width: 6px; height: 1.5px; background: var(--color-oatmeal); flex: none; }
.att.both .d.on { background: var(--color-navy); border-color: var(--color-navy); }
.att.both .lnk { background: var(--color-navy); }
.att-mo { gap: 0; }
/* size variants for richer contexts (incident hero lead · attribution section) */
.att-md .d { width: 11px; height: 11px; border-width: 1.5px; }
.att-md .lnk { width: 7px; }
.att-lg .d { width: 15px; height: 15px; border-width: 2px; }
.att-lg .lnk { width: 10px; height: 2px; }

/* ───────── Option F row — sigil chip · reading rail · date ─────────
   Per-row inline vars: --c = type colour, --gcol = severity colour, --gw = ring
   weight. The chip codes type (glyph + 13% tint) and severity (ring, no number);
   the dots beneath code attribution → response. Reading rail leads with the parsed
   event, with the full official title beneath as the citable record. */
.sig { width: 58px; display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }
.sig-chip {
  width: 44px; height: 44px; border-radius: 0;     /* sharp — a coded field stamp */
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: color-mix(in srgb, var(--c) 13%, #fff);   /* fill = TYPE colour @13% */
  color: var(--c);                                       /* glyph = TYPE colour */
  border: var(--gw, 2px) solid var(--gcol, var(--color-oatmeal));  /* ring = SEVERITY */
}
.sig-att .att { transform: scale(0.82); }

/* ── Response Row R1 — circle sigil + weight meter + state stack ──
   A response reads as a CIRCLE (vs the incident's square stamp): no severity
   ring, the border is the instrument colour. Beneath it, a two-square weight
   meter sits in the slot the incident's attribution dots occupy — square (never
   round, never connected) so the two devices never blur in a mixed list. */
.rrow .sig-chip { border-radius: 50%; border: 2px solid var(--c); }
/* Circle sigil outside a row (e.g. response detail header) — same look as .rrow */
.sig-chip.sig-round { border-radius: 50%; border: 2px solid var(--c); }
.sig .card { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.sig .ct { width: 7px; height: 7px; border-radius: 1.5px; background: var(--color-jacket); box-sizing: border-box; flex: none; }
.sig .ct.on { background: var(--color-stone); }

/* response reading rail: issuer → target leads, official title sits beneath */
.rrow .f-main { align-items: center; }
.rrow .f-main .ini { display: inline-flex; align-items: center; }
.rrow .f-main .tgt.unk { color: var(--color-stone); font-weight: var(--weight-regular); }
/* issuer — single ISO tag, or a state stack ("N states" + quiet mode word) */
.rrow .iso { font-family: var(--font-mono); font-size: 10px; font-weight: var(--weight-semibold); color: var(--color-stone); background: var(--color-linen); border: 1px solid var(--hair-2); border-radius: 3px; padding: 1px 4px; letter-spacing: 0.04em; margin-right: 6px; flex: none; }
.rrow .sstack { display: inline-flex; align-items: center; flex: none; }
.rrow .iso2 { width: 19px; height: 19px; border-radius: 50%; background: var(--color-linen); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--hair-2); margin-left: -6px; font-family: var(--font-mono); font-size: 7.5px; font-weight: 600; color: var(--color-navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rrow .iso2:first-child { margin-left: 0; }
.rrow .iso2.more { color: var(--color-stone); background: var(--color-ecru); }
.rrow .statelabel { font-weight: var(--weight-semibold); color: var(--color-navy); margin-left: 7px; white-space: nowrap; }
.rrow .mode { color: var(--color-stone); font-weight: var(--weight-regular); white-space: nowrap; }
.rrow .mode::before { content: "·"; color: var(--color-oatmeal); margin: 0 6px 0 3px; }

.f-main { font-family: var(--font-ui); font-size: var(--text-md); line-height: 1.3; color: var(--color-charcoal); display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; min-width: 0; }
.f-main .ini { font-weight: var(--weight-semibold); color: var(--color-navy); white-space: nowrap; }
.f-main .arr { color: var(--color-oatmeal); font-size: 13px; display: inline-flex; align-self: center; }
.f-main .tgt { font-weight: var(--weight-semibold); white-space: nowrap; }
.f-main .sct { color: var(--color-stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.f-main .sct .mid { color: var(--color-oatmeal); margin: 0 5px 0 3px; }
.f-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-family: var(--font-ui); font-size: 13px; color: var(--color-stone); line-height: 1.45; margin-top: 4px; text-wrap: pretty; }
/* response variant: the title is the act (charcoal, leads), the meta line is quiet */
.f-title.rt-title { color: var(--color-charcoal); font-weight: var(--weight-medium); font-size: var(--text-md); line-height: 1.36; margin-top: 0; }
.xr-rev { font-family: var(--font-ui); font-size: 12px; color: var(--color-stone); margin-top: 5px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.xr-rev i.ph { font-size: 13px; color: var(--color-oatmeal); }
.xr-rev .s { color: var(--color-oatmeal); }
.xr-rev .re { font-style: italic; }

.xr-rt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; padding-top: 2px; }
.xr-date { font-family: var(--font-mono); font-size: 12px; color: var(--color-stone); white-space: nowrap; min-width: 92px; }
.xr-cat { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--color-stone); white-space: nowrap; }

/* ───────── shared hover/popup card (list rows + editorial links) ───────── */
:root { --hc-inc: #102D56; --hc-rsp: #3E7C8E; }
.hc-float { position: fixed; z-index: 9999; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 55ms ease, visibility 55ms; pointer-events: none; }
.hc-float.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 130ms ease, transform 130ms ease; }
.hc { width: 420px; max-width: calc(100vw - 24px); background: #FFFFFF; border: 1px solid var(--color-oatmeal); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay, 0 4px 16px rgba(50,41,47,0.14)); overflow: hidden; --hc-accent: var(--hc-inc); cursor: pointer; }
.hc.rsp { --hc-accent: var(--hc-rsp); }
.hc-accentbar { height: 3px; background: var(--hc-accent); }
.hc-media { position: relative; height: 108px; background: var(--color-ecru); }
.hc-media .map-stub { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--color-stone); font-size: 12px; background: repeating-linear-gradient(45deg, var(--color-ecru), var(--color-ecru) 10px, var(--color-linen) 10px, var(--color-linen) 20px); }
.hc-media .map-stub i { font-size: 16px; color: var(--color-oatmeal); }
.hc-media .hc-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--hc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hc-accent) 26%, transparent); }
.hc-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.hc-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--hc-accent); }
.hc-eyebrow .ic { font-size: 13px; } .hc-eyebrow .sep { color: var(--color-oatmeal); } .hc-eyebrow .meta { color: var(--color-stone); font-weight: var(--weight-medium); }
.hc-title { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: 1.25rem; line-height: 1.18; color: var(--color-charcoal); margin: 8px 0; }
.hc-desc { font-size: 13.5px; line-height: 1.55; color: var(--fg-body, #1A1D1C); margin: 0 0 var(--space-4); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.hc-fact { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-charcoal); padding: 5px 0; }
.hc-fact + .hc-fact { border-top: 1px solid var(--color-ecru); }
.hc-fact i { font-size: 15px; color: var(--hc-accent); flex: none; } .hc-fact .k { color: var(--color-stone); } .hc-fact.re { font-style: italic; color: var(--color-stone); }
.hc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--hc-accent); text-decoration: none; }
.hc-go i { font-size: 15px; transition: transform var(--transition-base); }
.hc:hover .hc-go i { transform: translateX(3px); }
.xref { text-decoration: none; cursor: pointer; border-bottom: 1.5px dotted; padding-bottom: 1px; }
.xref.inc { color: var(--hc-inc); border-color: var(--hc-inc); }
.xref.rsp { color: var(--hc-rsp); border-color: var(--hc-rsp); }

.rt { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; text-align: right; padding-top: 1px; }
.tp { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: var(--weight-medium); letter-spacing: 0.03em; text-transform: uppercase; color: var(--color-stone); white-space: nowrap; }
.tp .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.dt { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-stone); white-space: nowrap; }
.sv { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12px; color: var(--color-charcoal); }
.sv .d { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sv.unscored { font-family: var(--font-ui); font-size: 11px; font-style: italic; color: var(--color-oatmeal); }

/* row actions — PDF briefing + add to dossier.
   Always visible (works on touch / iPad, supports batch-collecting), but quiet
   at rest so they don't shout on every row; firm up on direct hover. */
.acts { display: flex; flex-direction: column; gap: 4px; flex: none; }
.act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--color-stone); cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}
.act i { font-size: 15px; }
.row:hover .act { border-color: var(--hair-2); }
.act:hover { color: var(--color-navy); background: var(--color-linen); border-color: var(--color-oatmeal); }
.act.in, .act.in:hover { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

/* compact density (pulse rail, dropdown) */
.compact .row { grid-template-columns: 26px minmax(0,1fr) auto auto; padding: 10px var(--space-1); gap: var(--space-2); }
.compact .mk { width: 26px; height: 26px; font-size: 13px; }
.compact .nm { font-size: var(--text-sm); }
.compact .mo .v { font-size: 11px; }
.compact .dt { font-size: 10.5px; }
.compact .sv { font-size: 10.5px; }
.compact .acts { flex-direction: row; }
.compact .act { width: 25px; height: 25px; }
.compact .act i { font-size: 13px; }

/* no-actions variant (e.g. inside the quick dropdown) */
.no-acts .row { grid-template-columns: 30px minmax(0, 1fr) auto; }
.no-acts.compact .row { grid-template-columns: 26px minmax(0, 1fr) auto; }
.no-acts .acts { display: none; }

/* ───────── toast ───────── */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-ink); color: var(--color-linen);
  font-size: var(--text-sm); padding: 11px 16px; border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(17,25,26,0.3);
  opacity: 0; transform: translateY(6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.toast.show { opacity: 1; transform: none; }
.toast i { font-size: 16px; color: var(--color-slate-pale); flex: none; }
.toast .sub { color: var(--color-oatmeal); font-size: var(--text-xs); }

/* ───────── shared section furniture ───────── */
.eyebrow {
  font-size: 10.5px; font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone);
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--space-3);
}
.eyebrow .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--color-eurepoc-red); box-shadow: 0 0 0 3px rgba(204,1,48,0.14); }
@media (prefers-reduced-motion: no-preference) {
  .eyebrow .pip { animation: dr-pulse 2.4s var(--ease-default) infinite; }
  @keyframes dr-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(204,1,48,0.14); } 50% { box-shadow: 0 0 0 5px rgba(204,1,48,0.04); } }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: dr-rise 0.5s var(--ease-out) both; }
  .rise.d1 { animation-delay: 0.03s; }
  .rise.d2 { animation-delay: 0.10s; }
  .rise.d3 { animation-delay: 0.17s; }
  @keyframes dr-rise { from { transform: translateY(10px); } to { transform: none; } }
}

/* Tablet / large phone: tighten to brand · search · PERISPACE-icon on one row */
@media (max-width: 860px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); }
  .top-link { display: none; }
  .gs-kbd { display: none; }
  .peri-btn .lbl { display: none; }
  .gs { width: 100%; }
}
/* Phone: search relocates to a fixed bottom bar (thumb-reachable) — global across surfaces */
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .brand img { height: 28px; }
  .peri-wrap { margin-left: auto; }
  .gs {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 110;
    width: auto; justify-self: stretch;
    background: var(--color-navy);
    border-top: 1px solid var(--color-oatmeal);
    padding: var(--space-3) var(--space-4);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    transition: bottom var(--transition-base);
  }
  .gs-field { height: 46px; }
  /* portal pages: show the explicit launcher button instead of the live field */
  .gs-haslauncher .gs-field { display: none; }
  .gs-launch {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; height: 46px;
    padding: 0 var(--space-4);
    background: var(--bar-surface-2); border: 1px solid var(--bar-hair); border-radius: var(--radius-md);
    font-family: var(--font-ui); font-size: var(--text-md); font-weight: var(--weight-medium);
    color: var(--bar-text); cursor: pointer; text-align: center; transition: background var(--transition-base), border-color var(--transition-base);
  }
  .gs-launch:active { background: var(--bar-surface-1); border-color: var(--color-slate); }
  .gs-launch > i:first-child { font-size: 17px; color: var(--bar-muted); flex: none; }
  .gs-launch .gs-launch-lab { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gs-launch .gs-launch-arr { font-size: 16px; color: var(--color-slate-pale); flex: none; }
  .app { padding-bottom: 84px; }                         /* clear the fixed bottom bar */
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM DOCK (≤880px) — the floating top-right tools relocate into a
   flat, labelled bottom tab bar (V1) in the thumb arc, and the PERISPACE
   dropdown opens as a push-up sheet rising from the dock. Desktop (>880px) is
   byte-for-byte unchanged. Design: "Mobile Bottom Dock — Nav Tools".
   ══════════════════════════════════════════════════════════════════════════ */

/* these elements exist only for the mobile dock; hidden on desktop */
.dock-filters, .dock-toc, .dock-share, .dc-lbl, .ds-lbl-sm, .peri-grab, .dock-scrim { display: none; }

@media (max-width: 880px) {
  /* the dock → full-width bottom tab bar, flat (single hairline, no shadow) */
  .dock {
    top: auto; bottom: 0; left: 0; right: 0;
    display: flex; gap: 0; align-items: stretch;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--color-oatmeal);
    z-index: 120;
  }

  /* every control becomes an equal-width tab: icon stacked over a small label */
  .dock .dock-search, .dock .dock-filters, .dock .dock-toc, .dock .dock-share, .dock .peri-btn {
    flex: 1 1 0; min-width: 0; min-height: 44px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: auto; padding: 6px 2px 4px;
    background: none; border: none; border-radius: var(--radius-md);
    color: var(--color-stone); font-weight: var(--weight-regular);
    -webkit-tap-highlight-color: transparent;
    transition: color var(--transition-base), background var(--transition-base);
  }
  .dock .dock-search:hover, .dock .dock-filters:hover, .dock .dock-toc:hover, .dock .dock-share:hover, .dock .peri-btn:hover {
    background: none; border-color: transparent; color: var(--color-charcoal);
  }
  .dock .dock-search:active, .dock .dock-filters:active, .dock .dock-toc:active, .dock .dock-share:active, .dock .peri-btn:active {
    background: var(--color-linen);
  }
  .dock .dock-search i, .dock .dock-filters i, .dock .dock-toc i, .dock .dock-share i, .dock .peri-btn i { font-size: 21px; }

  /* labels: hide the desktop-only long label, show the small tab labels */
  .dock .ds-lbl { display: none; }
  .dock .ds-lbl-sm, .dock .dock-filters .l, .dock .dock-toc .l, .dock .dock-share .l, .dock .peri-btn .lbl {
    display: block; font-family: var(--font-ui); font-size: 10px; font-weight: var(--weight-medium);
    letter-spacing: 0.01em; line-height: 1; max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* The ⌘K search overlay is dropped on mobile — search lives on the Advanced-search
     tab (→ /search/). The freed first slot holds either the Contents (TOC) tab or, on
     incident / response pages, the Share tab — rail_nav.js reveals whichever applies. */
  .dock .dock-cmd { display: none; }

  /* order: Contents/Share · sliders (Advanced / Filters) · PERISPACE */
  .dock .dock-toc, .dock .dock-share { order: 1; display: none; }
  .dock .dock-toc.avail, .dock .dock-share.avail { display: flex; }
  .dock .dock-search, .dock .dock-filters { order: 2; }
  .dock .peri-wrap { order: 3; flex: 1 1 0; min-width: 0; display: flex; position: relative; }
  .dock .peri-wrap .peri-btn { width: 100%; }

  /* no false "active" tab — a tool turns navy ONLY while its surface is open */
  .dock .dock-toc.open, .dock .dock-share.open, .dock .dock-filters.open, .dock .peri-btn.open { color: var(--color-navy); }

  /* count badge → small superscript pill riding the tab (keeps the .show toggle) */
  .dock .peri-btn .ct {
    position: absolute; top: 3px; left: calc(50% + 6px);
    min-width: 15px; height: 15px; padding: 0 4px; font-size: 9px; border: 1.5px solid #fff;
  }

  /* active-filters dot on the Filters tab (parity with the search-page FAB).
     Re-hide by default — the shared tab rule above sets display:flex, but the
     Filters tab must stay hidden except on the search page (rule below). */
  .dock .dock-filters { position: relative; display: none; }
  .dock .dock-filters .fdot {
    position: absolute; top: 4px; left: calc(50% + 6px);
    width: 7px; height: 7px; border-radius: 50%; background: var(--color-navy); border: 1.5px solid #fff;
  }

  /* Filters tab is shown only on the search page, where the Advanced-search
     link is self-referential (and already dropped via body.nav-search). */
  body.nav-search .dock .dock-filters { display: flex; }

  /* ── dock menus → bottom push-up sheets (PERISPACE dropdown · Contents/TOC) ── */
  .dock .dock-sheet {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto;
    display: flex; flex-direction: column;
    max-height: 86dvh; background: #fff; border: none; border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
    transform: translateY(101%); visibility: hidden;
    transition: transform .28s var(--ease-default), opacity var(--transition-base), visibility .28s;
    z-index: 135;
  }
  .dock .dock-sheet.open { transform: translateY(0); visibility: visible; }
  .dock .dock-sheet .peri-head, .dock .dock-sheet .peri-foot, .dock .dock-sheet .peri-doss { flex: none; }
  .dock .dock-sheet .peri-list { flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
  .dock .dock-sheet .peri-foot { padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
  .peri-grab {
    display: block; width: 36px; height: 4px; flex: none;
    margin: 9px auto 2px; border-radius: var(--radius-pill); background: var(--color-oatmeal);
  }

  /* Contents (TOC) sheet rows — the section links cloned from the page rail */
  .dock .toc-srow {
    display: block; padding: 11px var(--space-2); border-bottom: 1px solid var(--hair);
    font-family: var(--font-ui); font-size: 14px; color: var(--color-charcoal); text-decoration: none;
  }
  .dock .toc-srow:last-child { border-bottom: none; }
  .dock .toc-srow:active { background: var(--color-linen); }
  .dock .toc-srow.on { color: var(--color-navy); font-weight: var(--weight-medium); }

  /* Share sheet rows — PDF / Add-to-dossier / Copy link (proxied from the page rail) */
  .dock #share-sheet-list .share-row {
    display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
    padding: 13px var(--space-2); border: none; border-bottom: 1px solid var(--hair);
    background: none; cursor: pointer; text-decoration: none;
    font-family: var(--font-ui); font-size: 14px; color: var(--color-charcoal);
  }
  .dock #share-sheet-list .share-row:last-child { border-bottom: none; }
  .dock #share-sheet-list .share-row:active { background: var(--color-linen); }
  .dock #share-sheet-list .share-row i { font-size: 19px; color: var(--color-navy); flex: none; }

  /* Scrim behind the push-up sheet. It must sit BELOW the dock (z-index 120):
     the .peri-panel is nested inside .dock — a position:fixed stacking context —
     so the panel can never rise above a scrim that outranks the dock. Keeping the
     scrim under the dock lets the dock (and its sheet) paint above it while the
     scrim still dims the page content beneath. */
  .dock-scrim {
    display: block; position: fixed; inset: 0; z-index: 115; background: rgba(30,26,29,0.40);
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }
  .dock-scrim.open { opacity: 1; visibility: visible; }

  /* reserve room so page content never hides behind the fixed dock */
  .app { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* Card/strip components that became links (region/sector/origin/country/conflict
   cards) must not inherit the default underline. */
a.rchip, a.tile, a.srow, a.resp-chip, a.cf-tag, a.atl-inc, a.ab-inc { text-decoration: none; color: inherit; }
a.rchip:hover, a.tile:hover, a.srow:hover, a.resp-chip:hover { text-decoration: none; }

/* ───────── hover-card jsvectormap mini-map ───────── */
.hc-map { width: 100%; height: 100%; }
.hc-map .jvm-container { width: 100%; height: 100%; background: var(--color-ecru); }
.hc-map-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--color-ecru), var(--color-ecru) 10px, var(--color-linen) 10px, var(--color-linen) 20px); }

/* ───────── pagination (search results + PERISPACE lists) ───────── */
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) var(--space-1) var(--space-2); font-size: var(--text-sm); color: var(--color-stone); }
.pager .pg-info b { color: var(--color-charcoal); font-weight: var(--weight-medium); }
.pager .pg-nav { display: inline-flex; align-items: center; gap: var(--space-2); }
.pager .pg-cur { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-stone); padding: 0 var(--space-2); white-space: nowrap; }
.pager .pg-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-ui); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-navy); background: #fff; border: 1px solid var(--color-oatmeal); border-radius: var(--radius-sm); padding: 6px 11px; cursor: pointer; text-decoration: none; transition: background var(--transition-base), border-color var(--transition-base); }
.pager .pg-btn:hover { background: var(--color-linen); border-color: var(--color-stone); }
.pager .pg-btn i { font-size: 14px; }
.pager .pg-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* ════════════════════════════════════════════════════════════════
   SITE FOOTER — ledger legend ("How to read the ledger")
   Ported from the Region Nav-Model design (Tier 1 only). Full-width band
   that sits at the bottom of a ledger page and decodes the shared row marks.
   Reuses the row sigil classes (.att/.d/.lnk); type colours come from the
   --op-* / --rsp-* tokens so it tracks the live rows.
   ════════════════════════════════════════════════════════════════ */
.dfooter { width: 100%; }
.dfoot-legend { background: var(--color-linen); border-top: 1px solid var(--color-oatmeal); position: relative; }
.dfoot-legend::before { content: ""; position: absolute; left: 0; top: -1px; width: 58px; height: 2px; background: var(--color-eurepoc-red); }
.dfl-inner { max-width: 80rem; width: 100%; margin: 0 auto; padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.25rem, 4vw, 2.75rem); }
.dfl-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-6); }
.dfl-eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-charcoal); }
.dfl-note { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--color-stone); }
.dfl-grid { display: grid; grid-template-columns: 0.85fr 1fr 1fr 1.1fr; gap: clamp(var(--space-6), 2.6vw, var(--space-10)); }
@media (max-width: 980px) { .dfl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dfl-grid { grid-template-columns: 1fr; } }
.dfl-lbl { font-family: var(--font-ui); font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone); padding-bottom: var(--space-2); margin-bottom: var(--space-4); border-bottom: 1px solid var(--color-oatmeal); }
.dfl-item { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-4); }
.dfl-item:last-child { margin-bottom: 0; }
.dfl-item-stack { flex-direction: column; gap: 9px; align-items: flex-start; }
.dfl-tx { font-family: var(--font-ui); font-size: 13px; line-height: 1.5; color: var(--color-stone); text-wrap: pretty; padding-top: 1px; }
.dfl-tx b { color: var(--color-charcoal); font-weight: var(--weight-semibold); }

/* incident square sigil + connected attribution dots */
.lg-isig { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.lg-sq { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: color-mix(in srgb, var(--color-stone) 12%, #fff); color: var(--color-charcoal); border: 2px solid var(--color-charcoal); }
/* response round sigil + weight squares */
.lg-rsig { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }
.lg-ci { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: color-mix(in srgb, var(--c, #102D56) 13%, #fff); color: var(--c, #102D56); border: 2px solid var(--c, #102D56); }
.lg-card { display: flex; align-items: center; gap: 4px; }
.lg-ct { width: 7px; height: 7px; border-radius: 1.5px; background: var(--color-jacket); box-sizing: border-box; display: inline-block; }
.lg-ct.on { background: var(--color-stone); }

/* type rows (incident squares / response dots) */
.dfl-types { display: flex; flex-direction: column; gap: var(--space-3); }
.dfl-type { display: flex; align-items: center; gap: 11px; }
.lg-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); border: 1.5px solid var(--c); }
.lg-sqdot { width: 26px; height: 26px; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); border: 1.5px solid var(--c); }
.dfl-type span.t { font-family: var(--font-ui); font-size: 13px; color: var(--color-charcoal); }

/* mark scales (attribution / weight / issuer stack) */
.lg-scale { display: flex; align-items: center; gap: 14px; margin-bottom: 7px; }
.lg-scale .seg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lg-scale .seg small { font-family: var(--font-mono); font-size: 9.5px; color: var(--color-stone); }
.lg-stack-demo { display: inline-flex; align-items: center; }
.lg-iso2 { width: 20px; height: 20px; border-radius: 50%; background: var(--color-linen); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--color-oatmeal); margin-left: -6px; font-family: var(--font-mono); font-size: 8px; font-weight: 600; color: var(--color-navy); display: flex; align-items: center; justify-content: center; }
.lg-iso2:first-child { margin-left: 0; }
.lg-iso2.more { color: var(--color-stone); background: var(--color-ecru); }

/* ── Site footer · Tier 2 — brand · link tree · partners (dark) ── */
.dfoot-main { background: var(--color-charcoal); color: var(--color-linen); }
.dfm-inner { max-width: 80rem; width: 100%; margin: 0 auto; padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 2.75rem) clamp(2rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(var(--space-8), 3vw, var(--space-16)); }
@media (max-width: 880px) { .dfm-inner { grid-template-columns: 1fr 1fr; } .dfm-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .dfm-inner { grid-template-columns: 1fr; } }
.dfm-brand { display: flex; flex-direction: column; gap: var(--space-5); max-width: 30rem; }
.dfm-logo img { height: 38px; width: auto; display: block; }
.dfm-mission { font-family: var(--font-ui); font-size: var(--text-sm); line-height: 1.6; color: var(--color-oatmeal); text-wrap: pretty; margin: 0; }
.dfm-partners { margin-top: var(--space-2); }
.dfm-pl { font-family: var(--font-ui); font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-stone); margin: 0 0 var(--space-3); }
.dfm-ptext { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--color-linen); margin: 0; }
.dfm-col h4 { font-family: var(--font-ui); font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-stone); margin: 0 0 var(--space-4); }
.dfm-col nav { display: flex; flex-direction: column; gap: var(--space-3); }
.dfm-col a { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--color-linen); text-decoration: none; width: fit-content; transition: color var(--transition-base); }
.dfm-col a:hover { color: var(--color-slate); }
.dfm-bar { border-top: 1px solid rgba(240,237,234,0.12); }
.dfm-bar-in { max-width: 80rem; width: 100%; margin: 0 auto; padding: var(--space-5) clamp(1.25rem, 4vw, 2.75rem);
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.dfm-bar-in span { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--color-stone); }
.dfm-bar-in .src { font-family: var(--font-mono); }
.dfm-bar-in .spacer { flex: 1 1 auto; }
@media (max-width: 600px) { .dfm-bar-in .spacer { display: none; } }

/* ───────── Threat-actor glyph + list row (shared list view) ───────── */
.tasig { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.tahex { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.tahex svg { display: block; width: 100%; height: 100%; }
.tahex > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #C26A30; }
.taflash { display: flex; gap: 2px; align-items: center; font-size: 9px; }
.taflash i { color: var(--color-oatmeal); opacity: 0.4; }
.taflash i.on { color: var(--color-charcoal); opacity: 1; }

.tarow .sig.ta-sig { display: flex; align-items: flex-start; justify-content: flex-start; }
.tarow .ta-alias { color: var(--color-stone); font-weight: var(--weight-regular); }
.tarow .f-title.ta-sub { font-weight: var(--weight-regular); color: var(--color-stone); }
.tarow .ta-kind { color: #C26A30; font-weight: var(--weight-semibold); }
.tarow .m-glyph .tasig { gap: 3px; }
.tarow .m-glyph .tahex { width: 34px; height: 34px; }
.tarow .m-glyph .tahex > i { font-size: 14px; }
