:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d68;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --s1: #2a78d6;  /* categorical slot 1: supported branch / default */
  --s2: #eb6834;  /* categorical slot 2: end-of-life branch */
  --track: #f0efec;
  --link: #1c5cab;
  --note-bg: #fdf3e7;
  --note-ink: #6b3a12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #9a988f;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --s1: #3987e5;
    --s2: #d95926;
    --track: #262624;
    --link: #86b6ef;
    --note-bg: #2a1d12;
    --note-ink: #f2c9a4;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #9a988f;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --s1: #3987e5;
  --s2: #d95926;
  --track: #262624;
  --link: #86b6ef;
  --note-bg: #2a1d12;
  --note-ink: #f2c9a4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.6rem 0 .6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
p, li { max-width: 72ch; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
small, .muted { color: var(--muted); }
code { font-size: .92em; background: var(--track); padding: .05em .3em; border-radius: 4px; }

/* header & nav */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { font-weight: 400; color: var(--ink-2); }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
nav a { color: var(--ink-2); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--s1); }
.banner { background: var(--note-bg); color: var(--note-ink); font-size: .9rem; }
.banner .wrap { padding-top: .55rem; padding-bottom: .55rem; }

/* hero & tiles */
.hero { margin: 2rem 0 1rem; }
.hero .label { font-size: .95rem; color: var(--ink-2); margin: 0; }
.hero .figure { font-size: 3.4rem; font-weight: 650; line-height: 1.05; margin: .2rem 0; letter-spacing: -0.02em; }
.hero .figure small { font-size: 1.1rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 1.2rem 0; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .9rem 1rem; }
.tile .label { font-size: .88rem; color: var(--ink-2); margin: 0; }
.tile .value { font-size: 1.7rem; font-weight: 650; margin: .15rem 0 0; }
.tile .sub { font-size: .85rem; color: var(--muted); margin: .1rem 0 0; }
.tile.unknown { border-style: dashed; border-color: var(--axis); }

.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--s2); border-radius: 8px; padding: .8rem 1rem; margin: 1.2rem 0; }
.callout p { margin: .3rem 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }

/* bar lists (charts) */
figure.bars { margin: 1rem 0 .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
figure.bars figcaption { font-weight: 600; margin-bottom: .5rem; }
figure.bars ol { list-style: none; margin: 0; padding: 0; }
figure.bars li { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; align-items: center; gap: 10px; min-height: 28px; max-width: none; }
figure.bars li:hover { background: var(--track); border-radius: 4px; }
figure.bars .lbl { font-size: .9rem; overflow-wrap: anywhere; }
figure.bars .lbl small { font-size: .78rem; }
figure.bars .track { display: grid; grid-template-columns: 1fr 8.5em; align-items: center; gap: 8px; min-width: 0; }
figure.bars .area { display: block; border-left: 1px solid var(--axis); }
figure.bars .bar { display: block; height: 16px; min-width: 2px; border-radius: 0 4px 4px 0; }
figure.bars .val { font-size: .82rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.s1 { background: var(--s1); }
.s2 { background: var(--s2); }
ul.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .7rem; padding: 0; font-size: .85rem; color: var(--ink-2); }
ul.legend li { display: flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }

/* tables */
details.table { margin: .4rem 0 1.4rem; }
details.table summary { cursor: pointer; color: var(--link); font-size: .9rem; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: .6rem 0; font-size: .9rem; background: var(--surface); }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--grid); }
th { font-weight: 600; color: var(--ink-2); font-size: .82rem; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.eol td:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--s2); margin-right: 6px; }

/* lookup */
form.lookup { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; }
form.lookup input { flex: 1 1 260px; font: inherit; padding: .6rem .8rem; border: 1px solid var(--axis); border-radius: 8px; background: var(--surface); color: var(--ink); }
form.lookup button { font: inherit; font-weight: 600; padding: .6rem 1.2rem; border: 0; border-radius: 8px; background: var(--s1); color: #fff; cursor: pointer; }
.result { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; }
.result h3 { margin-top: 0; overflow-wrap: anywhere; }
.verdict { display: inline-block; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; font-size: .9rem; border: 1px solid var(--axis); }
.verdict.affected { border-color: var(--s2); }
.verdict.affected::before { content: "▲ "; color: var(--s2); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .8rem 0; font-size: .92rem; }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
form.contact { max-width: 640px; margin: 1rem 0; }
form.contact .field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .9rem; }
form.contact label { font-weight: 600; font-size: .92rem; }
form.contact input, form.contact select, form.contact textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--axis); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
form.contact small { color: var(--muted); font-size: .82rem; }
form.contact button { font: inherit; font-weight: 600; padding: .6rem 1.4rem; border: 0; border-radius: 8px; background: var(--s1); color: #fff; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--note-ink); background: var(--note-bg); padding: .6rem .8rem; border-radius: 8px; }

footer.site { margin-top: 3rem; border-top: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--ink-2); }
footer.site .wrap { padding-top: 1rem; padding-bottom: 1.5rem; }

@media (max-width: 560px) {
  h1 { font-size: 1.5rem; }
  .hero .figure { font-size: 2.6rem; }
  figure.bars li { grid-template-columns: 1fr; gap: 2px; padding: 3px 0; }
}
@media (forced-colors: active) {
  .bar, .sw { forced-color-adjust: none; border: 1px solid CanvasText; }
}
