:root { --bg:#f7f8fa; --card:#fff; --text:#1d2433; --muted:#5b6578; --grid:#e3e7ee; --day-grid:#c5cdd9;
        --obs:#1d2433; --est:#8a94a6; --fc:#1f6feb; --fc-fade:rgba(31,111,235,.38); --fc-fade-deep:rgba(31,111,235,.16);           --band:rgba(31,111,235,.18); --band-fade:rgba(31,111,235,.07); --band-fade-deep:rgba(31,111,235,.03);
        /* Rain charts: local sky blue (--rain), catchment magenta (--catch) */
        --rain:#59a6ff; --warn:#b54708; --warnbg:#fff4e5; --high:#d92d20;
        --spill:#e8590c; --spillnow:#c2255c; --passage:rgba(150,105,62,.55);
        /* sewage passage: light brown -> dark brown -> red only for the extremes */
        --flow-lo:176,132,88; --flow-mid:101,58,22; --flow-hi:200,30,30;
        --tide:#0f7b8a; --tidefc:rgba(15,123,138,.55);
        /* Catchment magenta vs local sky blue (--rain) */
        --catch:#a21caf; --prob:rgba(89,166,255,.85); --probcatch:rgba(162,28,175,.85);
        --prev:#d97706; --lead:#c026d3;
        --ea-normal:#15803d; --ea-normal-top:#ea580c; --ea-record:#b91c1c; --spot:#0e7490;
        }
