/* style.css rev9 2026-11-15 - SaferComputing.com. Self-hosted, no imports, no external fonts. */

:root {
  color-scheme: light dark;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --line: #dce1e7;
  --line-strong: #c3cbd5;
  --hairline: #e4e8ee;
  --ink: #111418;
  --ink-2: #353d48;
  --muted: #5b6574;
  --label: #3f4a59;
  --chip-bg: #eef1f5;
  --chip-line: #cdd5df;
  --link: #0b57d0;
  --link-hover: #0842a0;
  --brand: #276b4e;
  --brand-bg: #e8f3ee;
  --brand-line: #b9d9c9;
  --emerald: #059669;
  --emerald-ring: rgba(5, 150, 105, 0.18);
  --code-bg: #101317;
  --code-head: #0b0d10;
  --code-line: #262b36;
  --code-ink: #e6e9ee;
  --code-label: #a9b3c1;
  --inline-code: #eceff3;
  --red: #b42318;
  --red-bg: #fef3f2;
  --red-line: #f4b4ae;
  --amber: #b54708;
  --amber-bg: #fffaeb;
  --amber-line: #f5cf8a;
  --cyan: #0e7490;
  --cyan-bg: #ecfeff;
  --cyan-line: #a5e4ee;
  --blue: #175cd3;
  --blue-bg: #eff8ff;
  --green: #067647;
  --green-bg: #ecfdf3;
  --radius: 4px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Cascadia Mono", "Liberation Mono", "DejaVu Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --surface: #13161c;
    --surface-2: #191d24;
    --line: #262b36;
    --line-strong: #363d4a;
    --hairline: #1e2430;
    --ink: #e6e9ee;
    --ink-2: #c5cbd4;
    --muted: #9aa4b2;
    --label: #b4bece;
    --chip-bg: #1a202c;
    --chip-line: #2d3748;
    --link: #8ab4f8;
    --link-hover: #b3cefb;
    --brand: #6cc59a;
    --brand-bg: #10231b;
    --brand-line: #1f4a37;
    --emerald: #34d399;
    --emerald-ring: rgba(52, 211, 153, 0.18);
    --code-bg: #0e1014;
    --code-head: #090b0e;
    --code-line: #262b36;
    --inline-code: #1e232c;
    --red: #f97066;
    --red-bg: #2b1513;
    --red-line: #6b2620;
    --amber: #fdb022;
    --amber-bg: #2a2111;
    --amber-line: #6b4b12;
    --cyan: #67e8f9;
    --cyan-bg: #0b2a31;
    --cyan-line: #155e6b;
    --blue: #84adff;
    --blue-bg: #121d33;
    --green: #47cd89;
    --green-bg: #0f241a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: 650; }

code,
pre,
time { font-family: var(--mono); }

time { font-size: 0.92em; font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: 75.5rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 40rem) {
  .wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--link);
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 3.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.brand-mark {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background: url("/favicon.svg") center / contain no-repeat;
}

.brand .tld { color: var(--muted); font-weight: 500; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.15rem;
  margin: 0 -0.6rem;
}

.site-nav a {
  padding: 0.45rem 0.6rem;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brand);
}

/* Breadcrumbs */

.crumbs {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.crumbs a { color: var(--muted); }

/* Page head */

.doc-head {
  padding: 1.25rem 0;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 26em;
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.lede {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.9vw, 1.2rem);
  line-height: 1.55;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  margin: 0;
  font-size: 0.875rem;
}

.doc-meta div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem; }
.doc-meta dt { color: var(--label); }
.doc-meta dd { margin: 0; font-weight: 600; }

.aff-notice {
  max-width: 48rem;
  margin: 0 0 1.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Home page hero: one column; from 60rem a twelve-column grid, text on the left, status and shortcuts on the
   right. The twelve columns need 352px for their gaps alone, so they start only where they are used. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 2rem;
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero-main,
.hero-aside { grid-column: 1 / -1; min-width: 0; }

.hero h1 {
  max-width: 17em;
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

@media (min-width: 60rem) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 3rem 0 2.5rem; }
  .hero-main { grid-column: 1 / span 7; align-self: center; }
  .hero-aside { grid-column: 8 / span 5; }
}

.status-box {
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-box div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.status-box div:last-child { border-bottom: 0; }

.status-box dt {
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-box .live dt::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-ring);
  vertical-align: 0.05em;
}

