/* Threat Intel Specialist — shared styles.
   Incident states use both text labels and colour; colour is never the only signal. */

:root {
  --bg: #edf1f5;
  --surface: #ffffff;
  --ink: #102e41;
  --muted: #51627a;
  --line: #cbd5e0;
  --link: #1c44c2;
  --confirmed: #0a6b50;
  --corroborated: #176b87;
  --reported: #51627a;
  --claimed: #9c5600;
  --disputed: #b4231a;
  --danger: #b4231a;
  --focus: #1c44c2;
  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c1622;
  --surface: #142233;
  --ink: #e7edf4;
  --muted: #9fb0c4;
  --line: #2a3d54;
  --link: #93b4ff;
  --confirmed: #4fcfa5;
  --corroborated: #70c5df;
  --reported: #b7c2d0;
  --claimed: #f2b24e;
  --disputed: #ff8477;
  --danger: #ff8477;
  --focus: #93b4ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── header ── */
#site-header { background: var(--surface); border-bottom: 1px solid var(--line); min-height: 4rem; }
.bar { display: flex; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none;
  font: 800 1.12rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.nav { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 0.45rem 0.55rem; color: var(--ink); text-decoration: none; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); border-radius: 4px 4px 0 0; }
.tools { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.site-search input { width: 9rem; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 4px; width: 2.4rem; height: 2.4rem;
  display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 68rem) {
  .bar nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bar nav::-webkit-scrollbar { display: none; }
  .nav { margin-left: -0.7rem; }
}
@media (max-width: 30rem) { .site-search input { width: 7.5rem; } }

/* ── forms ── */
input[type="search"], input[type="text"], select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 4px;
  padding: 0.45rem 0.65rem; min-height: 2.4rem; max-width: 100%;
}
input::placeholder { color: var(--muted); opacity: 1; }
button { font: inherit; }
.btn { background: var(--ink); color: var(--bg); border: 0; border-radius: 4px; padding: 0.55rem 1rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { opacity: 0.88; }
.btn.quiet { background: none; color: var(--ink); border: 1px solid var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; align-items: end; margin-block: 1.25rem 0.75rem; }
.filters label { display: grid; gap: 0.2rem; font-size: 0.9rem; color: var(--muted); }
.filters .grow { flex: 1 1 14rem; }
.filters .grow input { width: 100%; }
.filters .check { display: flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; color: var(--ink); font-size: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--muted); border-radius: 4px; overflow: hidden; }
.seg button { background: var(--surface); color: var(--ink); border: 0; border-left: 1px solid var(--muted); padding: 0.45rem 0.8rem; min-height: 2.4rem; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 700; }
.count { color: var(--muted); margin: 0 0 0.25rem; }

/* ── page heads ── */
.page-head { padding-block: 2.5rem 0.5rem; }
.page-head p { font-size: 1.15rem; max-width: 44rem; margin-top: 0.7rem; color: var(--muted); }
.today { padding-block: 2.75rem 1.75rem; }
.today time { display: block; font-weight: 500; color: var(--muted); margin-bottom: 0.4rem; }
.today h1 { max-width: 18ch; }
.brief { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; max-width: 46rem; margin: 1.1rem 0 0; }
.brief b { font-weight: 700; }
.fresh { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; }

/* ── lanes and rows ── */
.board { display: grid; gap: 2rem 2.5rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); padding-bottom: 3.5rem; align-items: start; }
@media (max-width: 56rem) { .board { grid-template-columns: minmax(0, 1fr); } }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.15rem 1.25rem 0.4rem; margin-bottom: 2rem; }
.lane-head { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink); }
.lane-head a { font-weight: 500; white-space: nowrap; }
.lane-note { color: var(--muted); font-size: 0.95rem; margin: 0.6rem 0 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .rows > details { border-bottom: 1px solid var(--line); padding-block: 0.85rem; }
.rows > :last-child { border-bottom: 0; }
.row-title { font-weight: 700; font-size: 1.06rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.row-title a { color: var(--ink); text-decoration: none; }
.row-title a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 0.93rem; margin: 0.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; }
.excerpt { margin: 0.35rem 0 0; max-width: 46rem; }
.day { font: 700 1.05rem var(--display); margin: 1.75rem 0 0; padding-bottom: 0.4rem; border-bottom: 2px solid var(--ink); }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 1.25rem; margin-bottom: 1.5rem; }
.more { margin: 0.5rem 0 3.5rem; }
.empty { padding: 1.5rem 0; color: var(--muted); max-width: 40rem; }