@media (prefers-color-scheme: dark) {
  :root { --bg:#0f1218; --card:#171b23; --text:#e6e9ef; --muted:#9aa3b2; --grid:#2a303c; --day-grid:#3d4659;
          --obs:#e6e9ef; --est:#7d8696; --fc:#58a6ff; --fc-fade:rgba(88,166,255,.38); --fc-fade-deep:rgba(88,166,255,.16);             --band:rgba(88,166,255,.22); --band-fade:rgba(88,166,255,.08); --band-fade-deep:rgba(88,166,255,.03);
          --rain:#59a6ff; --warn:#fdb022; --warnbg:#2b2112; --high:#f97066;
          --spill:#ff922b; --spillnow:#f06595; --passage:rgba(160,118,78,.55);
          --flow-lo:150,112,75; --flow-mid:168,96,40; --flow-hi:255,70,60;
          --tide:#4fc3cf; --tidefc:rgba(79,195,207,.6);
          --catch:#f0abfc; --prob:rgba(89,166,255,.85); --probcatch:rgba(240,171,252,.9);
          --prev:#fbbf24; --lead:#e879f9;
          --ea-normal:#22c55e; --ea-normal-top:#fb923c; --ea-record:#f87171; --spot:#22d3ee;
          }
}
.sections-menu-panel a[aria-current="true"] { background:var(--bg); color:var(--fc) }
.card h2 .k { color:var(--fc) }
nav.sections { display:none; flex-wrap:wrap; gap:6px; margin:0 0 10px }
nav.sections a { padding:4px 10px; border-radius:999px; border:1px solid var(--grid); background:var(--bg); color:var(--muted); text-decoration:none; font-size:12px; font-weight:600 }
nav.sections a:hover { color:var(--text); border-color:var(--muted) }
@media (min-width:768px) {
  nav.sections:not([hidden]) { display:flex }
}
.card:target, #rain-panel:target, #time-charts-stack :target { scroll-margin-top:calc(var(--site-header-h, 46px) + 12px) }
#level-card:target, #flow-card:target { scroll-margin-top:calc(var(--site-header-h, 46px) + 12px) }
.sub { color:var(--muted); margin:0 0 16px; font-size:13px }
/* 2 cols or 4 cols only — avoid auto-fit landing on 3 cols between breakpoints */
.tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px }
@media (min-width:900px) {
  .tiles { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
.tile { background:var(--card); border-radius:10px; padding:12px 14px }
.tile .k { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em }
.tile .v { font-size:22px; font-weight:650; margin-top:2px }
.tile .s { color:var(--muted); font-size:12px }
/* Control row over the level and flow charts: time range | (−) Full | Normal | Zoom (+) | History. positionZoomCtl
   puts the scale selector's middle on the NOW line; on a row too narrow for it beside Spot levels it drops to a
   line of its own (.stacked). The round − and + buttons are the pill's full height, so they make its ends. */
.zoom-row { position:relative; height:24px; margin:2px 0 4px }
.zoom-row.stacked { height:54px }
.zoom-group { position:absolute; top:0; left:50%; display:flex; gap:6px; align-items:center; white-space:nowrap }
.zoom-row.stacked .zoom-group { top:30px }
.zoom-ctl { position:relative; display:inline-flex; align-items:stretch; height:24px; flex:none;
            border:1px solid var(--grid); border-radius:999px; overflow:hidden; background:var(--card) }
.zoom-ctl button { font:inherit; font-size:11px; font-weight:600; line-height:1; border:0; background:transparent;
                   color:var(--muted); cursor:pointer; margin:0 }
.zoom-mode { padding:0 9px }
/* Separators only between the text segments: the filled − and + circles make their own edge */
.zoom-ctl .zoom-mode + .zoom-mode { border-left:1px solid var(--grid) }
/* − and +: filled circles in the border colour, so each end of the pill is a solid round cap. The sign is
   white in dark mode; on the light theme's pale grey white would vanish, so it takes the text colour there. */
.zoom-ctl .zoom-step { --zoom-step-ink:var(--text); width:22px; padding:0; display:grid; place-items:center;
                       border-radius:50%; background:var(--grid); color:var(--zoom-step-ink) }
.zoom-step svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round }
.zoom-ctl .zoom-step:hover:not(:disabled) { background:color-mix(in srgb, var(--grid) 80%, var(--text)) }
@media (prefers-color-scheme: dark) { .zoom-ctl .zoom-step { --zoom-step-ink:#fff } }
.zoom-step:disabled { opacity:.35; cursor:default }
.zoom-mode[aria-pressed="true"] { background:color-mix(in srgb, var(--text) 12%, transparent); color:var(--text) }
.zoom-ctl button:focus-visible { outline:2px solid var(--fc); outline-offset:-2px }
/* Spot levels: a menu at the left of the level chart's control row (same pill as the scale selector), teal lines
   on the chart, and HTML labels at their right-hand ends whose (i) opens a note */
.spot-menu { position:absolute; top:0; left:0; z-index:3 }
.spot-btn { display:inline-flex; align-items:center; gap:3px; height:24px; padding:0 8px 0 10px; border:1px solid var(--grid);
            border-radius:999px; background:var(--card); color:var(--muted); font:inherit; font-size:11px; font-weight:600;
            line-height:1; cursor:pointer }
.spot-btn svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.spot-btn[aria-expanded="true"] svg { transform:rotate(180deg) }
.spot-btn.on { color:var(--spot); border-color:color-mix(in srgb, var(--spot) 55%, var(--grid)) }
.spot-btn:hover { color:var(--text) }
.spot-btn:focus-visible, .spot-list button:focus-visible, .spot-info:focus-visible { outline:2px solid var(--fc); outline-offset:1px }
.spot-list { position:absolute; top:28px; left:0; min-width:120px; padding:4px; display:flex; flex-direction:column;
             background:var(--card); border:1px solid var(--grid); border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,.18) }
.spot-list[hidden] { display:none }
.spot-list button { font:inherit; font-size:12px; text-align:left; padding:6px 10px 6px 24px; border:0; border-radius:6px;
                    background:transparent; color:var(--text); cursor:pointer; position:relative }
.spot-list button:hover { background:color-mix(in srgb, var(--text) 8%, transparent) }
.spot-list button[aria-checked="true"]::before { content:'✓'; position:absolute; left:8px; color:var(--spot); font-weight:700 }
.spot-labels { position:absolute; inset:0; pointer-events:none }
/* Small and quiet: the lines carry the colour, the labels only name them. Names in spaced caps; the height stays in
   normal case so "5.90 m" doesn't read as "5.90 M". */
.spot-label { position:absolute; display:inline-flex; align-items:center; gap:4px; font-size:9px; font-weight:600; line-height:12px;
              letter-spacing:.06em; color:color-mix(in srgb, var(--spot) 75%, var(--muted)); white-space:nowrap; padding:0 2px;
              border-radius:3px; background:color-mix(in srgb, var(--card) 70%, transparent) }
.spot-label .spot-name { text-transform:uppercase }
.spot-label .spot-m { letter-spacing:0; font-weight:500; opacity:.85 }
.spot-label[hidden] { display:none }
.spot-info { pointer-events:auto; width:12px; height:12px; padding:0; border-radius:50%; border:0; display:grid; place-items:center;
             background:color-mix(in srgb, var(--spot) 75%, var(--muted)); color:var(--card); font:700 8.5px/1 Georgia, serif;
             font-style:italic; letter-spacing:0; cursor:pointer }
/* A bigger target than it looks, for fingers */
.spot-info { position:relative }
.spot-info::after { content:''; position:absolute; inset:-8px }
.spot-pop { position:absolute; z-index:4; max-width:min(260px, 80%); padding:8px 10px; font-size:12px; line-height:1.4;
            color:var(--text); background:var(--card); border:1px solid color-mix(in srgb, var(--spot) 55%, var(--grid));
            border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,.18) }
.river-charts-toolbar { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; justify-content:flex-start;
                        margin:12px 0 0; padding:8px 10px; background:var(--card); border-radius:10px }
.river-charts-toolbar[hidden] { display:none }
.river-charts-toolbar > .foot { flex-basis:100%; margin:0; color:var(--muted); font-size:12px }
.time-charts-stack { margin-bottom:4px }
.time-charts-stack > .card { margin-bottom:10px }
.time-charts-stack > .card:last-child { margin-bottom:12px }
/* Phones: the timeline charts run to the screen edges, so the plots get the width (all of them, so their time axes still line up) */
@media (max-width:699px) {
  .time-charts-stack > .card { margin-left:-16px; margin-right:-16px; border-radius:0; padding-left:10px; padding-right:10px }
}
.time-axis-banner { font-size:12px; color:var(--muted); margin:0 0 10px; padding:0 2px; line-height:1.4 }
.chart-panel-head { position:relative; display:block; margin:-2px 0 8px; min-height:0 }
.chart-panel-head:has(.chart-about:not([hidden])) .chart-panel-head-titles { padding-right:5.25rem }
.chart-panel-head .chart-panel-head-titles h2 { margin:0 0 4px }
.chart-panel-head .chart-panel-head-titles .rain-unit { margin:0 }
.chart-about { margin:0; position:absolute; top:0; right:0; z-index:2 }
.chart-about > summary.chart-about-sum { list-style:none; cursor:pointer; font-size:12px; font-weight:600; color:var(--muted); white-space:nowrap; user-select:none }
.chart-about > summary.chart-about-sum::-webkit-details-marker { display:none }
.chart-about > summary.chart-about-sum::before { content:none !important }
.chart-about[open] > summary.chart-about-sum { color:var(--text) }
.chart-about .chart-about-body { position:absolute; right:0; top:calc(100% + 6px); width:min(360px, 92vw); z-index:8;
  background:var(--card); border:1px solid var(--grid); border-radius:8px; padding:10px 12px;
  box-shadow:0 10px 28px rgba(0,0,0,.14) }
.chart-about .chart-about-body p { margin:0 0 8px; font-size:12px; line-height:1.55; color:var(--muted) }
.chart-about .chart-about-body p:last-child { margin-bottom:0 }
.river-stack .river-charts-toolbar { margin:10px 0 0; padding:6px 8px; background:var(--bg); border-radius:8px; border:1px solid var(--grid) }
.river-stack .chart-slot + .chart-slot { margin-top:10px; padding-top:10px; border-top:1px solid var(--grid) }
.river-stack .chart-slot h2 { margin:0 0 4px }
.river-stack > .chart-panel-head { margin:0; height:0 }
.river-stack:has(.chart-about:not([hidden])) #level-card h2 { padding-right:5.25rem }
.river-stack .chart-panel-head:has(.chart-about[hidden]) { display:none }
.card .card-sub { margin:0 0 10px; font-size:12px; color:var(--muted); line-height:1.35 }
.rain-section + .rain-section { margin-top:18px; padding-top:14px; border-top:1px solid var(--grid) }
.catchment-map-legend { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:12px; color:var(--muted); margin:0 0 8px }
.catchment-map-legend span { display:inline-flex; align-items:center; gap:6px }
.catchment-map-legend span[hidden] { display:none }
.catchment-map-legend i { display:inline-block; flex:none }
.catchment-map-legend i.swatch { width:12px; height:8px; border-radius:2px;
  background:color-mix(in srgb, var(--catch) 28%, transparent); border:1.5px solid var(--catch) }
.catchment-map-legend i.dot { width:8px; height:8px; border-radius:50%; background:var(--catch) }
.catchment-map-legend i.dot.rain { background:var(--rain) }
.catchment-map-legend i.dot.fc { background:var(--fc) }
.catchment-map-legend i.dot.ring { background:transparent; box-shadow:inset 0 0 0 1.5px var(--catch) }
.catchment-map-legend i.river { width:14px; height:3px; border-radius:1px; background:var(--tide) }
.catchment-map-legend i.diamond { width:7px; height:7px; border-radius:1px; transform:rotate(45deg); background:var(--spill) }
.catchment-map-legend i.diamond.now { background:var(--spillnow) }
.catchment-map-legend i.diamond.old { background:transparent; box-shadow:inset 0 0 0 1.5px var(--spill) }  .catchment-map { height:360px; border-radius:8px; overflow:hidden; border:1px solid var(--grid);
                 z-index:0; background:var(--bg) }
.catchment-map .leaflet-container { height:100%; width:100%; background:var(--bg); font:inherit }
.catchment-map .leaflet-control-attribution { font-size:10px; background:transparent; color:var(--muted) }
.catchment-map .leaflet-control-attribution a { color:var(--muted) }
.catchment-map .leaflet-control-zoom a { background:var(--card); color:var(--text); border-color:var(--grid) }
.catchment-map .leaflet-bar { border-color:var(--grid) }
.catchment-map .leaflet-tooltip.gauge-label { background:var(--card); color:var(--text); border:1px solid var(--grid);
  border-radius:6px; box-shadow:none; font-size:11px; font-weight:600; padding:2px 6px }
.catchment-map .leaflet-tooltip.gauge-label::before { display:none }
@media (max-width:699px) {
  .catchment-map { height:260px }
}
.chart { position:relative; height:240px }
.chart.small { height:140px }
.chart.tall { height:300px }
.chart.rain-chart { height:280px }
.chart.rain-chart.short { height:185px }
.chart.density { height:130px; margin-top:4px }
.card .foot { color:var(--muted); font-size:12px; margin:6px 0 4px }
.card .foot.warn-foot { color:var(--warn) }
.warn { background:var(--warnbg); color:var(--warn); border-radius:8px; padding:8px 12px; margin-bottom:12px; font-size:13px }
.flood { background:var(--card); border:1px solid var(--sev); border-left-width:5px; border-radius:10px; padding:10px 14px; margin-bottom:10px }
.flood.sev-1 { --sev:#7a1010; background:#fdecec }
.flood.sev-2 { --sev:var(--high); background:#fff1f0 }
.flood.sev-3 { --sev:var(--warn); background:var(--warnbg) }
.flood .flood-title { font-weight:700; font-size:15px; color:var(--sev) }
.flood .flood-meta { font-size:13px; color:var(--muted) }
.flood a, .flood-none a, .flood-cta a, .nav-card a { color:var(--fc); font-weight:600; text-decoration:none }
.flood details.expand { margin-top:6px }
.flood-none { font-size:13px; color:var(--muted); margin:0 0 10px }
#ea-floods:empty { display:none }
.hist-list { list-style:none; margin:4px 0 0; padding:0; font-size:14px; line-height:1.45 }
.hist-list li { padding:7px 0; border-bottom:1px solid var(--grid) }
.hist-list li:last-child { border-bottom:none }
.hist-list .k { display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:600 }
.hist-list .sub { color:var(--muted); font-size:12px; margin:0 }
.hist-list .wet { font-weight:700 }
.outlook-head { font-size:14px; line-height:1.45; margin:2px 0 8px }
.outlook-card tr.here td { font-weight:650 }
.outlook-card td a { color:var(--fc); text-decoration:none }
.outlook-card td.rise { color:var(--warn); font-weight:650 }
.outlook-card td.high { color:var(--high); font-weight:650 }
.outlook-card td .rng { color:var(--muted); font-size:11px; font-weight:400 }
.outlook-card td { vertical-align:top }
.outlook-card td .v { white-space:nowrap }
.outlook-card td .d { color:var(--muted); font-size:12px; font-weight:400; white-space:nowrap }
.outlook-card td .when { display:block; font-size:12px; font-weight:400; color:var(--muted); white-space:nowrap }
.outlook-card tr.here td .when { color:var(--text) }
.outlook-card td.rise .when, .outlook-card td.high .when { color:inherit; font-weight:650 }
.outlook-card td .when.maybe { font-style:italic }
.outlook-card td .rng { display:block; white-space:nowrap }
.wave-section { margin-top:16px; padding-top:12px; border-top:1px solid var(--grid) }
.wave-section h3 { font-size:15px; margin:0 0 2px; font-weight:650 }
.flood-cta { font-size:13px; margin:4px 0 12px }
.nav-card .nav-status { display:flex; gap:10px; align-items:baseline; padding:6px 0; font-size:14px; border-bottom:1px solid var(--grid) }
.nav-card .nav-status .dot { flex:none; width:12px; height:12px; border-radius:50%; align-self:center }
.nav-card .nav-status .meta { color:var(--muted); font-size:12px }
.nav-card .nav-status.alarm { font-weight:700; color:var(--high) }
.nav-card ul { list-style:none; margin:4px 0 0; padding:0; font-size:13px }
.nav-card li { padding:7px 0; border-bottom:1px solid var(--grid) }
.nav-card li:last-child { border-bottom:none }
.nav-card .badge { display:inline-block; font-size:11px; font-weight:700; border-radius:4px; padding:1px 6px; margin-right:6px;
                   background:var(--grid); color:var(--muted) }
.nav-card .badge.closure { background:var(--high); color:#fff }
.nav-card .badge.restriction { background:var(--warnbg); color:var(--warn) }
.nav-card .when { color:var(--muted); font-size:12px }
@media (prefers-color-scheme: dark) {
  .flood.sev-1 { --sev:#ff8a80; background:#3a1414 }
  .flood.sev-2 { background:#2e1715 }
}
.training { color:var(--warn); font-size:13px; line-height:1.45; margin:0 0 10px }
.training a { color:var(--warn); font-weight:600; text-decoration:underline; text-underline-offset:2px }
table { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums }
th, td { text-align:right; padding:5px 6px; border-bottom:1px solid var(--grid) }
th:first-child, td:first-child { text-align:left }
.notes { color:var(--muted); font-size:12px; margin-top:12px; padding:12px 14px 8px;}
.scroll { overflow-x:auto }
details.expand { margin:10px 0 2px; font-size:13px }
details.expand summary { cursor:pointer; color:var(--muted); font-weight:600; list-style:none }
details.expand summary::-webkit-details-marker { display:none }
details.expand summary::before { content:'▸ '; font-size:11px }
details.expand[open] summary::before { content:'▾ ' }
details.expand .expand-body { color:var(--muted); font-size:12px; line-height:1.55; margin-top:8px }
details.expand .expand-body p { margin:0 0 8px }
details.expand .expand-body p:last-child { margin-bottom:0 }
ul.spill-list { margin:6px 0 0; padding:0; list-style:none; font-size:12px }
ul.spill-list li { padding:7px 0; border-bottom:1px solid var(--grid) }
ul.spill-list li:last-child { border-bottom:none }
.spill-list .name { color:var(--text); font-weight:600 }
.spill-list .sid { color:var(--muted); font-size:11px; font-weight:400; letter-spacing:.02em; white-space:nowrap; text-decoration:underline; text-decoration-color:var(--grid); text-underline-offset:2px }
.spill-list a.sid:hover, .spill-list a.sid:focus-visible { color:var(--fc); text-decoration-color:currentColor }
.spill-list .sublist-title { font-size:15px; font-weight:650; line-height:1.35; margin:14px 0 6px; color:var(--text) }
.spill-list .sublist-title.now { color:var(--spillnow) }
.spill-list .sublist-title.recent { color:var(--warn) }
.spill-list .sublist-title .meta { font-weight:500; color:var(--muted); font-size:13px }
.acc-summary { font-size:14px; line-height:1.45; margin:0 0 10px; color:var(--text) }
.acc-summary strong { font-weight:650 }
.acc-public { font-size:14px; line-height:1.5; margin:0 0 6px; max-width:64ch; color:var(--text) }
.acc-low-n { color:var(--warn); font-size:11px; font-weight:600 }
td.acc-better { color:#1a7f37 }
td.acc-worse { color:var(--high) }
td.acc-tie { color:var(--muted) }
.rain24-totals { display:grid; gap:3px; font-size:13px; margin:0 0 8px; color:var(--muted) }
.rain24-totals .row { display:grid; grid-template-columns:8.8rem minmax(0,1fr) minmax(0,1fr); gap:4px 10px; align-items:baseline }
.rain24-totals .row > span { min-width:0 }
.rain24-totals .area { font-weight:600; color:var(--text); min-width:0 }
.rain24-totals button.area { font:inherit; font-weight:600; color:var(--text); background:none; border:0;
                             padding:1px 2px 1px 0; margin:0; cursor:pointer; text-align:left;
                             display:inline-flex; align-items:center; gap:5px; border-radius:6px }
.rain24-totals button.area:hover { background:var(--grid) }
.rain24-totals .area i { display:inline-block; width:10px; height:10px; border-radius:2px; flex:none }
.rain24-totals .vis-eye { width:14px; height:14px; flex:none; opacity:.7 }
.rain24-totals button.area .vis-eye-off { display:none }
.rain24-totals button.area[aria-pressed="false"] { color:var(--muted) }
.rain24-totals button.area[aria-pressed="false"] i { opacity:.35 }
.rain24-totals button.area[aria-pressed="false"] .vis-eye-on { display:none }
.rain24-totals button.area[aria-pressed="false"] .vis-eye-off { display:block }
.rain24-totals button.area[aria-pressed="false"] .vis-eye { opacity:.45 }
.rain24-totals .row.off strong { color:var(--muted) }
.rain24-totals strong { color:var(--text); font-size:15px; font-variant-numeric:tabular-nums }
.rain-about { margin:2px 0 4px }
.rain-unit { font-size:12px; color:var(--muted); margin:0 0 6px }
@media (max-width:699px) {
  .chart.rain-chart { height:220px }
  .chart.rain-chart.short { height:145px }
  .rain24-totals { font-size:12px; gap:2px }
  .rain24-totals .row { grid-template-columns:7.8rem minmax(0,1fr) minmax(0,1fr); gap:2px 8px }
  .rain24-totals .row > span { display:flex; flex-direction:column; align-items:flex-start; line-height:1.25 }
  .rain24-totals strong { font-size:14px }
}
.about-forecast { font-size:15px; line-height:1.55; color:var(--text) }
.about-forecast p { margin:0 0 12px; color:var(--text) }
.about-forecast p:last-child { margin-bottom:0 }
.about-forecast a { color:var(--fc); font-weight:600; text-decoration:none }
.about-foot { font-size:13px; color:var(--muted); margin-top:4px !important }
@media (prefers-color-scheme: dark) {
  td.acc-better { color:#3fb950 }
}
/* Wildlife section: the project this site is part of, with its links */
.wildlife-card { font-size:15px; line-height:1.55; padding-bottom:14px }
.wildlife-card p { margin:0 0 12px; max-width:64ch }
.wildlife-links { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:10px 18px; margin:14px 0 4px }
.wildlife-links h3 { margin:0 0 6px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted) }
.wildlife-links ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px }
.wildlife-links a { display:block; padding:9px 12px; border:1px solid var(--grid); border-radius:10px; background:var(--bg);
                    color:var(--text); text-decoration:none; font-weight:650; font-size:14px; line-height:1.3 }
.wildlife-links a span { display:block; font-weight:400; font-size:12px; color:var(--muted); margin-top:2px }
.wildlife-links a:hover { border-color:var(--fc) }
.wildlife-links a:focus-visible { outline:2px solid var(--fc); outline-offset:2px }

/* Time range pill: short labels on a phone */
.time-ctl .sm { display:none }
@media (max-width:520px) { .time-ctl .lg { display:none } .time-ctl .sm { display:inline } }
/* History: past forecasts on the charts. Same pill as the others; icon only on a phone */
.hist-btn { display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 9px 0 7px; flex:none; border:1px solid var(--grid);
            border-radius:999px; background:var(--card); color:var(--muted); font:inherit; font-size:11px; font-weight:600; cursor:pointer }
.hist-btn[hidden] { display:none }
.hist-btn svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round }
.hist-btn[aria-pressed="true"] { background:color-mix(in srgb, var(--fc) 14%, var(--card)); color:var(--fc); border-color:color-mix(in srgb, var(--fc) 45%, var(--grid)) }
.hist-btn:disabled { opacity:.45; cursor:not-allowed }
.hist-btn:focus-visible { outline:2px solid var(--fc); outline-offset:2px }
@media (max-width:520px) { .hist-btn { padding:0 6px } .hist-btn .lg { display:none } }
/* (i) right of History: opens a popover saying what the history draws. Hidden with the button. */
.hist-btn[hidden] + .hist-info { display:none }
.hist-info { position:relative; width:18px; height:18px; padding:0; flex:none; display:grid; place-items:center; border-radius:50%;
             border:1px solid var(--grid); background:var(--card); color:var(--muted); font:700 11px/1 Georgia, serif; font-style:italic; cursor:pointer }
.hist-info::after { content:''; position:absolute; inset:-8px }  /* a bigger target than it looks, for fingers */
.hist-info[aria-expanded="true"] { color:var(--fc); border-color:color-mix(in srgb, var(--fc) 45%, var(--grid)) }
.hist-info:focus-visible { outline:2px solid var(--fc); outline-offset:2px }
.hist-pop { position:absolute; z-index:6; width:min(300px, calc(100% - 4px)); padding:10px 12px; font-size:12.5px; line-height:1.45; color:var(--text);
            background:var(--card); border:1px solid color-mix(in srgb, var(--fc) 40%, var(--grid)); border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,.22) }
.hist-pop p { margin:6px 0 0 }
.hist-pop ul { margin:6px 0 0; padding-left:16px }
.hist-pop li + li { margin-top:4px }

/* River health: the EA's assessment of the place's stretch of river (functions/lib/river-health.js) */
.river-health h2 { margin-top:0 }
.river-health .rh-name { font-weight:600 }
.river-health h3 { font-size:14px; margin:14px 0 6px }
.rh-lead { margin:4px 0 10px; line-height:1.5 }
.rh-elements { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:4px 18px }
.rh-elements li { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:4px 0; border-bottom:1px solid var(--grid); font-size:13.5px }
.rh-reasons { margin:0; padding-left:18px; font-size:13.5px; line-height:1.5 }
.rh-reasons li + li { margin-top:3px }
.rh-cert { color:var(--muted); font-size:12px }
.river-health .foot { margin:12px 0 0 }
.place-h1 { font-size:20px; line-height:1.25; margin:0 0 4px; font-weight:700 }
