/* ============================================================================
   CyberMon — shared stylesheet for ALL tabs (dark editorial,
   broadsheet-meets-terminal). Serif (Newsreader) carries the argument;
   monospace carries the data. One accent (--accent) is reserved for
   inflation/alarm. Everything else stays newsprint-neutral.

   New tab modules link ONLY this file and reuse: masthead/site-nav chrome,
   .chart-section / .section-* editorial scaffolding, .panel, .toggle,
   .stat-* cards, .method footnotes, .error-card, footer.
   ========================================================================== */

:root {
  --bg: #0e0f11;
  --bg-deep: #0a0b0c;
  --panel: #15171a;
  --panel-up: #1b1d21;
  --ink: #e9e4d8;
  --muted: #96907f;
  --faint: #807b6b; /* 4.5:1 on --bg: carries real text, not just rules */
  --rule: #2a2c2e;
  --rule-strong: #3d3f42;
  --accent: #ff4a3f;
  --accent-dim: rgba(255, 74, 63, 0.14);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 66ch;
  --page: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(255, 74, 63, 0.05), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.006) 2px 4px),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--panel-up);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- banner -- */

.sample-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #ffd9d6;
  background:
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.22) 0 10px, transparent 10px 20px),
    #7e211b;
  border-bottom: 1px solid var(--accent);
}

/* -------------------------------------------------------------- masthead -- */

.masthead {
  border-bottom: 3px double var(--rule-strong);
  padding: 56px 20px 36px;
}

.masthead-inner {
  max-width: var(--page);
  margin: 0 auto;
  text-align: center;
}

.masthead-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.masthead-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.10em;
  margin: 0 0 10px;
  line-height: 1;
}

.masthead-thesis {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.3;
  max-width: 34ch;
  margin: 0 auto 14px;
}

.masthead-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  max-width: 68ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- module tabs (grouped: one row per theme, hairlines between rows) ---- */

.site-nav {
  margin-top: 26px;
  border-top: 1px solid var(--rule);
}

.site-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 2px;
}

.site-nav-row + .site-nav-row { border-top: 1px solid var(--rule); }

.site-nav-group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  padding: 11px 18px 9px 0;
  margin-right: 10px;
  border-right: 1px solid var(--rule);
}

.site-nav-row.is-active .site-nav-group-label { color: var(--muted); }

.site-nav-tab {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 11px 14px 9px;
  border-bottom: 2px solid transparent;
}

.site-nav-tab:hover { color: var(--ink); }

.site-nav-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---- desktop nav: one bar of groups, one group's pages open beneath ---- */

.site-nav-group-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 14px 9px;
  cursor: pointer;
}
.site-nav-group-btn::after { content: " ▾"; color: var(--faint); }
.site-nav-group-btn[aria-expanded="true"]::after { content: " ▴"; color: var(--accent); }
.site-nav-group-btn:hover,
.site-nav-group-btn[aria-expanded="true"] { color: var(--ink); }
.site-nav-group-btn.is-current { border-bottom-color: var(--accent); }
.site-nav-group-btn:focus-visible,
.site-nav-tab:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.site-nav-groups .site-nav-field { margin-left: 10px; padding-left: 20px; border-left: 1px solid var(--rule); }
.site-nav-groups + .site-nav-row-instruments { border-top: none; }

@media (min-width: 721px) {
  .site-nav-row-lead,
  .site-nav-group-row:not(.is-shown) { display: none; }
  .site-nav-group-row .site-nav-group-label { display: none; }
  .site-nav-group-row.is-shown { background: var(--bg-deep); }
}

/* ---- compact masthead on module pages: the wordmark and thesis stay, the
   kicker and manifesto paragraph live on the landing page only ---------- */

.page-module .masthead { padding: 32px 20px 22px; }
.page-module .masthead-kicker,
.page-module .masthead-sub { display: none; }
.page-module .masthead-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.page-module .masthead-thesis { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: none; margin-bottom: 0; }
.page-module .site-nav { margin-top: 18px; }
.masthead-home { color: inherit; text-decoration: none; }
.masthead-home:hover .accent,
.masthead-home:focus-visible .accent { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* nav fold: the summary only exists for phones (see the mobile block) */
.site-nav-summary { display: none; }

/* ---- "On this page" jump list (module pages with 3+ sections) ---------- */

.page-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-toc-label { color: var(--faint); letter-spacing: 0.16em; }
.page-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-toc-link { color: var(--muted); text-decoration: none; }
.page-toc-link:hover,
.page-toc-link:focus-visible { color: var(--ink); text-decoration: underline; }
.chart-section[id] { scroll-margin-top: 16px; }

/* -------------------------------------------------------------- sections -- */

.sections {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px;
}

.chart-section {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.chart-section:last-child { border-bottom: none; }

.section-head { max-width: 100%; }

.section-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: 26ch;
}

.hero .section-headline { font-size: clamp(2rem, 5.4vw, 3.2rem); }

.section-caption {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 26px;
  font-size: 1.02rem;
}

/* pointer to a sibling module (buildSection's optional ed.seeAlso) */
.section-seealso {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  max-width: var(--measure);
  margin: -12px 0 26px;
}

/* ---- hero headline stat ---- */

.section-stat { margin: 0 0 22px; }

.hero-stat {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 20px 0 22px;
}

.hero-stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-stat-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-when {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-vs {
  font-family: var(--serif);
  font-style: italic;
  color: var(--faint);
  font-size: 1.4rem;
}

/* ---- stat cards (chart 3) ---- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 18px 20px 16px;
}

.stat-big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-lead { font-size: 1rem; line-height: 1.4; max-width: 40ch; }

.stat-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 10px;
}

/* ---------------------------------------------------------------- panels -- */

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 16px 16px 12px;
}

/* Several toggles (a scale switch plus the Linux-kernel filter) sit side by
   side and wrap onto a second row on phones. */
.panel-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 8px; }
.panel-controls:empty { display: none; }

