:root {
  --bg: #0b0f14;
  --panel: #121922;
  --panel-2: #18212d;
  --line: #263243;
  --text: #e6edf3;
  --muted: #a5b1bf;
  --link: #8cc8ff;
  --amber: #f5b547;
  --red: #ff6b5e;
  --green: #6fd39a;
  --violet: #c4a7ff;
  --focus: #ffd166;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
code, .mono { font-family: var(--mono); font-size: .9em; background: var(--panel-2); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.6rem; margin: 0 0 .75rem; padding-top: .5rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
section.wrap { margin-bottom: 3rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--focus); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.banner { background: #3a2a0a; color: #ffe2a8; border-bottom: 1px solid #6b4d12; padding: .5rem 16px; text-align: center; font-size: .92rem; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(11,15,20,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; }
.brand { font-weight: 700; color: var(--amber); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: block; padding: .5rem .6rem; color: var(--muted); text-decoration: none; border-radius: 6px; white-space: nowrap; font-size: .95rem; }
.nav li a:hover, .nav li a:focus-visible { color: var(--text); background: var(--panel-2); }

.hero { padding-top: 2.5rem; }
.eyebrow { color: var(--muted); margin: 0 0 .5rem; font-size: .95rem; }
.sev { display: inline-block; background: var(--red); color: #1a0402; font-weight: 700; padding: .05rem .5rem; border-radius: 4px; margin-right: .4rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0 0 1rem; }
.lede { font-size: 1.1rem; max-width: 52rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .75rem; margin: 1.5rem 0; }
.stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: .25rem 0; font-size: 1.8rem; font-weight: 700; color: var(--amber); }
.stats p { margin: 0; font-size: .85rem; color: var(--muted); }
.callout { background: #2a0f0d; border: 1px solid #7a2a22; border-left: 6px solid var(--red); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; color: #ffd9d4; }
.callout p:last-child { margin-bottom: 0; }
.callout-soft { background: #221a0b; border-color: #5c4516; border-left-color: var(--amber); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .9rem; color: var(--muted); }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; border: 1px solid currentColor; vertical-align: middle; white-space: nowrap; }
.tag-official { color: var(--green); }
.tag-research { color: var(--link); }
.tag-telemetry { color: var(--violet); }
.tag-reported { color: var(--amber); }
.tag-danger { color: var(--red); }
.tag-deadline { color: var(--red); }
.pending { color: #1c1300; background: var(--amber); font-size: .75rem; font-weight: 700; padding: .05rem .45rem; border-radius: 4px; white-space: nowrap; }
.cite { font-size: .8em; white-space: nowrap; }
.note { color: var(--muted); font-size: .92rem; }
.src { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
q { quotes: "\201C" "\201D"; font-style: italic; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1rem 2rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; }
.card h3 { margin-top: 0; }
.card.warn { border-color: #7a2a22; }
.claims li { margin-bottom: .4rem; }

.cves { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.cve-head .tag { white-space: normal; }
.cve { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; }
.cve.hot { border-left: 6px solid var(--red); }
.cve.chain { border-left: 6px solid var(--amber); }
.cve-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.cve-head h3 { margin: 0; font-family: var(--mono); font-size: 1.1rem; }
.score { font-weight: 700; color: var(--red); }
.cve dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .75rem 0 0; }
.cve dt { color: var(--muted); }
.cve dd { margin: 0; }
@media (max-width: 36rem) { .cve dl { grid-template-columns: 1fr; } .cve dd { margin-bottom: .5rem; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
.filters button { font: inherit; font-size: .9rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--amber); color: #1c1300; border-color: var(--amber); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--muted); }
.timeline li.k-official::before { border-color: var(--green); }
.timeline li.k-research::before { border-color: var(--link); }
.timeline li.k-telemetry::before { border-color: var(--violet); }
.timeline li.k-reported::before { border-color: var(--amber); }
.timeline li.deadline::before { background: var(--red); border-color: var(--red); }
.chip { display: inline-block; font-family: var(--mono); font-size: .82rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .5rem; margin-right: .4rem; }
.tl-title { font-weight: 600; margin: .35rem 0 .25rem; }
.tl-body { margin: 0 0 .25rem; }
.timeline details { font-size: .9rem; }
.timeline summary { cursor: pointer; color: var(--link); display: inline-block; }
.timeline details ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.timeline details a { overflow-wrap: anywhere; }

.search { display: flex; flex-direction: column; gap: .35rem; max-width: 28rem; margin: 1rem 0; font-size: .9rem; color: var(--muted); }
.search input { font: inherit; font-size: 1rem; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .75rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--panel-2); color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.ioc td:nth-child(2) { min-width: 16rem; }
.val { display: flex; gap: .5rem; align-items: flex-start; }
.val code { flex: 1; background: transparent; padding: 0; word-break: break-all; }
.copy { font: inherit; font-size: .78rem; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .15rem .5rem; cursor: pointer; white-space: nowrap; }
.copy:hover { border-color: var(--muted); }
.builds td { font-family: var(--mono); }

.steps li { margin-bottom: .75rem; }
.src-group { margin-bottom: 1.5rem; }
.src-group ul { padding-left: 1.1rem; }
.src-group li { margin-bottom: .45rem; }
.src-group a { overflow-wrap: anywhere; }
.src-meta { color: var(--muted); font-size: .88rem; }

.site-foot { border-top: 1px solid var(--line); background: var(--panel); padding: 1.5rem 0; margin-top: 3rem; font-size: .92rem; color: var(--muted); }
.site-foot strong { color: var(--text); }
