/* One shared chrome for every path. Neutral palette; light/dark follows the system. */
:root {
  --bg: #fbfbf9; --surface: #ffffff; --text: #1b1f23; --muted: #5a636d;
  --line: #dfe2e5; --accent: #1f6f5c; --accent-ink: #ffffff; --warn: #8a5a00;
  --maxw: 46rem; --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a; --surface: #1c2025; --text: #e6e8ea; --muted: #9aa3ad;
    --line: #2d333a; --accent: #5fc2a8; --accent-ink: #0d1512; --warn: #e0b04a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 var(--font); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem .75rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; padding-top: .75rem; padding-bottom: .75rem; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: .25rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
.site-header nav a[aria-current] { border-bottom: 2px solid var(--accent); }

main { padding-top: 2rem; padding-bottom: 3rem; min-height: 60vh; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.lede { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.status { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); border: 1px solid var(--line); border-radius: var(--radius); padding: .1rem .5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.cards .card { margin: 0; }
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.changelog { list-style: none; padding: 0; }
.changelog li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.changelog time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .5rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.site-footer a { color: var(--muted); }
.card > :first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
@media (max-width: 34rem) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: .6rem; } }
.changelog ul { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .95rem; }
.changelog li li { border-bottom: 0; padding: .15rem 0; }
.editions { list-style: none; padding: 0; }
.editions .ed { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.editions .ed p { margin: .25rem 0 0; }
.ed-week { font-weight: 700; } .ed-period, .muted { color: var(--muted); }
.card.current h2 { margin-top: .5rem; }