.panel-subtitle {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 4px;
}

.panel-extra:empty { display: none; }

.panel-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--rule-strong);
  margin: 12px 0 2px;
  padding-top: 10px;
}

.panel-note::before { content: "※ "; color: var(--accent); }

.chart { width: 100%; height: 380px; }
.chart-tall { height: 440px; }
.chart-half { height: 300px; }
.chart-kev { height: 170px; }

/* two-column split inside a panel (chart 4) */
.split { display: flex; gap: 20px; }
.split-col { flex: 1 1 0; min-width: 0; }
.split-col-narrow { flex: 0 0 38%; }

/* ---- toggles ---- */

.toggle {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  margin-bottom: 8px;
}

.toggle-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  cursor: pointer;
}

.toggle-btn + .toggle-btn { border-left: 1px solid var(--rule-strong); }

.toggle-btn:hover { color: var(--ink); }

.toggle-btn.is-active {
  color: var(--ink);
  background: var(--panel-up);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---- methodology footnote ---- */

.method {
  margin-top: 14px;
  border-left: 2px solid var(--rule-strong);
  padding-left: 16px;
}

.method summary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.method summary::marker { color: var(--accent); }

.method[open] summary { color: var(--ink); }

.method-body {
  max-width: var(--measure);
  padding: 10px 0 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* long unbreakable strings (URL templates, file paths) wrap instead of
   widening the page on phones */
.method-body p { margin: 0 0 10px; overflow-wrap: anywhere; }

.method-src { font-family: var(--mono); font-size: 12px; }

/* The section's public JSON file(s), under the methodology; continues its
   left rule so the two read as one footnote. */
.method-data {
  margin: 0;
  padding: 6px 0 0 16px;
  border-left: 2px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.method-data a { color: var(--muted); text-decoration: underline dotted; }
.method-data a:hover { color: var(--ink); }

/* ---- error card ---- */

.error-card {
  border: 1px dashed var(--accent);
  background: var(--accent-dim);
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.error-card strong { color: var(--accent); display: block; margin-bottom: 6px; }
.error-card p { margin: 0; color: var(--ink); }

/* Honest empty state (a chart with nothing to draw yet) — shared by every
   module, so it lives here, not in market.css. */
.nodata-card {
  border: 1px dashed var(--rule-strong);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 26px 24px;
}

/* stat card with nothing to report yet: drop the accent flag */
.stat-card.is-empty { border-left-color: var(--rule-strong); }

/* ------------------------------------------------------------- CNA table -- */

.table-context {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.table-wrap { overflow-x: auto; }

.cna-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}

.cna-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--rule-strong);
  padding: 8px 14px 8px 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.cna-table th.num { text-align: right; }

/* Sortable header: the <th> stays a columnheader (aria-sort lives there);
   the real <button> inside it is the click/keyboard target and inherits
   the header's type. */
.cna-table th .sort-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
.cna-table th .sort-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.cna-table th:hover { color: var(--ink); }

.cna-table th.is-sorted { color: var(--ink); }
.cna-table th.is-sorted::after { content: " ▾"; color: var(--accent); }
.cna-table th.is-sorted[aria-sort="ascending"]::after { content: " ▴"; }

.cna-table td {
  border-bottom: 1px solid var(--rule);
  padding: 10px 14px 10px 0;
  vertical-align: middle;
}

.cna-table td.num { text-align: right; }

.cna-table tr:hover td { background: rgba(255, 255, 255, 0.015); }

.cna-name { min-width: 170px; }
.cna-short { display: block; color: var(--ink); }

/* A CVE id that opens the Field instrument on that record (dom.js withCveLinks). */
.cve-link { color: var(--ink); text-decoration: underline dotted; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.cve-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.cna-org { display: block; font-size: 11px; color: var(--faint); }

/* Naming Chaos board: the alternate-name list — secondary to the count,
   wraps within a sane column width instead of stretching the table. */
.alias-list {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: 42ch;
  white-space: normal;
}

/* In-cell bar with its value BESIDE it, never on it: a value drawn over the
   fill was unreadable wherever the fill reached it (avg CVSS, 100.0%). The
   value column is reserved as a right margin, --cellbar-val-w wide (a board
   with longer labels sets it on its cells), so digits align down the column. */
.cellbar {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 18px;
  margin-right: calc(var(--cellbar-val-w, 7ch) + 8px);
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  vertical-align: middle;
  font-family: var(--mono);
  font-size: 11.5px;
}

.cellbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--faint);
  opacity: 0.85;
}

.cellbar-fill.accent { background: var(--accent); opacity: 0.75; }

.cellbar-val {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% + 8px);
  width: var(--cellbar-val-w, 7ch);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  font-size: inherit;
  color: var(--ink);
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--faint);
  padding: 3px 8px;
  white-space: nowrap;
}

