:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --ink: #12161c;
  --ink-dim: #5a6472;
  --line: #d9dee5;
  --line-soft: #e8ecf1;
  --accent: #b02a37;
  --accent-ink: #ffffff;
  --link: #14508c;

  --red: #b3261e;
  --red-bg: #fbe9e7;
  --amber: #8a5300;
  --amber-bg: #fdf1dd;
  --green: #14672f;
  --green-bg: #e4f3e8;
  --grey: #5a6472;
  --grey-bg: #eceff3;
  --blue: #14508c;
  --blue-bg: #e6eefa;

  --radius: 8px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --panel: #161b22;
    --panel-2: #1c2129;
    --ink: #e6edf3;
    --ink-dim: #8b98a8;
    --line: #2b323c;
    --line-soft: #222831;
    --accent: #e5534b;
    --accent-ink: #12161c;
    --link: #6cb0ff;

    --red: #ff8a80;
    --red-bg: #40201e;
    --amber: #e5b567;
    --amber-bg: #3a2d16;
    --green: #7ee2a8;
    --green-bg: #15301f;
    --grey: #9aa6b4;
    --grey-bg: #232a33;
    --blue: #7cb7ff;
    --blue-bg: #17273c;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1116;
  --panel: #161b22;
  --panel-2: #1c2129;
  --ink: #e6edf3;
  --ink-dim: #8b98a8;
  --line: #2b323c;
  --line-soft: #222831;
  --accent: #e5534b;
  --accent-ink: #12161c;
  --link: #6cb0ff;

  --red: #ff8a80;
  --red-bg: #40201e;
  --amber: #e5b567;
  --amber-bg: #3a2d16;
  --green: #7ee2a8;
  --green-bg: #15301f;
  --grey: #9aa6b4;
  --grey-bg: #232a33;
  --blue: #7cb7ff;
  --blue-bg: #17273c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px; top: 8px; z-index: 10;
  background: var(--panel); padding: 8px 12px; border-radius: var(--radius);
}

/* ---------- header ---------- */

.page-head {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 0;
  margin-bottom: 20px;
}
.page-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-start;
  justify-content: space-between;
}
h1 {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 27px);
  letter-spacing: -0.015em;
}
.tagline {
  margin: 6px 0 0;
  color: var(--ink-dim);
  max-width: 62ch;
}
.headmeta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.built {
  font: 12px/1.4 var(--mono);
  color: var(--ink-dim);
  white-space: nowrap;
}

.ghost {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 11px;
  cursor: pointer;
}
.ghost:hover { border-color: var(--ink-dim); }

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.panel-h {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.panel-note {
  margin: 0 0 12px;
  color: var(--ink-dim);
  font-size: 13px;
  max-width: 80ch;
}
.dim { color: var(--ink-dim); }

/* ---------- hero lookup ---------- */

.hero { padding: 18px 16px 16px; }
.hero-h {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.hero-search {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.hero-search input[type="search"] {
  font-size: 17px;
  padding: 11px 13px;
  background: var(--panel-2);
}
.hero-hint {
  margin: 9px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 80ch;
}

/* ---------- overview table ---------- */

table.overview { font-size: 13.5px; }
table.overview td { vertical-align: middle; }
table.overview .sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-dim);
}
th.num, td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td.num {
  font-size: 16px;
  font-weight: 620;
}
td.num.good { color: var(--green); }
td.num.bad { color: var(--red); }
td.lagcell { color: var(--ink-dim); font-size: 12.5px; white-space: nowrap; }

/* ---------- view tabs ---------- */

.views {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 16px;
}
.view-tab {
  font: inherit;
  font-size: 13px;
  color: var(--ink-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 13px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.view-tab:hover { border-color: var(--ink-dim); color: var(--ink); }
.view-tab[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.vt-count {
  font: 11px/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.view-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 85ch;
}
.refine { margin-bottom: 14px; }
.refine > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--link);
  padding: 4px 0;
}
.refine .controls { padding-top: 10px; }
.count-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- lifecycle state ---------- */

.state-chip {
  display: inline-block;
  font: 600 11.5px/1.6 var(--sans);
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.state-chip.s-V { color: var(--red);   background: var(--red-bg);   border-color: var(--red); }
.state-chip.s-P { color: var(--amber); background: var(--amber-bg); border-color: var(--amber); }
.state-chip.s-I { color: var(--amber); background: var(--amber-bg); border-color: var(--amber); }
.state-chip.s-F { color: var(--green); background: var(--green-bg); border-color: var(--green); }
.state-chip.s-N { color: var(--grey);  background: var(--grey-bg);  border-color: var(--line); }
.state-chip.s-U { color: var(--blue);  background: var(--blue-bg);  border-color: var(--blue); }

td.state { min-width: 15ch; }
td.state .sub, td.when .sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 2px;
}
td.when {
  font: 12px/1.5 var(--mono);
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- fix timeline ---------- */

.timeline {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 2px;
}
.timeline li {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 2px 14px;
  align-items: baseline;
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--green);
}
.timeline li.pending::before {
  border-color: var(--amber);
  background: var(--panel-2);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
.tl-label { font-weight: 600; font-size: 13.5px; }
.tl-when { font-size: 12.5px; white-space: nowrap; }
.tl-note { grid-column: 1 / -1; font-size: 12.5px; }

/* ---------- legend ---------- */

.explain-groups {
  display: grid;
  gap: 16px;
}
.explain-group + .explain-group {
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}
.explain-h {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
}
.explain-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(9.5rem, max-content) minmax(0, 1fr);
  gap: 9px 16px;
  align-items: baseline;
  font-size: 13px;
}
.explain-dl dt { margin: 0; }
.explain-dl dd {
  margin: 0;
  color: var(--ink-dim);
  max-width: 80ch;
}

@media (max-width: 560px) {
  .explain-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .explain-dl dd { margin-bottom: 12px; }
  .explain-dl dd:last-child { margin-bottom: 0; }
}

/* ---------- controls ---------- */

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 132px;
}
.field.grow { flex: 1 1 260px; }
.field > label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
input[type="search"], select {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 9px;
  width: 100%;
}
input[type="search"]:focus-visible, select:focus-visible, .ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.checks {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.check.deep { margin-top: 2px; font-size: 12px; }
.sort-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-dim);
}

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

.tablewrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  font-weight: 600;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: var(--panel);
  z-index: 2;
}
tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
tr.row { cursor: pointer; }
tr.row:hover td { background: var(--panel-2); }
tr.row.open td { background: var(--panel-2); }

.c-cve { width: 1%; white-space: nowrap; }
.c-when { width: 1%; white-space: nowrap; }
.c-state { width: 1%; white-space: nowrap; }
.c-triage { width: 1%; white-space: nowrap; }
.c-suites { width: 1%; }

td.cve {
  font: 13px/1.5 var(--mono);
  white-space: nowrap;
}
td.cve .kevflag { color: var(--red); font-weight: 700; }
td.sum { min-width: 22ch; }

/* ---------- badges & pills ---------- */

.badge {
  display: inline-block;
  font: 600 11px/1.5 var(--mono);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge.kev     { color: var(--red);   background: var(--red-bg);   border-color: var(--red); }
.badge.ransom  { color: var(--red);   background: var(--red-bg);   border-color: var(--red); }
.badge.epss    { color: var(--blue);  background: var(--blue-bg); }
.badge.cvss    { color: var(--grey);  background: var(--grey-bg); }
.badge.cvss.critical { color: var(--red);   background: var(--red-bg); }
.badge.cvss.high     { color: var(--amber); background: var(--amber-bg); }
.badge.cvss.medium   { color: var(--blue);  background: var(--blue-bg); }
.badge.cvss.low      { color: var(--grey);  background: var(--grey-bg); }
.badge.av      { color: var(--grey);  background: var(--grey-bg); }
.badge.av.net  { color: var(--amber); background: var(--amber-bg); }
.badge.adv     { color: var(--green); background: var(--green-bg); }
.badge.pending { color: var(--amber); background: var(--amber-bg); }
.badge.waiting { color: var(--grey);  background: var(--grey-bg); }
.badge.area    { color: var(--grey);  background: var(--grey-bg); }

.triage-cell {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 24ch;
}

.pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pill {
  font: 600 11px/1.6 var(--mono);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.pill.V { color: var(--red);   background: var(--red-bg);   border-color: var(--red); }
.pill.I { color: var(--amber); background: var(--amber-bg); border-color: var(--amber); }
.pill.F { color: var(--green); background: var(--green-bg); border-color: var(--green); }
.pill.N { color: var(--grey);  background: var(--grey-bg);  border-color: var(--line); }
.pill.U { color: var(--blue);  background: var(--blue-bg);  border-color: var(--blue); }
.pill.x { display: none; }

/* ---------- detail panel ---------- */

tr.detail > td {
  background: var(--panel-2);
  padding: 0 10px 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
.detail h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
  margin: 14px 0 6px;
}
.desc {
  white-space: pre-wrap;
  font-size: 13.5px;
  margin: 0;
  max-width: 88ch;
}
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  font-size: 13px;
  margin: 0;
}
.kv dt { color: var(--ink-dim); }
.kv dd { margin: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; }

table.mini {
  font-size: 12.5px;
  width: auto;
  min-width: 100%;
}
table.mini th, table.mini td {
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
table.mini th {
  position: static;
  background: none;
}
.kevbox {
  border: 1px solid var(--red);
  background: var(--red-bg);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 10px 0 0;
  font-size: 13px;
}
.kevbox h3 { margin-top: 0; color: var(--red); }
.linkrow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 14px;
}
.files {
  font: 12px/1.7 var(--mono);
  color: var(--ink-dim);
  margin: 0;
  word-break: break-all;
}

.sentinel { height: 1px; }
.empty { color: var(--ink-dim); padding: 18px 2px; }
.feedlink { font-size: 12px; text-transform: none; letter-spacing: 0; }

.page-foot {
  color: var(--ink-dim);
  font-size: 13px;
  padding: 8px 0 40px;
}
.page-foot p { margin: 0 0 6px; max-width: 90ch; }

.loadbar {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .2s;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .c-when, td.when { display: none; }
  .panel { padding: 13px; }
}

/* ---------- per-release answer table ---------- */

table.answer {
  font-size: 13px;
  width: 100%;
  margin-bottom: 4px;
}
table.answer th {
  position: static;
  background: none;
  padding: 4px 12px 5px 0;
  border-bottom: 1px solid var(--line);
}
table.answer td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.answer .sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 3px;
}
td.action {
  color: var(--ink);
  min-width: 30ch;
  max-width: 62ch;
  line-height: 1.5;
}

