/* site.css is the one stylesheet of every page. internal/site/site.go embeds it, puts the hashed
   paths of the three fonts in place of /security/assets/saira-7eb811eb14b2ee22.woff2, /security/assets/nunito-sans-29e3890496844a9e.woff2 and /security/assets/droid-sans-mono-4cc65e663ceb1217.woff2
   and serves it at /security/assets/site-<hash>.css.
   The project has no inline style (CLAUDE.md § Naming, templates).
   The look follows the API site: tokens, body, nav, footer and .page are taken from its
   style.css and css/page.css. The nav holds the logo box and the theme button; the logo box
   leads to the search page (user 2026-11-08, 2026-11-11).
   Colours come only from the tokens below. The light palette (a dimmed neutral grey) is the
   default; the dark one (navy) follows the device or a stored choice. */

/* The site has three fonts (user 2026-11-24). Saira sets the headings, the nav, the labels and
   the tables. Its tabular figures keep a column of counts aligned. Nunito Sans sets the long text
   a reader reads line by line. Droid Sans Mono sets the API commands, which need one width for
   every character. Each file holds the Latin letters only. */
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/security/assets/saira-7eb811eb14b2ee22.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/security/assets/nunito-sans-29e3890496844a9e.woff2') format('woff2');
}

@font-face {
  font-family: 'Droid Sans Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/security/assets/droid-sans-mono-4cc65e663ceb1217.woff2') format('woff2');
}

:root {
  --bg:          #e9ebee;
  --bg-card:     #f3f4f6;
  --bg-code:     #e2e5e9;
  --bg-hover:    #e1e4e8;
  --border:      #d0d4d9;
  --border-dim:  #d9dce1;
  --text:        #14171b;
  --text-muted:  #4a4f57;
  --text-dim:    #4a4f57;
  --primary:     #025a8b;
  --primary-hover: #014670;
  --primary-rgb: 2,90,139;
  --on-primary:  #ffffff;
  --focus:       #025a8b;
  --green:       #137337;
  --red:         #b91c1c;
  --yellow:      #905806;
  --orange:      #b43c0b;
  --font-ui:     'Saira', system-ui, sans-serif;
  --font-prose:  'Nunito Sans', system-ui, sans-serif;
  --font-mono:   'Droid Sans Mono', 'DejaVu Sans Mono', monospace;
  color-scheme: light;
}

/* The dark palette is written twice. The media block follows the device when the reader chose
   nothing; :not([data-theme="light"]) lets a stored "light" win over a dark device. The
   [data-theme="dark"] block lets a stored "dark" win over a light device. CSS has no way to
   share one block between the two selectors without also matching a stored "light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #06101d;
    --bg-card:     #0c1a2c;
    --bg-code:     #0a1626;
    --bg-hover:    #13243a;
    --border:      #1c2c42;
    --border-dim:  #13223a;
    --text:        #e6eef7;
    --text-muted:  #93a5ba;
    --text-dim:    #93a5ba;
    --primary:     #38bdf8;
    --primary-hover: #7dd3fc;
    --primary-rgb: 56,189,248;
    --on-primary:  #06101d;
    --focus:       #38bdf8;
    --green:       #4ade80;
    --red:         #f87171;
    --yellow:      #facc15;
    --orange:      #fb923c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:          #06101d;
  --bg-card:     #0c1a2c;
  --bg-code:     #0a1626;
  --bg-hover:    #13243a;
  --border:      #1c2c42;
  --border-dim:  #13223a;
  --text:        #e6eef7;
  --text-muted:  #93a5ba;
  --text-dim:    #93a5ba;
  --primary:     #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-rgb: 56,189,248;
  --on-primary:  #06101d;
  --focus:       #38bdf8;
  --green:       #4ade80;
  --red:         #f87171;
  --yellow:      #facc15;
  --orange:      #fb923c;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-ui);
  /* The page has a plain background. The API site's grid is left out here: under a table or a
     fact list its lines read as row borders. */
  background-color: var(--bg);
  color: var(--text);
  min-block-size: 100vh;
  overflow-x: hidden;
  font-size: 0.875rem;
  /* line-height is set because Saira's own line height is 1.57, which spreads every table row
     and nav line. Long text sets its own. */
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

/* Every child takes the full width; max-inline-size still caps it. .page takes the spare height,
   so the footer stays at the bottom of a short page. */
body > * { inline-size: 100%; }
body > .page { flex-grow: 1; }

