/* /threat-landscape/ (H2 · Console, rollout step 6a). The page uses the shared system in assets/css/system.css
   (.page-hero, .hero-stage, .head, .fig-cards, .cards, .pane, the close). Here: the drawn dot-matrix world map on the
   hero stage with its legend, global rail and region tally; the incident table (rows written by build_threats.py from
   threat-landscape/incidents.json); the map explorer (assets/js/threat-landscape.js). Navy/teal only; crimson only for
   AI-enabled incidents. Drawn graphics only; no film stills. */

/* ------------------------------------------------------------ the map (on the hero stage) */
.tl-map { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, var(--teal-a06), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--navy-850) 95%, transparent), color-mix(in srgb, var(--navy-950) 95%, transparent)); box-shadow: var(--e1); }
.tl-map-head { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 55%, transparent); }
.tl-map-head b { font: 600 var(--fs-xs)/1 var(--display); }
/* Legend with marker shapes and counts (design review C7, 22 Nov 2026): AI-enabled is a filled diamond, other a ring. */
.tl-key { display: flex; align-items: center; gap: 6px; margin-left: auto; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); color: var(--ink-200); white-space: nowrap; }
.tl-key b { color: var(--ink-50); font-weight: 600; }
.tl-key .sep { margin: 0 4px; color: var(--ink-400); }
.tl-key i { width: 9px; height: 9px; margin-left: 4px; margin-right: 2px; flex: none; }
.tl-key i.ai { background: var(--red-300); transform: rotate(45deg) scale(0.85); }
.tl-key i.risk { border: 1.6px solid var(--ink-200); border-radius: var(--r-full); }
.tl-map-body { padding: clamp(14px, 2vw, 24px); }
.tl-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tl-map-svg .land circle { fill: var(--line-strong); }
.tl-map-svg .pin .core { fill: none; stroke: var(--ink-200); stroke-width: 1.8; }
.tl-map-svg .pin .ring { fill: none; stroke: color-mix(in srgb, var(--ink-200) 50%, transparent); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: tl-ping 3.2s ease-out infinite; }
.tl-map-svg .pin.ai .core { fill: var(--red-300); stroke: none; }
.tl-map-svg .pin.ai .ring { stroke: color-mix(in srgb, var(--red-300) 60%, transparent); }
.tl-map-svg .pin:nth-child(2n) .ring { animation-delay: 0.8s; } .tl-map-svg .pin:nth-child(3n) .ring { animation-delay: 1.6s; }
@keyframes tl-ping { 0% { transform: scale(0.4); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
/* Each marker links to its incident in the list; the hit circle widens the target and draws the hover/focus ring. */
.tl-map-svg a.pin { cursor: pointer; outline: none; }
.tl-map-svg .pin .hit { fill: transparent; stroke: transparent; stroke-width: 1.5; }
/* Tap area (design review E3): transparent, at least 24 px across on screen. --map-s (the map's drawn scale) is set by
   the page script; the zoom scales each marker back, so the area keeps its size there too. */
.tl-map-svg .pin .tap { fill: transparent; stroke: none; r: max(9px, calc(12px / var(--map-s, 1))); }
.tl-map-svg .pin:hover .hit { stroke: color-mix(in srgb, var(--ink-200) 45%, transparent); }
.tl-map-svg .pin:focus-visible .hit { stroke: var(--teal-300); }
/* Global incidents (no single location): one marker each on a thin rail under the map, same colours as the pins. */
.tl-global { display: flex; align-items: center; gap: 14px; margin-top: clamp(12px, 1.6vw, 18px); }
.tl-global-k { flex: none; white-space: nowrap; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.tl-global-rail { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-around; gap: 4px; height: 22px; }
.tl-global-rail::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent); }
.tl-global .gm { position: relative; flex: none; width: 8px; height: 8px; border-radius: var(--r-full); border: 1.6px solid var(--ink-200); background: none; box-shadow: 0 0 0 3px var(--line); }
.tl-global .gm.ai { border: 0; border-radius: var(--r-xs); background: var(--red-300); transform: rotate(45deg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-300) 16%, transparent); }
.tl-global .gm::before { content: ''; position: absolute; inset: -8px; border-radius: var(--r-full); }
.tl-global .gm:hover { box-shadow: 0 0 0 3px var(--line), 0 0 0 5px var(--line-strong); }
.tl-global .gm:focus-visible { outline: 1.5px solid var(--teal-300); outline-offset: 4px; }
.tl-global-k b { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: 0; color: var(--teal-300); }
.tl-map figcaption { padding: 0 clamp(14px, 2vw, 24px) clamp(14px, 2vw, 20px); }
.tl-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.tl-regions li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--navy-950) 30%, transparent); }
.tl-regions b { font: 500 var(--fs-xs)/1 var(--mono); color: var(--teal-300); }
.tl-regions span { font-size: var(--fs-sm); line-height: 1.3; color: var(--ink-200); }
.tl-map { margin: 0; }