/* ---------- feed chips ---------- */

.feedlist { display: flex; flex-wrap: wrap; gap: 8px; }
.feedchip {
  font: 13px/1.5 var(--sans);
  text-decoration: none;
  color: var(--link);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.feedchip:hover { border-color: var(--link); }

td.sum .sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 2px;
}

/* ---------- starring ---------- */

/* Available to a screen reader, invisible on screen: used for the star
   column's header, which needs a name but no width. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.c-star { width: 1%; }
td.starcell { padding: 5px 2px 5px 6px; }

.star {
  font: inherit;
  line-height: 1;
  color: var(--ink-dim);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 3px 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.star:hover { color: var(--amber); border-color: var(--line); }
.star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.star[aria-pressed="true"] { color: var(--amber); }
.star-glyph { font-size: 17px; }

.star-wide {
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
  padding: 5px 12px;
}
.star-wide:hover { color: var(--ink); border-color: var(--amber); }
.star-wide[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }

.detail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}
.detail-tools + h3 { margin-top: 10px; }

/* ---------- starred-set bar ---------- */

.starbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 14px;
}
.starbar-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 78ch;
}
/* `display: flex` outranks the user agent's rule for [hidden]. */
.starbar[hidden] { display: none; }
.starbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- recent lookups ---------- */

.history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 11px;
}
.history[hidden] { display: none; }
.history-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.histchip {
  font: 12.5px/1.5 var(--sans);
  color: var(--link);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  max-width: 26ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.histchip:hover { border-color: var(--link); }
.histchip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.histclear { font-size: 12px; padding: 4px 10px; }

/* ---------- source citations ---------- */

/* Every published value carries a link to the file that published it. Kept
   small and on a line of its own so the value stays the thing you read, and
   the citation is there when you want to check it. */
.srcline {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.srcline a { margin-right: 10px; }
a.src {
  font-size: 11.5px;
  white-space: nowrap;
}
a.src::after {
  content: "\2197";
  padding-left: 2px;
}
.kevbox .srcline { margin-top: 8px; }

/* ---------- CVSS reasoning ---------- */

.reasons-block {
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 2px;
}
.reasons-block .panel-note { margin-bottom: 10px; }
.reasons-out[hidden] { display: none; }
.reasons-out .panel-note { margin: 12px 0 0; }

.reasons {
  margin: 10px 0 0;
  display: grid;
}
.reason {
  display: grid;
  /* A fixed first column, not max-content: every metric is its own grid, and
     sizing to content would leave the explanations starting at eight
     different places down the list. */
  grid-template-columns: minmax(0, 14.5rem) minmax(0, 1fr);
  gap: 3px 18px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.reason dt {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.reason dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  max-width: 88ch;
  /* The CNA writes call chains like a->b->c that have no break opportunity
     and would otherwise run off a phone screen. */
  overflow-wrap: anywhere;
}
.metric {
  font: 600 11px/1.5 var(--mono);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--grey);
  background: var(--grey-bg);
  white-space: nowrap;
}
.reason.top .metric {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: var(--amber);
}
.metric-name {
  font-size: 12.5px;
  color: var(--ink-dim);
}
.reason.top .metric-name { color: var(--ink); }

@media (max-width: 560px) {
  .reason { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}

/* ---------- exposure: does Debian build the affected code ---------- */

/* One exposure answer outranks the per-release table, and only one: Debian
   compiles the code into nothing it ships.  It gets a line, not a panel, so
   the ninety per cent of CVEs that do not end there pay nothing for it.  A
   left rule rather than a tint, because a tinted block is a section and this
   is a sentence. */
.not-built {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--green);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 92ch;
}
.not-built b { color: var(--green); }

/* Everywhere else the build state is supporting detail inside "Where it
   lives", so the lead reads as ordinary prose rather than as a headline. */
.exposure-lead {
  margin: 12px 0 10px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 88ch;
}

/* The disclosure that holds the per-release letters and the prose behind
   them.  The app toggles a button and a div, the same control the CVSS
   reasoning uses; a static page has no script, so it wears the same label on
   a native <details>.  Both end up looking like one control. */
.built-btn { margin-top: 2px; }
.built-out[hidden] { display: none; }
details.built-out { margin-top: 2px; }
details.built-out > summary.built-btn {
  display: inline-block;
  list-style: none;
  margin: 0;
}
details.built-out > summary::-webkit-details-marker { display: none; }
/* The app's button says which way it will go by changing its own label; a
   <summary> keeps one label whatever its state, so it carries the state as a
   mark instead.  Drawn in CSS: it is decoration, and <details> already tells
   a screen reader whether it is open. */
details.built-out > summary.built-btn::before {
  content: "\25B8";
  padding-right: 7px;
  color: var(--ink-dim);
}
details.built-out[open] > summary.built-btn::before { content: "\25BE"; }

.cfg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.cfg-row {
  display: grid;
  grid-template-columns: minmax(0, 13rem) max-content minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
}
.cfg-row:first-child { border-top: 0; }
.cfg-rel { font-weight: 600; }
.cfg-rel .sub,
.cfg-word .sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-dim);
  margin-top: 2px;
}
.cfg-word { color: var(--ink-dim); }

