* { box-sizing: border-box; }
:root { color-scheme: light; --map-bg:#313338; --site-font:Atkinson,"Atkinson Hyperlegible",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; --ink:#202a32; --muted:#56616b; --border:#dce2e6; --surface:#f5f7f8; }
html,body { width:100%; height:100%; margin:0; overflow:hidden; font-family:var(--site-font); color:var(--ink); background:white; }
#app { display:flex; width:100%; height:100%; height:100dvh; }
#map-area { flex:1 1 0; min-width:0; min-height:0; position:relative; background:var(--map-bg); }
#map { position:absolute; inset:0; width:100%; height:100%; }
#history-panel { flex:0 0 530px; max-width:48%; display:flex; flex-direction:column; min-height:0; background:#fff; border-left:1px solid var(--border); box-shadow:-4px 0 16px #15222b0a; z-index:2; }
.panel-header { padding:21px 20px 12px; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.eyebrow { font-size:10px; font-weight:700; letter-spacing:.13em; color:#526471; margin-bottom:7px; }
h1 { font-size:clamp(19px,2vw,26px); line-height:1.13; letter-spacing:-.045em; margin:0; font-weight:700; }
.subtitle { font-size:13px; color:var(--muted); margin:6px 0 0; }
#panel-content { overflow:auto; min-height:0; padding:0 20px 20px; }
.highlights { display:grid; grid-template-columns:1fr 1.15fr; background:var(--surface); border:1px solid var(--border); border-radius:9px; margin:5px 0 20px; }
.highlights > div { padding:13px 12px; min-width:0; }
.highlights > div+div { border-left:1px solid var(--border); }
.highlights span,.highlights small { display:block; color:var(--muted); font-size:11px; line-height:1.3; }
.highlights strong { display:block; margin:4px 0 1px; font-size:25px; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.table-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:0 0 9px; }
h2 { font-size:14px; margin:0; }
button { border:1px solid #cdd5db; background:white; color:var(--ink); border-radius:5px; padding:6px 8px; font:700 11px/1.2 var(--site-font); cursor:pointer; white-space:nowrap; }
button:hover { background:#edf2f5; }
button:focus-visible,input:focus-visible { outline:2px solid #186ac4; outline-offset:2px; }
.toggle-actions { display:flex; gap:4px; }
.table-wrap { width:100%; overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:12px; font-variant-numeric:tabular-nums; }
th { background:var(--surface); color:#47545e; font-size:10px; line-height:1.25; font-weight:700; text-align:right; vertical-align:bottom; padding:9px 5px; border-bottom:1px solid #cdd5db; }
th small { font-size:10px; font-weight:400; }
th:first-child,td:first-child { text-align:left; }
td { padding:10px 5px; text-align:right; border-bottom:1px solid var(--border); white-space:nowrap; }
td:last-child { font-weight:700; }
.period-label { display:flex; align-items:center; gap:6px; cursor:pointer; white-space:nowrap; font-weight:600; }
.period-label input { margin:0; width:14px; height:14px; flex-shrink:0; }
.swatch { width:12px; height:4px; background:var(--line); flex-shrink:0; border-radius:1px; }
tr.layer-off .period-label span { opacity:.46; }
.table-note,.methodology p { font-size:11px; line-height:1.55; color:var(--muted); }
.table-note { margin:9px 0 19px; }
.methodology { border-top:1px solid var(--border); padding-top:12px; }
.methodology summary { font-size:12px; font-weight:700; cursor:pointer; }
.methodology p { margin:8px 0; }
a { color:#285d90; }
footer { margin-top:15px; display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; color:var(--muted); font-size:10px; }
.map-actions { position:absolute; left:12px; top:12px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; z-index:1; margin-left:40px; }
.map-actions button { background:#fff; border:1px solid #cdd5db; box-shadow:0 1px 5px #20313c19; border-radius:5px; padding:7px 9px; font:700 12px/1.2 var(--site-font); }
.basemap-switch { display:flex; align-items:center; gap:5px; cursor:pointer; }
.basemap-switch input { margin:0; }
.map-caption { position:absolute; bottom:10px; left:12px; color:#64717b; font-size:10px; font-weight:700; letter-spacing:.1em; pointer-events:none; background:#ffffffd9; padding:4px 6px; border-radius:4px; }
.ol-zoom { top:12px; left:12px; }
.ol-control button { background:#fff; color:#26313b; border:1px solid #dce2e6; }
.ol-control button:hover { background:#e5edf3; }
#collapse-panel { display:none; }
@media(max-width:900px) {
 #app { flex-direction:column; }
 #map-area { flex:1 1 0; }
 #history-panel { flex:0 0 auto; max-width:100%; max-height:49%; border-left:0; border-top:1px solid var(--border); box-shadow:0 -3px 10px #15222b0d; }
 #history-panel.collapsed { max-height:none; }
 #history-panel.collapsed #panel-content { display:none; }
 #collapse-panel { display:block; }
 .panel-header { padding:10px 12px 9px; align-items:center; }
 .eyebrow { display:none; }
 h1 { font-size:20px; }
 .subtitle { font-size:11px; margin:2px 0 0; }
 #panel-content { padding:0 12px 12px; }
 .highlights { margin:4px 0 12px; }
 .highlights > div { padding:8px 10px; }
 .highlights strong { font-size:20px; }
}
@media(max-width:480px) {
 .highlights { display:none; }
 .table-heading { margin-top:4px; }
 table { font-size:10px; }
 th,td { padding:8px 3px; }
 th,th small { font-size:9px; }
 .period-label { gap:3px; }
 .period-label input { width:12px; height:12px; }
 .swatch { width:8px; }
 .map-actions { margin-left:34px; left:7px; }
 .map-actions button { font-size:11px; padding:6px; }
 .map-caption { font-size:9px; }
}

#map-area.white-background { background:#fff; }
#white-background[aria-pressed="true"] { background:#dce6ee; border-color:#596b7c; }
.ol-control button { font-family:var(--site-font); }
#map { background:transparent; }
.map-caption { background:rgba(255,255,255,.92); }
@media(max-width:480px) { th { overflow-wrap:normal; } }
