:root { color-scheme: light; font: 16px/1.55 system-ui, sans-serif; background: #fafaf7; color: #20343b; --teal: #087d87; --muted: #52676d; --line: #d6dfdc; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main { max-width: 1440px; margin: auto; padding: 1.25rem clamp(1rem, 4vw, 3.5rem); }
header { padding-top: 1.5rem; padding-bottom: 0; }
a { color: #096778; text-underline-offset: .2em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; margin: .7rem 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.3; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; margin-top: 1.5rem; color: var(--muted); }
.intro { color: #40585f; font-size: 1.15rem; max-width: 76ch; margin-bottom: .5rem; }
.scope { color: var(--muted); font-size: .8rem; margin: 0 0 1.4rem; max-width: 110ch; }
.key-figures { display: flex; gap: clamp(1rem, 5vw, 4rem); margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.key-figures div { display: flex; flex-direction: column-reverse; }
.key-figures dt { font-size: .8rem; color: var(--muted); }
.key-figures dd { font-size: 2rem; line-height: 1.2; letter-spacing: -.03em; color: #075c67; }
.layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
aside { padding: 0 1.25rem 0 0; max-height: 760px; overflow-y: auto; border-right: 1px solid var(--line); }
aside h2 { margin-top: 0; }
.map-stage { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.map-toolbar p { margin: 0; font-weight: 700; white-space: nowrap; }
.map-toolbar span { color: var(--muted); font-weight: 400; }
.map-toolbar > div { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.map-toolbar button { width: auto; margin: 0; padding: .35rem .6rem; font-size: .75rem; min-height: 34px; }
#case-study { background: #eaf3f0; border-color: #87ada6; color: #145f64; }
#map { height: 470px; background: #f0f3ef; }
.map-key { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem 0; border-top: 1px solid var(--line); }
.map-key h3 { margin: 0; font-size: .8rem; }
#size-legend { display: block; width: 220px; height: 96px; max-width: 100%; }
.category-key { list-style: none; padding: .4rem 0 0; margin: 0; font-size: .75rem; color: #40585f; }
.category-key li { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.map-caption { font-size: .73rem; color: var(--muted); padding: 0 1rem; margin: .2rem 0 .9rem; }
fieldset { border: 0; padding: 0; margin: .9rem 0; }
legend { font-weight: 600; margin-bottom: .5rem; font-size: .8rem; }
.layer-options { border-block: 1px solid var(--line); margin: 1.1rem 0; padding: .75rem 0; }
summary { cursor: pointer; font-size: .85rem; font-weight: 600; }
label { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .82rem; font-weight: 600; }
fieldset label { font-weight: 400; }
input[type=checkbox] { width: 1rem; height: 1rem; accent-color: var(--teal); }
.line { width: 22px; border-top: 2px dashed #aa793e; display: inline-block; flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.reservoir { background: #39a0a4; border: 1px solid #086570; }
.intake { background: #a46b32; }
.unknown { background: transparent; border: 1.5px solid #086570; }
select, button { font: inherit; border: 1px solid #a3b3b3; border-radius: 4px; background: #fff; color: #20343b; padding: .5rem; width: 100%; margin-bottom: .85rem; min-width: 0; }
select { font-size: .8rem; min-height: 40px; }
button { cursor: pointer; }
button:hover { background: #edf3f1; }
.select-search input { width: 100%; margin-bottom: .15rem; padding: .5rem; border: 1px solid #a3b3b3; border-radius: 4px; background: #fff; color: #20343b; font: inherit; font-size: .8rem; }
.select-search label { font-size: .73rem; color: var(--muted); font-weight: 400; }
.search-hint { margin: 0 0 .3rem; font-size: .7rem !important; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #076f85; outline-offset: 3px; }
.small { font-size: .77rem; color: var(--muted); }
dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; font-size: .9rem; }
dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.detail { padding: 1rem 1.25rem; margin-top: 1.5rem; border-left: 3px solid var(--teal); background: #edf3f0; border-radius: 0 4px 4px 0; }
.detail .eyebrow { margin-top: 0; }
#detail-facts { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); overflow-wrap: anywhere; max-width: 80ch; }
#detail-source { overflow-wrap: anywhere; font-size: .8rem; }
.notes { max-width: 92ch; margin-top: 2.5rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
caption { text-align: left; padding-bottom: .75rem; color: var(--muted); font-size: .8rem; }
td, th { text-align: left; padding: .65rem; border-bottom: 1px solid var(--line); }
.leaflet-container { font: 13px/1.5 system-ui, sans-serif; color-scheme: light; }
.leaflet-tile-pane { filter: grayscale(1); opacity: .6; }
.leaflet-popup-content { overflow-wrap: anywhere; }
.leaflet-popup-content a, .leaflet-control-attribution a { color: #096778; }
.region-label { font-size: 10px; line-height: 20px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #506a68; text-align: center; white-space: nowrap; }
.facility-tooltip { max-width: 230px; white-space: normal; color: #20343b; font-size: 11px; line-height: 1.35; }
.inset-wrap { padding: 5px; background: #fff; border: 1px solid #a3b3b3; border-radius: 3px; box-shadow: none; }
.inset-title { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #40585f; padding-bottom: 2px; }
.inset-map { width: 125px; height: 70px; background: #f0f3ef; }
@media (max-width: 950px) {
 .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; }
 .map-toolbar { flex-wrap: wrap; }
 .map-key { flex-wrap: wrap; }
 .category-key { padding-top: 0; }
}
@media (max-width: 700px) {
 .layout { grid-template-columns: minmax(0, 1fr); }
 .map-stage { grid-row: 1; }
 #map { height: 280px; }
 aside { padding: 1rem 0 0; max-height: none; overflow-y: visible; border-right: 0; }
 header, main { padding-inline: 1rem; }
 .map-toolbar button { min-height: 40px; }
 .select-search input, select { font-size: 16px; }
 .key-figures { gap: 1rem; }
 .key-figures dt { font-size: .68rem; }
 .key-figures dd { font-size: 1.8rem; }
 .map-key { gap: 0; }
 .category-key { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
 .category-key li { font-size: .7rem; }
 .inset-map { width: 90px; height: 55px; }
 #detail-facts { grid-template-columns: minmax(0, 1fr); }
}