/* Nav */
nav.site {
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-inline-size: 50rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  /* Transparent, so the page background shows behind the nav. */
  background-color: transparent;
}

/* .logo is the brand box: the logo image and the wordmark in one link to the search page. The
   card background also keeps the navy edge of the logo visible on the dark page. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.375rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-card);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}

.logo img { inline-size: 1.75rem; block-size: 1.75rem; }
.logo-text span { color: var(--primary); }
.logo:hover { border-color: var(--primary); }
.logo:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* .theme-btn switches between the light and the dark theme (static/theme.js). It sits at the
   right end of the nav: its auto start margin takes the spare space of the row. Its glyphs come
   from a system font, because none of the three site fonts has a moon or a sun. */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.25rem;
  min-block-size: 2.25rem;
  margin-inline-start: auto;
  padding-block: 0.375rem;
  padding-inline: 0.625rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--text);
  font: 600 1rem / 1 system-ui, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  cursor: pointer;
  transition: border-color 0.15s;
}

.theme-btn:hover { border-color: var(--primary); }
.theme-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Page column. The nav, the page and the footer share one column of 46rem of text, as wide as
   80 characters of the long text (user 2026-11-24). Their side padding is the same, so the logo,
   the headings and the footer links start on one line. */
.page { max-inline-size: 50rem; margin-inline: auto; padding: 2.5rem 2rem 3rem; position: relative; z-index: 1; }
/* text-wrap: balance gives a heading that wraps lines of even length, so no word is left alone on a line. */
.page h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-block-end: 0.5rem; word-break: break-word; text-wrap: balance; }
.page h2 { font-size: 1.1rem; margin: 2rem 0 1rem; padding-block-end: 0.5rem; border-block-end: 1px solid var(--border); }
/* A paragraph is long text, so it takes the reading font a little larger than the 14px base. */
.page p { font-family: var(--font-prose); font-size: 1.1em; color: var(--text-muted); margin-block-end: 1rem; line-height: 1.65; }
/* The lede under a heading stands a little apart from it, so the heading reads as a heading. */
.page h1 + p { margin-block-start: 1rem; }
.page a, .page a:visited { color: var(--primary); text-decoration: none; }
.page a:hover { text-decoration: underline; }
/* A link inside text is underlined too: its colour alone does not set it apart from the text. */
.page p a, .page p a:visited, .page ul.meta a, .page ul.meta a:visited { text-decoration: underline; text-underline-offset: 0.15em; }
/* The pricing link in the API box stands alone at the end of a short line, so it needs no underline. */
.page .cta p.tags a { text-decoration: none; }
/* The description is the text people came to read, so its lines stay short enough to follow.
   .description-card is a card of the .fact form around it. The card takes the full width, so its
   edges line up with the facts below; only the text inside keeps the 80ch line. */
.description-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem 1.25rem; margin-block-end: 1rem; }
.page .description-card p.cve-description { max-inline-size: 80ch; margin-block-end: 0; }
/* The summary sentence under a CVE's heading keeps the short lines of the description, and it
   stands as far from the dates below it as the description card does from the facts. */
.page p.cve-summary { max-inline-size: 80ch; margin-block-end: 1rem; }
.page strong { color: var(--text); }

code {
  background: var(--bg-code);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

nav.crumbs { font-size: 0.8rem; color: var(--text-dim); margin-block-end: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 0.25rem; }
nav.crumbs a, nav.crumbs a:visited { color: var(--text-dim); }
/* A crumb wraps as one piece, so "November 2026" never breaks between the month and the year. The
   template writes no space between crumbs, so the flex wrap of nav.crumbs gives the line breaks. */
nav.crumbs a { white-space: nowrap; }
nav.crumbs span { margin-inline: 0.4rem; }

/* .tags is a dim side line: dates, reference tags, "n more" notes. It is a label, not text to
   read, so it keeps the Saira of the page. The note under the API box is a sentence, so it
   takes the reading font. */
.page .tags, .tags { font-family: var(--font-ui); color: var(--text-dim); font-size: 0.8rem; }
.page .cta p.tags { font-family: var(--font-prose); }
/* .meta is the date block under a CVE's heading, one fact a line. */
ul.meta { list-style: none; color: var(--text-dim); font-size: 0.8rem; line-height: 1.7; margin-block-end: 1rem; }
/* The month link of the Published line never breaks inside. Below 640px it takes a line of its
   own and the dot before it goes, so a narrow screen does not split "More from December 2021". */
ul.meta a.meta-more { white-space: nowrap; }
/* The Published line stands apart from the NVD lines below it: the first is the date and the
   month link, the others are the state of the record. */
ul.meta li:first-child { margin-block-end: 0.5rem; }
@media (max-width: 639px) {
  ul.meta .meta-sep { display: none; }
  ul.meta a.meta-more { display: block; inline-size: fit-content; }
}
/* The OWASP line of a CWE page never breaks inside a category link. Below 640px each category
   takes a line of its own and the dots between them go, as the month link of a CVE page does. */
p.owasp-line { font-family: var(--font-ui); font-size: 1em; }
p.owasp-line a.owasp-link { white-space: nowrap; }
@media (max-width: 639px) {
  p.owasp-line .owasp-sep { display: none; }
  p.owasp-line a.owasp-link { display: block; inline-size: fit-content; }
}

/* .note is the state line of a page NVD rejected or of a thin page. */
.note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--yellow);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-block: 1rem;
  color: var(--text-muted);
}

