:root {
	--bg: #fff; --fg: #202e3e; --muted: #526174; --line: #ccd4de; --soft: #f2f5f8;
	--accent: #234eb1; --link: #34537a; --control: #243e60; --control-text: #fff;
	--crit: #a32220; --high: #a03912; --med: #805400; --low: #326329; --none: #526174;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #111923; --fg: #e4eaf1; --muted: #a8b6c7; --line: #425268; --soft: #1b2736;
		--accent: #91b6ff; --link: #b4c8e4; --control: #c6d9f4; --control-text: #152335;
		--crit: #ffaaa4; --high: #ffc18b; --med: #f0d076; --low: #a6d59b; --none: #a8b6c7; }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
/* Links: bold dark grey-blue, not underlined — the underline comes back on hover and on
   keyboard focus, so a link is still told apart without relying on colour alone. */
a { color: var(--link); font-weight: 650; text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }
header, main, footer { max-width: 1080px; margin: 0 auto; padding: 24px 32px; min-width: 0; }
.site-header { display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; color: var(--fg); font-size: 1.125rem; min-width: 0; }
.brand img { max-width: 100px; object-fit: contain; }
nav { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: .875rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav { margin-left: auto; }
.search { width: 100%; margin: 0; }
.search label { display: block; font-weight: 650; margin-bottom: 8px; }
.search-controls { display: flex; gap: 8px; }
.search input[type="search"] { flex: 1; width: 0; min-width: 0; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 4px; background: var(--bg); color: var(--fg); font: inherit; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search button { padding: 12px 20px; border: 1px solid var(--control); border-radius: 4px; background: var(--control); color: var(--control-text); font: inherit; font-weight: 650; cursor: pointer; }
.search button:hover { text-decoration: underline; }
.search p { font-size: .8125rem; margin: 8px 0 0; }
.site-header .search { max-width: 680px; }
.site-header .search label { font-size: .875rem; }
main { padding-top: 32px; padding-bottom: 48px; }
h1, h2 { line-height: 1.25; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 16px; }
h2 { font-size: 1.25rem; margin: 36px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
p { margin: 0 0 16px; }
.lead, .record-title { font-size: 1.125rem; max-width: 76ch; }
.lead, .muted { color: var(--muted); }
.hero { padding: 24px 0 32px; max-width: 820px; }
.hero h1 { max-width: 24ch; }
.hero .search { margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.stats b { display: block; font-size: 2rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.home-sources { max-width: 76ch; }
.cve-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 32px; margin-top: 8px; }
.cve-lists h2 { font-size: 1.0625rem; }
.cve-mini { list-style: none; padding: 0; margin: 0 0 12px; }
.cve-mini li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: .875rem; min-width: 0; }
.cve-mini li:first-child { border-top: 0; }
.cve-mini-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 650; }
.cve-mini .muted { overflow-wrap: anywhere; }
.cve-mini-what code { font-size: .8125rem; }
/* Short tokens (CVE ids, dates, badges, headers) never break mid-word. */
td.nw { white-space: nowrap; overflow-wrap: normal; }
th { overflow-wrap: normal; }
.list-tabs { font-size: .9375rem; }
.updates { font-size: .875rem; color: var(--muted); }
.updates .upd { white-space: nowrap; }
/* CVE list tables: what is vulnerable ~20 %, the title gets the room it gave up. */
table.cve-table col.c-what { width: 20%; }
table.cve-table col.c-title { width: 30%; }

/* Package and version pages: the content, and the versions panel on the right. */
.pkg-layout { display: grid; gap: 32px; }
.pkg-main { min-width: 0; }
.versions-panel { border: 1px solid var(--line); border-radius: 4px; background: var(--soft); padding: 16px 0 8px; align-self: start; min-width: 0; }
.versions-panel h2 { border: 0; margin: 0 16px 8px; padding: 0; font-size: 1rem; }
.versions-panel ol { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.versions-panel li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 16px; font-size: .875rem; border-top: 1px solid var(--line); }
.versions-panel li a { font-weight: 600; overflow-wrap: anywhere; }
.versions-panel li.current { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
.versions-panel li.current a { color: var(--fg); text-decoration: none; }
.versions-panel .v-meta { margin-left: auto; display: inline-flex; gap: 8px; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.versions-panel .ok { color: var(--low); }
.versions-panel .badge { font-size: .6875rem; padding: 1px 6px; }
.versions-panel > p { margin: 8px 16px 0; font-size: .75rem; }
@media (min-width: 960px) {
	.pkg-layout { grid-template-columns: minmax(0, 1fr) 17rem; }
	.versions-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
	.versions-panel ol { max-height: none; flex: 1 1 auto; min-height: 0; }
}

/* Wide screens: use the width instead of a 1080px column in the middle. */
@media (min-width: 1280px) {
	header, main, footer { max-width: 1240px; }
}
@media (min-width: 1600px) {
	header, main, footer { max-width: 1480px; padding-left: 48px; padding-right: 48px; }
	.pkg-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 40px; }
	.cve-lists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.desc, .lead, .record-title { max-width: 90ch; }
}
@media (min-width: 2200px) {
	html { font-size: 112.5%; }
	body { font-size: 18px; }
	header, main, footer { max-width: 1760px; }
	.pkg-layout { grid-template-columns: minmax(0, 1fr) 22rem; }
}
.summary { margin: 24px 0 32px; padding: 24px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 4px; }
.summary h2 { border: 0; padding: 0; margin: 0 0 20px; font-size: 1rem; }
dl.kv { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); gap: 10px 24px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; min-width: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .8125rem; font-weight: 750; border: 1px solid currentColor; background: var(--bg); white-space: nowrap; }
.sev-CRITICAL { color: var(--crit); } .sev-HIGH { color: var(--high); } .sev-MEDIUM { color: var(--med); }
.sev-LOW { color: var(--low); } .sev-NONE, .sev- { color: var(--none); }
.flag { color: var(--crit); font-weight: 700; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 110px; }
th { background: var(--soft); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--soft); }
ul.plain { padding-left: 24px; margin: 0; }
ul.plain li { padding: 8px 0 8px 4px; }
ul.plain li + li { border-top: 1px solid var(--line); }
code { font-size: .875em; }
.result { padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px; margin: 12px 0; }
.result h2 { border: 0; padding: 0; margin: 4px 0 8px; font-size: 1.125rem; }
.result p:last-child { margin: 0; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0; }
.empty-state { padding: 24px; background: var(--soft); border-left: 4px solid var(--accent); }
.desc { white-space: pre-wrap; max-width: 85ch; }
footer { color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
footer p { max-width: 80ch; margin-bottom: 8px; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 1; padding: 12px; background: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 600px) {
	header, main, footer { padding: 20px 16px; }
	.site-header { gap: 12px; }
	.site-header nav { margin-left: 0; width: 100%; gap: 8px 20px; }
	.search button { padding: 12px; }
	.summary, .result, .stats { padding: 16px; }
	dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	dl.kv dd + dt { margin-top: 12px; }
	.stats { gap: 16px; font-size: .875rem; }
	.stats b { font-size: 1.6rem; }
}
@media print {
	:root { color-scheme: light; --bg: #fff; --fg: #000; --muted: #333; --line: #aaa; --soft: #fff; --link: #000; --accent: #000; --crit: #000; --high: #000; --med: #000; --low: #000; --none: #000; }
	@page { margin: 16mm; }
	body { font-size: 10pt; line-height: 1.45; }
	header, main, footer { max-width: none; padding: 12px 0; }
	.search, nav, .skip-link { display: none; }
	h1 { font-size: 22pt; }
	h2 { font-size: 13pt; margin-top: 20px; break-after: avoid; }
	.summary { padding: 12px; break-inside: avoid; }
	dl.kv { grid-template-columns: 120px minmax(0, 1fr); }
	dl.kv dd + dt { margin-top: 0; }
	.table-wrap { overflow: visible; border: 0; }
	table { table-layout: fixed; font-size: 9pt; }
	th, td { min-width: 0; padding: 6px; }
	thead { display: table-header-group; }
	tr, li { break-inside: avoid; }
	p { orphans: 3; widows: 3; }
	.badge { white-space: normal; }
}

/* VigieVuln's shared lighthouse / radar identity. */
:root {
 color-scheme: dark; --bg:#050d14; --fg:#f2f5fc; --muted:#b2c3d4;
 --line:#1b3445; --soft:#0b1723; --accent:#ffb52e; --link:#69cfff;
 --control:#ffb52e; --control-text:#10151a; --crit:#ff7588; --high:#ffad80;
 --med:#ffd166; --low:#52d8a0; --none:#b2c3d4;
}
body { background: radial-gradient(ellipse at 80% 0%, #102b3b 0, transparent 38rem), var(--bg); }
.site-header { border-top:0; min-height:80px; }
.brand { font-size:1.55rem; font-weight:800; letter-spacing:-.05em; }
.brand img { max-width:60px; height:48px; }
.site-header nav a { color:var(--muted); }
.site-header nav a:hover { color:var(--accent); }
main { padding-top:48px; }
h1 { font-size:clamp(2.5rem,5vw,4.4rem); letter-spacing:-.045em; }
h2 { font-size:1.3rem; }
.hero { max-width:960px; padding:40px 0 56px; }
.hero h1 { max-width:20ch; }
.hero h1::after { content:'.'; color:var(--accent); }
.hero .lead { font-size:1.2rem; }
.search input[type="search"] { border-color:#355269; border-radius:8px; background:#0b1723; }
.search button { border-radius:8px; }
.stats, .summary, .versions-panel, .result { border-radius:10px; }
.stats { background:linear-gradient(110deg,#102231,#0b1723); }
.stats b { color:var(--accent); }
.cve-lists { gap:20px; margin-top:32px; }
.cve-lists > section { background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:20px; }
.cve-lists h2 { margin:0 0 16px; padding:0; border:0; }
.badge { border-radius:5px; }
.table-wrap { border-radius:8px; }
footer { margin-top:40px; }
@media (max-width:600px) { main { padding-top:28px; } .hero { padding:24px 0 32px; } h1 { font-size:2.5rem; } }
@media print { :root { color-scheme:light; --bg:#fff; --fg:#000; --muted:#333; --line:#aaa; --soft:#fff; --link:#000; --accent:#000; --crit:#000; --high:#000; --med:#000; --low:#000; --none:#000; } body { background:#fff; } }
.hero { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); align-items:center; gap:clamp(24px,4vw,64px); max-width:none; }
.hero-copy { min-width:0; }
.hero-kicker { color:var(--accent); font:700 .75rem/1.4 ui-monospace,monospace; letter-spacing:.12em; }
.hero-art { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:14px; box-shadow:0 20px 70px #0008; }
@media(max-width:800px) { .hero { grid-template-columns:1fr; } .hero-art { max-width:560px; } }
@media print { .hero-art { display:none; } .hero { display:block; } }
/* Brand and the lighthouse artwork share the GitHub site's visual language. */
.brand { gap:12px; }
.brand img { width:78px; max-width:78px; height:62px; }
.brand-name { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:0; line-height:1.1; }
.brand-name strong { color:#ff3e4d; font-weight:800; }
.brand-name small { flex-basis:100%; padding-top:5px; color:var(--muted); font-size:.64rem; font-weight:600; letter-spacing:.025em; }
.hero { position:relative; overflow:visible; }
.hero-copy { position:relative; z-index:2; }
.hero-art { position:relative; z-index:0; width:125%; max-width:none; margin:-5% -20% -120px -5%; border:0; border-radius:0; box-shadow:none; mask-image:radial-gradient(ellipse 71% 69% at 50% 48%,#000 48%,transparent 100%); }
.stats, .cve-lists, .home-sources { position:relative; z-index:1; }
@media(max-width:800px) { .hero-art { width:110%; max-width:none; margin:-15px -5% -85px; } .hero { padding-bottom:32px; } }
@media print { .hero-art { display:none; } }
.brand-name strong { margin-left:.18em; }
@media (min-width:801px) {
 .hero { grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); }
 .hero-art { width:145%; margin:-10% -50% -140px -39%; mask-image:linear-gradient(to right,transparent 0%,#000 22%,#000 77%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 18%,#000 72%,transparent 100%); mask-composite:intersect; }
}
@media (max-width:800px) {
 .hero-art { mask-image:linear-gradient(to right,transparent 0%,#000 16%,#000 84%,transparent 100%),linear-gradient(to bottom,transparent 0%,#000 15%,#000 72%,transparent 100%); mask-composite:intersect; }
}

.text-brand { color:var(--fg); font-weight:750; white-space:nowrap; }
.text-brand span { color:#ff3e4d; }

.brand img { width:94px; max-width:94px; height:74px; }
.brand:hover, .brand:focus-visible { text-decoration:none; }
