/* Wildcard Watch — the look of wildcardgroup.be and its /deck page: navy header with the Digital Guardian logo,
   the signal lines in the hero, Archivo for structure and Source Serif 4 for reading (04_MARKETING/OFFICIAL_APPROVED_FONTS),
   soft corners, and colour where it carries meaning: orange = act now, teal = fixed / in order, navy = anchor. */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/SourceSerif4-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0B2641; --teal: #005670; --orange: #E7853C; --orange-hover: #D17428; --pale: #EFF7F9; --white: #FFFFFF;
  --navy-deep: #12314E; --teal-55: #5E93A8; --teal-25: #C8DAE1; --grad-mid: #073856; --grad-end: #01516C;
  --on-navy: #C4D5DD; --on-navy-meta: #7FA0AF;
  --orange-tint: #FCEBDD; --teal-tint: #E2EFF3;

  --surface: #FFFFFF; --surface-2: #F6FAFB; --panel: #EFF7F9; --card: #FFFFFF; --ink: #0B2641; --ink-2: #3B5068; --ink-3: #5E7183;
  --line: #D5DCE0; --line-soft: #E5EBEE; --accent: #005670; --focus: #005670;
  --sev-crit-bg: #0B2641; --sev-crit-fg: #FFFFFF; --sev-high-bg: #005670; --sev-high-fg: #FFFFFF; --sev-med-bg: #C8DAE1; --sev-med-fg: #0B2641;
  --heat-0: #EEF3F5; --heat-1: #C8DAE1; --heat-2: #5E93A8; --heat-3: #005670; --heat-4: #0B2641;
  --shadow: 0 1px 2px rgba(11, 38, 65, 0.05), 0 6px 18px rgba(11, 38, 65, 0.06);
  --shadow-hover: 0 2px 4px rgba(11, 38, 65, 0.06), 0 12px 28px rgba(11, 38, 65, 0.1);

  --head: Archivo, "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px); --head-h: 80px;
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --surface: #0B2641; --surface-2: #0E2B48; --panel: #12314E; --card: #102E4C; --ink: #FFFFFF; --ink-2: #C4D5DD; --ink-3: #93AEBC;
  --line: rgba(255,255,255,0.16); --line-soft: rgba(255,255,255,0.1); --accent: #8FC1D3; --focus: #FFFFFF;
  --orange-tint: rgba(231,133,60,0.18); --teal-tint: rgba(94,147,168,0.18);
  --sev-crit-bg: #FFFFFF; --sev-crit-fg: #0B2641; --sev-high-bg: #5E93A8; --sev-high-fg: #0B2641; --sev-med-bg: #24506E; --sev-med-fg: #FFFFFF;
  --heat-0: #14385A; --heat-1: #24506E; --heat-2: #5E93A8; --heat-3: #C8DAE1; --heat-4: #FFFFFF;
  --shadow: none; --shadow-hover: 0 0 0 1px rgba(255,255,255,0.18);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--surface); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--teal-55); }
.dot.o { background: var(--orange); } .dot.t { background: var(--teal); } .dot.n { background: var(--navy); } .dot.l { background: var(--teal-55); } .dot.g { background: var(--line); }
.dot.ring { background: transparent; box-shadow: inset 0 0 0 2px var(--teal); }  /* radar: watch, not act */
:root[data-theme="dark"] .dot.ring { box-shadow: inset 0 0 0 2px var(--teal-55); }
:root[data-theme="dark"] .dot.n { background: #FFFFFF; } :root[data-theme="dark"] .dot.t { background: #8FC1D3; }

/* ===== Header: as on wildcardgroup.be ===== */
.head { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 2px solid var(--teal); }
.head-row { display: flex; align-items: center; gap: 22px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; flex: none; }
.brand img { height: min(42px, calc((100vw - 2 * var(--gutter) - 250px) / 8.2)); width: auto; }
.brand-product { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--white); padding: 5px 9px 4px 11px; border: 1.5px solid var(--teal-55); border-radius: 999px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { font-family: var(--head); color: rgba(255,255,255,0.86); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a.out { color: var(--on-navy-meta); }
@media (max-width: 1240px) { .nav a.out { display: none; } }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--orange); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: rgba(255,255,255,0.86); }
.icon-btn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.icon-btn svg.i { width: 19px; height: 19px; }
.menu-btn { display: none; }
.nav .nav-theme { display: none; }
.show-s { display: none; }