/* ── status marks: the disc is solid when confirmed, hollow when not ── */
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.93rem; white-space: nowrap; }
.status::before { content: ""; width: 0.72rem; height: 0.72rem; border-radius: 50%; border: 2.5px solid currentColor; flex: none; }
.status.confirmed { color: var(--confirmed); }
.status.confirmed::before { background: currentColor; }
.status.corroborated { color: var(--corroborated); }
.status.corroborated::before { background: currentColor; }
.status.reported { color: var(--reported); }
.status.claimed { color: var(--claimed); }
.status.disputed { color: var(--disputed); }
.status.disputed::before { border-radius: 2px; }
.status-seg { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.incident { align-items: start; display: grid; grid-template-columns: 8.7rem minmax(0, 1fr); gap: 0.2rem 1rem; }
.incident .status { padding-top: 0.15rem; }
@media (max-width: 34rem) { .incident { grid-template-columns: minmax(0, 1fr); } }
.sources { margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.sources li { margin-top: 0.15rem; }
.basis { font-size: 0.93rem; color: var(--muted); margin: 0.35rem 0 0; }
.impact { margin: 0.45rem 0 0; font-size: 0.97rem; }
.impact strong { font-weight: 700; }
.incident-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-top: 0.7rem; font-size: 0.95rem; }
.key { display: grid; gap: 0.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; margin-top: 1.25rem; }
.key p { margin: 0.2rem 0 0; font-size: 0.97rem; }

/* ── incident intelligence analytics ── */
.intel-dashboard { margin: 1.65rem 0 2rem; }
.analytics-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.analytics-head > div:first-child { max-width: 46rem; }
.analytics-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.analytics-head p:not(.eyebrow) { margin: 0.45rem 0 0; color: var(--muted); }
.eyebrow { margin: 0 0 0.25rem; color: var(--muted); font: 700 0.78rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.09em; }
.analytics-window { flex: none; }
.analytics-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.75rem; margin-bottom: 0.8rem; }
.analytics-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.85rem 0.95rem; min-height: 6.5rem; }
.analytics-kpi .kpi-label { color: var(--muted); font-size: 0.87rem; display: block; }
.analytics-kpi .kpi-value { display: block; font: 800 clamp(1.55rem, 3vw, 2.2rem)/1.05 var(--display); letter-spacing: -0.03em; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.analytics-kpi .kpi-detail { color: var(--muted); font-size: 0.84rem; display: block; margin-top: 0.35rem; line-height: 1.3; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.analytics-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.05rem; min-width: 0; }
.analytics-wide { grid-column: span 2; }
.analytics-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); }
.analytics-card-head h3 { font-size: 1rem; }
.analytics-note { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.analytics-footnote { color: var(--muted); font-size: 0.88rem; margin: 0.8rem 0 0; max-width: 60rem; }
.trend-chart { min-height: 15rem; padding-top: 0.55rem; }
.trend-svg { width: 100%; height: 14rem; display: block; overflow: visible; }
.trend-grid { stroke: var(--line); stroke-width: 1; }
.trend-axis-text { fill: var(--muted); font: 11px var(--body); }
.trend-line { fill: none; stroke: var(--link); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-area { fill: var(--link); opacity: 0.08; }
.trend-point { fill: var(--surface); stroke: var(--link); stroke-width: 2; }
.chart-summary { color: var(--muted); font-size: 0.88rem; margin: 0.35rem 0 0; }
.verify-stack { display: flex; height: 1.35rem; border-radius: 4px; overflow: hidden; background: var(--bg); margin: 0.95rem 0 0.8rem; }
.verify-segment { border: 0; min-width: 0; padding: 0; cursor: pointer; transition: filter 0.12s ease; }
.verify-segment:hover { filter: brightness(0.9); }
.verify-segment.confirmed { background: var(--confirmed); }
.verify-segment.corroborated { background: var(--corroborated); }
.verify-segment.reported { background: var(--reported); }
.verify-segment.claimed { background: var(--claimed); }
.verify-segment.disputed { background: var(--disputed); }
.verify-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.45rem 0.8rem; font-size: 0.88rem; }
.verify-legend button { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: none; border: 0; color: var(--ink); text-align: left; padding: 0; cursor: pointer; }
.verify-legend .status { font-size: 0.83rem; }
.verify-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-chart { padding-top: 0.55rem; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem; align-items: center; width: 100%; padding: 0.38rem 0; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; }
.rank-row:hover .rank-label { text-decoration: underline; }
.rank-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-count { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.rank-track { grid-column: 1 / -1; height: 0.42rem; background: var(--bg); border-radius: 999px; overflow: hidden; }
.rank-fill { display: block; height: 100%; background: var(--link); border-radius: 999px; }
.rank-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.55rem; }
.signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; padding-top: 0.75rem; }
.signal { border-left: 3px solid var(--line); padding: 0.25rem 0 0.25rem 0.7rem; min-width: 0; }
.signal-label { color: var(--muted); font-size: 0.8rem; display: block; }
.signal strong { display: block; font: 700 1rem/1.25 var(--display); margin-top: 0.18rem; overflow-wrap: anywhere; }
.signal small { display: block; color: var(--muted); margin-top: 0.25rem; line-height: 1.25; }
.movement-total { font: 800 2rem/1 var(--display); display: block; margin: 0.85rem 0 0.2rem; }
.movement-list { list-style: none; padding: 0; margin: 0.65rem 0 0; }
.movement-list li { border-top: 1px solid var(--line); padding: 0.48rem 0; font-size: 0.88rem; }
.movement-list strong { display: block; font-weight: 700; }
.movement-list span { color: var(--muted); }
.filter-reset { min-height: 2.4rem; align-self: end; }
.analytics-empty { color: var(--muted); font-size: 0.9rem; padding: 0.7rem 0; }
@media (max-width: 52rem) {
  .analytics-grid { grid-template-columns: minmax(0, 1fr); }
  .analytics-wide { grid-column: auto; }
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .analytics-window { width: 100%; overflow-x: auto; }
  .analytics-window button { flex: 1; }
  .signal-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── vulnerabilities ── */
.cve { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vuln > summary { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) auto; gap: 0.2rem 1rem; cursor: pointer; list-style: none; align-items: start; }
.vuln > summary::-webkit-details-marker { display: none; }
.vuln > summary::after { content: "+"; font: 700 1.3rem/1 var(--display); color: var(--muted); grid-column: 3; grid-row: 1; }
.vuln[open] > summary::after { content: "–"; }
.vuln .when { color: var(--muted); font-size: 0.93rem; display: block; font-weight: 400; }
.vuln-body { margin: 0.7rem 0 0.2rem 11.5rem; max-width: 46rem; }
.vuln-body dl { margin: 0.6rem 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1rem; font-size: 0.97rem; }
.vuln-body dt { color: var(--muted); }
.vuln-body dd { margin: 0; }
@media (max-width: 40rem) {
  .vuln > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .vuln > summary > :first-child { grid-column: 1; }
  .vuln > summary > :nth-child(2) { grid-column: 1; }
  .vuln > summary::after { grid-column: 2; }
  .vuln-body { margin-left: 0; }
}
.flag { display: inline-block; font-size: 0.85rem; font-weight: 700; border: 1.5px solid currentColor; border-radius: 3px; padding: 0 0.4rem; line-height: 1.5; white-space: nowrap; }
.flag.danger { color: var(--danger); }
.flag.plain { color: var(--muted); font-weight: 500; border-width: 1px; }
.tabs { margin-top: 1.5rem; }

/* ── prose (blog, learn, about) ── */
.prose { max-width: 42rem; padding-bottom: 4rem; font-size: 1.1rem; line-height: 1.65; }
.prose h2 { margin: 2.2rem 0 0.6rem; }
.prose h3 { margin: 1.6rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.2rem 0; padding: 0.1rem 0 0.1rem 1rem; border-left: 4px solid var(--line); color: var(--muted); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0.05em 0.3em; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1rem; overflow-x: auto; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 0.45rem 0.7rem 0.45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); }
.post-meta { color: var(--muted); margin-top: 0.7rem; }
.glossary { margin: 0; }
.glossary dt { font: 700 1.1rem var(--display); margin-top: 1.1rem; }
.glossary dd { margin: 0.15rem 0 0; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; margin: 1rem 0 0; }
.cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; }
.cards a:hover { border-color: var(--ink); }
.cards strong { font: 700 1.1rem/1.25 var(--display); display: block; margin-bottom: 0.3rem; }
.cards span { color: var(--muted); font-size: 0.97rem; }
.health { list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 1rem; columns: 2 16rem; }
.health li { break-inside: avoid; padding: 0.15rem 0; }
.health .ok { color: var(--confirmed); font-weight: 700; }
.health .bad { color: var(--danger); font-weight: 700; }

