/* Vulnpocalypse: hand-written, no framework. One dark theme: near-black pages, a black band with the header (and
   on the home page the CVE lookup), neon green from the logo (docs/logo/vulnpocalypse.jpeg) for the lookup button,
   links and the marks of the current item. Rules between sections, tables for values, one bordered box per page at
   most. The only shadows are the glow of the name and of the lookup button; the one gradient is the mask that fades
   the texture of the band. Radius only on inputs, buttons and that box.
   No inline styles anywhere (CSP), so every class used in the templates is here. */

/* fonts: latin subset, variable weight, served from here (static/fonts/SOURCES.txt). The ?v= is the asset
   hash of each file; TestStaticURLs fails when a file changes and the hash here does not. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/public-sans-latin-wght.woff2?v=5ed4d31c98") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/red-hat-mono-latin-wght.woff2?v=f4bef0a36d") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* the band: the black of the logo background, so the logo sits on it without an edge */
  --band: #000706;
  --band-text: #effff0;
  --band-2: #bfd3c4;      /* the lead in the band: 13:1 */
  --band-3: #93a99a;      /* the data line: 8:1 */
  --band-link: #c9f7cf;
  --band-line: rgb(109 255 106 / 35%);
  --neon: #6dff6a;        /* the green of the meteor in the logo */
  --neon-glow: rgb(109 255 106 / 35%);
  --bg: #060c0a;
  --bg-soft: #0e1713;
  --bg-card: #09120e;
  --text: #e2ece5;
  --text-2: #bccbc1;
  --muted: #8fa196;       /* 7.4:1 on the page */
  --rule: #1b2a22;        /* lines between rows and sections */
  --border: #2d4237;      /* inputs and the one box */
  --link: #7dff7a;        /* 15:1 on the page */
  --link-hover: #c4ffc2;
  --primary: var(--neon); /* the lookup button */
  --primary-hover: #a6ffa3;
  --on-primary: #021a05;  /* 14:1 on the green */
  --accent: #145a28;      /* the other buttons, the marks of the current item: white text 7.9:1 */
  --accent-hover: #1a7033;
  --on-accent: #ffffff;
  --accent-soft: #0f2618;
  --danger: #ff6b7a;
  --danger-soft: #2b1015;
  --ok: #6dff6a;
  --ok-soft: #0f2618;
  --warn: #ffd23f;
  --warn-soft: #2a2410;
  --info-soft: #0d1b16;
  --sev-critical: #ff5c7a;
  --sev-high: #ff9248;
  --sev-medium: #ffd23f;
  --sev-low: #5ce1e6;
  --sev-info: #8fa196;
  --code-bg: #020806;
  --code-text: #c8ffcb;
  --code-comment: #7f9a88;
  --radius: 8px;          /* the one box */
  --radius-sm: 6px;       /* inputs and buttons */
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
::selection { background: var(--neon); color: var(--on-primary); }

* { box-sizing: border-box; }
/* the page colour on the root too: Firefox on Android paints the strip of its bottom toolbar with it */
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
/* links in running text and tables are underlined: a second cue besides the colour */
main p a:not(.btn), main li a:not(.btn), main dd a:not(.btn), main td a:not(.btn), main .prose a:not(.btn) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 2.6rem); letter-spacing: -0.015em; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 3px; padding: .05em .3em; word-break: break-word; }
pre {
  background: var(--code-bg); color: var(--code-text);
  padding: 14px 16px; overflow-x: auto; line-height: 1.55; margin: 0 0 1.2em; font-size: .88rem;
}
pre .c { color: var(--code-comment); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 45%, transparent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 18px; } }
/* a column of text, left-aligned with the header */
.wrap.narrow > * { max-width: 760px; }
.section { padding-block: 48px 64px; }
.section-soft { border-top: 1px solid var(--rule); }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--text-2); max-width: 720px; }

