:root {
    color-scheme: light;
    font-family: Inter, system-ui, sans-serif;
    color: #172f43;
    background: #f3f7fa;
    --muted: #425b6b;
    --border: #c7d6df;
    --link: #005969;
}
* { box-sizing: border-box; }
body { margin: 0; }
main, nav { max-width: 1320px; margin: auto; padding: 0 clamp(1rem,4vw,3rem); }
nav { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; padding-block: 1rem; font-size: .95rem; }
a { color: var(--link); text-underline-offset: .18em; }
nav a:first-child { font-weight: 750; }
.skip { position: absolute; inset-inline-start: -10000px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; padding: 1rem; background: white; z-index: 2; }
:focus-visible { outline: 3px solid #00859c; outline-offset: 2px; }
main { padding-bottom: 3rem; }
h1,h2,p { margin: 0; }
.hero { background: #103242; color: white; padding: clamp(1.5rem,4vw,3.2rem); border-radius: .85rem; }
h1 { font-size: clamp(2.6rem,6vw,4.5rem); letter-spacing: -.045em; line-height: 1.05; }
.hero p { font-size: clamp(1.1rem,3vw,1.6rem); margin-top: .6rem; }
.overview { margin-block: 1.6rem; max-width: 92ch; }
p, td, th, li { line-height: 1.5; }
.overview p + p { margin-top: .65rem; }
.downloads { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; font-size: .95rem; }
.dataset, #comparison { margin-top: 1.3rem; padding: clamp(1rem,2.5vw,1.65rem); background: white; border: 1px solid var(--border); border-radius: .75rem; }
.dataset header { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem,3vw,1.6rem); line-height: 1.25; }
.dataset header p, small, #matches { color: var(--muted); }
.dataset header p { font-size: .9rem; margin-top: .3rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
td, th { text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); padding: .65rem .5rem; }
thead th { background: #e8f2f3; color: #183b44; }
tbody th { min-width: 10rem; } td { min-width: 9rem; }
tbody tr:target { background: #e4f2f2; }
.record-link { font-weight: 500; }
td:nth-child(4) { min-width: 12rem; }
.value { font-variant-numeric: tabular-nums; white-space: nowrap; }
small { display: block; font-size: .84rem; line-height: 1.4; }
details { margin-top: .85rem; }
summary { cursor: pointer; color: var(--link); font-weight: 650; }
li { margin-bottom: .55rem; }
form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; padding: 1rem; background: #e5eff1; border-radius: .5rem; }
label { display: grid; grid-template-columns: minmax(0,1fr); gap: .2rem; min-width: 0; max-width: 100%; font-size: .86rem; font-weight: 650; }
input, select, button { max-width: 100%; font: inherit; padding: .45rem .6rem; border-radius: .3rem; border: 1px solid #788b96; background: white; color: #142e41; min-height: 2.35rem; }
button { cursor: pointer; }
select { text-overflow: ellipsis; }
#matches { margin: .7rem 0; }
#comparison > label { max-width: 32rem; margin: .65rem 0; }
#comparison > p { font-size: .9rem; color: var(--muted); }
.plot-row { display: grid; grid-template-columns: minmax(160px,1fr) minmax(130px,2fr) minmax(55px,auto); gap: .75rem; align-items: center; margin-top: .6rem; font-size: .87rem; }
.track { position: relative; border-bottom: 2px solid #b3c8ce; margin-inline: .4rem; }
.point { position: absolute; background: #006474; width: .65rem; height: .65rem; border-radius: 50%; transform: translate(-50%, -40%); }
svg { max-width: 100%; }
[hidden] { display: none !important; }
@media(max-width: 650px) { form label { flex: 1 1 100%; } .plot-row { grid-template-columns: 1fr 1fr auto; gap: .35rem; } }
