@font-face{font-family:Manrope;src:url('/manrope.woff2') format('woff2');font-weight:400 800;font-display:swap}
:root{color-scheme:light;--paper:#eff4f7;--card:#fff;--ink:#16242f;--muted:#52626f;--line:#dce5ea;--forest:#10304a;--lime:#a2d9f6;--blue:#1b69a1;font-family:Manrope,system-ui,sans-serif;font-size:14px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink)}
button,input,select{font:inherit;color:inherit}
button,a,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid #0a4f88;outline-offset:3px}
svg{display:block;width:19px;height:19px;flex:none;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
.wide{width:min(1336px,calc(100% - 92px));margin-inline:auto}
.mast{height:72px;background:#f6fafc;border-bottom:1px solid #e0e8ed}
.mast-inner{height:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:800;line-height:1.15;letter-spacing:-.6px;width:max-content}
.brand strong{color:#28567b}
.brand small{display:block;font-size:8px;font-weight:800;letter-spacing:1.05px;color:#5a6b78;margin-top:5px}
.brand-icon{width:40px;height:40px;display:grid;place-items:center;background:#11314b;border-radius:12px;color:#b0def7}
.brand-icon svg{width:24px;height:24px}
nav{display:flex;height:100%;align-items:center;gap:34px}
nav a{position:relative;height:100%;display:grid;place-items:center;font-size:13px;font-weight:750;color:var(--muted)}
nav a.active,nav a:hover{color:var(--forest)}
nav a.active:after{content:"";position:absolute;bottom:0;width:100%;height:2px;background:#235075;border-radius:2px}
.source-link{justify-self:end;display:flex;align-items:center;gap:8px;border:1px solid #d6e2e9;border-radius:8px;font-size:12px;font-weight:800;padding:8px 11px;background:#fff}
.source-link svg,.map-footer a svg,.footer a svg{width:14px;height:14px}
.source-link:hover{background:#e6f0f5}
.hero{isolation:isolate;position:relative;overflow:hidden;margin-top:25px;min-height:206px;border-radius:17px;background:linear-gradient(110deg,#0c2030 4%,#112d44 61%,#20425e);color:#eef5f9;display:flex;align-items:flex-end;justify-content:space-between;padding:28px 34px 27px;gap:22px}
#contours{width:100%;height:100%;position:absolute;inset:0;z-index:-1;pointer-events:none}
.hero-copy{min-width:0}
.eyebrow{color:#a4d5f0;display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:2.1px;font-size:10px}
.eyebrow span{width:15px;height:1px;background:#92c3dd}
h1,h2,h3,p{margin:0}
.hero h1{font-size:clamp(36px,5.3vw,72px);font-weight:800;line-height:1.04;letter-spacing:-.068em;margin:9px 0 10px}
.hero p{color:#d6e4eb;font-size:14px;font-weight:500;line-height:1.55;max-width:490px}
.hero-status{flex:none;min-width:245px;display:flex;align-items:center;gap:11px;padding:11px 10px 11px 13px;border:1px solid #ffffff31;background:#0e2940c9;backdrop-filter:blur(8px);border-radius:10px}
.hero-status strong,.hero-status div>span{display:block}
.hero-status strong{font-weight:800;font-size:12px}
.hero-status div>span{font-size:10px;margin-top:4px;color:#cedfe9;white-space:nowrap}
.signal{width:8px;height:8px;background:#93c4df;border-radius:50%;box-shadow:0 0 0 4px #93c4df31;flex:none}
.signal.live{background:#90d2f5;box-shadow:0 0 0 4px #90d2f530}
.signal.saved{background:#f8d495;box-shadow:0 0 0 4px #f8d49530}
.signal.error{background:#f8a992;box-shadow:0 0 0 4px #f8a99230}
.mini-icon{background:#ffffff10;border:0;border-radius:7px;color:#dce7ed;width:31px;height:31px;display:grid;place-items:center;margin-left:auto}
.mini-icon:hover{background:#ffffff28}
.mini-icon svg{width:15px;height:15px}
.mini-icon.busy svg{animation:spin 1.2s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.explorer{padding-top:25px;scroll-margin-top:12px}
.explore-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:15px}
h2{font-size:26px;letter-spacing:-1.15px;font-weight:800;line-height:1.18}
.explore-head p{font-size:13px;color:var(--muted);margin-top:5px}
.filters,.segmented{display:flex;align-items:center;gap:7px}
.filters{gap:9px;flex-wrap:wrap}
.region-select{display:flex;align-items:center;position:relative;min-width:192px;border-radius:8px;border:1px solid #d7e3e9;background:#fff;min-height:38px}
.region-select>span{position:absolute;pointer-events:none;left:10px;color:#3e607c}.region-select>span.chev{left:auto;right:9px}
.region-select svg{width:15px;height:15px}
.region-select select{appearance:none;width:100%;height:38px;border:0;background:transparent;padding:0 27px 0 31px;font-size:12px;font-weight:800;border-radius:8px;cursor:pointer}
.segmented{background:#e2ebf0;border:1px solid #dce5ea;border-radius:8px;padding:3px;gap:2px;min-height:40px}
.segmented button{border:0;background:transparent;border-radius:5px;font-weight:800;font-size:12px;white-space:nowrap;padding:7px 10px;color:#4d5f6d}
.segmented button.selected{background:white;color:#11334e;box-shadow:0 1px 3px #1e334416}
.segmented button:hover:not(.selected){background:#dce6eb}
.segmented.units button{padding-inline:7px}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.metric{display:flex;align-items:center;gap:12px;min-height:88px;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 1px 1px #182b3a05}
.metric-icon{display:grid;place-items:center;width:39px;height:39px;flex:none;border-radius:10px}
.metric-icon.mint{color:#1e496c;background:#e5eff4}.metric-icon.blue{color:#246489;background:#e5f1f7}.metric-icon.sand{color:#786435;background:#f5efde}
.metric-text{min-width:0;flex:1}
.metric p{color:#4e5e6c;font-size:11px;font-weight:800}
.metric strong{display:block;font-size:25px;letter-spacing:-1.05px;font-weight:800;line-height:1.24;font-variant-numeric:tabular-nums;white-space:nowrap}
.metric strong small{font-size:13px;letter-spacing:0;color:#4c5f6e;margin-left:3px}
.metric-text>span{display:block;font-size:10px;color:#526472;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:14px;align-items:stretch}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 2px 4px #1c2b3808}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:62px;padding:10px 15px}
.card-title{display:flex;align-items:center;gap:10px}
.card-title>span{width:33px;height:33px;background:#e8f1f6;color:#234b6c;display:grid;place-items:center;border-radius:8px;flex:none}
.card-title>span svg{width:17px;height:17px}
.card-title h3{font-size:15px;font-weight:800;letter-spacing:-.32px}
.card-title p{font-size:10px;color:#5a6b78;margin-top:2px}
.dry-toggle{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.dry-toggle input{position:absolute;opacity:0;width:29px;height:17px;margin:0}
.toggle-track{display:block;position:relative;width:29px;height:17px;border-radius:10px;background:#98a7af}
.toggle-track:after{content:"";position:absolute;width:11px;height:11px;top:3px;left:3px;background:#fff;border-radius:50%;transition:transform .14s}
.dry-toggle input:checked+.toggle-track{background:#2c5e87}
.dry-toggle input:checked+.toggle-track:after{transform:translateX(12px)}
.dry-toggle input:focus-visible+.toggle-track{outline:2px solid #0a4f88;outline-offset:3px}
.map-stage{position:relative;height:clamp(452px,45vw,588px);background:#d5e3ea;overflow:hidden;border-block:1px solid #cedbe2}
#map{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}
.map-touch-bar{display:none}
@media(any-pointer:coarse){
  .map-touch-bar{display:block;padding:4px 12px;background:#eef6fb;color:#345771;font-size:11px;font-weight:750}
  .map-stage .map-controls button{width:44px;height:44px}
  .map-popup button#close-popup{width:40px;height:40px;margin:-6px -6px -6px 0}
}
#map.dragging{cursor:grabbing}
#map.over-station{cursor:pointer}
.map-controls{position:absolute;top:12px;right:12px;display:grid;border-radius:9px;border:1px solid #d0dce3;background:white;box-shadow:0 2px 7px #1f334422;overflow:hidden}
.map-controls button,.station-footer button,.map-popup button,.station-star{background:white;border:0;color:#2f4a61;display:grid;place-items:center}
.map-controls button{width:34px;height:34px}
.map-controls button+button{border-top:1px solid #e2e8ec}
.map-controls button:hover,.station-footer button:hover,.map-popup button:hover,.station-star:hover{background:#e8f0f5}
.map-controls svg{width:17px;height:17px}
.legend{position:absolute;left:12px;bottom:13px;padding:8px 10px;max-width:calc(100% - 16px);background:#fffffff2;box-shadow:0 1px 6px #1f334423;border:1px solid #f2f8fb;border-radius:8px;pointer-events:none}
.legend>span,.station-label{font-size:9px;font-weight:800;letter-spacing:.7px;color:#4a5c6b}
#legend-items{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin-top:5px}
.legend-item{display:grid;justify-items:center;gap:3px;min-width:26px;font-size:10px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.legend-item i,#forecast-colors i,#observed-colors i{width:100%;height:9px;display:block;border:1px solid #20374948;border-radius:3px}
.station-dot{width:10px;height:10px;display:block;border:1px solid #20374948;border-radius:50%;flex:none}
.attribution{position:absolute;bottom:0;right:0;font-size:8px;padding:3px 5px;background:#f3f9fcd9;color:#435563;pointer-events:none}
.map-footer{display:flex;min-height:37px;align-items:center;justify-content:space-between;gap:8px;padding:6px 14px;color:#5a6b79;font-size:10px}
.map-footer a,.footer a{display:flex;align-items:center;gap:5px;color:#1e4b70;font-weight:800}
.map-footer a:hover,.footer a:hover{text-decoration:underline}
.station-card .card-head{border-bottom:1px solid #eaeff2}
.station-body{padding:11px 13px 9px}
.search{display:flex;align-items:center;gap:8px;padding:0 9px;border:1px solid #dae3e8;background:#f4f9fb;border-radius:8px}
.search svg{width:15px;height:15px;color:#5e768a}
.search input{height:35px;width:100%;min-width:0;background:none;border:0;outline:none;font-size:11px}
.search:focus-within{outline:2px solid #1f5785;outline-offset:1px}
.search input:focus-visible{outline:none}
.station-tabs{display:flex;gap:13px;border-bottom:1px solid #e4ecf0;margin-top:8px}
.station-tabs button{padding:9px 2px 8px;border:0;border-bottom:2px solid transparent;background:none;color:#5d6e7c;font-size:11px;font-weight:800}
.station-tabs button.selected{color:#1a486d;border-bottom-color:#2e5e86}
.station-tabs span{font-size:9px;padding:1px 5px;border-radius:12px;background:#e9f1f5;margin-left:2px}
.station-label{padding:10px 24px 7px 2px;display:flex;justify-content:space-between}
.station-row{display:flex;align-items:center;min-height:46px;border-top:1px solid #eaeff2;gap:4px}
.station-main{display:flex;align-items:center;width:100%;min-width:0;gap:8px;border:0;background:none;text-align:left;padding:6px 0 6px 2px}
.station-main:hover .station-name,.station-row.active .station-name{color:#134f80}
.station-row.active{background:#edf4f7}
.station-text{min-width:0;flex:1}
.station-name,.station-id{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.station-name{font-size:11px;font-weight:800}
.station-id{font-size:9px;color:#5a6c7a;margin-top:2px;font-weight:650}
.station-value{font-size:12px;font-weight:800;color:#174e68;width:52px;flex:none;text-align:right;font-variant-numeric:tabular-nums}
.station-star{border-radius:5px;width:22px;height:25px;flex:none;color:#6f8699;padding:0}
.station-star svg{width:13px;height:13px}
.station-star.starred{color:#966c21}.station-star.starred svg{fill:#ebcb74}
.station-footer{display:flex;justify-content:center;align-items:center;gap:10px;color:#4d5f6d;font-size:10px;margin-top:8px;font-weight:750}
.station-footer button{border:1px solid #dee6eb;border-radius:6px;height:25px;width:25px}
.station-footer button:disabled{opacity:.35;cursor:default;background:white}
.station-footer svg{width:13px;height:13px}
.empty{padding:18px 5px;font-size:12px;color:var(--muted)}
.hover-tip,.map-popup{position:absolute;z-index:2;background:white;border:1px solid #d8e4eb;border-radius:8px;box-shadow:0 3px 14px #162b3d2e}
.hover-tip{pointer-events:none;font-size:11px;font-weight:800;padding:6px 8px;max-width:210px}
.map-popup{width:211px;padding:11px 10px;line-height:1.35}
.map-popup-head{display:flex;align-items:start;justify-content:space-between;gap:5px}
.map-popup h4{font-size:13px;margin:0;font-weight:800}
.map-popup p{font-size:10px;color:#526779;margin:3px 0 7px}
.map-popup button{width:20px;height:21px;border-radius:4px;flex:none}
.map-popup button svg{width:14px;height:14px}
.map-popup strong{font-size:22px;color:#155671;letter-spacing:-.68px;display:block;margin-bottom:4px}
.map-popup a{font-size:10px;color:#1e4b70;font-weight:800}
.map-popup a:hover{text-decoration:underline}
.footer{display:flex;justify-content:space-between;gap:14px;padding:16px 0 23px;margin-top:24px;border-top:1px solid #dbe4e9;color:#536574;font-size:10px}
.footer a{white-space:nowrap}
@media(max-width:1050px){.wide{width:calc(100% - 48px)}.map-layout{grid-template-columns:minmax(0,1fr) 327px}.hero{min-height:184px}.hero h1{font-size:clamp(40px,6.3vw,67px)}}
@media(max-width:740px){.wide{width:calc(100% - 28px)}.mast{height:58px}.mast-inner{grid-template-columns:1fr auto}.mast nav{display:none}.hero{margin-top:14px;min-height:0;padding:22px 17px;flex-direction:column;align-items:start;gap:14px}.hero h1{font-size:clamp(36px,9.5vw,59px)}.hero p{font-size:12px}.hero-status{min-width:220px;padding:6px 8px 6px 10px}.explorer{padding-top:19px}.explore-head{align-items:start;flex-direction:column;gap:10px;margin-bottom:12px}.filters{gap:5px}.region-select{min-width:0}.region-select select{max-width:185px}.segmented button{padding-inline:8px}.metrics{gap:5px;margin-bottom:12px}.metric{min-height:70px;padding:6px;gap:4px}.metric-icon{width:22px;height:22px;border-radius:5px}.metric-icon svg{width:13px;height:13px}.metric p{font-size:8px}.metric strong{font-size:17px;letter-spacing:-.5px}.metric strong small{font-size:9px}.metric-text>span{font-size:8px}.map-layout{grid-template-columns:1fr;gap:12px}.map-card{margin-inline:-10px}.map-stage{height:clamp(360px,74svh,720px)}.map-controls{top:9px;right:9px}.legend{left:6px;bottom:13px;padding:6px}.legend-item{font-size:9px;min-width:0}#legend-items{gap:3px}.station-body{padding-inline:14px}.footer{flex-direction:column}.brand{font-size:16px}.brand small{font-size:7px}.brand-icon{width:34px;height:34px}.source-link{font-size:10px}}
@media(max-width:360px){.region-select select{max-width:139px}.metric-icon{display:none}.legend-item{font-size:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.layerbar,#hydro-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 15px;background:#f4f9fb;border-top:1px solid var(--line);font-size:11px}
.layerbar>span{color:var(--muted);font-weight:800}.layerbar label{display:flex;align-items:center;gap:4px;cursor:pointer;font-weight:700}.layerbar input{accent-color:#1f527c;margin:0}
.river-symbol,.dam-symbol{display:inline-block;width:10px;height:10px;background:#063357;clip-path:polygon(50% 0,100% 100%,0 100%)}
.dam-symbol{background:#b96b14;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
#hydro-tools select,.year-controls select{font:inherit;border:1px solid #d3dfe6;border-radius:6px;padding:5px;background:white;max-width:100%}#water-status{font-size:10px;color:var(--muted)}
.outlook{padding-top:28px}.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.insight{padding:18px;min-width:0}.insight-head{display:flex;align-items:center;justify-content:space-between}.insight-head button{background:#eaf2f7;border:0;border-radius:6px;padding:3px 9px;color:#1b4567}.insight h3{font-size:18px;letter-spacing:-.6px}.sub,.year-controls,#weather-content,#history-content{font-size:12px;color:var(--muted);line-height:1.5}.insight .sub{margin:5px 0 12px}.year-controls{display:flex;gap:16px;flex-wrap:wrap}.year-controls label{font-weight:700}.year-controls select{margin-left:4px}.compare-values{display:flex;gap:24px}.compare-values small,.compare-values b{display:block}.compare-values b{font-size:21px}#history-chart{width:100%;height:150px;display:block}.forecast-rows{max-height:238px;overflow:auto}.forecast-rows details{border-bottom:1px solid var(--line)}.forecast-rows summary{display:grid;grid-template-columns:minmax(88px,1fr) 52px 1.5fr;align-items:center;gap:5px;padding:7px 3px;cursor:pointer}.forecast-rows summary span{color:var(--ink);font-weight:750}.forecast-rows summary small{font-size:11px}.forecast-rows details p{padding:3px 5px 9px}
@media(max-width:740px){.insight-grid{grid-template-columns:1fr}.layerbar{gap:8px}.year-controls{gap:7px}}

:root{--paper:#f1f6fa;--ink:#102e48;--muted:#526c82;--line:#d7e3ec;--forest:#0e4d75;--lime:#a5e1ff;--blue:#1463ae}
.mast{background:#fbfdff}.hero{background:linear-gradient(110deg,#071c3d 0%,#0b3659 50%,#166995 100%);box-shadow:0 12px 30px -22px #072846}
.hero h1 em{font-style:normal;color:#aeeaff}.eyebrow{color:#b1e4ff}.hero p{color:#daedfa}.hero-status{background:#052d50b8}
.metric{border-top:2px solid #b1cde1}.metric:nth-child(2){border-top-color:#59c8e3}.metric:nth-child(3){border-top-color:#4083cf}
.metric-icon.sand{color:#304fa0;background:#edf0fc}.insight{padding:22px}
#history-chart{height:196px;background:linear-gradient(180deg,#f5fbff,#fff);border-radius:8px}
.chart-controls{background:#edf5fb;border-radius:8px;padding:8px 12px;align-items:center;margin:10px 0 4px}
.compare-values{gap:20px}.compare-values b{font-size:26px;letter-spacing:-1px}
#map-popup .hydro-reading{display:block;color:#075788;font-size:23px;letter-spacing:-.8px;font-weight:800}
#map-popup .fill-track{height:5px;margin:6px 0 10px;border-radius:5px;background:#e3eff8;overflow:hidden}
.fill-track i{height:100%;display:block;background:linear-gradient(90deg,#45c3f0,#1868b1);border-radius:inherit}

.hero{background:linear-gradient(94deg,#081f36f5 0%,#102e4ee0 29%,#1c344c54 67%,#10223125),var(--landscape,url('/salinas-valley.webp')) 60% var(--landscape-position,52%) / cover;min-height:174px;padding:18px 29px 18px}
#contours{opacity:.21}.hero-status{border-color:#b0d4ed5c}.hero-credit{position:absolute;right:14px;top:12px;color:white;font-size:9px;text-shadow:0 1px 4px #102741;background:#10243d70;padding:3px 7px;border-radius:4px}
.dam-symbol{background:#1466b5}.river-symbol{background:#5843a0}

.compare-values span{border-left:3px solid currentColor;padding:2px 12px}
.chart-controls label:first-child{color:#1269ae}.chart-controls label:last-child{color:#6455a9}
.insight a:hover{text-decoration:underline}.chart-controls select{color:#122e49;background:white;font-weight:800}
.mast nav{gap:26px}

#reservoir-only{margin-left:auto;padding:4px 9px;color:#134d80;background:#edf6fc;border:1px solid #c9ddeb;border-radius:6px;font-weight:800}
#reservoir-only:hover{background:#dceffc}.layerbar label:has(input:disabled),.dry-toggle:has(input:disabled){opacity:.55;cursor:default}

.label-setting select,#water-search{color:#163e63;border:1px solid #cbddeb;border-radius:7px;background:#fff;padding:5px 8px;font:inherit}
#water-search{width:175px;max-width:100%}.label-setting{margin-left:auto}
#reservoir-only{margin-left:0}
@media(max-width:740px){.label-setting{margin-left:0}}

.forecast-switch{color:#174e82}
.forecast-legend{position:absolute;right:12px;bottom:18px;max-width:calc(100% - 24px);background:#fbfdfff5;border:1px solid #cddfed;border-radius:9px;padding:8px 10px;box-shadow:0 2px 9px #18345124;font-size:10px;color:#365a73}
.forecast-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#153d63}
.forecast-heading a{font-size:9px;font-weight:700;text-decoration:underline}
#forecast-window,#observed-window{margin-top:3px;font-size:9px}
#forecast-colors,#observed-colors{display:flex;align-items:center;gap:5px;margin-top:5px;flex-wrap:wrap}
#forecast-colors:empty,#observed-colors:empty{display:none}
#forecast-colors span,#observed-colors span{display:grid;justify-items:center;gap:2px;min-width:25px;font-weight:750;font-variant-numeric:tabular-nums}
.map-stage:has(.forecast-legend:not([hidden])) .legend{top:12px;bottom:auto}

.map-side{display:grid;grid-template-rows:auto minmax(0,1fr);gap:13px;min-width:0;min-height:0;contain:size}.wateryear{padding:13px 15px;border-top:3px solid #3c9bce}
.wateryear #history-location{margin:2px 0 8px;color:#355e7d;font-weight:750}
.water-year-score{display:flex;align-items:center;gap:9px;color:#194970;padding:6px 0}.water-year-score>b{font-size:31px;letter-spacing:-1.7px;line-height:1}
.water-year-score span{font-weight:800}.water-year-score small{display:block;font-weight:500;color:var(--muted);font-size:10px}
.wateryear .compare-values{gap:9px;margin-top:4px}.wateryear .compare-values b{font-size:19px}.wateryear .chart-controls{gap:8px;padding:5px 7px;font-size:10px}.wateryear #history-chart{height:118px}
.water-year-source{margin-top:4px;font-size:10px;color:#3a6381}
@media(max-width:740px){.map-side{gap:11px}.wateryear #history-chart{height:138px}}
.floodbar{margin:0;padding:6px 14px 8px;border:0;border-top:1px solid var(--line);display:flex;gap:8px 14px;flex-wrap:wrap;color:#264c6b;background:#f3f8fc;font-size:11px}
.floodbar legend{float:left;padding:2px 10px 1px 0;font-weight:850}.floodbar label{display:flex;align-items:center;gap:5px;font-weight:750;white-space:nowrap}.floodbar input{margin:0;accent-color:#226499}
.swatch{width:10px;height:8px;border-radius:2px}.swatch.flood-zone{background:#62a9c5}.swatch.flood-prediction{background:#ad67c5}.swatch.flash-warning{background:#e44944}
.flood-status{padding:6px 14px;color:#405c74;font-size:11px;background:#fbfdff;border-top:1px solid var(--line)}
.flood-status a{color:#145180;font-weight:750;text-decoration:underline}.flood-status summary{cursor:pointer;font-weight:750;color:#a32a2a}
.flood-status p{margin:3px 0}.flood-status #flood-messages{display:flex;gap:5px 13px;flex-wrap:wrap}

.hero h1{font-size:clamp(34px,5.1vw,66px);margin:5px 0 7px}
.hero-credit a:hover{text-decoration:underline}
.map-side .station-card,.map-side .station-body{display:flex;flex-direction:column;min-height:0}
.map-side .station-body{flex:1}
.map-side .station-list{min-height:0;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;flex:1}
.map-side .station-footer{flex:none}
.outlook{padding-top:16px}
.outlook .insight-grid{grid-template-columns:minmax(0,1.13fr) minmax(0,1fr)}
.rain-timing .insight-head>span{color:#2d83b4}
#rain-timing-content{color:var(--muted);font-size:12px}
.rain-peak{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 8px;color:#234e71}
.rain-peak strong{font-size:32px;line-height:1.1;letter-spacing:-1.4px;font-variant-numeric:tabular-nums}
.rain-peak span{font-size:12px;font-weight:750}
.rain-periods{display:grid;gap:1px}
.rain-period{display:grid;grid-template-columns:minmax(80px,1.05fr) minmax(55px,1.8fr) 34px;align-items:center;gap:10px;width:100%;padding:5px 4px;border:0;border-radius:5px;background:transparent;text-align:left;font:inherit;color:#254e6e}
.rain-period:hover{background:#eaf4fb}
.rain-period b{text-align:right;font-variant-numeric:tabular-nums}
.rain-track{height:7px;border-radius:99px;background:#e5eff6;overflow:hidden}
.rain-track i{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#62bfdf,#2167a6)}
@media(max-width:740px){
  .hero{min-height:0;padding:20px 16px 15px;gap:10px;background-position:57% 52%}
  .hero h1{font-size:clamp(32px,9vw,52px);margin-top:8px}
  .hero-credit{top:5px;right:6px;font-size:7px;padding:2px 4px}.hero-credit .image-crop{display:none}
  .map-side{contain:none;grid-template-rows:auto auto}
  .map-side .station-list{max-height:220px}
  .outlook .insight-grid{grid-template-columns:minmax(0,1fr)}
}
.fishing{margin-top:24px;padding:20px;border:1px solid #cbdfe8;border-radius:15px;background:#f1f7fb;scroll-margin-top:12px}
.fish-head,.fish-filters,.fish-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.fish-head h1{font-size:25px;letter-spacing:-.7px;color:#153d59}
.fish-regulations,.forecast-fishing-link{display:inline-flex;align-items:center;gap:6px;color:#204f77;font-size:11px;font-weight:800}
.fish-regulations svg{width:13px;height:13px}.forecast-fishing-link{margin-top:10px}
.fish-filters{margin-top:13px;padding-bottom:10px;border-bottom:1px solid #d3e3ea}
#fishing-regions,.fish-tools{display:flex;gap:5px;flex-wrap:wrap}
.fish-tools{flex:0 1 auto}
#fishing-regions button,.fish-tools select,.fish-tools input,.fish-actions .fish-map-link,[data-fishing-retry]{border:1px solid #c7dbe4;border-radius:7px;background:white;padding:6px 9px;color:#244f6a;font-size:11px;font-weight:800}
.fish-tools input{width:155px;font-weight:600}.fish-tools input::placeholder{color:#566d80}
#fishing-regions button.selected{background:#1c5270;border-color:#1c5270;color:#fff}
#fishing-regions button:hover:not(.selected),.fish-actions .fish-map-link:hover{background:#e7f5fb}
#fishing-status,.fish-footer{font-size:11px;color:#475f72}
#fishing-status{margin:8px 0 10px;font-weight:700}
.fish-grid{display:grid;gap:15px}.fish-grid:empty{display:none}
.fish-region-title{font-size:13px;color:#235171;margin:0 0 6px;letter-spacing:.1px}
.fish-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.fish-card{display:flex;flex-direction:column;gap:5px;min-width:0;padding:9px 10px;border:1px solid #d3e2e9;border-radius:9px;background:#fff}
.fish-highlight{border-color:#8bbcd9;box-shadow:inset 3px 0 #4285b2}
.fish-card-head{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:7px;row-gap:2px}
.fish-card h3{color:#173d59;font-size:14px;line-height:1.25;letter-spacing:-.2px}
.fish-lead{color:#225d87;font-size:10px;font-weight:800;white-space:nowrap}
.fish-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;color:#4e6577;font-size:10px;line-height:1.4}
.fish-meta>*+*::before{content:"·";display:inline-block;margin-right:6px;color:#647f92}
.fish-meta b,.fish-meta a{color:#1c587d;font-weight:800}
.fish-meta .fish-flood{color:#8b3323}.fish-age{color:#785320}
.fish-card p.fish-summary{font-size:12px;color:#314e64;line-height:1.4;margin:0}
.fish-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:auto;padding-top:3px}
.fish-actions a,.fish-footer a{color:#1d577e;font-size:10px;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.fish-actions .fish-map-link{margin-left:auto;text-decoration:none;flex:none;font-size:10px;padding:4px 6px}.fish-footer{margin-top:11px}
@media(max-width:900px){.fish-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.fishing{padding:12px}.fish-cards{grid-template-columns:1fr} .fish-head h1{font-size:22px}.fish-tools{width:100%}.fish-tools input{flex:1;min-width:0}.fish-actions .fish-map-link{padding:6px 8px}}

.hero{margin-top:15px}
.map-modes{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 13px;border-top:1px solid var(--line)}
.map-modes a{color:#155281;font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.map-modes .segmented{min-height:0}.map-modes .segmented button{padding:5px 10px}
.map-layer-options{border-block:1px solid var(--line)}
.map-layer-options summary{padding:6px 14px;color:#284c69;font-size:11px;font-weight:800;cursor:pointer}
.map-layer-options .layerbar{padding:6px 14px}
.water-map-legend{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap;padding:8px 14px;font-size:10px;color:#405c73;background:#f7fbfe}
.water-map-legend a{color:#235e87;font-weight:800}
.water-map-legend span{display:inline-flex;align-items:center;gap:5px}
.water-map-legend i{display:inline-block;width:30px;height:7px;border-radius:2px}
#river-heat-key i{background:linear-gradient(90deg,#4f95cb 20%,#168657 20% 40%,#da9826 40% 60%,#d83143 60% 80%,#647d8c 80%)}
#lake-fill-key i{background:linear-gradient(90deg,#dcecf9,#126fac);outline:1px solid #81abc9}
@media(max-width:420px){.map-modes{padding-inline:7px}.map-modes a{font-size:10px}.map-modes .segmented button{padding-inline:6px}}

.site-pages{display:flex;gap:5px;margin-top:12px;font-size:12px;font-weight:800;color:#244f6a}
.site-pages a{padding:8px 12px;border-radius:8px}
.site-pages a[aria-current=page]{background:#e3eff6;color:#163d5b}
.site-pages a:hover{background:#edf6fb}
.fishing-page .fishing{margin:14px 0 26px}

.rain-key{background:#f7fbfe;border-bottom:1px solid #dce5ea;color:#294d68}
.rain-key summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 14px;cursor:pointer;list-style:none;font-size:14px}
.rain-key summary::-webkit-details-marker{display:none}
.rain-key summary:focus-visible{outline:2px solid #0a4f88;outline-offset:-3px}
#rain-strip{display:flex;width:66px;height:7px;border-radius:3px;overflow:hidden}
#rain-strip i{flex:1}
#rain-range{font-size:12px}
.key-chevron{margin-left:auto}.key-chevron svg{width:16px;height:16px}.rain-key[open] .key-chevron{transform:rotate(180deg)}
.key-body{display:grid;gap:10px;padding:0 14px 12px}
.key-body .legend,.key-body .forecast-legend{position:static;padding:0;border:0;border-radius:0;box-shadow:none;background:none;max-width:100%;pointer-events:auto}
.key-body .legend>span,.key-body .forecast-heading,.key-body .forecast-heading a,.key-body #observed-window,.key-body #forecast-window{font-size:12px;letter-spacing:0}
.key-body #legend-items{max-width:430px}.key-body .legend-item{font-size:12px;min-width:0}
.key-body:has(.legend:not([hidden])) :is(#forecast-colors,#observed-colors){display:none}
@media(max-width:390px){.key-body #legend-items{grid-template-columns:repeat(4,1fr)}}

#water-status,.map-popup p.reading-date{color:#254863;font-weight:750;font-size:12px}

.rain-time-controls{display:flex;flex-wrap:wrap;gap:4px 16px;padding:0 14px;background:#f4f9fc;border-bottom:1px solid #dce5ea}.rain-time-controls label{display:flex;align-items:center;gap:5px;min-height:44px;font-size:12px;font-weight:750;cursor:pointer}.rain-time-controls input{accent-color:#216a9e}#flow-help{font-size:12px}#flow-help summary{cursor:pointer;font-weight:750}#flow-help p{max-width:55ch;margin:5px 0}

.rain-time-controls{display:grid;grid-template-columns:auto auto minmax(76px,175px);align-items:center}
.rain-time-controls label{line-height:1.2}.rain-time-controls small{display:block;font-size:11px;font-weight:550;color:#43617a}
.rain-time-controls #water-search{width:100%;min-width:0;height:36px;font-size:12px}
@media(max-width:500px){.rain-time-controls{padding:0 8px;gap:5px;grid-template-columns:1fr 1fr minmax(82px,1fr)}.rain-time-controls label{gap:3px}.rain-time-controls input[type=checkbox]{margin:0}.rain-time-controls #water-search{font-size:12px;padding-inline:6px}}

.station-finder{position:relative;min-width:0}
#station-options{position:absolute;right:0;top:calc(100% + 3px);z-index:20;width:min(310px,88vw);max-height:245px;overflow:auto;overscroll-behavior:contain;background:white;border:1px solid #cbddeb;border-radius:8px;box-shadow:0 5px 16px #18345125}
#station-options [role=option],.finder-empty{padding:8px 12px;font-size:13px}
#station-options [role=option]{cursor:pointer;min-height:44px}
#station-options small{display:block;color:#526675}
#station-options [role=option]:hover,#station-options [aria-selected=true]{background:#e7f2fa}

#water-year-map-key{padding:10px 14px;background:#f4f9fc;color:#294d68;font-size:12px}
.year-key-heading{display:flex;justify-content:space-between;align-items:baseline;gap:6px 12px;flex-wrap:wrap}
.year-key-heading a{text-decoration:underline}
#water-year-map-key p{margin:4px 0 8px}
#water-year-swatches{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;max-width:520px;text-align:center;font-size:11px;font-weight:750}
#water-year-swatches i{display:block;height:8px;border-radius:2px;margin-bottom:4px;border:1px solid #20456722}
#water-year-map-status:not(:empty){margin-top:6px}
@media(max-width:500px){.map-modes{flex-wrap:wrap}.map-modes .segmented button{white-space:nowrap;padding-inline:7px}}

.snow-switch{display:inline-flex;align-items:center;min-height:40px;gap:5px;font-weight:700}#snow-status{margin-inline:8px}.map-popup progress{display:block;width:100%;height:7px;accent-color:#337dab;margin-top:6px}

.explorer>.explore-head{flex-direction:row;align-items:center}
.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.metrics .region-select{align-self:stretch;min-width:0;border:1px solid var(--line);border-top:2px solid #b1cde1;border-radius:11px;padding:8px 28px 8px 32px}
.metrics .region-select b{font-size:22px;font-weight:800;letter-spacing:-.6px;line-height:1.15;overflow-wrap:anywhere}
@media(max-width:740px){.metrics .region-select b{font-size:16px;letter-spacing:-.3px}}
.metrics .region-select:focus-within{outline:2px solid #337dab;outline-offset:2px}
.metrics .region-select select{position:absolute;inset:0;height:100%;max-width:100%;opacity:0}
.map-modes{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin}
.map-modes>*{flex:none}.map-modes>a{margin-left:auto;white-space:nowrap}
#rain-hours{border-left:1px solid var(--line)}#rain-hours[hidden]{display:none}
@media(max-width:640px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metrics .metric{min-height:48px}
  .map-modes{gap:5px;padding-inline:5px}
  .map-modes .segmented button{padding-inline:5px;white-space:nowrap;min-height:38px}
  .map-modes a{font-size:11px}
}

.data-sources{padding:12px 16px;margin-top:16px;font-size:13px;line-height:1.55}
.data-sources summary{cursor:pointer;font-weight:800}
.data-sources ul{padding-inline-start:20px;margin-bottom:0}
.data-sources li+li{margin-top:5px}

.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0}
.wateryear .history-toolbar .sub{margin:0}
#compare-el-nino{flex:none;border:1px solid var(--line);border-radius:6px;padding:4px 7px;background:#f3f8fb;color:var(--ink);font:inherit;font-size:11px;font-weight:750;cursor:pointer}
#compare-el-nino[aria-pressed="true"]{background:#ece8fa;color:#493a80;border-color:#beb1e6}
.wateryear #history-chart{height:100px}
.wateryear #history-chart[hidden]{display:none}

.layerbar .burn-period select{font:inherit;color:inherit;border:1px solid #d3dfe6;border-radius:6px;background:white;padding:5px}

html.map-expanded{overflow:hidden}
#expanded-map{position:fixed;inset:0;margin:0;padding:0;border:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;background:#d5e3ea}
#expanded-map .map-stage{height:100%;border:0}
#expanded-map #map{touch-action:none}
#expanded-map .map-controls{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
#expanded-map .attribution{bottom:max(4px,env(safe-area-inset-bottom))}
#expand-map{font-size:22px;line-height:1}

#expanded-layer-panel{position:absolute;z-index:5;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));width:max-content;max-width:calc(100% - 80px);max-height:calc(100% - 48px);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 16px #19375928}
#expanded-layer-panel[open]{width:390px}
#expanded-layer-panel>summary{cursor:pointer;padding:10px 13px;font-size:13px;font-weight:800}
#expanded-layer-controls{border-top:1px solid var(--line)}
#expanded-layer-controls .rain-time-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
#expanded-layer-controls .station-finder{grid-column:1/-1;margin-bottom:6px}

.map-popup .reading-date{color:#315b75;font-size:.82rem;font-weight:700;margin:3px 0 6px}
.compare-values time{white-space:nowrap}
@media(max-width:740px){
  #expanded-layer-panel{top:auto;left:10px;bottom:max(23px,env(safe-area-inset-bottom));max-width:calc(100% - 20px);border-radius:12px}
  #expanded-layer-panel>summary{min-height:44px;display:flex;align-items:center;gap:9px;font:750 .92rem Manrope,sans-serif}
  #expanded-layer-panel>summary::before{content:'☰';color:#28749a}
  #expanded-layer-panel[open]{width:calc(100% - 20px);max-height:65%;overflow:auto}
  #expanded-layer-panel[open]>summary{position:sticky;top:0;z-index:2;background:white;border-bottom:1px solid var(--line)}
  #expanded-layer-panel[open]>summary::before{content:'×'}
  #expanded-layer-controls #water-search{font-size:16px}
  .map-stage .map-popup{top:auto!important;bottom:76px;left:10px!important;width:min(310px,calc(100% - 75px));max-height:calc(48% - 70px);overflow:auto;overscroll-behavior:contain}
  .map-stage .map-popup.above-gauge{bottom:auto;top:10px!important;max-height:44%}
  .map-stage .map-popup-head button{min-width:36px;min-height:36px}
}

#river-detail[hidden]{display:none}
#river-detail h3{margin:0;color:#163d57}
#river-detail h4{font-size:.88rem;margin:.85rem 0 .35rem;color:#36576c}
#river-detail p{margin:.4rem 0}
#river-detail small{display:block;font-size:.78rem;color:#496478;margin-top:.2rem}
#river-detail svg{width:100%;height:78px;display:block;background:#f2f8fb;border-radius:5px;margin:.45rem 0}
#river-detail svg path{fill:none;stroke:#186a99;stroke-width:2;vector-effect:non-scaling-stroke}
#river-detail svg .median{stroke:#758499;stroke-width:1;stroke-dasharray:4 3}
#river-detail circle{fill:#174d73}
.history-lag{border-left:3px solid #79aaca;padding:.3rem .6rem;margin:.5rem 0;font-size:.82rem;color:#34566e}

body{isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,#eaf3f65c,#eff5f797 48%,#e1eef259),url('/watershed-background.webp') center/cover no-repeat}
.forecast-rows summary{grid-template-columns:32px minmax(70px,1fr) auto minmax(85px,1.4fr);gap:8px}
.wx-icon{height:30px;width:30px;stroke:#346783;stroke-width:1.5;fill:none}
.wx-cloud{fill:#e1eff5}.wx-sun{stroke:#a87528;fill:#f3d78b}.wx-moon{fill:#b9cfe2}
.wx-rain{stroke:#2377ab;stroke-width:2}.wx-snow{fill:#5087a5}
@keyframes water-map-rain{0%{transform:translate(1px,-2px);opacity:.35}60%{opacity:1}100%{transform:translate(-1px,3px);opacity:.25}}
@media(prefers-reduced-motion:no-preference){.wx-rain path,.wx-snow circle{animation:water-map-rain 1.3s linear infinite}.wx-rain path:nth-child(2),.wx-snow circle:nth-child(2){animation-delay:-.6s}.wx-rain path:nth-child(3){animation-delay:-.3s}}
@media(min-width:741px){.map-side:has(#river-detail:not([hidden])){grid-template-rows:auto auto minmax(160px,1fr);overflow:auto;align-content:start}}