/* the band and the header in it */
.band { position: relative; isolation: isolate; background: var(--band); color: var(--band-text); }
/* the texture: falling green katakana and digits (bin/band-texture.py), strongest at the right edge, gone by
   the middle, so the text of the band stays on plain black */
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .3;
  background: url("/static/band-texture.svg?v=678a76199a") right top / 720px 420px repeat;
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgb(0 0 0 / 50%) 30%, transparent 62%);
  mask-image: linear-gradient(to left, #000 0%, rgb(0 0 0 / 50%) 30%, transparent 62%); }
@media (max-width: 720px) { .band::before { opacity: .18; } } /* narrow: the texture reaches the text */
.band a { color: var(--band-link); }
.band a:hover { color: var(--neon); }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--neon); font: 700 20px/1 var(--mono);
  letter-spacing: -0.01em; flex: none; text-shadow: 0 0 14px var(--neon-glow); }
.brand-mark { width: 48px; height: 48px; flex: none; margin-block: -6px; }
.band .brand, .band .brand:hover { color: var(--neon); }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-left: auto; font-size: 15px; }
.nav a { white-space: nowrap; }
.nav a.active { color: var(--neon); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* Start free and Dashboard: a framed link, so the filled green stays for the lookup */
.nav a.nav-action { color: var(--neon); border: 1px solid var(--band-line); border-radius: var(--radius-sm); padding: 5px 12px; }
.nav a.nav-action:hover { background: rgb(109 255 106 / 12%); text-decoration: none; }
/* phones and narrow windows: the menu on its own line under the name */
@media (max-width: 720px) {
  .site-header .wrap { padding-block: 16px 14px; row-gap: 10px; }
  .brand-mark { width: 40px; height: 40px; margin-block: -4px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 6px 16px; }
  .nav a.nav-action { padding: 3px 10px; }
}
@media (max-width: 400px) { .nav { gap: 6px 13px; font-size: 14.5px; } }

/* buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 10px 18px; font: 600 .95rem/1.2 var(--font); cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; color: var(--on-accent); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700;
  box-shadow: 0 0 16px var(--neon-glow); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border); }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; color: var(--link); padding: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
label.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px;
}
textarea { min-height: 84px; font-family: var(--mono); font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--link) 30%, transparent); outline-offset: 0; border-color: var(--link); }
.hint { color: var(--muted); font-size: .86rem; margin-top: .3rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* messages: a coloured rule on the left */
.alert { padding: 10px 14px; margin-bottom: 1.2rem; border-left: 4px solid var(--border); background: var(--bg-soft); font-size: .95rem; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-left-color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-left-color: var(--warn); }
.alert-info { background: var(--info-soft); border-left-color: var(--link); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }
/* the draft box of the legal pages */
.draft { border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--text); padding: 12px 16px; margin-bottom: 1.6rem; }
.draft b { color: var(--warn); }