.status-box dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.status-box time { font-size: 1em; }

/* The scanner row: its count is a link to the feed page, in the link colour and underlined, in the box's own type. */
.status-box dd a {
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.quick-title {
  margin: 0 0 0.45rem;
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-links {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.quick-links li { border-bottom: 1px solid var(--line); }
.quick-links li:last-child { border-bottom: 0; }

.quick-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}

.quick-links a:hover { background: var(--surface-2); color: var(--link); }
.quick-links a:hover span:first-child { text-decoration: underline; }

.quick-links .urgent a {
  background: var(--amber-bg);
  box-shadow: inset 4px 0 0 var(--amber);
}

.quick-links .urgent a:hover { background: var(--amber-bg); }

/* Body layout with table of contents */

.doc-body { display: block; }

.toc {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9rem;
}

.toc-title {
  margin: 0 0 0.45rem;
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0.3rem 0; line-height: 1.4; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

@media (min-width: 64rem) {
  .doc-body.has-toc {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .doc-body.has-toc .toc {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 0 0 0 1rem;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: none;
  }
}

/* Prose */

.prose { min-width: 0; max-width: 48rem; }
.prose.wide { max-width: none; }
.prose.wide > p,
.prose.wide > ul:not(.cards):not(.lookup-grid):not(.ref-list):not(.incidents),
.prose.wide > ol { max-width: 48rem; }

.prose p { margin: 0 0 1rem; }

.prose h2 {
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: 1rem;
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
  margin: 1.9rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.35;
  scroll-margin-top: 1rem;
}

.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--muted); }

.prose code {
  padding: 0.08em 0.34em;
  border-radius: 3px;
  background: var(--inline-code);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

/* Command blocks */

.prose .cmd {
  margin: 1.2rem 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: var(--radius);
  background: var(--code-bg);
}

.prose .cmd figcaption {
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-head);
  color: var(--code-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.prose .cmd figcaption code {
  padding: 0;
  background: none;
  color: inherit;
}

.prose .cmd pre {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  color: var(--code-ink);
  font-size: 0.84rem;
  line-height: 1.55;
  tab-size: 4;
}

.prose .cmd pre code {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

/* Callouts */

.callout {
  margin: 1.3rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue-bg);
}

.callout > :last-child { margin-bottom: 0; }

.callout-title { margin: 0 0 0.35rem; font-weight: 650; }

.callout-kind {
  margin-right: 0.3rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.callout-tip { border-left-color: var(--green); background: var(--green-bg); }
.callout-tip .callout-kind { color: var(--green); }
.callout-warning { border-left-color: var(--amber); background: var(--amber-bg); }
.callout-warning .callout-kind { color: var(--amber); }
.callout-danger { border-left-color: var(--red); background: var(--red-bg); }
.callout-danger .callout-kind { color: var(--red); }

.callout .cmd { margin-bottom: 0.9rem; }

/* Status tags in headings and text */

.tag {
  display: inline-block;
  padding: 0 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.tag-exploited,
.tag-urgent { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.tag-eol { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.tag-update { color: var(--cyan); background: var(--cyan-bg); border-color: var(--cyan-line); }
.tag-check { color: var(--blue); background: var(--blue-bg); }

/* Tables */

.table-wrap {
  margin: 1.2rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

th,
td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

td code { white-space: nowrap; overflow-wrap: normal; }

tbody tr:last-child td { border-bottom: 0; }

/* Top scanning addresses (@@topscanners, DESIGN.md): rank, address, exploit requests, distinct exploit paths,
   most probed, then the link to the text file. Narrower than 48rem the rows are stacked: see "Stacked rows on
   phones" below. No flex-wrap in these rules. */

.scan-wrap { margin-bottom: 0.9rem; container-type: inline-size; }

/* The caption stays in the frame while the table scrolls under it: as wide as the frame, held at its left edge. */
.scan caption {
  position: sticky;
  left: 0;
  max-width: 100cqw;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--label);
  font-size: 0.85rem;
  text-align: left;
  caption-side: top;
}

.scan thead th { vertical-align: bottom; }

/* Rank, address and the two numbers take the width of their content; the kinds of path take the rest. */
.scan th:nth-child(-n+4),
.scan td:nth-child(-n+4) { width: 1%; }

.scan td:nth-child(-n+4) { white-space: nowrap; }

.scan td.num,
.scan th:nth-child(1),
.scan th:nth-child(3),
.scan th:nth-child(4) { text-align: right; }

.scan td.num { font-variant-numeric: tabular-nums; }

.scan td:first-child { color: var(--muted); }

.prose .kinds { margin: 0; padding: 0; list-style: none; }

.prose .kinds li { margin: 0; line-height: 1.5; white-space: nowrap; }

@container (max-width: 56rem) {
  /* A frame narrower than 56rem (the scanner feed page, tablets, phones): the two long headers take two lines. */
  .scan thead th { white-space: normal; }
  .scan th:nth-child(4) { min-width: 10rem; }
}

.scan-foot { margin: 0 0 1.75rem; }

.scan-download {
  display: inline-block;
  max-width: 100%;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-bg);
  color: var(--brand);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.scan-download:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: underline;
}

.scan-download:focus-visible {
  border-color: var(--brand);
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* Patch table: system, identifier and fix, impact, details */

.ledger-wrap {
  margin: 1rem 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ledger { min-width: 48rem; }

.ledger caption {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--label);
  font-size: 0.85rem;
  text-align: left;
  caption-side: top;
}

.ledger td { padding: 0.85rem 0.9rem; }

.ledger tbody tr:hover { background: var(--surface-2); }

.ledger .sev-exploited { --sev: var(--red); }
.ledger .sev-update { --sev: var(--cyan); }
.ledger .sev-eol { --sev: var(--amber); }

.ledger td.sys {
  width: 22%;
  padding-left: 1.1rem;
  box-shadow: inset 4px 0 0 var(--sev);
}

.sys-name { display: block; font-weight: 650; line-height: 1.35; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.badge-exploited { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.badge-eol { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.badge-update { color: var(--cyan); background: var(--cyan-bg); border-color: var(--cyan-line); }

/* The kinds of @@incidents. */
.badge-outage { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.badge-advisory { color: var(--cyan); background: var(--cyan-bg); border-color: var(--cyan-line); }

.ledger td.vuln { width: 30%; }

.ledger .id { display: block; line-height: 1.6; }

.id-vendor { color: var(--label); font-size: 0.82rem; }

.ledger .cve {
  padding: 0;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
}

.fix { display: block; margin-top: 0.45rem; line-height: 1.5; }
.fix-label { color: var(--label); font-size: 0.82rem; }
.fix-note { color: var(--label); font-size: 0.85rem; }

.ledger .chip {
  display: inline-block;
  margin: 0.25rem 0.3rem 0 0;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--label);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}

.ledger td.impact { color: var(--ink-2); }

.ledger td.action { width: 1%; text-align: right; white-space: nowrap; }

.ledger td.action a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 10px;
  border: 1px solid var(--chip-line);
  border-radius: var(--radius);
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.ledger td.action a:hover {
  border-color: var(--link);
  background: var(--surface);
  color: var(--link);
}

.ledger-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.ledger-foot:hover { background: var(--chip-bg); color: var(--link-hover); }
.ledger-foot:hover span:first-child { text-decoration: underline; }

@media (max-width: 47.99rem) {
  .ledger-wrap { overflow: visible; }
  .ledger { min-width: 0; }

  .ledger thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ledger,
  .ledger caption,
  .ledger tbody,
  .ledger tr,
  .ledger td { display: block; width: auto; }

  .ledger tr {
    padding: 0.85rem 0.9rem 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: inset 4px 0 0 var(--sev);
  }

  .ledger tbody tr:last-child { border-bottom: 0; }

  .ledger td,
  .ledger td.sys { padding: 0; border: 0; box-shadow: none; }

  .ledger td.sys,
  .ledger td.vuln,
  .ledger td.action { width: auto; }

  .ledger td + td { margin-top: 0.65rem; }

  .ledger td.vuln::before,
  .ledger td.impact::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: var(--label);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .ledger td.action { text-align: left; }
}

/* Tools comparison (@@toolstable, DESIGN.md): one table for each group, the tool's name as the row header, and
   under the table the sources of its tools. Narrower than 48rem the rows are stacked: see "Stacked rows on
   phones" below. No flex-wrap in these rules. */

.tools-wrap { margin-bottom: 0.75rem; }

/* The headers may take two lines, so that the table fits its frame from 48rem. A tool's name keeps one line. */
.tools thead th { vertical-align: bottom; white-space: normal; }

.tools tbody th { min-width: 7.5rem; font-weight: 650; }
.tools tbody th .aff-label { font-weight: 400; }

.tools th:last-child,
.tools td:last-child { width: 26%; }

.tools tbody tr:last-child th { border-bottom: 0; }

.prose .tools .kinds li { margin: 0 0 0.3rem; line-height: 1.4; white-space: normal; }
.prose .tools .kinds li:last-child { margin-bottom: 0; }

.prose .tools-sources {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.prose .tools-sources li { margin: 0.3rem 0; overflow-wrap: anywhere; }

/* Outages and advisories (@@incidents, DESIGN.md). recent: up to three entries, in three aligned columns from
   48rem and in one column below. all: every entry in full, one under the other. CSS grid only: no flex-wrap in
   these rules. */

.prose .incidents {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 0.75rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .prose .incidents:not(.incidents-full) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* rev9, 15 November 2026: a lone recent entry spans the row, its first line and title on the left and its
   summary on the right. CSS grid only. */
@media (min-width: 48rem) {
  .prose .incidents:not(.incidents-full) > .incident:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    column-gap: 1.5rem;
    align-items: start;
  }
  .prose .incidents:not(.incidents-full) > .incident:only-child > .incident-head { grid-column: 1; grid-row: 1; }
  .prose .incidents:not(.incidents-full) > .incident:only-child > .incident-title { grid-column: 1; grid-row: 2; }
  .prose .incidents:not(.incidents-full) > .incident:only-child > .incident-summary { grid-column: 2; grid-row: 1 / span 2; }
}

.prose .incident {
  min-width: 0;
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 1rem;
}

/* The entry a link from the home page leads to. */
.prose .incident:target { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }

.prose .incident p { margin: 0 0 0.5rem; }
.prose .incident p:last-child { margin-bottom: 0; }

.prose .incident-head { color: var(--label); font-size: 0.85rem; line-height: 1.9; }
.incident-head .badge { margin-top: 0; margin-right: 0.2rem; }
.incident-status { color: var(--ink); font-weight: 650; }
.incident-dates time { white-space: nowrap; }

.prose .incident-title { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 650; line-height: 1.35; }

.incident-summary { color: var(--ink-2); }
.incident-label { color: var(--label); font-weight: 650; }
.incident-sources { font-size: 0.9rem; overflow-wrap: anywhere; }

.prose .incident-checked { margin: 0 0 1.75rem; color: var(--label); font-size: 0.85rem; }

/* Stacked rows on phones, for the top scanning addresses and the tools comparison, as the patch table does it:
   narrower than 48rem a row is a block and a cell is a line with its label, taken from data-label. The header
   row leaves the screen and stays for screen readers. Nothing scrolls sideways inside the frame. */

@media (max-width: 47.99rem) {
  .scan-wrap,
  .tools-wrap { overflow: visible; }

  .scan thead,
  .tools thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .scan,
  .scan caption,
  .scan tbody,
  .scan td,
  .tools,
  .tools tbody,
  .tools tr,
  .tools tbody th,
  .tools td { display: block; width: auto; }

  .scan td,
  .tools tbody th,
  .tools td { padding: 0; border: 0; }

  .scan tbody tr,
  .tools tbody tr { padding: 0.8rem 0.9rem 0.85rem; border-bottom: 1px solid var(--line); }

  .scan tbody tr:last-child,
  .tools tbody tr:last-child { border-bottom: 0; }

  /* Top scanning addresses: rank and address side by side, then a line for each count, then the kinds of path. */
  .scan tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.6rem;
    align-items: baseline;
  }

  .scan td:nth-child(-n+4) { width: auto; }
  .scan td:first-child { min-width: 1.3rem; }
  .scan td:nth-child(n+3) { grid-column: 1 / -1; margin-top: 0.4rem; }

  .scan td.num:nth-child(n+3) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
  }

  .scan td:nth-child(n+3)::before,
  .tools td::before {
    content: attr(data-label);
    color: var(--label);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .scan td.num:nth-child(n+3)::before { text-align: left; white-space: normal; }

  .scan td:nth-child(5)::before,
  .tools td::before { display: block; margin-bottom: 0.15rem; }

  .prose .scan .kinds li { white-space: normal; }

  /* Tools comparison: the tool's name, then each cell under its label. */
  .tools tbody th { min-width: 0; font-size: 1rem; }
  .tools td { margin-top: 0.55rem; }
  .tools td:last-child { width: auto; }
}

/* Checklists */

.prose ul.checklist { padding-left: 0; list-style: none; }

.checklist li { position: relative; padding-left: 2rem; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
}

/* Guide cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.prose .cards { padding: 0; }
.prose .cards > li { margin: 0; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.15rem 0.95rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
}

.card:hover { border-color: var(--line-strong); border-top-color: var(--brand); }

.cards .card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-cat {
  padding: 0.08rem 0.55rem;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-bg);
  color: var(--brand);
}

.prose .card-title {
  margin: 0 0 1rem;
  font-size: 1.17rem;
  font-weight: 650;
  line-height: 1.3;
}

.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 1px; }

.cards .card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.cards .card-tools li {
  margin: 0;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cards .card-desc {
  margin: auto 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: 0.92rem;
}

.cards .card-cta {
  margin: 0.85rem 0 0;
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.card:hover .card-cta { color: var(--link-hover); text-decoration: underline; }

.card-index {
  border-top-color: var(--amber);
  background: var(--amber-bg);
}

.card-index:hover { border-top-color: var(--amber); }

.card-index .card-cat {
  border-color: var(--amber-line);
  background: var(--surface);
  color: var(--amber);
}

.card-index .card-title { color: var(--ink); }

.cards .index-links {
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid var(--amber-line);
  list-style: none;
}

.cards .index-links li {
  margin: 0;
  border-bottom: 1px solid var(--amber-line);
}

.cards .index-links li:last-child { border-bottom: 0; }

.index-links a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.index-links a:hover { color: var(--link); }
.index-links a:hover span:first-child { text-decoration: underline; }

/* Reference pages: technical specification table */

.spec-wrap {
  margin: 0 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.spec { font-size: 0.94rem; }

.spec caption {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  caption-side: top;
}

.spec th,
.spec td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }

.spec tbody tr:last-child th,
.spec tbody tr:last-child td { border-bottom: 0; }

.spec th {
  width: 12.5rem;
  border-right: 1px solid var(--hairline);
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.5;
  box-shadow: inset 3px 0 0 var(--row-accent, transparent);
}

.spec .spec-target { --row-accent: var(--brand); }
.spec .spec-default { --row-accent: var(--amber); }
.spec .spec-safe { --row-accent: var(--green); }
.spec .spec-fix { --row-accent: var(--blue); }

.spec .spec-target td { font-weight: 600; }

.spec td code { white-space: normal; overflow-wrap: anywhere; }

.spec td.spec-cmd code {
  display: block;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--code-line);
  border-radius: 3px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 47.99rem) {
  .spec-wrap { overflow: visible; }
  .spec,
  .spec caption,
  .spec tbody,
  .spec tr,
  .spec th,
  .spec td { display: block; width: auto; }
  .spec tr { border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--row-accent, transparent); }
  .spec tbody tr:last-child { border-bottom: 0; }
  .spec th { padding: 0.6rem 1rem 0.15rem; border: 0; box-shadow: none; }
  .spec td { padding: 0 1rem 0.7rem; border: 0; }
  .spec tbody tr:last-child td { border-bottom: 0; }
}

/* Folding sections: native details and summary, no script */

.prose .fold {
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.prose .fold > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.prose .fold > summary::-webkit-details-marker { display: none; }

.prose .fold > summary::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.prose .fold[open] > summary::before { transform: rotate(45deg); }

.prose .fold > summary:hover { background: var(--surface-2); }

.prose .fold > summary:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }

.prose .fold[open] > summary { border-bottom: 1px solid var(--line); }

.fold-body { padding: 0.9rem 1rem 0.2rem; }

.fold-body > .cmd:first-child,
.fold-body > .table-wrap:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .prose .fold > summary::before { transition: none; }
}

/* Home page lookup grid: six category cards with three lookups each. CSS grid only; see DESIGN.md. */

.prose .lookup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .prose .lookup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.prose .lookup-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.prose .lookup-cat {
  margin: 0;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.lookup-cat a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--label);
  text-decoration: none;
}

.lookup-cat a:hover { color: var(--link); }
.lookup-cat a:hover span:first-child { text-decoration: underline; text-decoration-thickness: 1px; }
.lookup-cat a span:last-child { color: var(--link); }

.prose .lookup-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Every row carries its own top line, the first one the line under the category, so all rows are one height. */
.prose .lookup-rows li { margin: 0; border-top: 1px solid var(--hairline); }
.prose .lookup-rows li:first-child { border-top-color: var(--line); }

.lookup-rows a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  row-gap: 0.3rem;
  padding: 0.6rem 1rem;
  color: var(--ink);
  text-decoration: none;
}

.lookup-rows a:hover { background: var(--surface-2); }
.lookup-rows a:hover .lookup-title { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }

/* The card clips its corners, so the focus ring is drawn inside the link. */
.lookup-card a:focus-visible { outline-offset: -2px; }

/* One line each, cut with an ellipsis when too long; the whole text stays in the link. */
.lookup-cat span:first-child,
.prose .lookup-chip,
.lookup-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prose .lookup-chip {
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--label);
  font-size: 0.78125rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: normal;
}

.lookup-title { font-size: 0.94rem; font-weight: 600; line-height: 1.4; }

@media (max-width: 47.99rem) {
  /* Narrow screens: one column, the first two lookups of each card; the link under the grid opens the index. */
  .prose .lookup-rows li:nth-child(n+3) { display: none; }
}

.lookups-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.lookups-foot:hover { background: var(--chip-bg); color: var(--link-hover); }
.lookups-foot:hover span:first-child { text-decoration: underline; }

/* Reference index */

.prose .ref-list {
  margin: 1rem 0 1.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.prose .ref-list > li { margin: 0; }

.ref-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.ref-item:last-child { border-bottom: 0; }

.ref-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.ref-link:hover .ref-title { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }

.prose .ref-chip,
.ref-chip {
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--label);
  font-size: 0.8rem;
  font-weight: 600;
}

.prose .ref-desc { margin: 0; color: var(--ink-2); font-size: 0.94rem; }

.prose .ref-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.prose .ref-platforms li {
  margin: 0;
  padding: 0 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--label);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
}

@media (min-width: 60rem) {
  .ref-item { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 1.5rem; }
  .ref-item .ref-link,
  .ref-item .ref-desc { grid-column: 1; }
  .prose .ref-item .ref-platforms { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; max-width: 16rem; }
}

/* Related links on guides and reference pages */

.related { display: grid; gap: 0 2rem; }

@media (min-width: 56rem) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.prose .related h3 { margin-top: 0.75rem; }

.prose .related-list {
  margin: 0.5rem 0 1rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
}

.prose .related-list > li { margin: 0; border-bottom: 1px solid var(--line); }
.prose .related-list > li:last-child { border-bottom: 0; }

.related-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.related-list a:hover { background: var(--surface-2); }
.related-list a:hover .ref-title { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }

/* Two-column sections */

.columns { display: grid; gap: 0 2.5rem; }
.col { min-width: 0; }

.prose .col > h2:first-child {
  margin-top: 2.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 56rem) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.prose.home-body > h2:first-child { margin-top: 2.25rem; }

/* Affiliate label */

.aff-label {
  color: var(--muted);
  font-size: 0.8em;
  white-space: nowrap;
}

/* Footer */

.site-foot {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-inner {
  display: grid;
  gap: 0.75rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.foot-inner p { max-width: 52rem; margin: 0; }
.foot-inner strong { color: var(--ink); }

.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.foot-nav a { color: var(--ink-2); }

.foot-copy { font-family: var(--mono); font-size: 0.8rem; }

/* Print */

@media print {
  .site-head,
  .toc,
  .skip,
  .foot-nav,
  .quick-title,
  .quick-links,
  .card-cta,
  .ledger-foot,
  .lookups-foot,
  .crumbs { display: none; }

  .prose .fold > summary { border-bottom: 1px solid #999999; }
  .spec td.spec-cmd code { border-color: #999999; background: #ffffff; color: #000000; }

  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .hero,
  .doc-head { border-color: #999999; }
  .prose { max-width: none; }
  .prose .cmd { border-color: #999999; background: #ffffff; }
  .prose .cmd figcaption { background: #eeeeee; color: #000000; }
  .prose .cmd pre { color: #000000; white-space: pre-wrap; }
  .prose a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .ledger-wrap { overflow: visible; }
  .ledger { min-width: 0; }
  .callout,
  .card,
  .lookup-card,
  .prose .cmd,
  .table-wrap,
  .spec tr,
  .ref-item,
  .incident,
  .ledger tr { break-inside: avoid; }
  .site-foot { margin-top: 2rem; background: #ffffff; }
}
