/* The Water Systems page (src/water-systems/water-systems-twin.js). Cards, tables, pills, tabs, pagers and the pop-up are the
   shared .wqx-* classes in wq-twin.css; only what this page adds is here. Colour comes from tokens only; no gradients, no
   blur, no coloured edge stripes, no keyframes (styles/motion.css owns those). The map is one hue by count on purpose: a
   shade is a record in EPA's data, not a verdict, so it is never drawn red and green. */

.ws { display: grid; gap: 18px; }
.ws-trust { margin: 12px 0 0; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }

/* the four doors under the search */
.ws-doors { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ws-door { display: grid; gap: 4px; width: 100%; height: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); color: var(--guide-color-ink); font: inherit; cursor: pointer; }
.ws-door b { font-size: var(--guide-fs-md); }
.ws-door span { font-size: var(--guide-fs-sm); line-height: 1.45; color: var(--guide-color-ink-soft); }
.ws-door i { font-style: normal; font-size: var(--guide-fs-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.ws-door:hover { background: var(--guide-color-bg-1); border-color: var(--guide-color-ink-soft); }
.ws-door:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 2px; }
.ws-finder.is-mini { margin: 0 0 12px; }

/* the search results: a name over a line of words (the shared list is laid out for an icon column this page does not use) */
.ws-finder .wqx-results .wqx-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ws-finder .wqx-results .wqx-hit b { font-size: var(--guide-fs-md); }
.ws-finder .wqx-results .wqx-hit span { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.ws-finder .wqx-results .wqx-none { padding: 10px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }

/* the sentence */
.ws-big { max-width: 46em; font-size: clamp(18px, 3vw, 23px); }
.ws-caveat { margin: 8px 0 0; max-width: 62em; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); }
.ws-status { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.ws-decides, .ws-compare { margin: 0 0 10px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }
.ws-compare { color: var(--guide-color-ink); margin: 10px 0 6px; }

/* where: the map beside the kinds */
.ws-where-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
@media (min-width: 900px) { .ws-where-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.ws-map { width: 100%; height: auto; display: block; }
.ws-co { stroke: var(--guide-color-border-strong); stroke-width: 0.8; cursor: pointer; }
.ws-b0 { fill: var(--guide-color-bg-1); }
.ws-b1 { fill: color-mix(in srgb, var(--guide-color-lake) 16%, var(--guide-color-paper)); }
.ws-b2 { fill: color-mix(in srgb, var(--guide-color-lake) 32%, var(--guide-color-paper)); }
.ws-b3 { fill: color-mix(in srgb, var(--guide-color-lake) 52%, var(--guide-color-paper)); }
.ws-b4 { fill: color-mix(in srgb, var(--guide-color-lake) 74%, var(--guide-color-paper)); }
.ws-bn { fill: var(--guide-color-paper); stroke-dasharray: 3 2; }
.ws-co.is-sel { stroke: var(--guide-color-ink); stroke-width: 2; }
.ws-co:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.ws-co:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 1px; }
.ws-key { margin-top: 8px; }
.ws-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--guide-color-border-strong); }
.ws-sw.ws-b0 { background: var(--guide-color-bg-1); }
.ws-sw.ws-b1 { background: color-mix(in srgb, var(--guide-color-lake) 16%, var(--guide-color-paper)); }
.ws-sw.ws-b2 { background: color-mix(in srgb, var(--guide-color-lake) 32%, var(--guide-color-paper)); }
.ws-sw.ws-b3 { background: color-mix(in srgb, var(--guide-color-lake) 52%, var(--guide-color-paper)); }
.ws-sw.ws-b4 { background: color-mix(in srgb, var(--guide-color-lake) 74%, var(--guide-color-paper)); }
.ws-sw.ws-bn { background: var(--guide-color-paper); border-style: dashed; }

/* the size chart: a dot for the share and a thin line for its interval, one row a size band */
.ws-bands { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ws-bandrow { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; font-size: var(--guide-fs-sm); }
.ws-bandlbl small, .ws-few { color: var(--guide-color-ink-soft); font-size: var(--guide-fs-xs); }
.ws-few { grid-column: 2 / 4; }
.ws-bandtrack { position: relative; height: 18px; border-bottom: 1px solid var(--guide-color-border-default); }
.ws-whisker { position: absolute; top: 8px; height: 2px; background: var(--guide-color-series-1); }
.ws-dot { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--guide-color-series-1); border: 1px solid var(--guide-color-paper); }
.ws-bandfig { text-align: right; font-variant-numeric: tabular-nums; }
.ws-bandrow:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 2px; }
.ws-bandaxis { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.2em; gap: 10px; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-soft); }
.ws-bandscale { display: flex; justify-content: space-between; }
.ws-rulebtn { text-align: left; }

/* lists, records, facts */
.ws-listbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0; }
.ws-group { display: inline-flex; align-items: center; gap: 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
@media (max-width: 600px) {
  .ws-group { display: flex; width: 100%; }
  .ws-group select { flex: 1; min-width: 0; }
}
.ws-group select { font: inherit; max-width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); color: var(--guide-color-ink); }
.ws-rowbtn { text-align: left; }
.ws-rowbtn small, .ws-table small, .ws-facts-table small { color: var(--guide-color-ink-muted); }
.ws-place { display: block; margin-top: 2px; font-size: var(--guide-fs-xs); font-weight: 400; color: var(--guide-color-ink-soft); }
.ws-num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-record { scroll-margin-top: 80px; border-color: var(--guide-color-border-strong); }
.ws-record .wqx-h3 { margin-top: 18px; }
.ws-plain { margin: 6px 0 0; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); max-width: 62em; }
.ws-reads { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.ws-notice { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--guide-color-border-strong); border-radius: 10px; background: var(--guide-color-bg-1); font-size: var(--guide-fs-sm); max-width: 62em; }
.ws-facts { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--guide-fs-sm); line-height: 1.5; max-width: 62em; }
.ws-facts-table th { width: 38%; font-weight: 600; }
.ws-rules { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: var(--guide-fs-sm); }
.ws-st { white-space: normal; }
.ws-st--serious, .ws-st--health { border-color: var(--guide-color-ink); font-weight: 700; }
.ws-st--clear { color: var(--guide-color-ink-soft); }

/* steps and lines (pop-ups and the roles panel) */
.ws-steps { margin: 8px 0 12px; padding-left: 22px; display: grid; gap: 8px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.ws-lines { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; font-size: var(--guide-fs-sm); }
.ws-lines i { margin-right: 6px; vertical-align: -2px; }
.wqx-tile b span { font-size: var(--guide-fs-xs); font-weight: 500; color: var(--guide-color-ink-soft); }

@media print {
  .ws-doors, .ws-listbar { display: none !important; }
  .ws-co { stroke: var(--guide-color-ink-soft); }
}