/* Source links and type labels: in the explorer's incident card on the map (navy); the table restyles them on light. */
.src { display: inline-block; margin-top: 14px; font: 500 var(--fs-xs)/var(--lh-caption) var(--mono); letter-spacing: var(--tr-label); color: var(--teal-300); text-decoration: none; border-bottom: 1px solid var(--teal-a24); }
.src::after { content: ' ↗'; }
.src:hover, .src:focus-visible { color: var(--ink-50); border-bottom-color: var(--ink-50); }
.inc-h { margin-top: 10px; max-width: 60ch; font: 600 var(--fs-lg)/1.35 var(--display); letter-spacing: 0; color: var(--ink-50); }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: var(--r-xs); border: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-200); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; }
.tag.ai { color: var(--red-300); border-color: color-mix(in srgb, var(--red-500) 60%, transparent); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.tag.risk { color: var(--ink-200); background: var(--grid); }
.tag.web { color: var(--violet-300); border-color: color-mix(in srgb, var(--violet-300) 40%, transparent); background: color-mix(in srgb, var(--violet-300) 6%, transparent); }

/* ------------------------------------------------------------ the incident table (light, in a white panel)
   Date | Region | Type | Incident | Source, as in the mockup. Each row is the generated <li class="inc">: .inc-meta and
   .inc-body are unwrapped (display: contents) so their parts take the columns. The summary stays in the row for the
   map card (the script clones .inc-body) but the table shows the headline only. */
.inc-pane { padding: 0; overflow: hidden; }
.inc-thead, .inc-list .inc { display: grid; grid-template-columns: 116px 132px 190px minmax(0, 1fr) 168px; column-gap: var(--sp-5); padding: 0 var(--sp-5); }
.inc-thead { padding-top: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--paper-line); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--paper-ink-2); }
.inc-list { margin: 0; padding: 0; list-style: none; }
.inc-list .inc { align-items: baseline; padding-top: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--paper-line); scroll-margin-top: calc(var(--hdr-base, 64px) + 20px); }
.inc-list .inc :is(.inc-meta, .inc-body) { display: contents; }
.inc-list .inc time { grid-column: 1; grid-row: 1; font: 600 var(--fs-sm)/1.4 var(--display); font-variant-numeric: tabular-nums; color: var(--paper-ink); }
.inc-list .inc .inc-region { grid-column: 2; grid-row: 1; font: 400 var(--fs-sm)/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--paper-ink-2); }
.inc-list .inc .tag { grid-column: 3; grid-row: 1; justify-self: start; padding: 0; border: 0; background: none; font: 400 var(--fs-sm)/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--paper-ink-2); white-space: normal; }
.inc-list .inc .tag::before { width: 7px; height: 7px; flex: none; border: 1.5px solid var(--paper-ink-2); border-radius: var(--r-full); background: none; }   /* the map's ring */
.inc-list .inc .tag.ai::before { border: 0; border-radius: 1px; background: color-mix(in srgb, var(--red-500) 70%, var(--navy-950)); transform: rotate(45deg) scale(0.9); }   /* the map's diamond */
.inc-list .inc .inc-h { grid-column: 4; grid-row: 1; margin: 0; max-width: none; font: 400 var(--fs-sm)/1.45 var(--display); color: var(--paper-ink-2); }
.inc-list .inc .inc-body > p { display: none; }
.inc-list .inc .src { grid-column: 5; grid-row: 1; justify-self: start; margin: 0; border: 0; font: 400 var(--fs-sm)/1.4 var(--display); letter-spacing: 0; color: var(--teal-ink); }
.inc-list .inc .src:hover, .inc-list .inc .src:focus-visible { color: var(--paper-ink); text-decoration: underline; text-underline-offset: 3px; }
.inc-list .inc .inc-map { grid-column: 1 / 3; grid-row: 2; justify-self: start; margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--teal-ink); }
.inc-list .inc .inc-map:hover { color: var(--paper-ink); }
.inc-list .inc:target, .inc-list .inc.is-current { background: color-mix(in srgb, var(--teal-400) 8%, var(--white)); }
@media (max-width: 1023px) {
  .inc-thead { display: none; }
  .inc-list .inc { grid-template-columns: auto auto minmax(0, 1fr); row-gap: var(--sp-1); column-gap: var(--sp-3); }
  .inc-list .inc time { grid-column: 1; }
  .inc-list .inc .inc-region { grid-column: 2; }
  .inc-list .inc .inc-map { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
  .inc-list .inc .tag { grid-column: 1 / -1; grid-row: 2; }
  .inc-list .inc .inc-h { grid-column: 1 / -1; grid-row: 3; font-size: var(--fs-md); color: var(--paper-ink); }
  .inc-list .inc .src { grid-column: 1 / -1; grid-row: 4; }
}

/* "Show all N incidents" (build_threats.py): the system disclosure as the table's last row; the script moves its rows
   into the list and keeps it as the control. */
.inc-all { margin: 0; }
.inc-pane .inc-all > summary { min-height: 48px; padding: var(--sp-2) var(--sp-5); border: 0; border-radius: 0; color: var(--teal-ink); font-weight: 600; }
.inc-pane .inc-all > summary .dc-ic { color: var(--teal-ink); }
.inc-pane .inc-all > summary:hover { background: none; }
.inc-all[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--paper-line); }
.inc-all[open] > .inc-list > .inc:last-child { border-bottom: 0; }
.inc-all[hidden], .inc-more[hidden], .inc[hidden] { display: none; }
.inc-more { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 var(--sp-5); border: 0; background: none; color: var(--teal-ink); font: 600 var(--fs-md)/1 var(--display); cursor: pointer; }

