:root {
  color-scheme: light;
  --paper: #f3f0e4;
  --surface: #faf8f0;
  --ink: #1b2826;
  --muted: #4d5e59;
  --line: #c9c3ae;
  --accent: #147c73;
  --amber: #a24b24;
  --chip: #e7f0ea;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 "Segoe UI", system-ui, sans-serif; }
header, main, footer { width: min(100% - 2rem, 68rem); margin-inline: auto; }
header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; }
body > header { width: 100%; max-width: none; padding-inline: max(1rem, calc(50vw - 34rem)); background: #16343a; color: #f4f1e6; }
body > header a { color: inherit; font-weight: 650; }
a { color: #14575d; text-underline-offset: .2em; }
main { padding-block: 2.2rem 3rem; }
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", serif; letter-spacing: -.03em; line-height: 1.12; }
h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); margin: .2rem 0 .6rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4rem; }
.eyebrow { font-family: ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; font-size: .78rem; }
.intro { max-width: 42rem; font-size: 1.18rem; margin-top: 0; }
.banner { background: #f3e0c8; border-left: 4px solid var(--amber); padding: .8rem 1rem; }
.edition { color: var(--muted); min-height: 1.4em; }
section { margin-block: 1.5rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: end; }
.filters label { flex: 1 1 12rem; font-size: .86rem; font-weight: 700; }
input, select, button { font: inherit; color: var(--ink); }
input, select { display: block; width: 100%; margin-top: .25rem; padding: .6rem .7rem; min-height: 44px; border: 1px solid #7e9088; border-radius: 4px; background: var(--surface); }
button { min-height: 44px; padding: .55rem .9rem; border: 1px solid #7e9088; border-radius: 4px; background: var(--chip); cursor: pointer; }
button[aria-pressed="true"] { background: #cfe3d4; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.chips button { min-height: 40px; padding: .35rem .7rem; }
.finding { background: #e5efe6; border-left: 5px solid var(--accent); padding: .9rem 1rem; font-weight: 650; margin: 1rem 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.stats div { background: var(--surface); border: 1px solid var(--line); padding: .7rem .8rem; }
.stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stats dd { margin: .15rem 0 0; font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 700; }
.map-head { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; }
.map-frame { background: #e7efe8; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
#map { display: block; width: 100%; height: clamp(320px, 52vw, 540px); }
.maplibregl-ctrl-attrib { font-size: .72rem; background: rgba(250, 248, 240, .9); }
.maplibregl-ctrl-attrib a { color: #14575d; }
.maplibregl-ctrl-group { border-color: #c9c3ae; }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-popup-content { font: .92rem/1.4 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--surface); }
.track { margin: .8rem 0; }
.track p { margin: 0 0 .25rem; font-size: .9rem; }
.rail { position: relative; height: 18px; background: #ddd6c2; border-radius: 99px; }
.pip { position: absolute; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.pip.bunched { background: var(--amber); }
.scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 700; padding: .4rem 0; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.no-speed th:nth-child(6),
table.no-speed td:nth-child(6) { display: none; }
.late { color: var(--amber); font-weight: 700; }
.stale { color: var(--amber); }
.note, aside, footer { color: var(--muted); }
aside { border-left: 3px solid var(--line); padding-left: 1rem; margin-top: 2rem; }
footer { border-top: 1px solid var(--line); padding-block: 1.2rem 2rem; font-size: .92rem; }
#alerts { padding-left: 1.1rem; }
#alerts li { margin: .3rem 0; }
:focus-visible { outline: 3px solid #ca6c1b; outline-offset: 3px; }
.skip { position: absolute; top: -10rem; left: 1rem; padding: .5rem; background: var(--surface); }
.skip:focus { top: .5rem; }
[hidden] { display: none !important; }
@media (max-width: 40rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main { padding-block: 1.4rem 2rem; }
  h1 { margin-top: .4rem; }
  th, td { white-space: normal; }
}
