:root { color-scheme: light; font: 16px/1.6 system-ui, sans-serif; color: #20373d; background: #fafbf8; --muted: #52676d; --line: #d4dfd9; --teal: #087c83; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1440px; margin: auto; padding: 1.75rem clamp(1rem, 4vw, 3.5rem) 3rem; }
a { color: #086572; text-underline-offset: .2em; }
.back { font-size: .8rem; }
.eyebrow { font-size: .72rem; color: var(--muted); margin: 1.75rem 0 .8rem; }
h1 { font-size: 1.5rem; line-height: 1.35; margin: 0 0 1.3rem; }
h2 { line-height: 1.3; }
.intro { font-size: 1.1rem; max-width: 70ch; margin-bottom: .75rem; }
.scope { max-width: 100ch; font-size: .8rem; color: var(--muted); }
.figures { display: flex; gap: clamp(1rem, 5vw, 4rem); padding-block: .75rem 1.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.figures div { display: flex; flex-direction: column-reverse; }
.figures dt { font-size: .78rem; color: var(--muted); }
.figures dd { font-size: 2.25rem; font-weight: 650; line-height: 1.2; margin: 0 0 .2rem; font-variant-numeric: tabular-nums; }
.map-card { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 2px; background: #fff; overflow: hidden; }
.map-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; font-size: .9rem; margin: 0; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.map-heading span { color: var(--muted); font-weight: 400; }
#map { height: 560px; background: var(--color-global-bg); cursor: default; touch-action: pan-y pinch-zoom; }
#map.leaflet-container { color: var(--color-global-text); color-scheme: inherit; font-family: var(--site-font); }
.source-legend { position: static; justify-self: end; z-index: 650; max-width: calc(100% - 32px); display: grid; gap: 4px; padding: 7px 10px; background: var(--color-global-bg); color: var(--color-global-text); font: 12px/1.45 var(--site-font); border: 1px solid var(--site-line); border-radius: 2px; pointer-events: none; }
.source-legend > span { display: flex; align-items: center; gap: .4rem; }
.source-legend small { font-size: 11px; color: var(--site-muted); }
.swatch { display: inline-block; flex: 0 0 18px; width: 18px; height: 13px; border: 1px solid var(--color-link); background: color-mix(in srgb, var(--color-link) 30%, var(--color-global-bg)); }
.swatch.selected { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 25%, var(--color-global-bg)); }
.swatch.context { border-color: var(--site-muted); background: none; opacity: .65; }
.swatch.historical { border: 1px dashed var(--color-link); background: color-mix(in srgb, var(--color-link) 20%, var(--color-global-bg)); }
.map-scene { position: relative; isolation: isolate; display: flex; flex-direction: column; flex: 1; background: var(--color-global-bg); }
.map-scene > #map { position: relative; z-index: 0; }
.map-annotations { position: absolute; top: 0; left: 0; z-index: 1; overflow: hidden; pointer-events: none; font: 13px/1.35 system-ui, sans-serif; }
.map-annotations .annotation-note-content { pointer-events: all; cursor: pointer; }
.map-annotations .annotation-note-bg { fill: var(--color-global-bg); fill-opacity: .97; }
.map-annotations .annotation-subject path { fill: none; stroke-width: 1.5px; }
.map-annotations .annotation-note-title { font-size: 1em !important; font-weight: 600 !important; fill: var(--color-global-text); }
.map-annotations .annotation-connector path { stroke-linecap: round; stroke-linejoin: round; stroke: color-mix(in srgb, var(--site-muted) 65%, var(--color-global-bg)); }
.map-annotations .is-map-active .annotation-note-title { fill: var(--color-accent); }
.map-annotations .is-map-active .annotation-connector path { stroke: var(--color-accent); }
.map-annotations .annotation-connector path, .map-annotations .annotation-note path { fill: none; stroke-width: 1.2px; }
.map-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 8px; padding: 8px 12px 0; }
.map-footer .leaflet-control { float: none; margin: 0; }
.map-footer .leaflet-control-attribution { grid-column: 1 / -1; min-width: 0; }
.map-footer .source-legend { grid-template-columns: auto auto; column-gap: 12px; max-width: 100%; }
.city-dot { position: absolute; left: 79px; top: 9px; width: 3px; height: 3px; border-radius: 50%; background: var(--site-muted); }
.annotation-context { font-size: .77rem; color: var(--muted); margin: .8rem 1rem .4rem; }
.map-caption { font-size: .73rem; color: var(--muted); margin: .25rem 1rem 1rem; }
.small { font-size: .77rem; color: var(--muted); }
.notes { max-width: 90ch; margin-top: 2.5rem; }
.notes h2 { font-size: 1.35rem; }
summary { font-weight: 600; cursor: pointer; padding-block: .5rem; }
.credit { font-size: .72rem; color: var(--muted); margin-top: 1.5rem; }
:focus-visible { outline: 3px solid #086572; outline-offset: 3px; }
[hidden] { display: none !important; }
.leaflet-container { font: 13px/1.5 system-ui, sans-serif; color-scheme: light; }
.map-card .leaflet-control-attribution { background: var(--color-global-bg); color: var(--site-muted); font: 10px/1.5 var(--site-font); }
.map-card .leaflet-control-attribution a { color: var(--color-link); }
.map-card .leaflet-control-scale-line { color: var(--site-muted); background: var(--color-global-bg); border-color: var(--site-muted); font: 10px/1.4 var(--site-font); }
.political-label { color: var(--site-muted); font: 11px/20px system-ui, sans-serif; text-align: center; pointer-events: none; white-space: nowrap; }
.political-label span { text-shadow: 0 0 3px var(--color-global-bg), 0 0 3px var(--color-global-bg); }
.political-label.country-reference { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--site-muted); }
.political-label.state-reference { font-size: 10px; font-style: italic; color: var(--site-muted); }
@media (max-width: 760px) {
 #map { height: 340px; }
 .figures { gap: 1rem; }
 .figures dt { font-size: .68rem; }
 .figures dd { font-size: 1.85rem; }
 .scope { font-size: .75rem; }
 .map-annotations { font-size: 12px; }
 .source-legend { font-size: 11px; }
 .source-legend small { font-size: 10px; }
}
@media (max-width: 600px) {
 .map-heading > span { flex-basis: 100%; }
 .source-legend { grid-template-columns: auto auto; column-gap: 12px; }
 .map-footer .source-legend { grid-column: 1 / -1; }
}