/* ------------------------------------------------------------ motion: the map pins only (CSS); the pulse pauses off screen */
.tl-map.tl-off .pin .ring { animation-play-state: paused; }
.tl-rm .tl-map-svg .pin .ring { animation: none; opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  /* Map pins: fade in on load, newest first (--i from build_threats.py); each ring starts once its pin is in. CSS only. */
  .tl-map-svg .pin .core { transform-box: fill-box; transform-origin: center; animation: tl-pin-in var(--dur-slow) var(--ease-decelerate) calc(0.3s + var(--i, 0) * 0.09s) both; }
  .tl-map-svg .pin .ring { opacity: 0; animation-delay: calc(0.8s + var(--i, 0) * 0.09s); }
  .tl-map-svg .pin:nth-child(2n) .ring { animation-delay: calc(1.6s + var(--i, 0) * 0.09s); }
  .tl-map-svg .pin:nth-child(3n) .ring { animation-delay: calc(2.4s + var(--i, 0) * 0.09s); }
  /* backwards, not both: a held end state would override the dimmed opacity of a filtered-out dot (.gm.off) later */
  .tl-rm .tl-map-svg .pin .core, .tl-rm .tl-global .gm { animation: none; }
}
@keyframes tl-pin-in { from { opacity: 0; transform: scale(0.5); } }   /* to the marker's own state, dimmed or not */
@media (prefers-reduced-motion: reduce) { .tl-map-svg .pin .ring { animation: none; opacity: 0.5; } }
@media (max-width: 767px) { .tl-map-head { flex-wrap: wrap; row-gap: 10px; } .tl-key { margin-left: 0; width: 100%; } }

/* ------------------------------------------------------------ map explorer (assets/js/threat-landscape.js)
   The map is how visitors move between incidents. html.tl-x is set by the script; without it the markers are plain
   links to the list and the tally is plain text. On wide screens the incident card sits in the map frame beside its
   marker; otherwise it is a bottom sheet. Teal marks the selected incident and the pressed filters. */
.tl-x .tl-map { position: relative; }
.tl-x .tl-map-svg .land circle { r: calc(2.6px * var(--lk, 1)); }   /* zoomed to a region: the dots grow less than the map */
.tl-x .tl-map-svg .pin, .tl-x .tl-global .gm { transition: opacity var(--dur-slow) var(--ease-standard); }
.tl-x .tl-map-svg .pin.off, .tl-x .tl-global .gm.off { opacity: 0.14; pointer-events: none; }
.tl-x .tl-map-svg .pin.off .ring { visibility: hidden; }
.tl-x .tl-map-svg .pin.on .hit { stroke: var(--teal-300); stroke-width: 1.6; }
.tl-x .tl-map-svg .pin.on .ring { stroke: color-mix(in srgb, var(--teal-300) 75%, transparent); }
.tl-x .tl-global .gm.on { box-shadow: 0 0 0 3px var(--line), 0 0 0 5px var(--teal-300); }