/* Buttons, as on /deck */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border-radius: var(--r-sm); padding: 12px 18px; border: 0; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--orange-hover); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--teal); color: var(--white); }
:root[data-theme="dark"] .btn-navy { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.textlink { font-family: var(--head); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--orange); padding-bottom: 1px; }
.textlink:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .nav a.out { display: block; }
  .head-row { gap: 10px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { display: none; position: absolute; top: calc(var(--head-h) + 2px); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 6px var(--gutter) 18px; border-bottom: 2px solid var(--teal); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.12); color: var(--orange); }
}
@media (max-width: 600px) {
  :root { --head-h: 64px; }
  .brand { gap: 10px; }
  .brand img { height: min(30px, calc((100vw - 2 * var(--gutter) - 196px) / 8.2)); }
  .brand-product { font-size: 10px; padding: 4px 7px 3px 8px; letter-spacing: 0.16em; }
  #theme-btn { display: none; }
  .nav .nav-theme { display: block; text-align: left; font-family: var(--head); color: rgba(255,255,255,0.86); padding: 13px 0; font-size: 15px; }
  .hide-s { display: none; } .show-s { display: inline; }
  .head .btn-orange { padding: 9px 12px; font-size: 14px; }
}

/* ===== Hero: navy, the signal lines, the verdict ===== */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(160deg, var(--navy) 0%, var(--grad-mid) 58%, var(--grad-end) 135%); padding: 56px 0 40px; }
.hero canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--teal-55); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--on-navy); }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(231,133,60,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231,133,60,0.55); } 70% { box-shadow: 0 0 0 9px rgba(231,133,60,0); } 100% { box-shadow: 0 0 0 0 rgba(231,133,60,0); } }
.hero h1 { font-family: var(--head); font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; margin: 16px 0 14px; max-width: 15ch; text-wrap: balance; }
.hero h1 .stop { color: var(--orange); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--on-navy); max-width: 58ch; }
.verdict { margin-top: 22px; font-family: var(--head); font-size: 18px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.verdict .muted { color: var(--on-navy); font-weight: 400; }
.verdict a { color: var(--white); text-decoration: none; border-bottom: 3px solid var(--orange); }
.verdict a:hover { color: var(--orange); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat { text-align: left; color: var(--white); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; backdrop-filter: blur(2px); text-decoration: none; transition: background .15s, border-color .15s; }
.stat:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--white); }
.stat .l { font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--on-navy); display: flex; align-items: center; gap: 8px; }
.stat .n { font-family: var(--head); font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat.act .n { color: var(--orange); }
.stat .s { font-family: var(--head); font-size: 13px; color: var(--on-navy-meta); line-height: 1.35; }
@media (max-width: 760px) {
  .hero { padding: 34px 0 26px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .n { font-size: 32px; }
  .verdict { font-size: 16px; }
}

/* ===== Sections and layout ===== */
.band { padding: 34px 0 6px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 30px; padding-bottom: 72px; }
@media (max-width: 1040px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.page-title { font-family: var(--head); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 700; color: var(--ink); text-wrap: balance; }
.page-title .stop { color: var(--orange); }
.lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin-top: 12px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* Heatmap band */
.heat-card { padding: 20px 22px 16px; }
.heat-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.heat-top h2 { font-family: var(--head); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 999px; }
.seg button { font-family: var(--head); font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.heat-wrap { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.heat { display: block; }
.heat rect.d:hover { stroke: var(--orange); stroke-width: 2; }
.heat text { font-family: var(--head); font-size: 11px; fill: var(--ink-3); }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-family: var(--head); font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.heat-legend .sp { flex: 1; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--navy); color: var(--white); font-family: var(--head); font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: var(--r-sm); max-width: 300px; opacity: 0; transition: opacity .1s; box-shadow: 0 8px 24px rgba(11,38,65,.25); }
:root[data-theme="dark"] .tip { background: var(--white); color: var(--navy); }
.tip.on { opacity: 1; }

/* ===== Controls ===== */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: all .15s; }
.cat .c { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat:hover { border-color: var(--accent); color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cat[aria-pressed="true"] .c { color: var(--on-navy); }
:root[data-theme="dark"] .cat[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.cat-why { font-family: var(--head); font-size: 14px; color: var(--ink-2); margin: 12px 2px 0; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 16px; }
.search { position: relative; flex: 1 1 280px; min-width: 0; }
.search svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; font-family: var(--head); font-size: 15px; padding: 11px 14px 11px 40px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--teal-tint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--head); font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); white-space: nowrap; transition: all .15s; }
.chip .c { color: var(--ink-3); font-variant-numeric: tabular-nums; }
a.chip { text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--teal-tint); color: var(--ink); }
.chip svg.i { width: 15px; height: 15px; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.result-line { font-family: var(--head); font-size: 14px; color: var(--ink-2); }
.result-line button { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.sort-select { display: none; font-family: var(--head); font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink); }
@media (max-width: 640px) { .sortbar .seg { display: none; } .sort-select { display: inline-block; } }

/* ===== Group headers ===== */
.group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 30px 0 12px; }
.group-head h3 { font-family: var(--head); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.group-head .n { font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.group-head .why { font-family: var(--head); font-size: 14px; color: var(--ink-3); }
.group-head.o h3 { color: var(--orange-hover); }
:root[data-theme="dark"] .group-head.o h3 { color: var(--orange); }

/* ===== Cards: one incident each, with air around it ===== */
.feed { list-style: none; display: grid; gap: 14px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 18px 26px; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s, transform .15s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line); }
.card.u-act::before { background: var(--orange); }
.card.u-soon::before { background: var(--teal); }
:root[data-theme="dark"] .card.u-soon::before { background: var(--teal-55); }
.card.k-breach::before { background: var(--navy); }
.k-breach .pill.act { background: rgba(11,38,65,0.08); color: var(--navy); border-color: transparent; }
.k-breach .step { background: var(--surface-2); }
:root[data-theme="dark"] .card.k-breach::before { background: #FFFFFF; }
:root[data-theme="dark"] .k-breach .pill.act { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--teal-25); transform: translateY(-1px); }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kind { display: inline-flex; align-items: center; gap: 7px; font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pill { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.u-act .pill.act { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.u-soon .pill.act { background: var(--teal-tint); border-color: transparent; color: var(--teal); }
:root[data-theme="dark"] .u-soon .pill.act { color: #8FC1D3; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 13px; font-weight: 600; }
.status svg.i { width: 15px; height: 15px; }
.st-fixed { color: var(--teal); } :root[data-theme="dark"] .st-fixed { color: #8FC1D3; }
.st-none, .st-partial, .st-eol { color: var(--navy); background: var(--orange-tint); padding: 3px 9px 3px 7px; border-radius: 999px; }
:root[data-theme="dark"] .st-none, :root[data-theme="dark"] .st-partial, :root[data-theme="dark"] .st-eol { color: #FFD9BC; }
.st-unknown { color: var(--ink-3); }
.sev { font-family: var(--head); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.sev-critical { background: var(--sev-crit-bg); color: var(--sev-crit-fg); }
.sev-high { background: var(--sev-high-bg); color: var(--sev-high-fg); }
.sev-medium { background: var(--sev-med-bg); color: var(--sev-med-fg); }
.sev-low { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.flag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--head); font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.flag svg.i { width: 14px; height: 14px; }
.flag.stack { color: var(--teal); border-color: var(--teal-25); background: var(--teal-tint); }
.flag.code { color: var(--orange-hover); border-color: rgba(231,133,60,0.35); background: var(--orange-tint); }
:root[data-theme="dark"] .flag.code { color: #FFD9BC; }
:root[data-theme="dark"] .flag.stack { color: #8FC1D3; }
.when { margin-left: auto; font-family: var(--head); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.card-title { font-family: var(--head); font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin: 12px 0 6px; text-wrap: pretty; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--accent); }
.card .text { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.step { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--panel); }
.u-act .step { background: var(--orange-tint); }
.step .label { color: var(--teal); white-space: nowrap; font-size: 11.5px; }
.u-act .step .label { color: var(--orange-hover); }
:root[data-theme="dark"] .step .label { color: #8FC1D3; } :root[data-theme="dark"] .u-act .step .label { color: var(--orange); }
.step p { font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 12px; font-family: var(--head); font-size: 13px; color: var(--ink-3); }
.card-meta span:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--line); }
.card-meta b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 560px) {
  .card { padding: 16px 16px 15px 20px; }
  .card-title { font-size: 18px; }
  .step { flex-direction: column; gap: 2px; }
  .when { margin-left: 0; width: 100%; order: -1; }
}
.empty { padding: 34px 26px; text-align: center; font-size: 17px; color: var(--ink-2); }
.empty b { font-family: var(--head); color: var(--ink); display: block; margin-bottom: 6px; font-size: 18px; }
.more { margin-top: 20px; text-align: center; }

/* ===== Sidebar ===== */
.side { display: flex; flex-direction: column; gap: 18px; }
.panel { padding: 20px 20px 18px; }
.panel h3 { font-family: var(--head); font-size: 18px; font-weight: 700; margin: 6px 0 8px; letter-spacing: -0.01em; }
.panel p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.panel .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.panel.tinted { background: var(--panel); border-color: transparent; box-shadow: none; }
.panel.navy { background: var(--navy); border-color: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.panel.navy::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(94,147,168,0.35) 1px, transparent 1.6px), repeating-linear-gradient(115deg, rgba(94,147,168,0.08) 0, rgba(94,147,168,0.08) 1px, transparent 1px, transparent 70px); background-size: 26px 26px, 100% 100%; opacity: .8; pointer-events: none; }
.panel.navy > * { position: relative; }
.panel.navy .eyebrow { color: var(--teal-55); }
.panel.navy p { color: var(--on-navy); }
.panel.navy .textlink { color: var(--white); }
:root[data-theme="dark"] .panel.navy { background: #0E2B48; border-color: rgba(255,255,255,0.16); }
.links { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; gap: 7px; align-items: center; font-family: var(--head); font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.links a:hover { border-color: var(--accent); color: var(--accent); }
.fine { font-family: var(--head); font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.45; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bars { list-style: none; margin-top: 6px; }
.bars li { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 2em; gap: 10px; align-items: center; font-family: var(--head); font-size: 14px; padding: 5px 0; }
.bars .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-align: left; }
.bars .name:hover { color: var(--accent); text-decoration: underline; }
.bars .track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bars .fill { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
:root[data-theme="dark"] .bars .fill { background: var(--teal-55); }
.bars .v { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ===== Detail ===== */
.back { display: inline-flex; gap: 8px; align-items: center; font-family: var(--head); font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.detail .card-top { margin-bottom: 14px; }
.detail .sub { font-family: var(--head); font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.detail h2 { font-family: var(--head); font-size: 21px; font-weight: 700; margin: 34px 0 10px; letter-spacing: -0.01em; }
.detail .plain { font-size: 21px; line-height: 1.45; color: var(--ink); margin-top: 18px; }
.detail .body { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.detail .body + .body { margin-top: 12px; }
.do-panel { margin-top: 22px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--panel); border-left: 5px solid var(--teal); }
.do-panel.act { background: var(--orange-tint); border-left-color: var(--orange); }
.do-panel .step-text { font-size: 19px; line-height: 1.5; color: var(--ink); margin-top: 6px; }
.do-panel ul { margin: 10px 0 0 20px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.do-panel li { margin-top: 4px; }
.note { margin-top: 18px; padding: 14px 18px; border-radius: var(--r); background: var(--surface-2); border-left: 4px solid var(--orange); font-style: italic; font-size: 17px; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin-top: 22px; overflow: hidden; }
.fact { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.fact .label { display: block; margin-bottom: 4px; font-size: 11.5px; }
.fact .v { font-family: var(--head); font-size: 16px; font-weight: 600; color: var(--ink); }
.fact .s { font-family: var(--head); font-size: 13px; color: var(--ink-3); }
.table-wrap { overflow-x: auto; margin-top: 6px; border-radius: var(--r); border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-family: var(--head); font-size: 14px; min-width: 480px; }
table.t th { background: var(--navy); color: var(--white); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 12px; }
:root[data-theme="dark"] table.t th { background: var(--teal); }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.refs { list-style: none; margin-top: 6px; display: grid; gap: 8px; }
.refs li { display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-soft); font-family: var(--head); font-size: 15px; }
.refs .k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); min-width: 6.5em; flex: none; }
.refs .k.news { color: var(--orange-hover); } .refs .k.be { color: var(--teal); }
:root[data-theme="dark"] .refs .k.news { color: var(--orange); } :root[data-theme="dark"] .refs .k.be { color: #8FC1D3; }
.refs a { text-decoration: none; }
.refs a:hover { text-decoration: underline; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ir-strip { margin-top: 30px; }
@media (max-width: 560px) { .refs li { flex-direction: column; gap: 2px; } }

/* ===== Signal timeline and radar ===== */
.radar-note { margin-top: 18px; padding: 14px 18px; border-radius: var(--r); border: 1.5px dashed var(--teal); background: var(--surface-2); font-family: var(--head); font-size: 15px; line-height: 1.5; color: var(--ink); }
.timeline { padding: 16px 16px 6px; }
.tl { display: block; overflow: visible; max-width: 100%; height: auto; }
.tl-rule { stroke: var(--line-soft); stroke-width: 1; }
.tl-label { font-family: var(--head); font-size: 12px; font-weight: 600; fill: var(--ink-2); }
.tl-axis { font-family: var(--head); font-size: 11px; fill: var(--ink-3); }
.tl-pub { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.tl-dot { stroke: var(--card); stroke-width: 2; }
.tl-dot:hover { stroke: var(--orange); }
.tl-dot.early { opacity: 0.55; }
.tl-chatter { fill: var(--teal-55); }
.tl-dot.tl-social { fill: var(--card); stroke: var(--teal-55); stroke-width: 2; }  /* hollow: talk, the softest signal */
.tl-dot.tl-social:hover { stroke: var(--teal); } .tl-code { fill: var(--orange); } .tl-scanner { fill: var(--orange-hover); }
.tl-dot.tl-measured { fill: var(--orange-tint); stroke: var(--orange); stroke-width: 2.5; }  /* attempts measured by sensors */
.tl-press { fill: var(--navy); } .tl-cert { fill: var(--teal); } .tl-official { fill: var(--navy); }
:root[data-theme="dark"] .tl-press, :root[data-theme="dark"] .tl-official { fill: #FFFFFF; }
:root[data-theme="dark"] .tl-cert { fill: #8FC1D3; }
.tl-n { font-family: var(--head); font-size: 10px; font-weight: 700; fill: #FFFFFF; text-anchor: middle; pointer-events: none; }
:root[data-theme="dark"] .tl-n { fill: var(--navy); }
.tl-list { list-style: none; margin-top: 10px; border-top: 1px solid var(--line-soft); }
.tl-list li { display: grid; grid-template-columns: 7.8em 10.5em minmax(0, 1fr); gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line-soft); font-family: var(--head); font-size: 13.5px; color: var(--ink-2); }
.tl-list li:last-child { border-bottom: 0; }
.tl-list .d { color: var(--ink-3); }
.tl-list .k { font-weight: 600; color: var(--ink); }
.tl-list a { text-decoration: none; overflow-wrap: anywhere; }
.tl-list a:hover { text-decoration: underline; }
@media (max-width: 560px) { .tl-list li { grid-template-columns: 1fr; gap: 0; } }

/* ===== Archive ===== */
.arch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; margin-top: 22px; }
@media (max-width: 1040px) { .arch-grid { grid-template-columns: minmax(0, 1fr); } }
.month { margin-top: 26px; }
.month h3 { font-family: var(--head); font-size: 15px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--navy); display: flex; justify-content: space-between; }
:root[data-theme="dark"] .month h3 { border-bottom-color: var(--teal-55); }
.month h3 span { font-weight: 500; color: var(--ink-3); }
.arow { display: grid; grid-template-columns: 4.4em 12px minmax(0, 1fr) auto; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); font-family: var(--head); font-size: 14.5px; align-items: center; border-radius: 6px; }
.arow:hover { background: var(--surface-2); }
.arow .d { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.arow .p { color: var(--ink); font-weight: 600; }
.arow .n { color: var(--ink-2); }
.arow .c { font-size: 12.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.arow a { text-decoration: none; color: inherit; }
.arow a:hover .p { color: var(--accent); }
@media (max-width: 560px) { .arow { grid-template-columns: 3.6em 10px minmax(0, 1fr); } .arow .c { grid-column: 3; text-align: left; } }

/* ===== Stack picker, prose ===== */
.picker { margin-top: 20px; }
.picker .search { display: block; max-width: 560px; }
.suggest { list-style: none; max-width: 560px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-top: 6px; max-height: 340px; overflow-y: auto; background: var(--card); box-shadow: var(--shadow); }
.suggest:empty { display: none; }
.suggest button { width: 100%; text-align: left; padding: 11px 14px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--head); font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.suggest button:hover, .suggest button:focus-visible { background: var(--panel); }
.suggest .k { color: var(--ink-3); font-size: 13px; }
.mine { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 38px; }
.mine .chip { background: var(--teal-tint); border-color: var(--teal-25); color: var(--ink); }
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--head); font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 8px 0 0 20px; }
.prose dl { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); margin-top: 12px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.prose dt, .prose dd { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.prose dt { font-family: var(--head); font-weight: 600; font-size: 15px; background: var(--surface-2); display: flex; gap: 8px; align-items: baseline; }
.prose dd { font-size: 16.5px; color: var(--ink-2); }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dt { border-bottom: 0; padding-bottom: 2px; } }

/* ===== Subscribe dialog ===== */
dialog.sub { border: 0; padding: 0; width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--surface); color: var(--ink); margin: auto; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(11,38,65,.35); overflow: hidden; }
dialog.sub::backdrop { background: rgba(11, 38, 65, 0.7); backdrop-filter: blur(2px); }
.sub-head { background: var(--navy); color: var(--white); padding: 22px 24px 20px; position: relative; overflow: hidden; }
.sub-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(94,147,168,0.35) 1px, transparent 1.6px); background-size: 24px 24px; opacity: .6; }
.sub-head > * { position: relative; }
.sub-head .eyebrow { color: var(--teal-55); }
.sub-head h2 { font-family: var(--head); font-size: 26px; line-height: 1.15; letter-spacing: -0.012em; margin-top: 6px; padding-right: 40px; }
.sub-head .close { position: absolute; top: 14px; right: 14px; color: var(--on-navy); width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.sub-head .close:hover { background: rgba(255,255,255,.1); color: var(--white); }
.sub-in { padding: 18px 24px 22px; overflow-y: auto; max-height: calc(100vh - 150px); }
.sub .lede { font-size: 16px; color: var(--ink-2); }
.field { margin-top: 18px; }
.field > .label, fieldset legend { display: block; margin-bottom: 8px; }
fieldset { border: 0; }
.field input[type="email"] { width: 100%; font-family: var(--head); font-size: 16px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink); }
.field input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--teal-tint); }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: all .15s; }
.opt:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.opt input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }
.opt b { font-family: var(--head); font-size: 15px; display: block; font-weight: 600; }
.opt span { font-family: var(--head); font-size: 13.5px; color: var(--ink-2); }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.consent input { accent-color: var(--teal); width: 16px; height: 16px; margin-top: 3px; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.sub-actions .fine { margin: 0; }
.hp { position: absolute; left: -9999px; }
.ok-msg { font-size: 17px; color: var(--ink-2); margin-top: 10px; }
.err { color: var(--ink); font-family: var(--head); font-size: 14px; margin-top: 12px; border-left: 3px solid var(--orange); padding: 6px 10px; background: var(--orange-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ===== Footer ===== */
.foot { background: var(--navy); color: var(--on-navy); border-top: 2px solid var(--teal); padding: 46px 0 30px; font-family: var(--head); position: relative; overflow: hidden; }
.foot::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(94,147,168,0.28) 1px, transparent 1.6px), repeating-linear-gradient(115deg, rgba(94,147,168,0.06) 0, rgba(94,147,168,0.06) 1px, transparent 1px, transparent 90px); background-size: 32px 32px, 100% 100%; animation: drift 90s linear infinite; pointer-events: none; }
@keyframes drift { to { background-position: 480px 480px, 360px 0; } }
.foot .wrap { position: relative; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.foot .logo { height: 78px; width: auto; }
.foot .promise { font-size: 16px; font-weight: 600; color: var(--white); margin-top: 16px; }
.foot .tagline { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-55); margin-top: 4px; }
.foot p, .foot li { font-size: 14.5px; line-height: 1.6; }
.foot .label { color: var(--on-navy-meta); display: block; margin-bottom: 10px; }
.foot ul { list-style: none; }
.foot li { padding: 3px 0; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: var(--orange); }
.foot .legal { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 30px; padding-top: 16px; font-size: 13px; color: var(--on-navy-meta); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.disclaimer { font-family: var(--body); font-style: italic; }

.loading { padding: 40px 0; color: var(--ink-2); font-family: var(--head); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: var(--white); font-family: var(--head); padding: 11px 16px; border-radius: var(--r-sm); font-size: 14px; opacity: 0; transition: all .2s ease; z-index: 200; pointer-events: none; box-shadow: 0 10px 30px rgba(11,38,65,.3); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .head, .controls, .side, .foot, .share, .hero canvas { display: none; } .layout { display: block; } }

/* Vendor advisories on the detail page */
.vendor-adv { list-style: none; padding: 6px 18px; margin: 0 0 6px; }
.vendor-adv li { display: grid; grid-template-columns: 11em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--head); font-size: 14.5px; }
.vendor-adv li:last-child { border-bottom: 0; }
.vendor-adv .k { font-weight: 700; color: var(--ink); }
.vendor-adv a { text-decoration: none; overflow-wrap: anywhere; }
.vendor-adv a:hover { text-decoration: underline; }
.vendor-adv .d { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .vendor-adv li { grid-template-columns: 1fr; gap: 2px; } }
