
:root{font-family:Inter,Segoe UI,system-ui,sans-serif;color:#dbe7ed;background:#101a22;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid #63dab7;outline-offset:3px}button{color:inherit;background:transparent;border:1px solid #334754;border-radius:7px;padding:9px 15px}button:hover{background:#233641}a{color:inherit;text-decoration:none}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #283a46;background:#14212a;gap:18px}.brand{font-size:27px;font-weight:650;letter-spacing:-1px;display:flex;align-items:center;gap:9px}.brand-mark{font-size:42px;color:#61d4ba;font-weight:400}.beta{font-size:9px;color:#95aab7;letter-spacing:1px;border:1px solid #3b5260;border-radius:4px;padding:4px;margin-left:7px}nav{display:flex;gap:8px;height:100%;align-items:center}nav button{border:0;color:#9db1bf;min-width:90px}nav button.active{background:#28423f;color:#83ead0}.catchment{font-size:13px;color:#a4b6c3}.toolbar{display:flex;gap:24px;padding:16px 28px;background:#14212a;align-items:center;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:7px;font-size:11px;letter-spacing:.5px;color:#a4b8c5;text-transform:uppercase}select,input{color:#e0ebf2;background:#1a2c37;border:1px solid #374e5b;padding:10px 12px;border-radius:6px;font-size:13px;letter-spacing:0;text-transform:none;min-width:170px}.freshness{margin-left:auto;color:#a8cbbf;font-size:12px;line-height:1.6}.freshness small{display:block;color:#91a7b6;font-size:10px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ddb769;margin-right:5px}.notice{padding:11px 28px;background:#1d2a30;border-top:1px solid #2b3d46;border-bottom:1px solid #2b3d46;color:#b6c7cf;font-size:11px;line-height:1.6}.notice strong{color:#e6c281}.notice span{margin-left:12px;color:#8fa9b6}.map-workspace{display:flex;position:relative;height:calc(100dvh - 250px);min-height:490px}.map-stage{position:relative;flex:1;min-width:0;overflow:hidden;background:#101a22;background-image:radial-gradient(#283b47 1px,transparent 1px);background-size:28px 28px;touch-action:none}.map-stage #map-content{position:absolute;inset:0}.map-heading{position:absolute;left:28px;top:22px;pointer-events:none;padding:8px 14px 12px 0;background:linear-gradient(90deg,#101a22e8,#101a2200)}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#8ea6b5;font-weight:600}.map-heading h1{font-size:28px;margin:6px 0;letter-spacing:-.8px;font-weight:500}.map-heading p{font-size:12px;color:#829dab;margin:0}.map-controls{position:absolute;right:24px;top:24px;display:flex;flex-direction:column;background:#172833;box-shadow:0 8px 20px #0003;border:1px solid #35505d;border-radius:8px}.map-controls button{border:0;border-radius:0;min-width:45px;font-size:19px}.map-controls button:last-child{font-size:12px;border-top:1px solid #35505d}.map-legend{position:absolute;bottom:20px;left:24px;background:#16262fe8;border:1px solid #2e4552;border-radius:8px;padding:12px 16px;font-size:12px;box-shadow:0 8px 25px #0003;pointer-events:none}.map-legend span{margin-right:15px}.map-legend small{display:block;font-size:10px;color:#a4b7c3;line-height:1.6;margin-top:7px}.map-stage svg [data-measure],.station-label{cursor:pointer}.map-stage svg [data-measure]:focus{filter:drop-shadow(0 0 6px #e9ffff)}.map-stage svg .station-label text{paint-order:stroke;stroke:#101a22;stroke-width:3px;stroke-linejoin:round;fill:#e3eef4}.station-panel{width:330px;flex-shrink:0;background:#162630;padding:25px 22px;overflow-y:auto;border-left:1px solid #344c59;position:relative}.station-panel h2{font-weight:500;font-size:23px;line-height:1.3;margin:14px 25px 8px 0}.station-panel>p{font-size:12px;color:#91aab9}.close{position:absolute;right:12px;top:12px;border:0;font-size:22px;padding:3px 10px}.gauge-card{margin:20px 0;padding:20px 0;border-top:1px solid #344a57}.reading{font-size:37px;margin:12px 0 5px;letter-spacing:-1px}.reading small{font-size:18px;color:#91a9b6}.state{font-size:12px;font-weight:600}.gauge-card p{font-size:13px}dl{display:grid;grid-template-columns:90px 1fr;gap:10px;font-size:11px;line-height:1.5}dt{color:#8ea6b5}dd{margin:0}details{font-size:11px;color:#9eb6c5;margin-top:10px}summary{cursor:pointer}code{font-size:10px;overflow-wrap:anywhere}.text-button{font-size:12px;width:100%;margin-top:12px}.page-content{max-width:1300px;margin:auto;padding:36px 28px 60px}.page-content h1{font-size:32px;font-weight:500;letter-spacing:-1px;margin:12px 0}.page-content>p{max-width:900px;color:#9cb3c1;font-size:14px;line-height:1.7}.chart-card{border:1px solid #304754;background:#14242e;border-radius:10px;padding:24px;margin-top:26px}.chart-card h2{font-size:18px;font-weight:500;margin:0}.chart-status,.muted{font-size:12px;color:#9eb4c2;line-height:1.6}.profile-chart{width:100%;height:auto}.chart-point{cursor:pointer}.table-tools{display:flex;align-items:center;gap:24px;margin:24px 0;font-size:12px;color:#93aebf}.table-tools input{min-width:310px}.table-scroll{overflow:auto;border:1px solid #304754;border-radius:8px}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;background:#1b303d;color:#a2bac9;font-size:10px;text-transform:uppercase;letter-spacing:.5px;padding:16px}td{padding:16px;border-bottom:1px solid #263e4b;vertical-align:top}td small{display:block;color:#90a9b8;font-size:10px;margin-top:6px}.station-link{border:0;padding:0;color:#dcebf1;text-align:left;font-weight:550}td details{max-width:220px;white-space:normal}footer{display:flex;justify-content:space-between;gap:20px;padding:12px 28px;color:#7897a9;font-size:9px;line-height:1.6;border-top:1px solid #253d4a}.empty{padding:70px 28px}.error{background:#502c31;padding:18px;color:#ffdfe3;line-height:1.8;font-size:13px}.error button{margin-left:15px}#blazor-error-ui{display:none;background:#502c31;padding:20px;position:fixed;bottom:0;z-index:100;width:100%}.loading-progress{display:block;width:80px;height:80px;margin:20vh auto 20px}.loading-progress circle{fill:none;stroke:#55d5ac;stroke-width:4}.loading-progress-text{text-align:center;color:#9db3c1}.loading-progress-text:after{content:'Loading RiverTrend…'}
@media(max-width:900px){.topbar{padding:0 16px}.catchment{display:none}.toolbar{padding:14px 16px;gap:12px}.freshness{margin-left:0}.map-workspace{height:65dvh}.map-heading{top:15px;left:16px}.map-heading h1{font-size:22px}.station-panel{width:290px}.notice{padding:10px 16px}.notice span{display:none}.brand{font-size:22px}.beta{display:none}nav button{min-width:64px;padding:8px 10px}.map-legend{max-width:calc(100% - 40px)}footer{flex-direction:column;gap:2px}}
@media(max-width:600px){.station-panel{position:absolute;bottom:0;left:0;right:0;width:100%;height:52%;z-index:3;border-top:1px solid #3f5968;border-radius:14px 14px 0 0}.toolbar label{flex:1}.toolbar select{width:100%;min-width:130px}.freshness{width:100%}.map-heading p{display:none}.map-legend{font-size:10px;padding:10px}.map-legend span{margin-right:8px}.map-controls{right:14px;top:16px}.page-content{padding:24px 14px}.table-tools{flex-wrap:wrap}.chart-card{padding:14px}}
.map-zoomed .map-heading h1,.map-zoomed .map-heading p{display:none}.map-zoomed .map-heading{padding:7px 10px;background:#101a22d9;border-radius:5px}

:root{--level-low:#e9b34a;--level-normal:#55d5ac;--level-high:#ed6668;--map-neutral:#91a2b4;--map-background:#101a22;--profile-current:#55d5ac;--profile-history:#9baabd}
.theme-toggle{font-size:22px;padding:5px 12px}.map-stage svg .station-label text{fill:var(--map-label,#e3eef4);stroke:var(--map-background)}.map-stage svg .station-label polyline{stroke:var(--map-neutral);opacity:.45}.map-stage svg .gauge-nodes{cursor:pointer}.map-stage svg .gauge-nodes g:focus circle{stroke:var(--map-label,#fff);stroke-width:2px;vector-effect:non-scaling-stroke}
:root[data-theme=light]{color-scheme:light;background:#f4f7f8;color:#233d4c;--level-low:#9b6709;--level-normal:#16785d;--level-high:#bf343c;--map-neutral:#758797;--map-background:#f3f7f9;--map-label:#243f50;--profile-current:#14745b;--profile-history:#64748b}
[data-theme=light] .topbar,[data-theme=light] .toolbar{background:#fff;border-color:#d3dee4}[data-theme=light] .brand{color:#173e4b}[data-theme=light] nav button{color:#536d7e}[data-theme=light] nav button.active{background:#d8eee8;color:#12634e}[data-theme=light] label,[data-theme=light] .catchment,[data-theme=light] .eyebrow{color:#536d7e}[data-theme=light] select,[data-theme=light] input{background:#f5f8fa;color:#233d4c;border-color:#c2d2dc}[data-theme=light] button{border-color:#bbccd6}[data-theme=light] button:hover{background:#deebe9}[data-theme=light] .notice{background:#edf3f5;color:#4c6473;border-color:#d3dee4}[data-theme=light] .notice strong{color:#805719}[data-theme=light] .notice span{color:#58717f}[data-theme=light] .freshness{color:#385e50}[data-theme=light] .freshness small,[data-theme=light] .muted,[data-theme=light] footer{color:#5b7281}
[data-theme=light] .map-stage{background-color:var(--map-background);background-image:radial-gradient(#cad7df 1px,transparent 1px)}[data-theme=light] .map-heading{background:linear-gradient(90deg,#f3f7f9e8,#f3f7f900)}[data-theme=light] .map-heading p{color:#5b7281}[data-theme=light] .map-controls,[data-theme=light] .map-legend,[data-theme=light] .station-panel{background:#ffffffed;color:#284554;border-color:#c4d3dd}[data-theme=light] .map-legend small{color:#547080}[data-theme=light] .gauge-card{border-color:#ccdae2}[data-theme=light] .gauge-card p,[data-theme=light] dd{color:#284554}[data-theme=light] dt,[data-theme=light] details{color:#5b7281}
[data-theme=light] .chart-card{background:#fff;border-color:#cfdae2}[data-theme=light] .page-content>p,[data-theme=light] .chart-status{color:#526f7f}[data-theme=light] .profile-chart text{fill:#526b7c}[data-theme=light] .profile-chart>rect{fill:#d7eee4}[data-theme=light] .table-scroll{border-color:#ccdbe3}[data-theme=light] th{background:#e5eef2;color:#456273}[data-theme=light] td{border-color:#d6e2e8}[data-theme=light] .station-link{color:#194b63}
.reading-badge,.status-badge{display:inline-block;padding:7px 10px;border-radius:6px;color:var(--badge-colour);background:color-mix(in srgb,var(--badge-colour) 14%,transparent);border:1px solid color-mix(in srgb,var(--badge-colour) 35%,transparent);font-weight:650}.reading-badge{font-size:16px;min-width:76px;text-align:center}.reading-badge.compact{font-size:13px}.status-badge{font-size:12px}
@media(max-width:600px){
.workspace{width:100%;overflow-x:clip}.topbar{height:auto;min-height:100px;display:grid;grid-template-columns:1fr 44px;padding:8px 12px;gap:5px}.brand{font-size:23px}.topbar nav{grid-row:2;grid-column:1/-1;justify-content:center}.topbar nav button{min-width:90px;min-height:40px}.theme-toggle{grid-column:2;grid-row:1;width:40px;height:40px;padding:3px}.toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:10px 12px}.toolbar label{min-width:0}.toolbar label:first-child{grid-column:1/-1}.toolbar select{min-width:0;width:100%;max-width:100%;min-height:44px;font-size:12px}.freshness{grid-column:1/-1;font-size:11px}.freshness small{font-size:9px}.notice{font-size:10px;padding:8px 12px;line-height:1.5}.map-workspace{height:calc(100dvh - 360px);min-height:390px}.map-stage{width:100%}.map-heading{left:12px;top:10px;max-width:70%}.map-heading h1{font-size:19px}.map-heading .eyebrow{font-size:8px}.map-legend{left:10px;bottom:10px;max-width:calc(100% - 20px);padding:8px;font-size:10px}.map-legend small{font-size:9px}.map-controls{right:10px;top:10px}.map-controls button{min-height:40px}.station-panel{height:68%;padding:20px 16px;overscroll-behavior:contain}.station-panel h2{font-size:20px}.station-panel .close{width:44px;height:44px}.page-content h1{font-size:26px}.table-tools input{min-width:0;width:100%}.table-tools label{width:100%}.table-scroll{max-width:100%;border:0}table,tbody{display:block;width:100%;white-space:normal}thead{display:none}tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:color-mix(in srgb,var(--map-background) 90%,var(--map-neutral));border:1px solid #8296a044;border-radius:9px;margin:12px 0;padding:12px}td{display:block;padding:5px;border:0;min-width:0;overflow-wrap:anywhere}td:first-child{grid-column:1/-1}td:not(:first-child)::before{display:block;font-size:9px;text-transform:uppercase;color:var(--map-neutral);margin-bottom:5px}td:nth-child(2)::before{content:'Level'}td:nth-child(3)::before{content:'Normalised'}td:nth-child(4)::before{content:'State'}td:nth-child(5)::before{content:'Trend'}td:nth-child(6)::before{content:'Change'}td:nth-child(7)::before{content:'Observed (UK)'}td:nth-child(8)::before{content:'Quality'}footer{padding:10px 12px}.chart-card{overflow-x:auto}.profile-chart{min-width:620px}.chart-card h2,.chart-status{position:sticky;left:0}
}

.topbar{position:sticky;top:0;z-index:20}
@media(max-width:600px){.chart-status::after{content:'Swipe the graph horizontally to inspect stations.';display:block;margin-top:8px;font-size:10px}.station-panel{scroll-margin-top:110px}}


.map-calibration{position:absolute;top:24px;right:82px;max-width:230px;background:var(--map-background);border:1px solid var(--map-neutral);border-radius:7px;padding:10px;z-index:4;color:var(--map-label,#dbe7ed)}.map-calibration summary{font-size:11px}.map-calibration label{margin-top:13px}.map-calibration input{min-width:0;width:190px;padding:4px;min-height:28px}.map-calibration small{font-size:9px;display:block;margin-top:8px}@media(max-width:600px){.map-calibration{top:65px;right:65px;max-width:210px}.map-calibration input{width:175px}}


.map-scale{position:absolute;left:24px;bottom:110px;padding:8px 10px;background:var(--map-background);border:1px solid var(--map-neutral);border-radius:7px;font-size:10px}.map-scale output{display:block;margin-bottom:7px}.map-scale button{padding:5px 8px;font-size:10px}.scale-stops{display:inline-flex;gap:3px;margin-right:8px}.calibration-export{position:absolute;left:24px;top:95px;max-width:450px;width:calc(100% - 48px);background:var(--map-background);padding:14px;border:1px solid var(--map-neutral);z-index:8}.calibration-export textarea{display:block;width:100%;font:11px monospace;margin:10px 0}.calibration-export small{font-size:10px}@media(max-width:600px){.map-scale{left:10px;bottom:100px;max-width:calc(100% - 20px)}.map-scale button{min-height:30px}.calibration-export{left:10px;width:calc(100% - 20px)}}


.map-modes{display:flex;gap:4px;align-self:end}.map-modes button{font-size:12px;white-space:nowrap}.map-modes .active{background:#28423f;color:#83ead0}[data-theme=light] .map-modes .active{background:#d8eee8;color:#12634e}.explorer-layer{display:none}.explorer-mode .explorer-layer{display:initial}.explorer-mode>.web-trend,.explorer-mode>.station-label,.explorer-mode>.gauge-nodes,.explorer-mode>polyline{display:none}.explorer-layer text{paint-order:stroke;stroke:var(--map-background);stroke-width:2px;stroke-linejoin:round}.explorer-layer [data-station-id]{cursor:pointer}@media(max-width:600px){.map-modes{grid-column:1/-1;justify-content:center}}


.map-stage:has(.explorer-mode) .map-calibration{display:none}


.hydrology-key{max-width:min(590px,calc(100% - 48px));pointer-events:auto}.hydrology-key>strong{font-size:12px;display:block;margin-bottom:9px}.key-row{display:flex;flex-wrap:wrap;gap:8px 16px;margin:7px 0}.map-legend .key-row span{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:11px}.key-line{display:inline-block;width:25px;height:0;border-top:3px solid var(--key-colour,var(--map-neutral));vertical-align:middle}.key-unassessed{border-top-style:dashed}.key-station{width:8px;height:8px;display:inline-block;background:var(--map-label,#dbe7ed);border-radius:50%}.key-row svg{width:30px;height:22px;fill:var(--map-label,#dbe7ed);stroke:var(--map-label,#dbe7ed);stroke-width:1.5px}.hydrology-key details{max-height:210px;overflow:auto;font-size:11px;line-height:1.5;margin-top:9px}.hydrology-key details p{max-width:500px;margin:9px 0}.hydrology-key summary{padding:5px 0}.map-heading{max-width:calc(100% - 100px)}.map-heading h1{font-size:clamp(18px,2.3vw,28px);line-height:1.2}.map-modes{max-width:100%;min-width:0}@media(max-width:600px){.hydrology-key{max-width:calc(100% - 20px);padding:10px}.map-legend .key-row span{font-size:10px}.key-row{gap:5px 10px}.hydrology-key details{max-height:170px}.map-scale{bottom:155px}.map-heading h1{max-width:240px}}


.notice a,.hydrology-key a{text-decoration:underline;text-underline-offset:2px}

.notice .safety-notice{display:block}

/* Give touch users a useful map viewport; expanded mode also works on mobile Safari. */
.map-workspace.map-expanded{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;min-height:0;background:var(--map-background,#101a22)}
.map-expanded .map-stage{height:100%;width:100%}
.map-controls .expand-map{font-size:11px;white-space:nowrap;min-width:64px}
.expanded-map-notice{position:absolute;left:12px;bottom:2px;z-index:4;font-size:9px;padding:3px 6px;background:var(--map-background,#101a22);color:var(--map-label,#dbe7ed);pointer-events:none}
.map-expanded .map-legend{bottom:28px}
.map-expanded .map-calibration{top:210px}
@media(max-width:600px){
 .toolbar .map-modes{display:none}
 .toolbar label:first-child{grid-column:auto}
 .toolbar .dataset-filter{grid-column:1/-1}
 .map-workspace{height:75svh;min-height:480px}
 .map-heading{max-width:calc(100% - 105px)}
 .map-heading h1{font-size:17px}
 .map-heading p{display:none}
 .map-calibration{display:none}
 .map-controls{right:max(10px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top))}
 .map-controls button{min-width:44px;min-height:44px}
 .map-workspace.map-expanded{height:100dvh;min-height:0;padding-bottom:env(safe-area-inset-bottom)}
 .map-expanded .station-panel{height:65%;z-index:6}
 .map-legend .hydrology-key{max-height:30dvh}
}
.hydrology-key>summary{font-weight:600;font-size:12px;cursor:pointer;min-height:26px}
@media(max-width:600px){.hydrology-key:not([open]){padding:6px 10px}.hydrology-key[open]{max-height:40dvh;overflow:auto}}

/* Compact mobile pages and a brighter, map-specific light palette. */
:root{--map-level-low:#edb642;--map-level-normal:#4fd4ab;--map-level-high:#f07178;--map-line-neutral:#8da4b7;--map-range-unavailable:#447db5;--map-node-border:#12222d}
[data-theme=light]{--map-level-low:#dca02c;--map-level-normal:#27b88a;--map-level-high:#ed6268;--map-line-neutral:#9cb0bf;--map-node-border:#fff}
.map-workspace .map-calibration,.map-expanded .map-calibration{display:block;top:auto;bottom:16px;right:12px;left:auto;width:180px;max-width:calc(100% - 24px);max-height:50dvh;overflow:auto;background:var(--map-background);z-index:5}
.map-calibration>summary{min-height:32px;display:flex;align-items:center;cursor:pointer}
.map-calibration input{width:100%;max-width:100%}
.map-comparison{position:absolute;left:12px;top:88px;right:90px;font-size:11px;padding:5px 8px;max-width:520px;border-radius:5px;background:var(--map-background);color:var(--map-label);z-index:2;pointer-events:none}
.site-footer{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;padding:12px 20px;font-size:11px}
.safety-footer{max-width:850px}.safety-footer summary{cursor:pointer;min-height:28px}.safety-footer p{line-height:1.5}.safety-footer a{text-decoration:underline}
.site-footer small{font-size:10px}.publication-delayed{color:#b36d0a}
.graphs-page{padding-top:12px}.graphs-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:8px}.graphs-heading h1{font-size:24px;margin:0}.graphs-heading label{font-size:10px}.graphs-heading select{padding:7px;min-width:160px}.graphs-page .chart-card{margin-top:8px}.graph-guide{margin-top:16px;font-size:12px;line-height:1.5}.status-badge{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.catchment-water-summary{padding:20px 28px;border-top:1px solid #8296a044;max-width:1300px;margin:auto;font-size:13px}
.catchment-water-summary h2{font-size:19px;margin:0 0 14px}.catchment-water-summary h3{font-size:13px;margin:0 0 10px}.catchment-water-summary p{line-height:1.5}.catchment-water-summary small{display:block;line-height:1.6;color:var(--map-neutral)}
.water-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.water-overview-grid article{border:1px solid #8296a044;border-radius:8px;padding:16px}.catchment-water-summary li{margin:8px 0;overflow-wrap:anywhere}
.water-overview-card{--water-accent:#72c8f1;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(135deg,color-mix(in srgb,var(--water-accent) 7%,transparent),transparent 75%)}
.water-overview-card.groundwater-overview{--water-accent:#c6adf4}.water-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.water-card-heading h3{font-size:15px;margin:0 0 3px}.water-card-period{font-size:11px;color:var(--map-neutral)}
.water-card-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;color:var(--water-accent);background:color-mix(in srgb,var(--water-accent) 12%,transparent)}.water-card-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.water-card-value{font-size:29px;letter-spacing:-.6px;line-height:1.3;font-weight:650;color:var(--water-accent)}.water-card-value>span{font-size:13px;letter-spacing:0;font-weight:500;white-space:nowrap}
.water-coverage-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;margin-top:10px;border-radius:5px;font-size:10px;font-weight:600;color:var(--water-accent);background:color-mix(in srgb,var(--water-accent) 10%,transparent)}.water-coverage-chip.incomplete{color:#ebc479;background:#c68b1b18}
.water-overview-card>p{font-size:12px;margin:12px 0 16px}.water-overview-card .water-card-coverage{width:100%;margin-top:auto;padding-top:12px;border-top:1px solid #8296a02b;font-size:10px}
.water-direction-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}.water-direction{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:2px 7px;padding:9px 6px;border-radius:8px;background:color-mix(in srgb,currentColor 7%,transparent)}.water-direction>span:first-child{font-size:22px}.water-direction strong{font-size:25px}.water-direction>span:last-child{grid-column:1/-1;text-align:center;font-size:11px}.water-direction.rising{color:var(--trend-up)}.water-direction.steady{color:var(--trend-steady)}.water-direction.falling{color:var(--trend-down)}
.water-card-unavailable{font-size:16px;font-weight:550;margin:3px 0 15px}
[data-theme=light] .rainfall-overview{--water-accent:#216b98}[data-theme=light] .groundwater-overview{--water-accent:#74519c}[data-theme=light] .water-coverage-chip.incomplete{color:#85590e}
.details-page .table-scroll{max-width:100%;overflow-x:auto}
.details-page table{min-width:1120px}
.details-page td:first-child{min-width:220px;max-width:320px;white-space:normal}
.details-page .status-badge,.details-page .reading-badge{white-space:nowrap;overflow-wrap:normal;max-width:none}
@media(max-width:900px){
 .details-page .table-scroll{overflow:visible;border:0}
 .details-page table,.details-page tbody{display:block;width:100%;min-width:0;white-space:normal}
 .details-page thead{display:none}
 .details-page tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border:1px solid #8296a044;border-radius:9px;margin:10px 0;padding:10px;background:color-mix(in srgb,var(--map-background) 94%,var(--map-neutral))}
 .details-page td{display:block;border:0;padding:4px;min-width:0;overflow-wrap:anywhere;white-space:normal}
 .details-page td:first-child,.details-page td:last-child{grid-column:1/-1;min-width:0;max-width:none}
 .details-page td:not(:first-child)::before{content:attr(data-label);display:block;font-size:9px;text-transform:uppercase;color:var(--map-neutral);margin-bottom:4px}
 .details-page .table-tools{gap:8px;flex-wrap:wrap}.details-page .table-tools input{width:100%;min-width:0}
}
@media(max-width:600px){
 .topbar{padding:5px 10px}.toolbar{padding:7px 10px;gap:6px}.toolbar label{gap:3px;font-size:9px}.toolbar select{padding:6px;min-height:36px}.freshness{font-size:10px}.freshness small{font-size:9px}
 .graphs-page,.details-page{padding:10px 10px 24px}.graphs-heading h1{font-size:19px}.graphs-heading{gap:6px}.graphs-heading label{gap:2px}.graphs-heading select{font-size:11px;min-width:150px}.graphs-page .chart-card{padding:10px}.chart-card h2{font-size:17px;margin:0 0 6px}.chart-status{font-size:10px;margin:4px 0 6px}
 .details-page h1{font-size:21px;margin:0 0 8px}.table-tools label{font-size:10px}
 .map-workspace .map-calibration{width:142px;bottom:16px;right:10px;padding:5px 8px}
 .map-workspace .map-calibration[open]{width:min(235px,calc(100% - 20px));bottom:64px;padding:10px}
 .map-comparison{top:72px;font-size:10px;right:85px;padding:4px;line-height:1.4}
 .site-footer{padding:6px 10px;gap:4px 12px}.map-heading .eyebrow{font-size:7px}
 .map-heading h1{font-size:16px}
}

:root{--trend-up:#79b8ff;--trend-down:#c4a2f7;--trend-steady:#bdcbd6}
[data-theme=light]{--trend-up:#2563a9;--trend-down:#7e4eb1;--trend-steady:#586b7d}
.graph-title-line{display:flex;align-items:center;gap:7px;min-width:0}
.context-help{position:relative;display:inline-flex;pointer-events:auto;flex:none;z-index:12}
.help-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:36px;min-width:34px;padding:0;border-radius:50%;font-size:17px;font-weight:700;background:var(--map-background);color:var(--map-label)}
.help-panel{position:absolute;left:0;top:44px;width:330px;max-height:65dvh;overflow:auto;padding:12px;border:1px solid var(--map-neutral);border-radius:9px;background:var(--map-background);color:var(--map-label);box-shadow:0 8px 26px #0003;font-size:12px;line-height:1.5;letter-spacing:normal;z-index:1600;text-transform:none;font-weight:400}
.help-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.help-panel-heading button{width:36px;height:36px;padding:0;font-size:22px}.help-panel ul{padding-left:18px;margin:8px 0 0}.help-panel li{margin:7px 0}.help-panel strong{font-weight:650}
@media(max-width:900px){.help-panel{position:fixed;left:12px;right:12px;top:18dvh;width:auto;max-width:480px;margin:0 auto;max-height:65dvh}.help-icon{width:36px;height:40px}}
@media(max-width:600px){.map-comparison{top:88px}.graph-title-line{gap:4px}.graphs-heading{gap:4px}.help-icon{min-width:32px;width:32px}}

/* Geographic map: local overlays remain independent of the optional basemap. */
.geographic-station{width:var(--station-size,24px);height:var(--station-size,24px);border:1px solid var(--map-node-border,#fff);border-radius:50%;padding:0;display:grid;place-items:center;color:#fff;box-shadow:0 1px 5px #0008;cursor:pointer;font-size:var(--station-glyph-size,14px);line-height:1;font-weight:800;text-shadow:0 1px 2px #173746;overflow:visible}
.geographic-station>span:first-child{pointer-events:none}.geographic-station[aria-pressed=true]{outline:3px solid var(--map-label,#fff);outline-offset:3px}.geographic-station-name{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;line-height:1.3;font-weight:600;padding:3px 6px;border-radius:4px;color:var(--map-label,#e3eef4);background:var(--map-background);text-shadow:none;pointer-events:none}.geographic-station-name[hidden]{display:none}
.basemap-status{position:absolute;top:110px;left:12px;right:70px;padding:8px 12px;background:var(--map-background);color:var(--map-label,#e3eef4);font-size:12px;border:1px solid var(--map-neutral);border-radius:6px;pointer-events:none}.basemap-status[hidden]{display:none}
.map-layers[open]{width:290px;max-width:calc(100% - 24px)}.layers-heading{display:flex;align-items:center;justify-content:space-between;margin-top:14px}.layers-heading button{padding:2px 10px;font-size:22px}.map-layers p{margin:14px 0 8px}.background-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.background-card{padding:5px;text-align:left;font-size:12px;white-space:normal}.background-card.selected{border:2px solid var(--level-normal)}.background-preview{display:block;height:55px;margin-bottom:7px;border-radius:5px}.streets-preview{background-color:#e9ece8;background-image:linear-gradient(25deg,transparent 42%,#fff 43%,#fff 47%,transparent 48%),linear-gradient(110deg,transparent 48%,#9cc7dc 49%,#9cc7dc 53%,transparent 54%)}[data-theme=dark] .streets-preview{background-color:#24272c;background-image:linear-gradient(25deg,transparent 42%,#4d535c 43%,#4d535c 47%,transparent 48%),linear-gradient(110deg,transparent 48%,#284a63 49%,#284a63 53%,transparent 54%)}.plain-preview{background:var(--map-background);border:1px solid var(--map-neutral)}.map-layers input{min-width:0;width:100%}.map-layers{bottom:42px}.maplibregl-ctrl-attrib a{text-decoration:underline}.map-stage .maplibregl-ctrl-bottom-right{z-index:2}.hydrology-key p{max-width:330px;font-size:11px;line-height:1.5}
@media(max-width:600px){.map-layers[open]{left:8px;right:8px;bottom:38px;width:auto;max-width:none;max-height:65%;overflow-y:auto;border-radius:18px 18px 8px 8px;padding:14px 18px}.map-layers[open]::before{content:'';display:block;width:36px;height:4px;border-radius:2px;background:var(--map-neutral);margin:0 auto 10px}.map-layers:not([open]){bottom:38px}}

.map-workspace .map-layers,.map-expanded .map-layers{bottom:42px}.map-workspace .map-layers[open]{width:290px;max-width:calc(100% - 24px);bottom:42px}
@media(max-width:600px){.map-workspace .map-layers[open]{left:8px;right:8px;bottom:38px;width:auto;max-width:none;max-height:65%;padding:14px 18px}.map-workspace .map-layers:not([open]){bottom:38px}}

.map-view-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.view-card{padding:5px;text-align:left;min-width:0;border:2px solid var(--map-neutral);border-radius:10px}.view-card.selected{border-color:var(--level-normal);background:color-mix(in srgb,var(--level-normal) 12%,var(--map-background))}.view-card>span,.view-card>small{display:block;margin:5px 3px}.view-card>span{font-size:12px;font-weight:650}.view-card>small{font-size:9px}.view-preview{display:block;width:100%;height:auto;border-radius:5px;background:var(--map-background)}.view-preview path{fill:none;stroke-linecap:round;stroke-linejoin:round}.view-preview .preview-land{fill:#e5e9e6}.view-preview .preview-park{fill:#cbdcc4}.view-preview .preview-roads{stroke:white;stroke-width:4}.view-preview .preview-channel{stroke:#6598b0;stroke-width:5}.view-preview .preview-low{stroke:var(--map-level-low);stroke-width:3}.view-preview .preview-normal{stroke:var(--map-level-normal);stroke-width:4}.view-preview .preview-high{stroke:var(--map-level-high);stroke-width:5}.view-preview .preview-normal-fill{fill:var(--map-level-normal)}.view-preview .preview-high-fill{fill:var(--map-level-high)}.view-preview .preview-nodes{fill:var(--map-background);stroke:var(--map-label,#dbe7ed);stroke-width:1.5}[data-theme=dark] .view-preview .preview-land{fill:#252b30}[data-theme=dark] .view-preview .preview-park{fill:#303c35}[data-theme=dark] .view-preview .preview-roads{stroke:#49515b}
/* Invite exploration with the two available map previews, even while Layers is closed. */
.map-workspace .map-layers:not([open]){width:166px;padding:9px;overflow:visible}
.map-workspace .map-layers>summary{display:block;list-style:none;min-height:0}
.map-layers>summary::-webkit-details-marker{display:none}
.layers-teaser-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:650}
.layers-teaser-title>span{font-size:22px;line-height:14px}
.closed-layer-previews{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}
.closed-layer-previews .view-preview{height:42px;width:100%;border:1px solid color-mix(in srgb,var(--map-neutral) 35%,transparent);border-radius:6px}
.map-layers[open] .closed-layer-previews{display:none}
.map-current-profile{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);width:min(570px,calc(100% - 430px));min-width:260px;padding:10px 15px 8px;border:1px solid color-mix(in srgb,var(--map-neutral) 50%,transparent);border-radius:15px;background:color-mix(in srgb,var(--map-background) 96%,transparent);color:var(--map-label,#dbe7ed);box-shadow:0 5px 24px #0003;z-index:3}
.mini-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mini-profile-title{font-size:12px;font-weight:650;border:0;padding:0;text-align:left}.mini-profile-title span{font-weight:400;color:var(--map-neutral);margin-left:8px;font-size:10px}
.mini-profile-close{border:0;padding:0 4px;font-size:19px;line-height:22px;min-width:24px;min-height:24px}
.mini-profile-plot{display:block;width:100%;height:auto;overflow:visible}.mini-profile-caption{font-size:10px;color:var(--map-neutral);margin:1px 0 0;line-height:1.4}
.mini-profile-point{cursor:pointer}.mini-profile-point:focus circle:last-child{stroke:var(--map-label,#fff);stroke-width:2px}.mini-profile-empty{font-size:12px;color:var(--map-neutral);margin:16px 0}
.restore-river-profile{position:absolute;bottom:42px;left:50%;transform:translateX(-50%);z-index:3;font-size:11px;background:var(--map-background)}
@media(max-width:1100px){.map-current-profile{left:12px;right:12px;bottom:38px;transform:none;width:auto;min-width:0;max-width:600px;margin:auto}.map-workspace .map-layers:not([open]){bottom:205px}.map-workspace .map-stage:not(.profile-hidden)>.map-legend{bottom:205px}.map-workspace .profile-hidden .map-layers:not([open]){bottom:75px}}
@media(max-width:600px){.map-current-profile{padding:8px 11px;bottom:38px}.mini-profile-title{font-size:12px}.mini-profile-title span{font-size:10px}.mini-profile-plot text{font-size:18px}.mini-profile-caption{font-size:10px}.map-workspace .map-layers:not([open]){width:150px;right:10px;bottom:180px;padding:8px}.closed-layer-previews .view-preview{height:36px}.map-workspace .map-stage:not(.profile-hidden)>.map-legend{bottom:180px;max-width:calc(100% - 180px)}.map-workspace .profile-hidden .map-layers:not([open]){bottom:75px}.map-workspace .map-layers[open]{z-index:7;max-height:75%}}
/* A single bottom dock keeps controls, profile and attribution in separate rows. */
.map-bottom-dock{position:absolute;left:12px;right:12px;bottom:42px;display:grid;grid-template-columns:166px minmax(220px,570px) 166px;justify-content:space-between;align-items:end;gap:12px;pointer-events:none;z-index:5}
.map-bottom-dock>*{pointer-events:auto}
.map-workspace .map-bottom-dock>.map-layers:not([open]){position:static;grid-column:3;grid-row:1;justify-self:end;width:166px;margin:0;max-height:none}
.map-workspace .map-bottom-dock>.map-layers[open]{position:absolute;left:auto;right:0;bottom:0;width:340px;max-width:100%;max-height:min(70svh,650px);overflow-y:auto;z-index:10}
.map-bottom-dock>.map-current-profile{position:static;grid-column:2;grid-row:1;transform:none;width:100%;min-width:0;max-width:none;margin:0}
.map-bottom-dock>.restore-river-profile{position:static;grid-column:2;grid-row:1;transform:none;justify-self:center;margin:0}
.map-workspace .map-bottom-dock>.map-legend{position:static;grid-column:1;grid-row:1;max-width:100%;margin:0;justify-self:start;white-space:normal}
.map-bottom-dock>.map-legend[open]{position:absolute;left:0;bottom:0;width:330px;max-width:100%;max-height:min(50svh,420px);overflow:auto;z-index:9}
.background-card small{display:block;font-size:10px;margin-top:4px}.style-preview{background-color:#e8ece8;background-image:linear-gradient(25deg,transparent 40%,#fff 41%,#fff 47%,transparent 48%),linear-gradient(110deg,transparent 48%,#9cc7dc 49%,#9cc7dc 54%,transparent 55%)}.style-preview[data-basemap-style=bright]{background-color:#e4efcf}.style-preview[data-basemap-style=liberty]{background-color:#e2e6d8}.style-preview[data-basemap-style=dark]{background-color:#24272c;background-image:linear-gradient(25deg,transparent 40%,#4d535c 41%,#4d535c 47%,transparent 48%),linear-gradient(110deg,transparent 48%,#284a63 49%,#284a63 54%,transparent 55%)}.style-preview[data-basemap-style=fiord]{background-color:#46536c;background-image:linear-gradient(25deg,transparent 40%,#71819b 41%,#71819b 47%,transparent 48%),linear-gradient(110deg,transparent 48%,#303f59 49%,#303f59 54%,transparent 55%)}
@media(max-width:1100px){.map-bottom-dock{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:12px;bottom:42px}.map-workspace .map-bottom-dock>.map-layers:not([open]){grid-column:2;grid-row:1}.map-workspace .map-bottom-dock>.map-legend{grid-column:1;grid-row:1;max-width:100%}.map-bottom-dock>.map-current-profile,.map-bottom-dock>.restore-river-profile{grid-column:1/-1;grid-row:2}.map-workspace .map-bottom-dock>.map-legend[open]{position:absolute;bottom:0;left:0;max-width:100%;max-height:55svh}}
@media(max-width:600px){.map-bottom-dock{left:10px;right:10px;gap:12px;bottom:48px}.map-workspace .map-bottom-dock>.map-layers:not([open]){width:150px;padding:8px}.map-workspace .map-bottom-dock>.map-layers[open]{left:0;right:0;bottom:0;width:auto;max-height:70svh;padding:14px;border-radius:16px}.map-workspace .map-bottom-dock>.map-legend{padding:8px 10px}.map-workspace .map-bottom-dock>.map-legend[open]{left:0;right:0;bottom:0;width:auto;max-width:none;padding:14px;border-radius:16px}.map-bottom-dock>.restore-river-profile{min-height:40px;font-size:12px}.map-bottom-dock>.map-current-profile{padding:8px 11px}.map-workspace .map-controls{z-index:4}.expanded-map-notice{bottom:2px;left:8px;right:34px;font-size:8px}}
@media(max-height:600px){.map-expanded .map-controls{flex-direction:row;top:10px;right:10px}.map-expanded .map-controls button{min-height:40px}.map-expanded .map-controls button:last-child{border-top:0;border-left:1px solid var(--map-neutral)}.map-expanded .map-heading p{display:none}.map-expanded .map-heading h1{font-size:18px}.map-expanded .map-bottom-dock{gap:8px}.map-expanded .mini-profile-plot{max-height:70px}.map-expanded .mini-profile-caption{font-size:9px}}
/* Mobile controls form one card rather than three detached floating boxes. */
@media(max-width:600px){
 .map-bottom-dock{padding:8px;background:var(--map-background);border:1px solid var(--map-neutral);border-radius:14px;box-shadow:0 5px 20px #0003;gap:8px;align-items:stretch;pointer-events:auto}
 .map-workspace .map-bottom-dock>.map-legend:not([open]){grid-column:1;grid-row:1;align-self:stretch;justify-self:stretch;width:100%;padding:0 8px;border:1px solid color-mix(in srgb,var(--map-neutral) 45%,transparent);border-radius:7px;background:transparent;box-shadow:none;display:flex;align-items:center}
 .map-bottom-dock>.map-legend:not([open])>summary{font-size:11px;min-height:40px;display:flex;align-items:center;white-space:normal}
 .map-workspace .map-bottom-dock>.map-layers:not([open]){grid-column:2;grid-row:1;justify-self:stretch;align-self:stretch;width:100%;padding:7px;border:1px solid color-mix(in srgb,var(--map-neutral) 45%,transparent);border-radius:7px;box-shadow:none}
 .map-bottom-dock>.restore-river-profile{grid-column:1;grid-row:2;justify-self:stretch;align-self:stretch;width:100%;min-height:40px;margin:0;font-size:11px}
 .profile-hidden .map-bottom-dock>.map-layers:not([open]){grid-row:1 / span 2;display:flex;align-items:center}
 .profile-hidden .map-bottom-dock>.map-layers:not([open])>summary{width:100%}
 .map-bottom-dock>.map-current-profile{grid-column:1/-1;grid-row:2;border:0;border-top:1px solid color-mix(in srgb,var(--map-neutral) 40%,transparent);border-radius:0;box-shadow:none;background:transparent;padding:8px 2px 0}
 .map-workspace .map-bottom-dock>.map-legend[open],.map-workspace .map-bottom-dock>.map-layers[open]{background:var(--map-background)}
}
/* Match the native legend disclosure to the profile disclosure button. */
.map-bottom-dock>.hydrology-key>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:400;min-height:40px;padding:0;cursor:pointer}
.map-bottom-dock>.hydrology-key>summary::-webkit-details-marker{display:none}
.legend-chevron{display:inline-block}.hydrology-key[open] .legend-chevron{transform:rotate(180deg)}
@media(max-width:600px){.map-workspace .map-bottom-dock>.hydrology-key:not([open]),.map-bottom-dock>.restore-river-profile{border-color:color-mix(in srgb,var(--map-neutral) 45%,transparent);background:transparent;border-radius:7px}.map-workspace .map-bottom-dock>.hydrology-key:not([open]){padding:0}.map-bottom-dock>.hydrology-key:not([open])>summary{width:100%;justify-content:center;font-size:11px;font-weight:400}}
@media(max-width:600px){.map-workspace .map-bottom-dock>.hydrology-key:not([open]),.map-bottom-dock>.restore-river-profile{height:42px;min-height:42px}}
:root{--map-tidal:#9278b0;--map-tidal-ring:#d8c1f1}[data-theme=light]{--map-tidal:#806293;--map-tidal-ring:#543e68}
.geographic-station.tidal-station{border:2px double var(--map-tidal-ring)}
.tidal-tag{display:inline-block;font-size:10px;font-weight:650;text-transform:none;letter-spacing:normal;padding:2px 5px;border:1px solid var(--map-tidal-ring);border-radius:5px;color:var(--map-tidal-ring);margin-left:4px}.tidal-explanation{line-height:1.5;color:var(--map-neutral)}.key-tidal{border-top:3px dashed var(--map-tidal)}
.key-tidal-node{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--map-tidal);border:2px double var(--map-tidal-ring)}
.catchment-review { margin:0; padding:.65rem 1rem; background:var(--map-background,#14212a); border-bottom:1px solid #334754; font-size:.85rem; }
.view-card:disabled { opacity:.5; cursor:default; }

.topbar nav button{white-space:nowrap}
.river-conditions{max-width:1100px}
.conditions-card{--condition-low:#edc468;--condition-normal:#60d5b0;--condition-high:#f1848e;--condition-unknown:#78929f;--condition-tide:#b6a4dd;--condition-text:#d4e5ec;--condition-surface:#102530;margin-top:20px;padding:clamp(12px,3vw,24px);border:1px solid #34515e;border-radius:12px;background:var(--condition-surface);color:var(--condition-text)}
.conditions-card p,.conditions-card small{font-size:13px;line-height:1.5}
.conditions-key h2{font-size:16px;margin:0}
.conditions-key ul{display:flex;gap:8px 20px;flex-wrap:wrap;padding:0;list-style:none;font-size:13px}
.conditions-key li{display:flex;align-items:center;gap:6px}
.conditions-swatch{width:20px;height:4px;border-radius:8px;background:var(--condition-unknown)}
.conditions-swatch.low{background:var(--condition-low)}.conditions-swatch.normal{background:var(--condition-normal)}.conditions-swatch.high{background:var(--condition-high)}
.conditions-key svg{width:24px;height:16px;fill:var(--condition-normal);stroke:var(--condition-normal);stroke-width:1.6}
.conditions-key .conditions-tide-key circle{fill:var(--condition-tide);stroke:var(--condition-tide)}
.conditions-card [data-chart-part="detail"]{padding:9px 0;min-height:2.7em;font-size:13px;line-height:1.5}
.conditions-card [data-chart-part="detail"] strong{display:block}
.conditions-card [data-chart-part="chart-size"]{margin:4px 0;color:inherit}
.conditions-card [data-chart-part="chart"]{display:block;width:100%;max-height:580px}
.conditions-card [data-chart-part="chart"].wide{max-height:none}
.conditions-card [data-chart-part="chart"].wide.expanded-chart{min-width:1100px}
.conditions-card .scroll-chart{overflow-x:auto}
.conditions-card .chart-viewport:has(.expanded-chart.wide){cursor:grab;touch-action:pan-y}
.conditions-card .dragging,.conditions-card .dragging .reach{cursor:grabbing;user-select:none}
.conditions-card .reach{cursor:pointer}
.conditions-card .reach:focus-visible .line,.conditions-card .reach[aria-pressed=true] .line{stroke-width:9}
.conditions-card .line,.conditions-card .hit{fill:none;stroke-linecap:round;stroke-linejoin:round}
.conditions-card .line{stroke-width:4.5}.conditions-card .hit{stroke:transparent;stroke-width:30}
.conditions-card .trend-shape,.conditions-card .tidal-limit,.conditions-card .tributary-label{pointer-events:none}
.conditions-card [data-chart-part="chart"] text{font:600 14px system-ui;fill:var(--condition-text);paint-order:stroke;stroke:var(--condition-surface);stroke-width:3px}
.conditions-card [data-chart-part="chart"] .tributary-label{font-size:13px}
.conditions-card .tidal-limit line{stroke:var(--condition-tide);stroke-width:1.5}
.conditions-card .tidal-limit circle{fill:var(--condition-tide);stroke:var(--condition-surface);stroke-width:1.5}
.conditions-card [data-chart-part="chart"] .tidal-limit text{fill:var(--condition-tide);font-size:15px}
[data-theme=light] .conditions-card{--condition-low:#9b6709;--condition-normal:#16785d;--condition-high:#bf343c;--condition-unknown:#657c8a;--condition-tide:#704da2;--condition-text:#233d4c;--condition-surface:#fff;border-color:#cfdae2}
@media(max-width:600px){.topbar nav{gap:4px}.topbar nav button{min-width:0;padding:8px clamp(5px,2vw,10px);font-size:clamp(12px,3.5vw,15px)}.conditions-key ul{gap:8px 12px}.conditions-card [data-chart-part="chart"].wide:not(.expanded-chart) .tributary-label{font-size:18px}}

.conditions-card .channel-context{pointer-events:none}

.map-heading .map-navigation-notice{display:block;margin-top:5px;font-size:11px;color:var(--map-label)}

@media(max-width:900px){
 .map-workspace:not(.map-expanded){display:block;height:auto;min-height:0}
 .map-workspace:not(.map-expanded) .map-stage{overflow:visible;touch-action:auto}
 .map-workspace:not(.map-expanded) .map-heading,.map-workspace:not(.map-expanded) .map-controls,.map-workspace:not(.map-expanded) .map-comparison{position:relative;inset:auto;margin:0;padding:8px 12px;max-width:none;background:var(--map-background);box-shadow:none}
 .map-workspace:not(.map-expanded) .map-controls,.map-expanded .map-controls{flex-direction:row}
 .map-workspace:not(.map-expanded) .map-viewport{position:relative;height:65svh;min-height:360px}
 .map-workspace:not(.map-expanded) .station-panel{position:relative;inset:auto;width:100%;height:auto;max-height:65svh}
 .map-workspace .map-bottom-dock{display:block;left:auto;right:10px;bottom:42px;padding:0;border:0;background:transparent;box-shadow:none;max-width:calc(100% - 20px)}
 .map-workspace .map-bottom-dock>.map-layers[open]{position:relative;inset:auto;width:min(340px,calc(100vw - 20px))}
 .map-workspace .map-bottom-dock>.map-current-profile,.map-workspace .map-bottom-dock>.restore-river-profile{display:none}
 .map-workspace:not(.map-expanded) .map-bottom-dock>.map-legend:not([open]),.map-workspace:not(.map-expanded) .map-bottom-dock>.map-legend[open]{display:none}
 .map-workspace.map-expanded .map-bottom-dock>.map-legend{display:none}
}

.mobile-map-legend{display:none}
@media(max-width:900px){
 .map-workspace:not(.map-expanded) .mobile-map-legend{display:block;padding:0 12px 10px;background:var(--map-background)}
 .mobile-map-legend .map-legend{position:static;margin:0;max-width:none;box-shadow:none;pointer-events:auto}
}

.map-viewport{position:absolute;inset:0}
@media(max-width:900px){.map-workspace:not(.map-expanded) .map-viewport{inset:auto}}
.map-expanded .map-heading{z-index:5}
.map-workspace.map-expanded .map-controls{z-index:13}
.report-preferences fieldset{margin:18px 0;padding:16px;border:1px solid #547080;border-radius:8px}
.report-preferences fieldset label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:8px 0;letter-spacing:0;text-transform:none;font-size:14px}
.report-preferences input[type=checkbox]{min-width:0;width:18px;height:18px}
.report-preferences details{font-size:14px}
@media(max-width:900px){
 .topbar nav{flex-wrap:wrap;height:auto}
 .map-workspace.map-expanded .map-controls{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right))}
 .map-expanded .map-heading{top:62px;max-width:calc(100% - 24px)}
}
.report-preview a{text-decoration:underline}
.report-action{background:#256853;color:#fff;border-color:#419879;font-weight:650}
.report-level-profile .mini-profile-plot{width:100%;max-width:640px;height:auto}
.report-condition[data-condition=High]{color:var(--level-high)}
.report-condition[data-condition=Low]{color:var(--level-low)}
.report-condition[data-condition=Normal]{color:var(--level-normal)}
.report-trend[data-direction=Rising]{color:#f2946b}
.report-trend[data-direction=Falling]{color:#84caff}
[data-theme=light] .report-trend[data-direction=Rising]{color:#a33d16}
[data-theme=light] .report-trend[data-direction=Falling]{color:#165e9a}

.report-preferences select{max-width:100%}
.report-preview{min-width:0;overflow:hidden}
.report-table-scroll{overflow:auto;border:1px solid color-mix(in srgb,var(--map-neutral) 45%,transparent)}
.report-table-scroll .report-gauge-table{display:table;width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
.report-gauge-table thead{display:table-header-group}
.report-gauge-table tbody{display:table-row-group}
.report-gauge-table tr{display:table-row}
.report-gauge-table th,.report-gauge-table td{display:table-cell;padding:4px 7px;text-align:left;border:1px solid color-mix(in srgb,var(--map-neutral) 28%,transparent)}
.report-gauge-table tbody th{background:transparent;color:inherit;letter-spacing:normal;text-transform:none;font-size:inherit}
.report-gauge-table td::before{display:none}
.report-gauge-table small{font-weight:400;margin-left:4px}
.report-gauge-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--map-neutral) 8%,transparent)}
.report-gauge-table .report-condition,.report-gauge-table .report-trend{font-weight:650;background:color-mix(in srgb,currentColor 9%,transparent)}

.report-signup { display:grid; gap:12px; margin-top:20px; }
.report-signup > label { max-width:420px; }
.report-signup input[type=email] { width:100%; min-width:0; }
.report-signup-actions { display:flex; flex-wrap:wrap; gap:10px; }
@media(max-width:600px) {
    .report-signup-actions { display:grid; }
    .report-signup input[type=email], .report-signup-actions button { min-height:44px; }
}
.report-return-notice { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.report-return-notice span { display:block; margin:0; font-size:14px; color:inherit; }
.email-preview-frame { display:block; width:100%; height: min(75vh, 900px); border:1px solid #adc0cc; border-radius:8px; background:white; }
.map-flood-signup { display:inline-block; pointer-events:auto; margin-top:5px; font-size:11px; color:var(--map-label); text-decoration:underline; }
.water-layer-options { display:flex; flex-wrap:wrap; gap:6px; }
.water-layer-options button { display:inline-flex; gap:6px; align-items:center; padding:7px 8px; font-size:12px; }
.water-layer-options button[aria-pressed=true] { border-color:var(--map-label); background:var(--map-background); }
.water-layer-options i { width:9px; height:9px; border-radius:50%; background:#176fba; }
.water-layer-options button:nth-child(2) i { background:#6f478e; }
.water-gauge-status { position:absolute; top:35%; left:12px; z-index:4; padding:7px 10px; border-radius:5px; color:var(--map-label); background:var(--map-background); font-size:12px; pointer-events:none; }
.water-gauge-popup .maplibregl-popup-content { background:#fff; color:#173342; padding:12px 24px 9px 12px; }
.water-gauge-popup p { margin:4px 0; }
.water-gauge-popup .maplibregl-popup-close-button { padding:1px 6px; color:#173342; }
.issue-report { position:fixed; inset:0; z-index:2000; background:#0009; display:grid; place-items:center; padding:16px; }
.issue-report-card { position:relative; width:min(100%,520px); max-height:90vh; overflow:auto; padding:24px; border:1px solid var(--map-line-neutral); border-radius:12px; background:var(--map-background); color:var(--map-label); }
.issue-report label,.issue-report textarea { display:block; width:100%; }
.issue-report select { width:100%;margin:8px 0 16px; }
.feedback-actions { display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:16px 24px; }
.feedback-actions button { font-size:12px; }
.issue-report textarea { box-sizing:border-box; margin:8px 0; padding:10px; font:inherit; }

.schematic-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.schematic-heading p{color:var(--map-neutral);font-size:13px}.schematic-options{display:flex;gap:6px;flex-wrap:wrap}.schematic-options [aria-pressed=true]{background:#28423f;color:#83ead0}.schematic-card{border:1px solid #8296a044;border-radius:10px;overflow:hidden;margin:22px 0;background:white;color:#173b48}.schematic-card h2{font-size:19px;margin:20px 24px 0}.schematic-canvas{overflow:auto;cursor:grab;max-height:800px}.schematic-canvas svg{display:block;width:100%;min-width:1000px;height:auto}.schematic-canvas[data-variant=network] svg{width:auto;min-width:100%}.schematic-canvas[data-variant=email] svg{min-width:600px;max-width:680px;margin:auto}.schematic-canvas p{padding:24px}.schematic-details{padding:20px;border:1px solid #8296a044;border-radius:8px}.schematic-details article{display:flex;gap:15px;flex-wrap:wrap;margin:15px 0}.schematic-details small{width:100%;overflow-wrap:anywhere}.schematic-note{display:block;color:var(--map-neutral);margin:18px 0}@media(max-width:600px){.topbar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:2px}.topbar nav button{min-width:0;padding:8px 3px;font-size:11px;line-height:14px}.schematic-heading h1{font-size:26px}.schematic-options button{font-size:12px}.schematic-card h2{margin:16px}.schematic-canvas{max-height:650px}}
/* Keep level meanings while adapting the prepared SVG to the website theme. Email PNGs stay light. */
:root:not([data-theme=light]) .schematic-card{background:#14242e;color:#dbe7ed}
:root:not([data-theme=light]) .schematic-canvas svg text{fill:#dbe7ed}
:root:not([data-theme=light]) .schematic-canvas svg .note,:root:not([data-theme=light]) .schematic-canvas svg .level-value{fill:#a4bbc7}
:root:not([data-theme=light]) .schematic-canvas svg [fill=white]{fill:#14242e}
:root:not([data-theme=light]) .schematic-canvas svg [stroke=white],:root:not([data-theme=light]) .schematic-canvas svg [style*="stroke:white"]{stroke:#14242e!important}
:root:not([data-theme=light]) .schematic-canvas svg [fill="#173b48"]{fill:#dbe7ed}
:root:not([data-theme=light]) .schematic-canvas svg [stroke="#d8e3e8"]{stroke:#617e8e}
:root:not([data-theme=light]) .schematic-canvas svg [stroke="#12896e"]{stroke:#55d5ac}
:root:not([data-theme=light]) .schematic-canvas svg [stroke="#c18a18"]{stroke:#e9b34a}
:root:not([data-theme=light]) .schematic-canvas svg [stroke="#d34b59"]{stroke:#ed6668}
:root:not([data-theme=light]) .schematic-canvas svg [stroke="#447db5"]{stroke:#72a9de}
:root:not([data-theme=light]) .schematic-canvas svg [stroke="#8766ad"]{stroke:#b49bd4}
:root:not([data-theme=light]) .schematic-canvas svg [style*="fill:#8766ad"]{fill:#b49bd4!important}
:root:not([data-theme=light]) .schematic-canvas svg .schematic-station:focus circle{stroke:#e8f5fa}