/* the Global filter: global incidents have no place on the map, so the map steps back, a note points down to the rail
   and the rail is featured (teal line, larger dots with a teal ring, the caption lit). No layout shift: sizes only
   change inside the rail's fixed height. */
.tl-map-stage { position: relative; }
.tl-global-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 24px); margin: 0;
  padding: 9px 14px; border: 1px solid var(--teal-a24); border-radius: var(--r-md); background: color-mix(in srgb, var(--navy-950) 85%, transparent); text-align: center;
  font: 400 var(--fs-sm)/1.45 var(--display); color: var(--ink-200); pointer-events: none; }
.tl-global-note[hidden] { display: none; }
.tl-x .tl-map.is-global .tl-map-svg .land { opacity: 0.35; }
.tl-x .tl-map.is-global .tl-global-rail::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--teal-400) 75%, transparent) 12%, color-mix(in srgb, var(--teal-400) 75%, transparent) 88%, transparent);
  box-shadow: none; }
.tl-x .tl-map.is-global .tl-global .gm { width: 11px; height: 11px; box-shadow: 0 0 0 3px var(--teal-a24); }
.tl-x .tl-map.is-global .tl-global .gm:hover { box-shadow: 0 0 0 3px var(--teal-a24), 0 0 0 5px var(--teal-a60); }
.tl-x .tl-map.is-global .tl-global .gm.on { box-shadow: 0 0 0 3px var(--teal-a24), 0 0 0 6px var(--teal-300); }
.tl-x .tl-map.is-global .tl-global .gm.off { box-shadow: none; }
.tl-x .tl-map.is-global .tl-global-k { color: var(--teal-300); text-shadow: 0 0 12px var(--teal-a40); }
.tl-x .tl-map.is-global .tl-global-k b { color: var(--ink-50); }
@media (prefers-reduced-motion: no-preference) {
  .tl-x .tl-map-svg .land { transition: opacity var(--dur-slow) var(--ease-standard); }
  .tl-x .tl-global-rail::before { transition: background var(--dur-slow) var(--ease-standard), box-shadow var(--dur-slow) var(--ease-standard); }
  .tl-x .tl-global .gm { transition: opacity var(--dur-slow) var(--ease-standard), width var(--dur-base) var(--ease-standard), height var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); }
  .tl-global-note { animation: tl-card-in var(--dur-slow) var(--ease-decelerate); }
  .tl-rm .tl-map-svg .land, .tl-rm .tl-global-rail::before, .tl-rm .tl-global .gm, .tl-rm .tl-global-note { transition: none; animation: none; }
}

/* the region tally, now the region filter on the map */
.tl-regions.is-filter li { padding: 0; border: 0; background: none; }
.tl-rchip { display: flex; align-items: baseline; gap: 10px; width: 100%; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--navy-950) 30%, transparent); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-base), background var(--dur-base); }
.tl-rchip b { font: 500 var(--fs-xs)/1 var(--mono); color: var(--teal-300); }
.tl-rchip span { font-size: var(--fs-sm); line-height: 1.3; color: var(--ink-200); }
.tl-rchip:hover { border-color: var(--teal-a60); }
.tl-rchip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--teal-400) 70%, transparent); background: var(--teal-a12); }
.tl-rchip[aria-pressed="true"] span { color: var(--ink-50); }
.tl-rchip:disabled { opacity: 0.4; cursor: default; border-color: var(--line); }

/* the incident card */
.tl-card { position: absolute; z-index: 3; display: flex; flex-direction: column; width: min(300px, calc(50% - 40px)); overflow: hidden; padding: 12px 16px 14px;
  border: 1px solid var(--teal-a24); border-radius: var(--r-md); background: linear-gradient(180deg, color-mix(in srgb, var(--navy-850) 97%, transparent), color-mix(in srgb, var(--navy-950) 97%, transparent));
  box-shadow: var(--e1); backdrop-filter: blur(10px); outline: none; }