/* ── footer ── */
#site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 1.75rem; font-size: 0.97rem; color: var(--muted); }
#site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
#site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
#site-footer p { margin: 0; max-width: 34rem; }

@media (prefers-reduced-motion: no-preference) {
  .vuln[open] .vuln-body { animation: open 0.16s ease-out; }
  @keyframes open { from { opacity: 0; transform: translateY(-4px); } }
}

/* small fixes */
.rows > li.day-row { border: 0; padding: 0; }
.rows > li.day-row:first-child .day { margin-top: 0.9rem; }
.vuln .row-title { display: block; }
.vuln .meta { align-items: center; }

/* ── incident history: tiles and charts ── */
:root { --chart-confirmed: #0b8a63; --chart-reported: #1668c4; --chart-claimed: #c97a00; --chart-1: #51627a; }
:root[data-theme="dark"] { --chart-confirmed: #1a9670; --chart-reported: #4a8fe0; --chart-claimed: #bd7f14; --chart-1: #9fb0c4; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
@media (max-width: 44rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.8rem 1rem; display: grid; }
.tile strong { font: 800 2rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tile span { font-weight: 500; }
.tile small { color: var(--muted); font-size: 0.87rem; }
.split { display: flex; gap: 2px; height: 10px; margin: 0.75rem 0 0; }
.split span { border-radius: 4px; min-width: 4px; }
.split-confirmed, .bar-confirmed, .swatch.confirmed { background: var(--chart-confirmed); fill: var(--chart-confirmed); }
.split-reported, .bar-reported, .swatch.reported { background: var(--chart-reported); fill: var(--chart-reported); }
.split-claimed, .bar-claimed, .swatch.claimed { background: var(--chart-claimed); fill: var(--chart-claimed); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 50rem) { .panels { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { font-size: 1.15rem; }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.93rem; color: var(--muted); margin: 0.35rem 0 0.25rem; padding: 0; list-style: none; }
.swatch { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: 0.35rem; vertical-align: -0.05em; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 11px var(--body); }
.chart .hit { fill: transparent; }
.chart .col { outline: none; cursor: default; }
.chart .col:hover .hit, .chart .col:focus-visible .hit { fill: var(--ink); opacity: 0.07; }
.tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 0.87rem; padding: 0.25rem 0.55rem; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.as-table summary { cursor: pointer; color: var(--link); font-size: 0.93rem; margin-top: 0.4rem; }
.as-table table { border-collapse: collapse; margin-top: 0.5rem; font-size: 0.93rem; }
.as-table th, .as-table td { text-align: left; padding: 0.2rem 1.25rem 0.2rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hbars { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.hbars li { display: grid; grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr) 2.2rem; gap: 0.6rem; align-items: center; font-size: 0.95rem; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 0.8rem; }
.hbar-fill { display: block; height: 100%; background: var(--chart-1); border-radius: 0 4px 4px 0; }
.hbar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.note { color: var(--muted); font-size: 0.93rem; margin: 0.75rem 0 0; max-width: 50rem; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.5rem 1rem; margin-top: 2.25rem; }
.hist > summary { grid-template-columns: 9rem minmax(0, 1fr) auto; }
.hist .cve { display: block; font-weight: 500; margin-bottom: 0.15rem; }
.hist .vuln-body { margin-left: 10rem; }
.hist .vuln-body h3 { margin-bottom: 0.4rem; }
.hist .vuln-body h4 { font: 700 1rem var(--display); margin: 0.9rem 0 0.25rem; }
.hist .vuln-body ul { margin: 0; padding-left: 1.2rem; }
.hist .vuln-body ul.sources { padding-left: 0; }
@media (max-width: 40rem) { .hist > summary { grid-template-columns: minmax(0, 1fr) auto; } .hist .vuln-body { margin-left: 0; } }
.tip { max-width: min(21rem, 96%); white-space: normal; text-align: center; z-index: 2; }
@media (min-width: 50rem) { .hbars.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }

/* ── vulnerability trends ── */
.hbars li:has(.hbar-label.wide) { grid-template-columns: minmax(9rem, 42%) minmax(0, 1fr) 5.2rem; }
.hbar-label.wide { white-space: normal; }
#trends .panels { margin-top: 0.5rem; }
.bar-ransom, .swatch.ransom { background: var(--chart-claimed); fill: var(--chart-claimed); }
.bar-other, .swatch.other { background: var(--chart-reported); fill: var(--chart-reported); }
.flag.warn { color: var(--claimed); }
#ins-due > li { padding-block: 0.6rem; }
