/* 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; }
.site-header nav .nav-note { font-size: .8em; color: var(--muted); font-style: italic; }
.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; }
/* JSON-rendered editions */
.chip { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: .05rem .4rem; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; }
.chip-verified { color: #1a7f4b; } .chip-reported { color: var(--warn); } .chip-unverified { color: #b4532a; } .chip-corrected { color: #a1262b; } .chip-refused { color: var(--muted); }
@media (prefers-color-scheme: dark) { .chip-verified { color: #5fc29a; } .chip-unverified { color: #ec835a; } .chip-corrected { color: #ef7b7b; } }
.draft-banner { border: 2px solid #b4532a; background: rgba(180, 83, 42, .12); padding: .9rem 1.1rem; border-radius: var(--radius); margin: 0 0 1.25rem; }
.tblwrap { overflow-x: auto; }
table.data { display: table; width: 100%; font-size: .88rem; min-width: 38rem; }
.feedlist { list-style: none; padding: 0; } .feedlist li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.feedlist time { color: var(--muted); margin-right: .5rem; font-variant-numeric: tabular-nums; }
.sourcelist { font-size: .85rem; } .sourcelist li { margin: .25rem 0; overflow-wrap: anywhere; }
.cards .card b { font-size: 1.5rem; display: block; }

/* Masthead (dispatch 15 A1): name, edition state, category line, thesis. The last two always travel together. */
.site-header .wrap { align-items: flex-start; }
.masthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .75rem; flex: 1 1 22rem; }
.masthead .brand { font-size: 1.25rem; }
.masthead .edition-state { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.masthead .lineage { flex-basis: 100%; }
.masthead .lineage p { margin: 0; }
.masthead .category { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.masthead .thesis { font-size: .85rem; color: var(--muted); }
.site-header nav { padding-top: .35rem; }
/* Footer: limit line and credit as a pair; the credit is plain text, small and muted. */
.site-footer .wrap > .limit { flex-basis: 100%; margin: .25rem 0 0; font-size: .85rem; }
.site-footer .wrap > .credit { flex-basis: 100%; margin: 0; text-align: center; font-size: .75rem; letter-spacing: .08em; opacity: .75; }