.tl-card[hidden] { display: none; }
.tl-card svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tl-card-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; margin: 0 -16px; padding: 0 16px 2px; }
.tl-card-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-card-pos { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); color: var(--teal-300); }
.tl-card-x { display: grid; place-items: center; width: 32px; height: 32px; margin: -2px -6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-full);
  background: none; color: var(--ink-200); cursor: pointer; }
.tl-card-x:hover { color: var(--ink-50); border-color: var(--teal-a60); }
.tl-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 8px; }
.tl-card-meta time { font: 500 var(--fs-sm)/1.2 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-50); letter-spacing: 0; }
.tl-card-meta span { font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.tl-card-body .tag { margin-top: 12px; }
.tl-card-body p { margin-top: 10px; }
.tl-card-body p, .tl-latest-sum { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-200); }   /* .tl-latest-sum: build_threats.py writes it for an incident with no headline */
.tl-card-body .src { margin-top: 10px; }
.tl-card-group { margin-top: 10px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-card-group[hidden] { display: none; }
.tl-card-gk { font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.tl-card-group ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tl-card-group button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-full); background: none;
  color: var(--ink-200); font: 500 var(--fs-sm)/1 var(--display); white-space: nowrap; cursor: pointer; }
.tl-card-group button::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--ink-200); }
.tl-card-group button.ai::before { background: var(--red-300); }
.tl-card-group button:hover { color: var(--ink-50); border-color: var(--teal-a60); }
.tl-card-group button[aria-current] { color: var(--ink-50); border-color: color-mix(in srgb, var(--teal-400) 70%, transparent); background: var(--teal-a12); }
.tl-card-nav { flex: none; display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tl-card-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: color-mix(in srgb, var(--navy-850) 60%, transparent); color: var(--ink-200); font: 500 var(--fs-sm)/1 var(--display); cursor: pointer; }
.tl-card-nav .tl-card-prev { padding-left: 10px; }
.tl-card-nav .tl-card-next { padding-right: 10px; }
.tl-card-nav button:hover { color: var(--ink-50); border-color: var(--teal-a60); }
.tl-card-nav button:disabled { opacity: 0.4; cursor: default; }
/* narrower screens: a bottom sheet, over the chat button while it is open */
.tl-card.is-sheet { position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; width: auto; max-height: min(64vh, 540px); margin: 0 auto;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 0; box-shadow: var(--e2); }
@media (min-width: 768px) { .tl-card.is-sheet { bottom: 16px; width: min(560px, calc(100% - 32px)); border-radius: var(--r-md); border-bottom: 1px solid var(--teal-a24); } }
@media (prefers-reduced-motion: no-preference) {
  .tl-card:not(.is-sheet) { animation: tl-card-in var(--dur-base) var(--ease-decelerate); }
  .tl-card.is-sheet { animation: tl-sheet-in var(--dur-slow) var(--ease-decelerate); }
  .tl-rm .tl-card { animation: none; }
}
@keyframes tl-card-in { from { opacity: 0; } }
@keyframes tl-sheet-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } }

/* the filter bar above the list (sticky below 1100px) */
.tl-filter { display: grid; gap: 10px; margin-bottom: 20px; }
.tl-fl-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tl-fl-k { flex: none; width: 54px; font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-400); }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-xs); background: color-mix(in srgb, var(--navy-850) 60%, transparent);
  color: var(--ink-200); font: 500 var(--fs-sm)/1 var(--display); white-space: nowrap; cursor: pointer; transition: border-color var(--dur-base), background var(--dur-base), color var(--dur-base); }
