:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1f23;
  --muted: #646b73;
  --line: #e3e0da;
  --accent: #005a9e;
  --ok: #1a7f4b;
  --warn: #b25e00;
  --bad: #c0392b;
  --head: #14202b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1b1f23;
    --text: #e8e6e1;
    --muted: #9aa0a6;
    --line: #2d3238;
    --accent: #6cb6ff;
    --ok: #4cc38a;
    --warn: #e8a13a;
    --bad: #f0786a;
    --head: #0f1215;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: var(--head); color: #fff; padding: 28px 0 24px; }
.top .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; }
.top h1 { margin: 0; font-size: 1.9rem; font-weight: 650; letter-spacing: -.01em; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { display: block; flex: none; border-radius: 10px; }
.top h1 span { color: #7fc0ff; }
.tagline { margin: 2px 0 0; color: #b9c2cb; }
.top nav { display: flex; gap: 16px; font-size: .92rem; }
.top nav a { color: #d6dde4; text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

main.wrap { padding-top: 28px; padding-bottom: 20px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.facts .k { display: block; font-size: .8rem; color: var(--muted); }
.facts .v { display: block; font-size: 1.15rem; font-weight: 600; margin-top: 2px; }
.facts .sub { display: block; font-size: .88rem; font-weight: 400; color: var(--muted); }

.check { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 32px; }
.check label { font-weight: 600; }
.verdict { flex-basis: 100%; margin: 0; color: var(--muted); }
.verdict b { color: var(--text); }

select, input[type="search"] {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; min-height: 36px;
}

.bar { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bar h2 { margin: 0; font-size: 1.2rem; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.controls input[type="search"] { width: 150px; }
.check-retired { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--muted); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child { border-bottom: 0; }
thead th { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--line) 35%, transparent); }
td.rel { font-weight: 650; }
td.mono, td.date { font-variant-numeric: tabular-nums; }
td.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9rem; }

tr.row { cursor: pointer; }
tr.row:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
tr.row td:first-child::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--muted); font-size: .8em; transition: transform .15s; }
tr.row[aria-expanded="true"] td:first-child::before { transform: rotate(90deg); }

.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.status small { color: var(--muted); font-size: .85rem; }
.st-sup { --c: var(--ok); }
.st-end { --c: var(--warn); }
.st-eol { --c: var(--bad); }
.st-eol .label { color: var(--muted); }

tr.detail > td { white-space: normal; background: color-mix(in srgb, var(--line) 18%, transparent); padding: 14px 18px 18px 36px; }
.detail h3 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.detail .cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.detail ul { margin: 0; padding-left: 18px; }
.detail li { margin-bottom: 6px; }
.detail li span { display: block; color: var(--muted); font-size: .92rem; }
.detail .tag { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid var(--line); border-radius: 99px; font-size: .7rem; color: var(--muted); }
.detail p { margin: 0 0 6px; }
.detail .links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.detail .builds { list-style: none; padding: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--muted); }
.detail .builds li { margin: 0 0 2px; }

.count { color: var(--muted); font-size: .85rem; margin: 8px 2px 0; }
.empty { padding: 24px; text-align: center; color: var(--muted); margin: 0; }
.notice { padding: 10px 14px; border: 1px solid var(--warn); border-radius: 6px; }

.about { margin-top: 36px; max-width: 70ch; }
.about h2 { font-size: 1.05rem; margin-bottom: 4px; }
.about p { margin: 6px 0; }

footer { border-top: 1px solid var(--line); padding: 16px 0 32px; color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .detail .cols { grid-template-columns: 1fr; }
  th, td { padding: 9px 10px; }
  .top h1 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