/* .facts holds the score boxes under the description, one under the other (user 2026-11-08).
   A box is one row: the label in a fixed column, the value and its side lines beside it. */
.facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block: 1.5rem;
}

.fact {
  display: grid;
  grid-template-columns: 11rem 1fr;
  column-gap: 1rem;
  align-items: baseline;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.fact .k { grid-column: 1; grid-row: 1 / span 4; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.fact .v, .fact .s { grid-column: 2; }
.fact .v { font-size: 1.15rem; font-weight: 700; margin-block-end: 0.15rem; overflow-wrap: anywhere; }
.fact .v.api-link { font-size: 0.875rem; font-weight: 400; }
.fact .s { font-size: 0.75rem; color: var(--text-muted); overflow-wrap: anywhere; }

.sev-critical { color: var(--red); }
.sev-high { color: var(--orange); }
.sev-medium { color: var(--yellow); }
.sev-low { color: var(--green); }

/* Tables follow the API site's .watch-events table. */
.scroll { overflow-x: auto; margin-block-end: 1.5rem; }
/* Every table uses the tabular figures of Saira, so the digits of a column line up. */
table { inline-size: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
th, td { text-align: start; vertical-align: top; padding: 0.6rem 0.75rem; border-block-end: 1px solid var(--border); overflow-wrap: anywhere; }
th { color: var(--text); font-weight: 600; overflow-wrap: normal; }
td { color: var(--text-muted); }
table.kv th { inline-size: 14rem; min-inline-size: 8rem; }

ul.plain { list-style: none; margin-block-end: 1rem; }
ul.plain li { padding-block: 0.5rem; border-block-end: 1px solid var(--border-dim); color: var(--text-muted); overflow-wrap: anywhere; font-family: var(--font-prose); font-size: 1.1em; line-height: 1.65; }
/* The tags of a reference take their own line under its link, so a long URL does not hide them. */
ul.refs .tags { display: block; }
/* ul.dashed marks each item of a list of long texts with a hyphen, so one item does not run into the next. */
ul.dashed { list-style: "- " outside; padding-inline-start: 0.75rem; }

ol.timeline { list-style: none; padding-inline-start: 0; margin-block-end: 1rem; }
ol.timeline li { display: grid; grid-template-columns: max-content 1fr; column-gap: 1rem; margin-block: 0.7rem; line-height: 1.4; }
ol.timeline .when { color: var(--text-muted); font-variant-numeric: tabular-nums; }
ol.timeline .label { display: block; color: var(--text); }
ol.timeline .d { display: block; color: var(--text-dim); font-size: 0.8rem; }

/* Home page and CVE lists */
td.nowrap { white-space: nowrap; }
/* Both boxes of the home page are tables of the kev-box form: the CVE id, then how long ago it
   was released or the date it was added to KEV. The second cell stands at the right edge of its
   box, under the box's link. */
table.kev-box td:first-child { padding-inline-start: 0; }
table.kev-box td:last-child { text-align: end; padding-inline-end: 0; }
td.description { min-inline-size: 16rem; }
form.search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1.25rem 0;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(var(--primary-rgb),0.6);
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}
form.search:focus-within { border-color: var(--primary); }
form.search input { font: inherit; color: var(--text); background: transparent; border: 0; outline: 0; }
form.search input { flex: 1 1 16rem; min-inline-size: 0; font-size: 1.2rem; padding: 1rem 0.85rem; }
form.search input::placeholder { color: var(--text-muted); }
form.search .btn-cta { border: 0; cursor: pointer; }
.page h2.with-link { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.page h2.with-link a { font-size: 0.8rem; font-weight: 400; white-space: nowrap; }
ul.month-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 2rem; margin-block-end: 1rem; color: var(--text-muted); }
/* Each month cell puts its name at the left edge and its count at the right edge, so the counts of a
   column line up. */
ul.month-grid li { white-space: nowrap; display: flex; justify-content: space-between; gap: 0.5rem; }
@media (min-width: 640px) { ul.month-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { ul.month-grid { grid-template-columns: repeat(6, 1fr); } }
/* ul.archive-list stacks the archives of the /security/ page, each link with its count line under it. */
ul.archive-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-block-end: 1.5rem; }
ul.archive-list .archive-count { display: block; color: var(--text-muted); }
/* .home-boxes holds the two boxes of the home page. They stack on a narrow screen. On a wide one
   .home-boxes-pair sets the new box beside the KEV box; the template adds it only when the new
   box has rows, so the KEV box alone keeps the full width.
   Both boxes have two columns, so the pair shares the width in two equal halves. The KEV box
   has no CVSS column (user 2026-11-24): every CVE in it is exploited, and its page has the score. */
.home-boxes { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3rem; }
@media (min-width: 880px) { .home-boxes-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* From 560px up to the pair each box stands alone on a row twice as wide as its text, so its rows
   run in two columns. The first column fills first, so the order still reads downwards. Eight
   rows hold the first half of the fifteen a box shows (homeKEVBoxRowCount, and the new box). A
   flex row has no shared column: the second cell takes the spare width and ends at the row's
   right edge, so the ages and dates of a column end on one line. */
@media (min-width: 560px) and (max-width: 879px) {
  table.kev-box { display: block; }
  table.kev-box tbody { display: grid; grid-auto-flow: column; grid-template-rows: repeat(8, auto); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
  table.kev-box tr { display: flex; border-block-end: 1px solid var(--border); }
  table.kev-box td { border: 0; padding-inline: 0; }
  table.kev-box td:first-child { flex: 0 0 auto; padding-inline-end: 1rem; }
  table.kev-box td:last-child { flex: 1 1 auto; }
}
/* Below 640px half a box is too narrow for the word "added". The date alone still reads as one. */
@media (min-width: 560px) and (max-width: 639px) { .kev-added { display: none; } }
nav.paging { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem; margin-block: 1.5rem; }
/* .page-box is a square that grows sideways for a long page number. */
.page-box, .page-gap { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 2.25rem; block-size: 2.25rem; padding-inline: 0.25rem; }
.page-box { border: 1px solid var(--border); border-radius: 0.25rem; }
.page-gap { color: var(--text-dim); }
.page nav.paging a:hover { background: var(--bg-hover); text-decoration: none; }
.page-box.current { border-color: var(--primary); background: rgba(var(--primary-rgb),0.25); color: var(--text); font-weight: 700; }

/* .cta is the API box of the home page and the CVE page. */
.cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.85rem 1.25rem;
  margin-block: 3rem;
  font-size: 0.85rem;
}

.cta p { margin-block-end: 0.5rem; }
.cta p:last-child { margin-block-end: 0; }
.api-examples { list-style: none; margin-block: 0.75rem; }
/* Each example is a code block: its comment line and its command on the code background. The
   comment line is part of what a reader pastes into a shell, so it takes the mono font too. */
.api-examples li { background: var(--bg-code); border-radius: 0.5rem; padding: 0.6rem 0.9rem; margin-block: 0.5rem; }
.api-examples .tags { font-family: var(--font-mono); font-size: 0.75rem; }
/* One click selects the whole command, because the site runs no script to copy it. */
.api-examples code { display: block; padding: 0; background: transparent; color: var(--text); font-size: 0.78125rem; overflow-wrap: anywhere; line-height: 1.5; user-select: all; }
/* .copy-wrap puts a copy button at the right end of a command, as on the API site. The
   command wraps in the space the button leaves. copy.js runs the button. */
.copy-wrap { display: flex; align-items: center; gap: 0.5rem; }
/* The button keeps its 1.75rem target but sits on the command's line: its negative block margin
   takes back the height it has over one line of code, so it does not make the block taller. */
.api-examples .copy-btn { margin-block: -0.5rem; }
.copy-wrap code { flex: 1; min-inline-size: 0; }
.copy-btn {
  flex-shrink: 0;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.copy-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.copy-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.copy-btn .icon-check { display: none; }
.copy-btn.copied { color: var(--green); }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: inline; }

/* The filled button follows the API site's primary CTA. */
.btn-cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: var(--primary);
  color: var(--on-primary);
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-cta:hover { background: var(--primary-hover); text-decoration: none; }
.btn-cta:active { transform: scale(0.98); }
.cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-block: 0.75rem; }

/* Footer */
footer {
  position: relative;
  z-index: 10;
  text-align: start;
  padding: 2rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  border-block-start: 1px solid var(--border-dim);
  max-inline-size: 50rem;
  margin-inline: auto;
  margin-block-start: 2rem;
}

footer a, footer a:visited { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text-muted); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-links a { padding-block: 0.25rem; }

/* .footer-groups sets the link groups side by side. Each .footer-group is a column under its
   .footer-label heading. */
.footer-groups { display: flex; flex-wrap: wrap; gap: 1.5rem 5rem; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; }
.footer-group a, .footer-group a:visited { color: var(--text-muted); padding-block: 0.25rem; }
.footer-group a:hover { color: var(--text); }
.footer-label { color: var(--text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; margin-block-end: 0.5rem; text-transform: uppercase; }

.footer-divider {
  margin-block: 1.25rem;
  border: 0;
  border-block-start: 1px solid var(--border-dim);
}

.footer-site { font-size: 0.75rem; }

/* .footer-bottom keeps the legal links and the copyright on one line, at the two edges. */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; }

footer p { color: var(--text-dim); }

/* .page .attribution names the data sources of a page that shows scores or MITRE text. A list of scores has it
   under its lede, the home page under its KEV box, and the CWE index under its table; the CVE page and the
   CWE page end with it. It has a small size and a line length a reader can follow. */
.page .attribution { max-inline-size: 48rem; margin-block: 0 1rem; color: var(--text-dim); font-size: 0.75rem; line-height: 1.6; }
.page .attribution { font-family: var(--font-ui); }
/* Each source is one item with a hyphen in front, as the mitigations are (user 2026-11-24). */
.page ul.attribution { list-style: "- " outside; margin-block: 0; padding: 0 0 0 0.75rem; }
ul.attribution li { margin-block-end: 0.4rem; }
.page .attribution a, .page .attribution a:visited { color: var(--text-dim); text-decoration: underline; text-decoration-color: var(--border); }

@media screen and (min-width: 640px) {
  nav.site { flex-wrap: nowrap; padding: 1.25rem 2rem; }
  footer { padding-inline: 2rem; }
}

/* The list has up to eight columns and does not fit the 46rem column, so each row is a card at
   every width (user 2026-11-24): the CVE id on top, one labelled line per fact, the description
   under them. The description is never cut. */
@media all {
  table.cve-list, table.cve-list tbody { display: block; }
  table.cve-list thead { display: none; }
  table.cve-list tr { display: block; padding-block: 0.85rem; border-block-end: 2px solid var(--border); }
  table.cve-list td { display: block; padding: 0.1rem 0; border: 0; font-size: 0.8rem; }
  table.cve-list td:empty { display: none; }
  table.cve-list td:first-child { display: block; font-size: 0.95rem; margin-block-end: 0.3rem; }
  table.cve-list td.description { display: block; min-inline-size: 0; margin-block-start: 0.4rem; line-height: 1.5; }
  table.cve-list td[data-label]::before { content: attr(data-label); display: inline-block; inline-size: 8.5rem; color: var(--text-dim); }
}

/* table.products styles three tables: the affected products, the GitHub advisory packages and the
   Exploit-DB entries. A Vulnerable versions cell holds one version range per line. A line does not wrap, so a range
   never breaks across lines. A wide table scrolls in its .scroll box. */
table.products .line { display: block; white-space: nowrap; }
/* An empty Fixed in line (beside "(+N more)") keeps its height, so the lines of the two cells stay level. */
table.products .line:empty::before { content: "\00a0"; }
/* A gap after each line but the last parts the versions of a cell. Every cell takes the same gap,
   so the lines of a row stay level. */
table.products .line:not(:last-child) { margin-block-end: 0.5rem; }
/* The fix shown inside a range line is for the phone card of the products table, which hides its
   td.fix-col Fixed in cell. The source shown under it is for the same card, which hides the Source cell. */
table.products .fix-inline, table.products .source-inline { display: none; color: var(--text-dim); }
/* The Source column is dim, so the range and its fix read first. */
table.products td.source-col { color: var(--text-dim); }
/* The vendor is dim, so the product name reads first. */
table.products td.product { color: var(--text); }
table.products .vendor { color: var(--text-dim); }

/* The three tables do not fit a phone. Below 640px a row becomes a card. The Product cell is
   its bold heading line, and each other cell takes its own labelled line. */
@media (max-width: 639px) {
  table.products .line { white-space: normal; }
  table.products .fix-inline, table.products .source-inline { display: block; }
  table.products td.product .vendor { display: block; }
  table.products td.fix-col { display: none; }
  table.products td.source-col { display: none; }
  table.products, table.products tbody { display: block; }
  table.products tr:first-child { display: none; }
  table.products tr { display: block; padding-block: 0.85rem; border-block-end: 1px solid var(--border-dim); }
  table.products td { display: flex; gap: 0.5rem; padding: 0.1rem 0; border: 0; font-size: 0.8rem; overflow-wrap: normal; }
  table.products td:empty { display: none; }
  table.products td.product { display: block; margin-block-end: 0.3rem; font-size: 0.95rem; font-weight: 600; overflow-wrap: anywhere; }
  table.products td[data-label]::before { content: attr(data-label); flex: 0 0 5.5rem; color: var(--text-dim); }
  table.products td[data-label] { flex-wrap: nowrap; }
}

@media (max-width: 639px) {
  .page { padding: 1.75rem 1.25rem 2rem; }
  form.search input { flex-basis: 0; font-size: 1rem; padding-inline: 0.4rem; }
  form.search .btn-cta { padding-inline: 0.75rem; }
  .page h1 { font-size: 1.75rem; }
  table.kv th { inline-size: 35%; min-inline-size: 0; }
  .fact { grid-template-columns: 1fr; }
  .fact .k { grid-row: auto; margin-block-end: 0.25rem; }
  .fact .v, .fact .s { grid-column: 1; }
  th, td { padding-inline: 0.5rem; }
  footer { padding: 1.5rem 1.25rem; }
  .footer-groups { gap: 1.5rem 2.5rem; }
  .footer-bottom { flex-direction: column; }
  nav.paging { gap: 0.2rem; }
  .page-box, .page-gap { min-inline-size: 2rem; block-size: 2rem; padding-inline: 0.2rem; font-size: 0.875rem; }
  .page-gap { min-inline-size: 1.25rem; padding-inline: 0; }
  .footer-site { justify-content: center; }
  /* On a phone the API box links stand one under another, so none wraps beside another. */
  .cta-group { flex-direction: column; align-items: flex-start; }
  /* Type on a phone (user 2026-11-25, after a 390px measure). Long text is 16px. The facts a
     reader looks up stay at 14px or more: table cells, the dim side lines, the date block, the
     line under a fact and the date of a timeline step. Code is 13px, as on the API site. The
     footer, the breadcrumb and the source notes keep their small size, since they are not read
     line by line. */
  .page p, ul.plain li { font-size: 1rem; }
  table, table.products td, table.cve-list td { font-size: 0.875rem; }
  .page .tags, .tags, ul.meta, .fact .s, ol.timeline .d { font-size: 0.875rem; }
  code, .api-examples code, .api-examples .tags { font-size: 0.8125rem; }
}

/* .cwe-counts holds the three count tables of the CWE data block: the years, the open source
   packages and the products. They stand side by side when the page is wide and stack when it is
   narrow. min() keeps a column inside a screen narrower than its 14rem. */
.cwe-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 2rem; align-items: start; margin-block-end: 1rem; }
.page .cwe-counts h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 1rem 0 0.25rem; }
/* table.counts has a name column and a count column. The count is right-aligned, so its digits line up. */
table.counts th, table.counts td { padding: 0.4rem 0.5rem; }
table.counts th:first-child, table.counts td:first-child { padding-inline-start: 0; }
table.counts th:last-child, table.counts td:last-child { inline-size: 1%; padding-inline-end: 0; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ul.id-grid lists the CVE ids of the observed examples. The ids flow into as many columns as fit. */
ul.id-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.4rem 1rem; margin-block-end: 1rem; }
ul.id-grid li { color: var(--text-muted); font-variant-numeric: tabular-nums; }
