/* The reservoir list pages: /reservoirs and /reservoirs/{company} (moved here unchanged from reservoirs.php's inline
   <style> on 6 Nov 2026, so the company pages, which share the markup, are styled too; they had no rules since 13 Aug 2026).
   public/reservoir.css is the single reservoir page's; /reservoirs/wales adds public/wales-water.css. */
.rsv { max-width: 1040px; margin: 0 auto; padding: 26px 18px 64px; }
.rsv-hero { text-align: center; margin-bottom: 18px; }
.rsv-hero h1 { font-size: 2rem; color: #15224b; margin: 0 0 8px; letter-spacing: -.02em; }
.rsv-hero p.rsv-lede { color: #5a6573; font-size: 1.05rem; max-width: 640px; margin: 0 auto 16px; line-height: 1.5; }
.rsv-hero-pct { font-size: 3rem; font-weight: 800; color: #1d6fb8; line-height: 1; }
.rsv-hero-pct.rsv-band-good { color: #1e7a45; }
.rsv-hero-pct.rsv-band-mid { color: #b5650a; }
.rsv-hero-pct.rsv-band-low { color: #c0392b; }
.rsv-hero-ctx { color: #8693ab; font-size: .88rem; max-width: 560px; margin: 6px auto 0; line-height: 1.5; }
.rsv-map { height: 420px; border-radius: 14px; border: 1px solid #e7ecf4; margin: 22px 0; }
.rsv-map-legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: .78rem; color: #5a6573; margin: -12px 0 20px; }
.rsv-map-legend span::before { content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.rsv-leg-good::before { background: #27ae60; }
.rsv-leg-mid::before { background: #e67e22; }
.rsv-leg-low::before { background: #c0392b; }
.rsv-leg-none::before { background: #95a5a6; }
.rsv-note { background: #eef2fb; border: 1px solid #dde6f7; border-radius: 14px; padding: 14px 18px; font-size: .88rem; color: #34406b; margin: 8px 0 28px; }
.rsv-note b { color: #1d3a8a; }
.rsv-sec { margin-top: 30px; scroll-margin-top: 84px; }
.rsv-nations { font-size: .9rem; color: #34406b; margin: -14px 0 22px; text-align: center; line-height: 1.7; }
.rsv-nations a { font-weight: 700; }
.rsv-sec h2 { font-size: 1.2rem; color: #15224b; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rsv-co-total { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; background: #eef2fb; color: #1d3a8a; }
.rsv-co-total.rsv-band-good { background: #e6f6ec; color: #1e7a45; }
.rsv-co-total.rsv-band-mid { background: #fdf1e2; color: #b5650a; }
.rsv-co-total.rsv-band-low { background: #fdeeec; color: #c0392b; }
/* The date belongs ON the headline figure: a bare "58% overall" reads as today's number. */
.rsv-co-total .rsv-co-when { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .8; margin-left: .35rem; }
.rsv-co-total.rsv-co-stale { background: #f1f3f7; color: #55607a; }
.rsv-rows { display: flex; flex-direction: column; gap: 6px; }
.rsv-row { display: grid; grid-template-columns: minmax(150px,1.6fr) 74px 130px 64px 96px 128px; gap: 10px; align-items: center;
           background: #fff; border: 1px solid #e7ecf4; border-left: 4px solid #cfd6e4; border-radius: 10px; padding: 10px 14px; font-size: .85rem; }
.rsv-row.rsv-band-good { border-left-color: #27ae60; }
.rsv-row.rsv-band-mid { border-left-color: #e67e22; }
.rsv-row.rsv-band-low { border-left-color: #c0392b; }
.rsv-row.rsv-band-none { border-left-color: #b7bfcf; }
.rsv-row.rsv-row-child { margin-left: 22px; background: #fbfcfe; }
.rsv-c-name a:not(.svt-star) { color: #1b2640; font-weight: 700; text-decoration: none; }
.rsv-c-name a:not(.svt-star):hover { text-decoration: underline; }
.rsv-kind-tag { display: inline-block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
                color: #8693ab; background: #f0f3f8; border-radius: 99px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.rsv-badge { display: inline-block; font-weight: 800; font-size: .84rem; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.rsv-badge.rsv-band-good { background: #e6f6ec; color: #1e7a45; }
.rsv-badge.rsv-band-mid { background: #fdf1e2; color: #b5650a; }
.rsv-badge.rsv-band-low { background: #fdeeec; color: #c0392b; }
.rsv-badge.rsv-band-none { background: #f0f3f8; color: #8693ab; }
.rsv-c-cap { color: #5a6573; white-space: nowrap; }
.rsv-c-chg .rsv-up { color: #1e7a45; font-weight: 700; }
.rsv-c-chg .rsv-down { color: #c0392b; font-weight: 700; }
.rsv-c-chg .rsv-flat { color: #8693ab; font-weight: 700; }
.rsv-c-spark { color: #9db8e8; }
.rsv-c-spark svg.rsv-spark { display: block; }
.rsv-c-date { color: #a3adbd; font-size: .76rem; white-space: nowrap; text-align: right; }
.rsv-c-date.rsv-stale { color: #c0392b; font-weight: 700; }
.rsv-foot { margin-top: 40px; font-size: .8rem; color: #8693ab; line-height: 1.6; background: #fff; border: 1px solid #e7ecf4; border-radius: 14px; padding: 16px 18px; }
.rsv-foot b { color: #1b2640; }
.rsv-src-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rsv-src-links a { background: #f4f6fb; border: 1px solid #e3e8f0; border-radius: 99px; padding: 5px 12px; font-size: .76rem; font-weight: 600; color: #34406b; text-decoration: none; }
@media (max-width: 760px) {
  .rsv-hero h1 { font-size: 1.5rem; }
  .rsv-hero-pct { font-size: 2.2rem; }
  .rsv-row { grid-template-columns: 1fr auto; grid-template-areas: "name pct" "cap chg" "spark spark" "date date"; row-gap: 4px; }
  .rsv-c-name { grid-area: name; }
  .rsv-c-pct { grid-area: pct; text-align: right; }
  .rsv-c-cap { grid-area: cap; }
  .rsv-c-chg { grid-area: chg; text-align: right; }
  .rsv-c-spark { grid-area: spark; }
  .rsv-c-date { grid-area: date; text-align: left; }
  .rsv-row.rsv-row-child { margin-left: 10px; }
}
#rsvMap .leaflet-popup-content .svt-star--mini { margin-left: 6px; }   /* the save star beside the name */

/* /reservoirs/{company} only: its rows have five cells (no weekly change), and its headline sits under a left-aligned title. */
.rsv-hero-co { text-align: left; }
.rsv-hero-co .rsv-hero-ctx { margin: 6px 0 0; max-width: none; }
.rsv-rows-co .rsv-row { grid-template-columns: minmax(150px,1.6fr) 74px 130px 96px 128px; }
@media (max-width: 760px) {   /* the hub's own phone breakpoint, above */
  .rsv-rows-co .rsv-row { grid-template-columns: 1fr auto; grid-template-areas: "name pct" "cap cap" "spark spark" "date date"; }
}
