/* The Groundwater page (src/hydro/gw-twin.js). It wears the Water Quality page's components
   (styles/modules/wq-twin.css); this file holds only what that page did not need: well dots, well rows, the usual-year
   bands. Tokens only. "No recent reading" is hollow or striped wherever it appears, so it cannot be read as "about usual". */

/* The middle of the lower / usual / higher trio. Stepped darker in dark mode, where the light-mode grey sits too
   close to the lake blue (dataviz palette validator, 2026-11-21). */
.gwx { --gwx-mid: var(--guide-color-neutral-400); }
/* The label on the grey segment: light text on this grey read 2.4:1 (axe, 2026-11-22). Dark ink on the light-mode grey. */
.gwx .wqx-seg[style*="--gwx-mid"] { color: var(--guide-color-ink); }
/* Dark mode brightens clay and lake, so their labels take the dark ink; the grey is stepped darker there and keeps light text. */
[data-theme="dark"] .gwx .wqx-seg:not(.gwx-seg-none) { color: var(--guide-color-on-lake); }
[data-theme="dark"] .gwx .wqx-seg[style*="--gwx-mid"] { color: var(--guide-color-on-dark); }
[data-theme="dark"] .gwx { --gwx-mid: var(--guide-color-neutral-500); }

#gw-twin { max-width: 1180px; }
.wqx .wqx-tile .gwx-of { display: inline; font-size: var(--guide-fs-sm); font-weight: 400; color: var(--guide-color-ink-muted); }
.wqx-big .gwx-low { color: var(--guide-color-clay); }
.gwx-lead { margin: 10px 0 0; font-size: var(--guide-fs-md); line-height: 1.5; }
.gwx-seg-none { background-image: repeating-linear-gradient(90deg, var(--guide-color-neutral-400) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--guide-color-neutral-400); }
.wqx-seg.gwx-seg-none { color: var(--guide-color-ink); }

/* a standing or a trend as a dot and a word */
.gwx-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--guide-fs-sm); white-space: nowrap; }
.gwx-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.gwx-dot.is-hollow { box-shadow: inset 0 0 0 1.5px var(--guide-color-ink-muted); }
.wqx-legend .gwx-dot { margin-right: 6px; }
.wqx .wqx-tile .gwx-chip { display: inline-flex; font-size: var(--guide-fs-lg); font-weight: 700; white-space: normal; color: inherit; }
#gwx-well, #gwx-near, #gwx-counties, #gwx-groups, #gwx-list { scroll-margin-top: 64px; }

/* map */
.gwx-well { stroke: var(--guide-color-paper); stroke-width: .8; cursor: pointer; }
.gwx-well.is-hollow { fill: var(--guide-color-paper); stroke: var(--guide-color-ink-muted); stroke-width: 1.1; }
.gwx-well.is-dim { opacity: .18; }
.gwx-well.is-selected { stroke: var(--guide-color-ink); stroke-width: 2; }
.gwx-well:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.gwx-area { fill: none; stroke: var(--guide-color-ink-soft); stroke-width: 1; stroke-dasharray: 4 3; pointer-events: stroke; }
.gwx-pin { fill: var(--guide-color-ink); stroke: var(--guide-color-paper); stroke-width: 1.2; }
.wqx-legend i.gwx-key-area { background: transparent; border: 1px dashed var(--guide-color-ink-soft); border-radius: 2px; }

/* county and aquifer rows */
.gwx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gwx-row { width: 100%; display: grid; grid-template-columns: minmax(110px, 1.3fr) minmax(70px, 1.2fr) minmax(0, 1.7fr); gap: 10px; align-items: center; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gwx-row:hover, .gwx-row:focus-visible { background: var(--guide-color-bg-1); }
.gwx-row-name { font-size: var(--guide-fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.gwx-row-name em { display: block; font-style: normal; font-weight: 400; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.gwx-row-track { display: block; }
.gwx-row-bar { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; }
.gwx-row-bar span { min-width: 2px; }
.gwx-row-fig { font-size: var(--guide-fs-xs); color: var(--guide-color-ink-soft); }
.gwx-row-fig b { font-size: var(--guide-fs-sm); color: var(--guide-color-ink); }
.gwx-row-fig span { color: var(--guide-color-ink-muted); }

/* well rows */
.gwx-wells { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.gwx-wellrow { width: 100%; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--guide-color-border-subtle); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gwx-wellrow:hover, .gwx-wellrow:focus-visible { background: var(--guide-color-bg-1); }
.gwx-wellrow-main { display: grid; gap: 2px; min-width: 0; }
.gwx-wellrow-main b { font-size: var(--guide-fs-md); }
.gwx-wellrow-main b em { font-style: normal; font-weight: 400; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); margin-left: 6px; }
.gwx-wellrow-main small { font-size: var(--guide-fs-sm); line-height: 1.4; color: var(--guide-color-ink-soft); overflow-wrap: anywhere; }
.gwx-wellrow-tags { display: grid; gap: 4px; justify-items: start; flex: none; min-width: 148px; }
.gwx-sort { display: inline-flex; align-items: center; gap: 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.gwx-sort select { font: inherit; font-size: var(--guide-fs-sm); padding: 6px 8px; border-radius: 8px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-bg-1); color: var(--guide-color-ink); }

/* one well */
.gwx-readings { margin: 8px 0 0; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gwx-readings .wqx-tile b { font-size: var(--guide-fs-lg); }
.gwx-line { fill: none; stroke: var(--guide-color-lake); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gwx-last { fill: var(--guide-color-lake); stroke: var(--guide-color-paper); stroke-width: 2; }
.gwx-fit { stroke: var(--guide-color-ink); stroke-width: 1.4; stroke-dasharray: 5 4; }
.gwx-window { fill: var(--guide-color-bg-2); }
.gwx-band-wide { fill: var(--guide-color-lake); opacity: .16; }
.gwx-band-mid { fill: var(--guide-color-lake); opacity: .38; }
.gwx-band-med { stroke: var(--guide-color-lake); stroke-width: 2; }
.gwx-now { fill: var(--guide-color-ink); stroke: var(--guide-color-paper); stroke-width: 2; }
.wqx-chartkey i.gwx-key-wide, .wqx-chartkey i.gwx-key-mid { border-radius: 2px; background: var(--guide-color-lake); opacity: .16; }
.wqx-chartkey i.gwx-key-mid { opacity: .38; }
.wqx-chartkey i.gwx-key-now { background: var(--guide-color-ink); }

/* the calculators and layers that were on this page before the rebuild */
.gwx-tools { max-width: 1180px; margin-top: 18px; }
.gwx-tools > summary { cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-bg-1); font-size: var(--guide-fs-md); font-weight: 600; }
.gwx-tools > summary small { display: block; font-weight: 400; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); margin-top: 2px; }
.gwx-tools[open] > summary { margin-bottom: 12px; }

@media (max-width: 560px) {
  /* the map is drawn 760 units wide, so on a phone a 3.4-unit dot is under 2px: draw the wells larger there */
  .gwx-well { r: 7px; }
  .gwx-well.is-selected { r: 11px; }
  .gwx-row { grid-template-columns: 1fr; gap: 4px; }
  .gwx-wellrow { flex-direction: column; gap: 6px; }
  .gwx-wellrow-tags { grid-auto-flow: column; gap: 12px; min-width: 0; }
}
@media print { .gwx-tools, .gwx-sort { display: none; } .gwx-wellrow, .gwx-row { break-inside: avoid; } }