/* The raw letter out of the data file, shown so the sentence beside it can be
   checked against site/data rather than taken on trust. */
.cfg-chip {
  font: 600 12px/1.5 var(--mono);
  min-width: 1.9em;
  text-align: center;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid;
}
/* The legend for the letters this CVE actually uses, printed once under the
   list rather than repeated on every release line. */
.cfg-key {
  margin: 8px 0 10px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.cfg-key dt, .cfg-key dd { margin: 0; }

.cfg-chip.t-none    { color: var(--green); background: var(--green-bg); border-color: var(--green); }
.cfg-chip.t-all     { color: var(--blue);  background: var(--blue-bg);  border-color: var(--blue); }
.cfg-chip.t-some    { color: var(--amber); background: var(--amber-bg); border-color: var(--amber); }
.cfg-chip.t-unknown { color: var(--grey);  background: var(--grey-bg);  border-color: var(--line); }

.exposure-kv { margin-bottom: 12px; }
/* A single very long Kconfig symbol has no break opportunity and would
   otherwise push the panel wider than a phone screen. */
.exposure-kv dd { overflow-wrap: anywhere; }
.exposure-kv dd .sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.detail h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-dim);
  margin: 14px 0 6px;
}

/* A command to type, not a code sample: wide enough to read, wrapping rather
   than scrolling sideways on a phone. */
pre.cmd {
  margin: 0 0 4px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
pre.cmd code {
  font: 12.5px/1.6 var(--mono);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.cmd-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 78ch;
}
.cmd-note .mono { font-size: 11.5px; }

.badge.notbuilt { color: var(--green); background: var(--green-bg); border-color: var(--green); }

.subsys {
  display: inline-block;
  max-width: 44ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.explain-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 80ch;
}
.explain-dl + .explain-note { margin: 10px 0 0; }
.cfg-legend { grid-template-columns: max-content minmax(0, 1fr); }

/* ---------- what other distributions have written ---------- */

.prose-block {
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 2px;
}
.prose-list {
  display: grid;
  gap: 12px;
}
.prose-src {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--panel);
}
.prose-src.has-text { background: var(--panel-2); }
/* The source's name is a name, not a section label, so it opts out of the
   uppercase treatment `.detail h4` gives the headings around it. */
.detail h4.prose-name {
  margin: 0 0 4px;
  font: 600 13px/1.4 var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.prose-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-dim);
}
.prose-none {
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 84ch;
}
.prose-field + .prose-field { margin-top: 10px; }
.prose-field h5 {
  margin: 0 0 3px;
  font: 600 12px/1.5 var(--sans);
  color: var(--ink-dim);
}
/* Quoted verbatim, so the source's own line breaks are kept. */
.prose-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-width: 88ch;
  overflow-wrap: anywhere;
}
/* The attribution the licence requires, kept with the text it belongs to. */
.prose-attr {
  margin: 10px 0 0;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 88ch;
}

@media (max-width: 560px) {
  .cfg-row { grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; }
  .cfg-rel { grid-column: 1 / -1; }
  .subsys { max-width: 30ch; }
}
