/* NYS Water Systems page (2026-10-11). Same frame as the other report pages; water layers in blues. */
.water-page{max-width:var(--page-max,1280px);margin:0 auto;padding:30px 32px 72px;color:#1b3144}
.water-hero{padding-bottom:16px;border-bottom:2px solid var(--rule-strong,#1b3a2c)}
.water-hero h1{margin:4px 0 6px;color:var(--title-navy,#082946);font:700 34px/1.1 var(--font-title,Georgia,serif)}
.water-hero p:last-child{margin:0;color:#4d6473;font-size:14px}
/* Every System grid on site grid defaults (NYS Water Systems; Robert, 2026-10-29): 20px title, ink headers, 6px search
   corners, blue arrow on the sorted column, scroll bar only when needed. */
.ws-systems h2{font-size:20px}
.ws-systems .ws-table thead th{color:var(--ink,#1b3144)}
.ws-systems .water-grid-tools input{border-radius:6px}
.ws-systems .wv-sort i.on{color:var(--blue)}
.ws-systems .water-grid-scroll{max-height:none}
.ws-systems table.ws-table{width:100%}
.ws-systems .ws-table td.ws-places{white-space:normal;min-width:14em;max-width:26em}
.ws-systems .ws-table td:nth-child(3),.ws-systems .ws-table td:nth-child(4){text-align:left;font-variant-numeric:normal}
.ws-systems .ws-table td.num{text-align:right;font-variant-numeric:tabular-nums}
/* Map downloads at the map's top right: picture (PNG) and numbers (CSV) (Robert, 2026-10-29). */
.wv-map-wrap{position:relative}
.ws-map-downloads{position:absolute;top:0;right:0;z-index:4;display:flex;gap:6px}
.ws-map-downloads .download-icon-button{position:static}
/* Summary and How to Read on the title line, to its right, side by side (Water Violations Timeline; Robert, 2026-10-29). */
.wv-title-row{display:flex;flex-wrap:nowrap;align-items:center;gap:22px;margin:4px 0 6px}
.wv-title-row h1{margin:0}
.wv-deeper{display:inline-flex;align-items:center;gap:6px;flex:none;padding:0;border:0;background:none;cursor:pointer;color:var(--blue);font:700 15px/1.2 var(--font-title);white-space:nowrap}
.wv-deeper:hover .wv-deeper-label{color:var(--navy);text-decoration:underline}
.wv-deeper:focus-visible{outline:3px solid #ffca45;outline-offset:2px}
.wv-deeper-body{position:relative;padding:12px 32px 4px 0}
.wv-deeper-body .deeper-close{position:absolute;top:8px;right:0;border:0;background:none;padding:0 4px;font-size:22px;line-height:1;cursor:pointer;color:#4d6473}
.wv-deeper-body .deeper-close:hover{color:var(--navy)}
.wv-deeper-body p{margin:0 0 8px;color:var(--forest);font:400 15px/1.5 var(--font-body)}
.water-page .eyebrow{margin:0;color:#3d6b58;font-size:11px;font-weight:900;letter-spacing:.11em}
.water-map-panel,.water-grid{margin-top:20px}
.water-map-panel>header,.water-grid>header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--rule,#c9d6cc)}
.water-map-panel h2,.water-grid h2{margin:4px 0 0;color:var(--title-navy,#082946);font:700 22px/1.15 var(--font-title,Georgia,serif)}
.water-layer-switches{display:flex;gap:18px;font-size:13px;color:#1b3144}
.water-layer-switches label{display:flex;align-items:center;gap:6px;cursor:pointer}
.water-map{width:100%;height:auto;display:block;background:#f4f8fb}
.water-counties path{fill:#fbfdfb;stroke:#9aa9a0;stroke-width:.8}
.water-areas path{stroke:#2c5d8f;stroke-width:.35;cursor:pointer}
.water-areas path:hover{stroke:#d17800;stroke-width:1.2}
.water-areas path.picked{fill:#fff1a8!important;stroke:#d17800;stroke-width:2}
.water-dams circle{fill:#e2620c;fill-opacity:.85;stroke:#fff;stroke-width:.8}
.water-legend div{padding:6px 8px;border:1px solid rgba(20,60,100,.25);background:rgba(255,255,255,.93);font:400 11px/1.5 var(--font-body);color:#1b3144}
.water-legend strong{display:block;margin-bottom:3px;color:var(--blue);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.water-legend span{display:flex;align-items:center;gap:6px}
.water-legend i{display:inline-block;width:14px;height:10px;border:1px solid #2c5d8f}
.water-legend i.water-legend-dam{width:9px;height:9px;border-radius:50%;background:#e2620c;border-color:#fff}
.water-pending{color:var(--blue);font-size:12px}
.water-grid-tools{display:flex;align-items:center;gap:10px}
.water-grid-tools input{height:34px;width:240px;padding:0 10px;border:1px solid var(--rule,#c9d6cc)}
.water-grid-scroll{max-height:560px;overflow:auto;border-bottom:1px solid var(--rule,#c9d6cc)}
.water-grid table{width:100%;border-collapse:collapse;font-size:13px}
.water-grid th,.water-grid td{padding:8px 10px;border-bottom:1px solid #e3eae5;text-align:right;white-space:nowrap}
.water-grid th:first-child,.water-grid td:first-child,.water-grid tbody th{text-align:left;white-space:normal}
.water-grid thead th{position:sticky;top:0;background:#f7f9f7;color:#334e45;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.water-grid tbody tr{cursor:pointer}
.water-grid tbody tr:hover{background:#eef5fb}
.water-grid tbody tr.picked{background:#fff1a8;box-shadow:inset 5px 0 #d17800}
.water-note{margin:12px 0 0;color:var(--blue);font-size:12px;line-height:1.45}
@media (max-width:800px){.water-page{padding:18px 16px 48px}.water-grid-tools input{width:100%}}
/* Water Sources page (2026-10-12): wells canvas under the withdrawal dots, both over the county map. */
.water-map-stack{position:relative}
.water-wells-canvas,.water-map-top{position:absolute;inset:0;width:100%;height:100%;background:transparent}
.water-wells-canvas{pointer-events:none}
.water-map-top{pointer-events:none}
.water-map-top circle,.water-map-top foreignObject{pointer-events:auto}
.water-sources circle{fill-opacity:.82;stroke:#fff;stroke-width:.7;cursor:pointer}
.water-sources circle:hover{stroke:#111;stroke-width:1.2}
.water-sources circle.picked{fill:#ffd400!important;stroke:#111;stroke-width:2}
.water-legend i.water-legend-dot{width:9px;height:9px;border-radius:50%;border-color:#fff}
.water-legend i.water-legend-well{width:6px;height:6px;border:0;background:rgba(0,128,128,.6)}
.water-layer-switches select{height:28px;font-size:13px}
/* Water Violations by State (2026-10-12): county boundaries only, dots for the towns and cities where violations happened. */
.wv-counties path{fill:#fbfdfb;stroke:#1c2621;stroke-width:1.6;cursor:pointer}
.wv-counties path:hover{fill:#f0f5f2}
.wv-counties path.picked{fill:#cfe0f3;stroke:var(--blue);stroke-width:2.5}
.wv-county-labels text{fill:#26332c;font:600 11px var(--font-body);text-anchor:middle;pointer-events:none}
.wv-sites circle{fill:#c0392b;fill-opacity:.75;stroke:#fff;stroke-width:1;cursor:pointer}
.wv-sites circle:hover{stroke:#111;stroke-width:1.2}
.wv-sites circle.picked{fill:#ffd400;fill-opacity:1;stroke:#111;stroke-width:1.6}
.water-clear{height:28px;padding:0 10px;border:1px solid var(--rule,#c9d6cc);background:#fff;color:var(--blue);font-size:13px;cursor:pointer}
.water-find input{height:30px;width:300px;padding:0 10px;border:1px solid var(--rule,#c9d6cc);font-size:13px}
@media (max-width:800px){.water-find input{width:100%}}
.water-map path,.water-map circle{vector-effect:non-scaling-stroke}
.wv-map{max-width:none;width:90%;margin:0}
.wv-howto{margin:4px 0 0;color:#4d6473;font-size:13px;max-width:70ch}
.wv-sub{display:block;color:#6b7a86;font-size:11px}
.wv-map-wrap{position:relative}
/* Water Violations grid (2026-10-12): text left, numbers right; sortable titles; downstate counties dark gray. */
.wv-counties path.downstate{fill:#555b5f;stroke:none;cursor:default}
.wv-counties path.downstate:hover{fill:#555b5f}
.water-grid .wv-table th,.water-grid .wv-table td{text-align:left}
.water-grid .wv-table th.num,.water-grid .wv-table td.num{text-align:right}
.wv-sort{all:unset;cursor:pointer;display:inline-flex;gap:4px;align-items:baseline}
.wv-sort i{font-style:normal;color:#8a9a90;font-size:11px}
.wv-sort:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.water-grid-tools select{height:34px;max-width:220px;border:1px solid var(--rule,#c9d6cc);font-size:13px}
.water-grid-tools{flex-wrap:wrap}
/* Map controls end at the map's right edge (the map is 90% wide, centered). */
.water-map-panel:has(.wv-map)>header{padding-right:10%}
.wv-totals{display:flex;flex-wrap:wrap;gap:6px 24px;align-items:baseline;margin:10px 0 0;padding:8px 10px;border-top:2px solid #1f5138;background:#f7f9f7;font:400 14px Georgia,serif;color:#082946}
.wv-totals b{font-weight:700;font-variant-numeric:tabular-nums}
.wv-totals em{color:#4d6473;font:italic 12px var(--font-body)}
.water-clear:disabled{color:#9aa9a0;cursor:default}
.water-grid-tools .water-find input,.water-grid-tools .water-clear{height:34px;box-sizing:border-box;margin:0;vertical-align:middle}
/* Grid navigation (2026-10-12): centered under the grid. */
.wv-nav{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 10px;margin:12px 0 0;font:400 13px var(--font-body);color:#1b3144}
.wv-nav button{min-width:38px;height:34px;border:1px solid var(--rule,#c9d6cc);background:#fff;color:var(--blue);font-size:15px;cursor:pointer}
.wv-nav button:hover:not(:disabled){background:#eef5fb}
.wv-nav button:disabled{color:#b8c3bc;cursor:default}
.wv-nav input{width:64px;height:30px;text-align:center;border:1px solid var(--rule,#c9d6cc);font-size:13px}
.wv-nav select{height:34px;border:1px solid var(--rule,#c9d6cc);font-size:13px}
.wv-nav-rows,.wv-nav-keys{color:#4d6473}
.wv-nav-keys{font-size:11px;width:100%;text-align:center}
.water-grid-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.wv-counties path.downstate.picked{fill:#7d98b8;stroke:var(--blue);stroke-width:2.5}
.wv-map-counts text{font:700 17px Georgia,serif;pointer-events:none}
.wv-map-counts .wv-count-title{font:600 12px var(--font-body);fill:#26332c}
.wv-map-counts .wv-count-yes{fill:#c0392b}
.wv-map-counts .wv-count-no{fill:#c25e00}
.wv-howto.wv-howto-wide{max-width:none;margin:8px 0 10px;padding-right:10%}
/* Hovered county raised and enlarged so it can be clicked. */
.wv-hover path{fill:#fff8d6;stroke:var(--blue);stroke-width:2.2;cursor:pointer;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}
.wv-hover path.picked{fill:#cfe0f3}
.wv-hover-label{fill:#082946;font:700 11px var(--font-body);text-anchor:middle;pointer-events:none}
.wv-hover circle{fill:#c0392b;fill-opacity:.8;stroke:#fff;stroke-width:1;cursor:pointer}
.wv-hover circle:hover{stroke:#111;stroke-width:1.4}
.wv-hover circle.picked{fill:#ffd400;fill-opacity:1;stroke:#111}
.wv-county-labels .wv-lbl-yes{fill:#c0392b;font-weight:700}
.wv-county-labels .wv-lbl-no{fill:#c25e00;font-weight:700}
/* Counts under the county names smaller than the names (Robert, 2026-10-29: "make the map marker numbers smaller!"). */
.wv-county-labels .wv-lbl-yes,.wv-county-labels .wv-lbl-no{font-size:8.5px}
.wv-map-counts .wv-count-key{font:400 11px var(--font-body);fill:#26332c}
/* County labels sit above the dots with a white outline so they stay readable. */
.wv-county-labels text{paint-order:stroke;stroke:#fff;stroke-width:2.6px;stroke-linejoin:round}
/* Water Violations Timeline (trial page, 2026-10-12). */
.wt-slider{display:flex;align-items:center;gap:10px;margin:6px 0 10px;width:90%;font:400 13px var(--font-body);color:#1b3144}
.wt-slider input[type=range]{flex:1;accent-color:#c0392b}
.wt-slider button{height:32px;padding:0 12px;border:1px solid var(--blue);background:var(--blue);color:#fff;font:700 13px var(--font-body);cursor:pointer}
.wt-slider strong{font:700 22px Georgia,serif;color:#082946;min-width:56px;text-align:right}
.wt-chart{position:relative;width:90%}
.wt-chart svg{width:100%;height:auto;display:block}
.wt-grid{stroke:#e3eae5;stroke-width:1}
.wt-base{stroke:#8a9a90;stroke-width:1}
.wt-axis{fill:#4d6473;font:400 11px var(--font-body)}
.wt-axis-sel{fill:#082946;font-weight:700}
.wt-bar{cursor:pointer}
.wt-hit{fill:transparent}
.wt-bar:hover .wt-hit{fill:#eef4fb}
.wt-bar.sel .wt-hit{fill:#dfeaf6}
.wt-tip{position:absolute;pointer-events:none;padding:4px 8px;background:#082946;color:#fff;font:400 12px var(--font-body);white-space:nowrap;border-radius:3px}
.wt-legend{display:flex;gap:14px;font:400 12px var(--font-body);color:#1b3144}
.wt-legend span{display:inline-flex;align-items:center;gap:5px}
.wt-legend i{display:inline-block;width:12px;height:12px;border-radius:2px}
/* Totals under the grid sit at the right of their tile; the note stays at the left. */
.wv-totals{justify-content:flex-end}
.wv-totals em{order:-1;margin-right:auto}
/* Narrow grid + detail panel (2026-10-12). Ledger look: hairline rules, no box or shadow. */
.wv-grid-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:0 28px}
.wv-grid-detail.open{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr)}
.wv-grid-detail .water-grid-scroll{min-width:0}
.wv-table tbody tr{cursor:pointer}
.wv-table tbody tr.picked{background:#fff6cc}
.wv-detail{min-width:0;border-top:2px solid var(--rule-strong,#1b3a2c);padding-top:6px;align-self:start;position:sticky;top:8px}
.wv-detail header{display:flex;align-items:flex-start;gap:10px}
.wv-detail h3{margin:2px 0 8px;color:var(--title-navy,#082946);font:700 19px/1.2 var(--font-title,"Trebuchet MS",var(--font-body))}
.wv-detail h3 .ue-title-cap{font-size:1.25em}
.wv-detail header button{margin-left:auto;border:0;background:none;font-size:22px;line-height:1;color:#4d6473;cursor:pointer}
.wv-detail h4{margin:10px 0 2px;padding-bottom:3px;border-bottom:1px solid var(--rule,#c6d0c7);color:var(--forest,#1f5138);font:700 13px var(--font-body);letter-spacing:.04em;text-transform:uppercase}
.wv-detail h4 .ue-title-cap{font-size:1.2em}
.wv-detail dl{display:grid;grid-template-columns:minmax(120px,auto) 1fr;margin:0;font-size:13px}
.wv-detail dt,.wv-detail dd{margin:0;padding:5px 0;border-bottom:1px solid var(--rule,#c6d0c7)}
.wv-detail dt{color:#4d6473;padding-right:12px}
.wv-detail dd{color:#082946;font:400 14px Georgia,serif;font-variant-numeric:tabular-nums}
@media (max-width:900px){.wv-grid-detail.open{grid-template-columns:minmax(0,1fr)}.wv-detail{position:static}}
/* Grid cells wrap so the narrow grid never scrolls sideways. */
.water-grid .wv-table th,.water-grid .wv-table td{white-space:normal}
/* Trial copy (2026-10-13): hollow red violation rings over the service areas. */
.water-viol-rings circle{fill:rgba(192,57,43,.08);stroke:#c0392b;stroke-width:1.4;cursor:pointer;pointer-events:all}
.water-viol-rings circle:hover{fill:rgba(192,57,43,.22);stroke:#7a1c12;stroke-width:2.4}
.water-legend i.water-legend-ring{width:9px;height:9px;border-radius:50%;border:1.5px solid #c0392b;background:none}
.water-viol-btn{height:30px;padding:0 12px;border:1px solid #c0392b;background:#fff;color:#c0392b;font:700 13px var(--font-body);cursor:pointer}
.water-viol-btn.on{background:#c0392b;color:#fff}
.water-layer-switches{flex-wrap:wrap;align-items:center}
.water-viol-btn.county{border-color:#5b6b62;color:#3d4a43}
.water-viol-btn.county.on{background:#3d4a43;color:#fff}
.water-counties.no-lines path{stroke:none}
.water-state-outline{fill:none;stroke:#5b6b62;stroke-width:1;pointer-events:none}
/* Hudson Valley close-up (2026-10-13): pop-up panel at the right of the map on hover. */
.wv-se-hint rect{fill:none;stroke:var(--blue);stroke-width:1.2;stroke-dasharray:5 4;pointer-events:none}
.wv-se-hint text{fill:var(--blue);font:700 11px var(--font-body);pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:3px}
.wv-se-panel{position:absolute;top:0;right:0;z-index:5;width:min(42%,440px);background:#fff;border:1px solid var(--rule);border-top:2px solid var(--rule-strong,#1b3a2c);padding:6px 10px 8px}
.wv-se-panel header{display:flex;align-items:baseline}
.wv-se-panel strong{color:var(--title-navy,#082946);font:700 16px var(--font-title,"Trebuchet MS",var(--font-body))}
.wv-se-panel strong .ue-title-cap{font-size:1.25em}
.wv-se-panel header button{margin-left:auto;border:0;background:none;font-size:22px;line-height:1;cursor:pointer;color:#4d6473}
.wv-se-panel svg{width:100%;height:auto;display:block}
.wv-se-panel .wv-counties path{stroke-width:1.4}
/* Pink = all violations at a place, red core = health-based (2026-10-13). */
.wv-sites circle.pink,.wv-hover circle.pink,.wv-se-panel circle.pink{fill:#f2a7b8;fill-opacity:.85}
.wv-sites circle.core,.wv-hover circle.core,.wv-se-panel circle.core{fill:#c0392b;fill-opacity:.9;stroke:none;pointer-events:none}
.wv-sites g.picked circle,.wv-hover g.picked circle,.wv-se-panel g.picked circle{fill:#ffd400;fill-opacity:1;stroke:#111;stroke-width:1.6}
.wv-sites g,.wv-hover g,.wv-se-panel g{cursor:pointer}
.wv-se-panel.large{width:min(68%,780px)}
.wv-se-panel header{gap:10px}
.wv-se-expand{margin-left:auto;height:24px;padding:0 8px;border:1px solid var(--blue);background:#fff;color:var(--blue);font:700 12px var(--font-body);cursor:pointer}
.wv-se-panel header button[aria-label="Close close-up"]{margin-left:0}
.wv-se-pinned{color:#4d6473;font:400 11px var(--font-body)}
.wv-se-panel header .wv-se-expand{margin-left:auto;height:24px;padding:0 8px;border:1px solid var(--blue);background:#fff;color:var(--blue);font:700 12px var(--font-body);line-height:22px}
/* Reservoirs yellow (Robert, 2026-10-13: "yellow not orange"). */
.water-dams circle{fill:#f2c200;fill-opacity:.9;stroke:#7a6200;stroke-width:.6}
.water-legend i.water-legend-dam{background:#f2c200;border-color:#7a6200}
/* Systems grid: compact, columns sized to their content and packed left so more can be added; titles wrap to two lines. */
.water-grid table.ws-table{width:auto}
.water-grid .ws-table th,.water-grid .ws-table td{text-align:left;white-space:nowrap;padding:6px 12px 6px 8px}
.water-grid .ws-table thead th{white-space:normal;max-width:9em;line-height:1.25;vertical-align:bottom}
.water-grid .ws-table tbody th{white-space:normal;min-width:16em}
.water-grid .ws-table td:nth-child(3),.water-grid .ws-table td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
/* NYS Water Systems: clickable counties, county labels, violations grid (2026-10-13). */
.water-counties.clickable path{cursor:pointer}
.water-counties.clickable path:hover{fill:#eef4fb}
.water-counties.clickable path.picked{fill:#dfeaf6;stroke:var(--blue);stroke-width:1.6}
.ws-viol{margin-top:20px}
.ws-viol>header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.ws-viol h2 .ue-title-cap{font-size:1.2em}
/* Totals tile on the NYS Water Systems map (2026-10-13). */
.ws-totals div{padding:6px 9px;border-top:2px solid var(--rule-strong,#1b3a2c);background:rgba(255,255,255,.95);font:400 11px/1.35 var(--font-body);color:#1b3144}
.ws-totals p{margin:0 0 4px}
.ws-totals strong{display:block;color:#082946;font:700 11px var(--font-body);letter-spacing:.02em}
.ws-totals span{margin-right:10px;font:400 13px Georgia,serif;font-variant-numeric:tabular-nums}
.ws-totals span.yes{color:#c0392b}
.ws-totals em{color:#4d6473}
.ws-range{font-size:.72em;color:#c0392b;font-weight:600}
/* Reservoirs dark blue (Robert, 2026-10-13), water shading lighter. */
.water-dams circle{fill:#0b2f7a;fill-opacity:.9;stroke:#fff;stroke-width:.8}
.water-legend i.water-legend-dam{background:#0b2f7a;border-color:#fff}
.water-areas path{stroke:#6a9cc4}
.wv-se-panel.small{width:min(32%,330px)}
.wv-se-hint path{stroke:var(--blue);stroke-width:1.1;stroke-dasharray:5 4}
.wv-se-panel{width:min(44%,470px)}
.wv-se-panel.large{width:min(68%,780px)}
/* Two close-ups (2026-10-13): Saratoga area opens top right, Hudson Valley bottom right. Inside a close-up the service
   areas don't catch clicks, so each circle and the county under it can be clicked. */
.wv-se-panel{width:min(38%,420px)}
.wv-se-panel.top{top:0;bottom:auto}
.wv-se-panel.bottom{top:auto;bottom:0}
.wv-se-panel .water-areas path{pointer-events:none}
.wv-se-hint path{stroke:var(--blue);stroke-width:1.3;stroke-dasharray:2 3}
/* Close-up areas: one dotted line around each whole area (hover paths themselves undrawn). */
.wv-se-hint path{stroke:none}
.wv-se-hint path.wv-se-outline{fill:none;stroke:var(--blue);stroke-width:1.8;stroke-dasharray:2 3;pointer-events:none}
/* Water Contaminants Timeline (2026-10-13): figures as a hairline-ruled list, two timelines, contaminant table. */
.wc-figures{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:0 24px;margin:10px 0 14px;border-top:2px solid var(--rule-strong,#1b3a2c)}
.wc-figures div{padding:7px 0;border-bottom:1px solid var(--rule,#c6d0c7)}
.wc-figures dt{color:#4d6473;font:400 12px var(--font-body)}
.wc-figures dd{margin:2px 0 0;color:#082946;font:400 20px var(--font-body);font-variant-numeric:tabular-nums}
.wc-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;margin:10px 0 4px}
.wc-periods>button{all:unset;cursor:pointer;display:block;padding:6px 0 4px;border-top:1px solid var(--rule,#c6d0c7);border-bottom:1px solid var(--rule,#c6d0c7)}
.wc-periods>button.on{border-top:3px solid var(--title-navy,#082946)}
.wc-periods>button:not(.on){opacity:.72}.wc-periods>button:hover{opacity:1}
.wc-periods>button:focus-visible{outline:2px solid var(--title-navy,#082946);outline-offset:2px}
/* Periods and figures as tables (Robert, 2026-11-04). Colors and font come from the site's --grid-* settings. */
.wc-periods-table{width:auto;min-width:640px;border-collapse:collapse;margin:10px 0 4px} /* narrowed (Robert, 2026-11-04) */
.wc-periods-table :is(th,td){padding:6px 12px;border-bottom:1px solid;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}
.wc-periods-table tbody th{text-align:left;font-weight:400}
.wc-periods-table thead th{border-bottom:2px solid var(--rule-strong,#1b3a2c);border-top:3px solid transparent}
.wc-periods-table thead th button{all:unset;cursor:pointer;font:700 15px var(--font-title);color:var(--blue)}
.wc-periods-table thead th button:focus-visible{outline:2px solid var(--title-navy);outline-offset:2px}
.wc-periods-table thead th.on{border-top-color:var(--title-navy)}
.wc-periods-table thead th.on button{color:var(--title-navy)}
.wc-periods-table .on{background-color:var(--wash)!important}
.wc-figures-table{border-collapse:collapse;margin:10px 0 14px;min-width:460px;border-top:2px solid var(--rule-strong,#1b3a2c)}
.wc-figures-table :is(th,td){padding:6px 12px;border-bottom:1px solid;font-size:14px}
.wc-figures-table th{text-align:left;font-weight:400}
.wc-figures-table td{text-align:right;font-variant-numeric:tabular-nums}
.wc-period-name{display:block;color:var(--title-navy,#082946);font:700 15px var(--font-title,"Trebuchet MS",var(--font-body));margin-bottom:4px}
.wc-period-name .ue-title-cap{font-size:1.2em}
.wc-periods dl{margin:0}.wc-periods dl div{display:flex;justify-content:space-between;gap:8px;padding:2px 0}
.wc-periods dt{color:#4d6473;font:400 12px var(--font-body)}
.wc-periods dd{margin:0;color:#082946;font:400 15px var(--font-body);font-variant-numeric:tabular-nums}
@media (max-width:640px){.wc-periods{grid-template-columns:1fr}}
.wc-h3{margin:16px 0 2px;color:var(--title-navy,#082946);font:700 16px var(--font-title,"Trebuchet MS",var(--font-body))}
.wc-h3 small{color:#4d6473;font:400 12px var(--font-body);margin-left:6px}
.wc-h3 .ue-title-cap{font-size:1.2em}
.wc-chart{width:100%}
.wc-year{margin:6px 0 0;color:#082946;font:400 14px Georgia,serif}
.wc-table th.num,.wc-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.wc-table tbody tr.picked{background:#fff6cc}
.wc-notes{margin:12px 0 0;padding-left:18px;color:var(--blue);font-size:11px;line-height:1.45;max-width:110ch}
/* Water Violations Overview (2026-10-13). */
.wo-links{display:flex;flex-wrap:wrap;gap:6px 16px;font:700 13px var(--font-body)}
.wo-links a{color:var(--blue);text-decoration:none;border-bottom:1px solid var(--blue)}
.wo-tabs{display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--rule,#c9d6cc)}
.wo-tabs button{height:34px;padding:0 12px;border:0;border-right:1px solid var(--rule,#c9d6cc);background:#fff;color:var(--blue);font:600 13px var(--font-body);cursor:pointer}
.wo-tabs button:last-child{border-right:0}
.wo-tabs button.on{background:var(--blue);color:#fff}
.wo-spark{width:50px;height:16px;display:inline-block;vertical-align:middle}
.wo-spark rect{fill:var(--blue)}
.wo-table thead th{max-width:8em}
.wo-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:12px 32px}
.wo-two table{width:100%}
.wc-figures sup,.wc-notes{font-size:11px}
/* Overview charts: subtle grid lines so the scale can be read (Robert, 2026-10-13). Bars draw over them. */
.wo-grid{stroke:#c9d3cc;stroke-width:.8}
.wo-vgrid{stroke:#dbe3dd;stroke-width:.8;stroke-dasharray:3 3;pointer-events:none}
.wc-chart .wt-bar rect:not(.wt-hit){position:relative}
/* Overview: open items (backlog line, age bars). */
.wo-area{fill:#2a64a8;fill-opacity:.12}
.wo-line{fill:none;stroke:#2a64a8;stroke-width:2}
.wo-ages{display:grid;gap:6px;max-width:760px;margin:8px 0 4px}
.wo-ages div{display:grid;grid-template-columns:140px 1fr 70px;align-items:center;gap:10px;font:400 13px var(--font-body);color:#1b3144}
.wo-ages i{display:block;height:14px;background:#2a64a8;border-radius:0 3px 3px 0;min-width:2px}
.wo-ages b{font:400 14px Georgia,serif;text-align:right;font-variant-numeric:tabular-nums}
/* Overview charts: dotted guidelines (Robert, 2026-10-13: "put guidelines in, use dots"). */
.wo-grid{stroke:#9fb0a6;stroke-width:1.2;stroke-dasharray:0.1 4;stroke-linecap:round}
.wo-vgrid{stroke:#b7c4bb;stroke-width:1.2;stroke-dasharray:0.1 4;stroke-linecap:round}
/* Began date column a little wider, dates on one line (Robert, 2026-10-13). */
.water-grid th.col-begin,.water-grid td.col-begin{min-width:7.2em;white-space:nowrap}
/* Violations page: grid tools take the full row; the CSV + Download pair ends at the grid's right edge. */
.water-grid>header .water-grid-tools.wv-tools{flex:1 1 100%}
.wv-download{margin-left:auto;display:inline-flex}
/* Reporting-change separator at 2015 on water charts (2026-10-13). */
.wo-change line{stroke:#7a1c12;stroke-width:1.4;stroke-dasharray:5 3}
.wo-change text{fill:#7a1c12;font:700 11px var(--font-body);paint-order:stroke;stroke:#fff;stroke-width:3px}
.wo-change-note{margin:4px 0 10px;max-width:110ch;color:#4d1a12;font:400 12px/1.45 var(--font-body)}
/* Overview charts: clearly visible dotted guidelines across the chart at every tick (2026-10-13, asked twice). */
.wo-grid{stroke:#6f8278;stroke-width:1.6;stroke-dasharray:0.1 5;stroke-linecap:round;opacity:.75}
.wt-axis{fill:#33475a}
/* Contaminant table group rows (2026-10-13). */
.wc-table tr.wc-group th,.wc-table tr.wc-group td{background:#e9f0eb;color:#082946;font-weight:700;border-top:2px solid var(--rule-strong,#1b3a2c)}
.wc-table tr.wc-group th span{color:#4d6473;font-weight:400;font-size:11px;margin-left:6px}
/* Water Sources (Robert, 2026-10-26): selections stand out — picked dots bright gold with a heavy dark ring on top; the
   rest fade while anything is selected; picked counties tinted. */
.water-sources circle.picked{fill:#ffd400!important;fill-opacity:1;stroke:#111;stroke-width:2.5}
.water-sources circle.faded{fill-opacity:.25;stroke-opacity:.3}
.water-grid tbody tr.picked{background:#ffe766;box-shadow:inset 6px 0 #111;font-weight:700}
.water-grid thead th{white-space:nowrap}
/* Overview contaminant grids (Robert, 2026-10-26): every contaminant, in a box about 12 rows tall that scrolls; headings stay. */
.wo-scroll{max-height:440px;overflow-y:auto;border-bottom:1px solid var(--rule,#c6d0c7)}
.wo-scroll thead th{position:sticky;top:0;z-index:1;background:#f7f9f7}
/* Map key next to "where violations happened" (Robert, 2026-10-29): same colors as the dots. */
.wv-key{display:inline-flex;gap:14px;margin:0 6px;vertical-align:middle}
.wv-key>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.wv-key-red{fill:#c0392b;fill-opacity:.9}
.wv-key-pink{fill:#f2a7b8;fill-opacity:.85;stroke:#fff;stroke-width:1}
/* What the colors mean, under the map instructions (Robert, 2026-10-29; to be moved later). */
.wv-meaning{margin:6px 0 10px;max-width:1100px}
.wv-meaning p{margin:0 0 4px;color:var(--forest);font:400 13px/1.45 var(--font-body)}
.wv-meaning strong{color:#c0392b}
.wv-meaning p + p strong{color:#b85d78}
/* Why Violations Happen (internal chart, Robert 2026-10-29). */
.vr-section{margin-top:20px}
.vr-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.vr-summary{margin:0;color:var(--ink);font:400 15px var(--font-body)}
.vr-tools{display:flex;align-items:center;gap:14px;font:400 13px var(--font-body);color:var(--ink)}
.vr-tools .download-icon-button{position:static}
.vr-legend{display:flex;gap:18px;margin:10px 0 4px;font:400 13px var(--font-body);color:var(--ink)}
.vr-legend i{display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.vr-chart{position:relative;max-width:900px}
.vr-chart svg{width:100%;height:auto;display:block}
.vr-label{font:400 13px var(--font-body);fill:var(--ink)}
.vr-value{font:400 12px var(--font-body);fill:var(--muted);font-variant-numeric:tabular-nums}
.vr-tip{position:absolute;pointer-events:none;background:#fff;border:1px solid var(--rule);padding:6px 8px;font:400 12px var(--font-body);color:var(--ink);white-space:nowrap}
.vr-note{max-width:900px;margin:10px 0 0;color:var(--muted);font:400 12px/1.45 var(--font-body)}
/* The two per-year bar charts on the Overview, a touch smaller (Robert, 2026-10-29): ~90% width (bars scale with it),
   axis 10px, legend 11px, title 15px. */
.wc-chart.wc-small{width:90%}
.wc-chart.wc-small .wt-axis{font-size:10px}
.wt-legend.wc-small{font-size:11px}
.wt-legend.wc-small i{width:11px;height:11px}
.wc-h3.wc-small{font-size:15px}
.wc-h3.wc-small small{font-size:11px}
/* Overview area grid: a scroll bar that always shows, as on Voting District Map (Robert, 2026-10-29). */
.wo-scroll{overflow-y:scroll;scrollbar-width:auto;scrollbar-color:#8aa596 #eef3f0}
.wo-scroll::-webkit-scrollbar{width:12px;height:12px;-webkit-appearance:none}
.wo-scroll::-webkit-scrollbar-track{background:#eef3f0;border-left:1px solid #d5ddd8}
.wo-scroll::-webkit-scrollbar-thumb{background:#8aa596;border-radius:6px;border:2px solid #eef3f0}
.wo-scroll::-webkit-scrollbar-thumb:hover{background:#5f8070}