.tl-chip b { font: 500 var(--fs-xs)/1 var(--mono); color: var(--teal-300); }
.tl-chip:hover { color: var(--ink-50); border-color: var(--teal-a60); }
.tl-chip[aria-pressed="true"] { color: var(--ink-50); border-color: color-mix(in srgb, var(--teal-400) 70%, transparent); background: var(--teal-a12); }
.tl-chip:disabled { opacity: 0.4; cursor: default; border-color: var(--line); color: var(--ink-200); }
.tl-fl-n { display: flex; align-items: center; gap: 14px; min-height: 22px; font: 400 var(--fs-sm)/1.4 var(--display); color: var(--ink-400); }
.tl-fl-clear { padding: 0; border: 0; border-bottom: 1px solid var(--teal-a24); background: none; font: inherit; color: var(--teal-300); cursor: pointer; }
.tl-fl-clear:hover { color: var(--ink-50); border-bottom-color: var(--ink-50); }
.tl-fl-clear[hidden] { display: none; }
.tl-fl-at { display: block; height: 0; }
@media (max-width: 1023px) {
  .tl-filter { position: sticky; top: var(--hdr-base, 64px); z-index: 4; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 10px var(--gutter);
    background: color-mix(in srgb, var(--navy-900) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .tl-chip { padding: 7px 11px; font-size: var(--fs-xs); }
  .tl-fl-k { width: 48px; }
  .tl-x .inc { scroll-margin-top: calc(var(--hdr-base, 64px) + 130px); }
}

/* the filter bar above the incident table sits on the light section */
.light .tl-fl-k, .light .tl-fl-n { color: var(--paper-ink-2); }
.light .tl-chip { background: var(--white); border-color: var(--paper-line-strong); color: var(--paper-ink-2); }
.light .tl-chip b { color: var(--teal-ink); }
.light .tl-chip:hover { color: var(--paper-ink); border-color: var(--teal-ink); }
.light .tl-chip[aria-pressed="true"] { color: var(--paper-ink); border-color: var(--teal-ink); background: color-mix(in srgb, var(--teal-400) 14%, var(--white)); }
.light .tl-chip:disabled { color: var(--paper-ink-2); border-color: var(--paper-line); }
.light .tl-fl-clear { color: var(--teal-ink); border-bottom-color: color-mix(in srgb, var(--teal-ink) 40%, transparent); }
.light .tl-fl-clear:hover { color: var(--paper-ink); border-bottom-color: var(--paper-ink); }
@media (max-width: 1023px) { .light .tl-filter { background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom-color: var(--paper-line); } }

/* "Show on map" in each row (placed by the table rules above) */
.inc-map { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 var(--fs-sm)/1.2 var(--display); color: var(--teal-300); }
.inc-map::before { content: ''; width: 5px; height: 5px; border-radius: var(--r-full); background: currentColor; }

/* Phones (design review D10): the chips wrap under their label, nothing scrolls sideways; the bar is too tall to stick */
@media (max-width: 767px) {
  .tl-filter { position: static; margin-bottom: 16px; }
  .tl-fl-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tl-fl-k { width: auto; }
  .tl-chip { min-height: 36px; }
}
@media print { .tl-card, .tl-filter, .inc-map, .inc-more, .inc-all > summary { display: none !important; } .inc[hidden] { display: grid; } }

/* Government assessments: a report name can be longer than a card is wide at tablet widths, so these links wrap. */
#outlook .card .lnk { white-space: normal; }

/* ------------------------------------------------------------ scroll motion (assets/js/threat-landscape.js, second block)
   Restored on the H2 layout (owner, 2 Dec 2026). Transform and opacity only, ease-out, no overshoot. The hidden start
   states apply only under html.tl-js, which the script sets (never under reduced motion or ?rm), so the page reads in
   full without it. Parallax uses the `translate` property (set by the script), reveals use `transform`. */
.fc-n.counting { position: relative; display: inline-block; }
.fc-n.counting .fig-v { opacity: 0; }
.fc-n .fig-n { position: absolute; left: 0; top: 0; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  html.tl-js :is(.fig-cards > li, #outlook .card, .inc, .cta-band .h2, .cta-band .actions) {
    opacity: 0; transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
  html.tl-js .fig-cards > li { transform: translate3d(0, 28px, 0); }
  html.tl-js #outlook .card { transform: translate3d(0, 20px, 0); }
  html.tl-js .inc { transform: translate3d(0, 14px, 0); transition-duration: 0.55s; }
  html.tl-js :is(.cta-band .h2, .cta-band .actions) { transform: translate3d(0, 16px, 0); }
  html.tl-js :is(.fig-cards > li, #outlook .card, .inc, .cta-band .h2, .cta-band .actions):is(.in, :focus-within, :target) { opacity: 1; transform: none; }
  html.tl-js #outlook a.card.in:hover { transform: translateY(-2px); }
  html.tl-js #outlook .card.in { transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
  html.tl-js .in.now { transition: none; }
}
/* the parallax layers composite on their own (no repaint per frame); the ring pulse pauses while scrolling */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) { html.tl-js :is(.page-hero .head, .fig-cards > li) { will-change: translate; } }
.tl-map.tl-scroll .pin .ring { animation-play-state: paused; }
@media print { html.tl-js :is(.fig-cards > li, #outlook .card, .inc, .cta-band .h2, .cta-band .actions, .page-hero .head, .hero-stage) {
  opacity: 1; transform: none; translate: none; } }