/* the box: a border, no shadow */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 480px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* tables: rules between the rows, no frame; the first and last columns line up with the text */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-block: 8px; }
thead th { border-bottom-color: var(--border); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.num, th.num { text-align: right; }

/* questions */
details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* home: the lookup in the band, the KEV table, the box, the product below */
.lk-hero { display: flex; flex-direction: column; gap: 18px; padding-block: 36px 56px; }
.lk-hero > * { max-width: 760px; margin: 0; }
.lk-hero h1 { font-size: clamp(2.1rem, 5vw, 2.875rem); line-height: 1.1; color: var(--band-text); }
.lk-lead { font-size: 1.125rem; line-height: 1.55; color: var(--band-2); }
.lk-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lk-form input[type=search] { flex: 1 1 200px; min-width: 0; height: 56px; padding: 0 18px; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 20px; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); }
.lk-form input[type=search]::placeholder { color: var(--muted); }
.lk-form input[type=search]:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.lk-form .btn { flex: none; height: 56px; padding: 0 28px; font-size: 17px; }
.lk-form .btn:focus-visible { outline: 3px solid var(--band-text); outline-offset: 2px; }
.lk-data { font-family: var(--mono); font-size: 14px; color: var(--band-3); }
.lk-body { padding-block: 48px 72px; }
.lk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: start; }
@media (max-width: 900px) { .lk-grid { grid-template-columns: minmax(0, 1fr); } }
.lk-grid.lk-solo { grid-template-columns: minmax(0, 560px); } /* the CVE data is not loaded: the box alone */
.lk-kev h2 { margin-bottom: 16px; }
.lk-kev table { font-size: .94rem; }
.lk-kev td { padding-block: 11px; }
.lk-kev td.lk-id a { font-family: var(--mono); }
.lk-kev .lk-weak { color: var(--text-2); }
.lk-kev .lk-more { color: var(--muted); }
.lk-kev .lk-more a { color: var(--muted); }
.lk-links { margin: 16px 0 0; font-size: .94rem; }
/* phones: each row a block: date and id, the product, the weakness */
@media (max-width: 640px) {
  .lk-table thead { display: none; }
  .lk-table, .lk-table tbody { display: block; }
  .lk-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .lk-kev .lk-table td { display: block; padding: 0; border: 0; }
  .lk-table td.lk-date { grid-column: 1; grid-row: 1; }
  .lk-table td.lk-id { grid-column: 2; grid-row: 1; }
  .lk-table td.lk-prod { grid-column: 1 / -1; grid-row: 2; }
  .lk-table td.lk-weak { grid-column: 1 / -1; grid-row: 3; font-size: .88rem; }
}
.lk-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.lk-box h2 { font-size: 1.25rem; margin: 0; }
.lk-box p { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--text-2); }
.lk-box .btn { align-self: flex-start; }
.lk-box .lk-price { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lk-box h3 { font-size: .94rem; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.lk-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .94rem; line-height: 1.45; }
/* the product: sections with a rule between them */
.lk-part { border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 56px; }
.lk-part > h2 { margin-bottom: 20px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step); display: block; font: 500 .9rem var(--mono); color: var(--muted); margin-bottom: 6px; }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--text-2); margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3 { margin-bottom: .6rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; }
.lk-list { margin: 0; padding-left: 1.2em; }
.lk-list li { margin-bottom: .45rem; }
.lk-install pre { max-width: 760px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lk-plans td:first-child { font-weight: 600; }

/* pricing: one column per plan, rules instead of boxes */
.toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.toggle a { padding: 6px 14px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.toggle a + a { border-left: 1px solid var(--border); }
.toggle a:hover { text-decoration: none; background: var(--bg-soft); color: var(--text); }
.toggle a.on { background: var(--accent); color: var(--on-accent); }
.toggles { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 32px; }
.save { font-size: .78rem; font-weight: 700; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { display: flex; flex-direction: column; border-top: 2px solid var(--rule); padding-top: 18px; }
.plan.featured { border-top: 3px solid var(--accent); padding-top: 17px; }
.plan h3 { margin-bottom: .2rem; }
.plan .price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: .88rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; font-size: .94rem; flex: 1; }
.plan li { padding: 6px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; }
.plan li b { font-weight: 600; text-align: right; }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
/* the parts of the plan columns line up across a row (6 parts: name, tagline, price, billing, limits, action) */
@supports (grid-template-rows: subgrid) {
  .plans > .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}

/* small labels */
.badge { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; border-radius: 3px; padding: 2px 8px; white-space: nowrap; }
.badge-soft { background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--rule); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-kev { background: var(--sev-critical); color: var(--bg); }
.sev { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 3px; padding: 1px 7px; border: 1px solid currentColor; white-space: nowrap; }
.sev-critical { color: var(--sev-critical); }
.sev-high { color: var(--sev-high); }
.sev-medium { color: var(--sev-medium); }
.sev-low { color: var(--sev-low); }
.sev-info, .sev-none, .sev-unknown { color: var(--sev-info); }
.src { font-size: .78rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot-ok { background: #16a34a; }
.dot-bad { background: #dc2626; }

/* auth */
.auth { max-width: 440px; margin: 48px 0 64px; }
.auth h1 { font-size: 1.75rem; }
.auth .alt { margin-top: 1.2rem; color: var(--muted); font-size: .94rem; }

/* docs, guides and check pages: text column, contents on the side */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.prose li { margin-bottom: .35rem; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px; }
.docs .toc { position: sticky; top: 24px; align-self: start; font-size: .92rem; display: flex; flex-direction: column; border-left: 2px solid var(--rule); }
.docs .toc a { color: var(--text-2); padding: 4px 0 4px 12px; }
.docs .toc a:hover { color: var(--link); }
/* narrow screens: the contents sit above the text as a wrapped list and scroll with the page */
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .docs .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; border-left: 0; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  .docs .toc a { padding: 2px 0; }
}
.docs article h2 { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.docs article h2:first-child { margin-top: 0; }
.docs article h3 { margin-top: 1.6rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-block: 32px 72px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.article-side { font-size: .92rem; }
@media (min-width: 961px) and (min-height: 640px) { .article-side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; } }
.article-side h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .5rem; }
.article-side .toc { list-style: none; padding: 0; margin: 0 0 1.6rem; border-left: 2px solid var(--rule); }
.article-side .toc li { margin: 0; }
.article-side .toc a { display: block; padding: 4px 0 4px 12px; color: var(--text-2); text-decoration: none; }
.article-side .toc a:hover { color: var(--link); text-decoration: underline; }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta-line { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 1.4rem; }
.level { text-transform: capitalize; }
.md { max-width: 760px; font-size: 1.03rem; }
.md h2 { margin-top: 2.2rem; font-size: 1.4rem; scroll-margin-top: 16px; }
.md h3 { margin-top: 1.6rem; font-size: 1.15rem; scroll-margin-top: 16px; }
.md ul, .md ol { padding-left: 1.4em; margin: 0 0 1em; }
.md li { margin-bottom: .35rem; }
.md table { margin: 0 0 1.2em; display: block; overflow-x: auto; width: max-content; max-width: 100%; }
.md th, .md td { padding: 8px 12px; }
.md th:first-child, .md td:first-child { padding-left: 0; }
.md td code, .md th code { word-break: normal; overflow-wrap: normal; } /* setting names stay whole; the other column wraps */
.md blockquote { margin: 0 0 1.2em; padding: 10px 16px; border-left: 4px solid var(--border); color: var(--text-2); }
.md blockquote p:last-child { margin-bottom: 0; }
.md blockquote.note { border-left-color: var(--link); background: var(--info-soft); color: var(--text); }
.md blockquote.note-warning { border-left-color: var(--warn); background: var(--warn-soft); }
.md blockquote.note-tip { border-left-color: var(--ok); background: var(--ok-soft); }
.catalog-box { margin-bottom: 1.6rem; }
.ex-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 760px; }
.ex-cta > div:first-child { flex: 1 1 380px; }
/* lists of guides: title and line, a rule above each */
.ex-card { display: block; color: inherit; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.ex-card:hover { text-decoration: none; }
.ex-card h3 { font-size: 1.02rem; color: var(--link); margin-bottom: .3rem; }
.ex-card:hover h3 { color: var(--link-hover); text-decoration: underline; }
.ex-card p { margin: 0; }
.guide-cat { margin-bottom: 2.4rem; scroll-margin-top: 16px; }
.guide-cat h2 { margin-bottom: .2rem; }
.check-list td:first-child { white-space: nowrap; }
.check-list code { font-size: .82rem; }

/* the payload reference */
.schema td { font-size: .88rem; }
.schema td.path { font-family: var(--mono); font-size: .84rem; white-space: nowrap; }
.schema td.path.d1 { padding-left: 16px; }
.schema td.path.d2 { padding-left: 32px; }
.schema td.path.d3 { padding-left: 48px; }
.schema td.path.d4 { padding-left: 64px; }
.schema .req { color: var(--danger); font-weight: 700; }

/* status */
.status-big { display: flex; align-items: center; gap: 14px; font-size: 1.35rem; font-weight: 700; }
.status-big .dot { width: 14px; height: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 28px 32px; font-size: .875rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fineprint { margin-top: 16px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }

/* utilities (no inline styles: CSP) */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .8rem; } .mt-2 { margin-top: 1.6rem; } .mt-3 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .8rem; } .mb-2 { margin-bottom: 1.6rem; }
.inline { display: inline; } .small { font-size: .88rem; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .9em; }
.mono-h { font-family: var(--mono); font-size: 1.35rem; }
.word-break { overflow-wrap: anywhere; }

/* dashboard */
.dash { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; padding-block: 36px 72px; }
@media (max-width: 820px) { .dash { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; align-self: start; border-left: 2px solid var(--rule); }
.side a, .side button.side-logout { display: block; color: var(--text-2); padding: 7px 12px; font-weight: 500; margin-left: -2px; border-left: 2px solid transparent; }
.side a:hover, .side button.side-logout:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.side a.active { color: var(--text); font-weight: 650; border-left-color: var(--link); background: var(--accent-soft); }
.side form { display: block; }
.side button.side-logout { width: 100%; text-align: left; }
.dash h1 { font-size: 1.75rem; }
.dash h2.h3 { font-size: 1.2rem; margin: 1.6rem 0 .8rem; }
.dash h2.h3.mt-0 { margin-top: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
/* phones: the dashboard menu is one row that scrolls sideways */
@media (max-width: 820px) {
  .side { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 2px; border-left: 0; border-bottom: 1px solid var(--rule); scrollbar-width: thin; }
  .side a, .side form, .side button.side-logout { flex: none; white-space: nowrap; }
  .side a, .side button.side-logout { margin: 0 0 -1px; padding: 7px 10px; border-left: 0; border-bottom: 2px solid transparent; }
  .side a.active { border-bottom-color: var(--link); background: none; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; border-block: 1px solid var(--rule); }
.stat { padding: 12px 14px 12px 0; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; line-height: 1.3; display: block; }
.stat-kev b { color: var(--sev-critical); }
.statnote { margin: .4rem 0 1.2rem; }
@media (max-width: 560px) {
  .stats { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; }
  .stat { padding: 0; display: inline-flex; align-items: baseline; gap: 5px; }
  .stat b { font-size: 1.05rem; display: inline; }
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .94rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.kv.kv-wide { grid-template-columns: 170px 1fr; }
@media (max-width: 560px) { .kv.kv-wide { grid-template-columns: 1fr; } .kv.kv-wide dd { margin-bottom: 6px; } }
.keytype { border: 0; padding: 0; margin: 0 0 14px; }
.keytype legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.keytype .check { margin-bottom: 6px; }
.keybox { display: flex; gap: 8px; align-items: stretch; }
.keybox .btn { flex: none; }
/* the full key, never cut off: wraps on narrow screens, one click selects all of it */
code.keytext { flex: 1; min-width: 0; display: block; padding: 8px 10px; font-size: .9rem; line-height: 1.4;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); word-break: break-all; user-select: all; }
code.keytext-muted { display: inline-block; color: var(--muted); }
.keycard.revoked { opacity: .65; }
.newkey { border: 2px solid var(--ok); background: var(--ok-soft); }
.keyscope { font-size: .75rem; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.servers td.name a { font-weight: 600; }
.servers .kind { margin-left: 6px; }
table.servers th, table.servers td { padding: 10px 9px; }
table.servers th:first-child, table.servers td:first-child { padding-left: 0; }
.stale { color: var(--warn); font-weight: 600; }
.admin-table { font-size: .86rem; }
.admin-table td, .admin-table th { padding: 7px 9px; }
.n { font-weight: 700; font-variant-numeric: tabular-nums; }
.n-critical { color: var(--sev-critical); } .n-high { color: var(--sev-high); } .n-medium { color: var(--sev-medium); } .n-low { color: var(--sev-low); } .n-unknown { color: var(--sev-info); }
.n0 { color: var(--muted); opacity: .6; }
.place-counts .n { margin-left: 6px; }
.place-head { align-items: flex-start; } /* an open Ignore form does not move the name */
.place-head h3 { font-size: 1.05rem; }
.st { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 3px; padding: 1px 6px; white-space: nowrap; }
.st-fail { background: var(--danger-soft); color: var(--danger); }
.st-warn { background: var(--warn-soft); color: var(--warn); }
.st-pass { background: var(--ok-soft); color: var(--ok); }
.st-unknown, .st-skip, .st-pending { background: var(--bg-soft); color: var(--muted); }
table.findtable td, table.checktable td { font-size: .9rem; }
table.findtable td.vuln { min-width: 160px; }
table.findtable td.pkg { min-width: 150px; }
.fixcell { min-width: 200px; width: 34%; }
.fixcell code.fixcode { display: block; font-size: .8rem; background: var(--bg-soft); border: 1px solid var(--rule); padding: 4px 6px; overflow-wrap: anywhere; margin-bottom: 6px; user-select: all; }
.cmd { display: flex; gap: 6px; align-items: flex-start; }
.cmd .btn { flex: none; }
.cmd-block code { flex: 1; min-width: 0; overflow-wrap: anywhere; display: block; font-size: .85rem; padding: 8px 10px; background: var(--code-bg); color: var(--code-text); border-color: var(--rule); user-select: all; }
.fixall { border-left: 3px solid var(--link); padding-left: 12px; }
.kevnow { border-left: 5px solid var(--sev-critical); }
.kevnow .plain li { margin-bottom: .6rem; }
.events { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.events li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.events li:last-child { border-bottom: 0; }
.ev { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 3px; padding: 1px 6px; background: var(--bg-soft); color: var(--muted); }
.ev-new { background: var(--danger-soft); color: var(--danger); }
.ev-resolved { background: var(--ok-soft); color: var(--ok); }
.ev-fixed { background: var(--info-soft); color: var(--link); }
.ev-kev { background: var(--sev-critical); color: var(--bg); }
svg.chart { width: 100%; height: auto; display: block; }
.chart .ch-grid { stroke: var(--rule); stroke-width: 1; }
.chart .ch-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.ch-critical { fill: var(--sev-critical); background: var(--sev-critical); }
.ch-high { fill: var(--sev-high); background: var(--sev-high); }
.ch-medium { fill: var(--sev-medium); background: var(--sev-medium); }
.ch-low { fill: var(--sev-low); background: var(--sev-low); }
.ch-unknown { fill: var(--sev-info); background: var(--sev-info); }
.ch-none { fill: var(--rule); }
.filters { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; padding: 16px; }
.filters .field { margin-bottom: .6rem; }
.checks-inline { display: flex; gap: 14px; flex-wrap: wrap; }
.channel-form label.check, .settings-form label.check { align-items: center; }
.channel-form label.check input, .settings-form label.check input { margin-top: 0; }
.channel-add .keytype { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.channel-add .field.is-hidden { display: none; }
pre.digest { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
.checktable td.acceptcell { width: 1%; white-space: nowrap; vertical-align: top; }
/* Accept (check results, findings) and Ignore (places): a button that opens a small form */
details.accept { border: 0; padding: 0; }
details.accept summary { list-style: none; cursor: pointer; display: inline-flex; }
details.accept summary::after { content: none; }
details.accept[open] { white-space: normal; min-width: 220px; }
details.accept input[type=text] { width: 100%; }
.place-counts .place-ignore { margin-top: 6px; text-align: left; }
.place-counts .place-ignore[open] { max-width: 320px; }