/* ------------------------------------------------- landing module cards --- */

/* Thematic group header: same label + one-line lede as the nav groups
   (both fold over editorial.nav's group tags via groupNav()). */
.module-group { margin: 36px 0 0; }

.module-group-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--rule-strong);
  padding-top: 16px;
  margin: 0 0 6px;
}

.module-group-lede {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: var(--measure);
  margin: 0 0 18px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin: 6px 0 18px;
}

/* Instruments block: one card should not stretch across the whole page. */
.instrument-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 460px)); }

.module-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 22px 24px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, background 120ms ease;
}

.module-card:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--panel-up);
}

.module-card.is-pending { border-style: dashed; }

.module-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.module-card-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.tag-live {
  color: var(--accent);
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-dim);
}

.module-card-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.module-card-headline {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.module-card:hover .module-card-headline { color: var(--accent); }

.module-card-blurb {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- footer -- */

.footer {
  border-top: 3px double var(--rule-strong);
  margin-top: 24px;
  padding: 36px 20px 56px;
  background: var(--bg-deep);
}

.footer-inner { max-width: var(--page); margin: 0 auto; }

.footer-meta { font-size: 12px; margin-bottom: 18px; }
.footer-meta p { margin: 0 0 6px; }

.footer-text { font-size: 0.92rem; max-width: 84ch; }
.footer-text p { margin: 0 0 10px; }

.footer-repo { font-size: 12.5px; }

.footer-carousel { font-size: 12.5px; }

/* ---------------------------------------------------------------- mobile -- */

@media (max-width: 720px) {
  body { font-size: 16px; }

  .masthead { padding: 40px 16px 28px; }
  .sections { padding: 0 16px; }
  .chart-section { padding: 44px 0 40px; }

  /* Grouped nav stacks: label becomes a full-width heading over its tabs;
     tabs shrink and wrap — never a horizontal scroll, never a JS dependency. */
  .site-nav-row { padding-bottom: 6px; }
  .site-nav-group-label {
    flex-basis: 100%;
    text-align: center;
    border-right: none;
    margin: 0;
    padding: 12px 0 2px;
  }
  .site-nav-tab {
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 7px 9px 6px;
  }
  .site-nav-row-lead .site-nav-tab { padding-top: 11px; }

  .site-nav-groups { display: none; }

  /* folded nav: one tappable line naming the current page */
  .site-nav-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    min-height: 44px;
    padding: 12px 4px;
    cursor: pointer;
    list-style: none;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .site-nav-summary::-webkit-details-marker { display: none; }
  .site-nav-summary-label { color: var(--muted); }
  .site-nav-summary-label::after { content: " ▾"; color: var(--accent); }
  .site-nav-fold[open] .site-nav-summary-label::after { content: " ▴"; }
  .site-nav-summary-current { color: var(--ink); text-align: right; }
  .site-nav-fold[open] > .site-nav-summary { border-bottom: 1px solid var(--rule); }

  .page-module .masthead { padding: 24px 16px 8px; }
  .page-toc { padding: 16px 0 14px; font-size: 11px; gap: 6px 14px; }
  .page-toc-label { flex-basis: 100%; }
  .page-toc-list { gap: 0 14px; }
  .page-toc-link { display: inline-block; padding: 7px 0; }

  .chart { height: 320px; }
  .chart-tall { height: 360px; }
  .chart-half { height: 260px; }

  .split { flex-direction: column; gap: 8px; }
  .split-col-narrow { flex: 1 1 auto; }

  .hero-stat-row { gap: 10px; }

  /* narrower track on phones: the value column now sits beside it */
  .cellbar { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Per-chart source line: sits at the bottom of every chart panel, naming the
   upstream data and anchoring to the footer's full source/license list. */
.chart-source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}
.chart-source a { color: var(--muted); text-decoration: underline dotted; }
.chart-source a:hover { color: var(--ink); }

/* Machine-Readable Advisories (csaf.html): provider rows in the year grid
   and the field table read as names, not column headers; the pooled and
   total rows sit under a stronger rule. */
.cna-table th.csaf-name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--ink);
  cursor: default;
  border-bottom: 1px solid var(--rule);
  padding: 8px 14px 8px 0;
}
.cna-table td.num { padding-left: 6px; white-space: nowrap; }
.csaf-grid td.num, .csaf-grid th.num { padding-right: 8px; }
.cna-table tfoot tr.csaf-sum:first-child th,
.cna-table tfoot tr.csaf-sum:first-child td { border-top: 1px solid var(--rule-strong); }
.cna-table tfoot th.csaf-name { color: var(--muted); }
