/* The Environmental Quality page (src/quality/eq-twin.js). It wears the Water Quality page's classes (wq-twin.css) so
   the two read as one; only what that page does not have is here. Tokens only; one column on a phone. */

/* On the hub's landing the page replaces the old tile grid, KPI band, AI prompt list and tool grid. The section tabs
   above still reach every section, and a sub-panel hides this page the same way it hides the rest of the landing. */
.quality-fs-scroll:has(.hydro-sub:not([hidden])) > #eq-twin { display: none; }
.quality-fs-scroll:has(> #eq-twin):not(:has(.hydro-sub:not([hidden]))) > :is(#env-hub-root, #env-overview-ai, #quality-models-root, #eq-context-rail) { display: none; }
/* The section tiles stay in the page because each section tab works by clicking its tile (src/hub-hero.js); they are
   taken out of view, layout and the focus order instead, since the shared rule that shows them is !important. */
.quality-fs-scroll:has(> #eq-twin) .hub-hero-panel #env-cards { position: absolute; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
.quality-fs-scroll:has(> #eq-twin) .hub-hero-panel .hub-about { display: none; }

.eqx-top { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1080px) { .eqx-top { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); } }
.eqx-head .wqx-big { font-size: clamp(21px, 2.6vw, 30px); }
.eqx-airline { margin: 10px 0 0; font-size: var(--guide-fs-md); line-height: 1.45; color: var(--guide-color-ink-soft); max-width: 46em; }
.eqx-head .wqx-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.eqx-tile { text-align: left; border: 1px solid transparent; color: inherit; font: inherit; cursor: pointer; display: grid; align-content: start; gap: 2px; }
.eqx-tile:hover, .eqx-tile:focus-visible { border-color: var(--guide-color-lake); background: var(--guide-color-paper); }
.eqx-tile small { margin-top: 4px; }
.eqx-tile em { margin-top: 6px; font-style: normal; font-size: var(--guide-fs-xs); color: var(--guide-color-link); text-decoration: underline; text-underline-offset: 2px; }

/* map */
.eqx-map { width: 100%; height: auto; display: block; }
.eqx-county { fill: var(--guide-color-paper); stroke: var(--guide-color-border-strong); stroke-width: .8; cursor: pointer; }
.eqx-county:hover { fill: var(--guide-color-bg-2); }
.eqx-county.is-on { stroke: var(--guide-color-ink); stroke-width: 2; }
.eqx-dot { stroke: var(--guide-color-paper); stroke-width: .7; cursor: pointer; }
.eqx-dot:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.eqx-fed { fill: color-mix(in srgb, var(--guide-color-brick) 28%, transparent); stroke: var(--guide-color-brick); stroke-width: 1; cursor: pointer; }
.eqx-fedmark { fill: none; stroke: var(--guide-color-brick); stroke-width: 1.8; cursor: pointer; }
.eqx-fedmark:hover, .eqx-fed:hover { stroke: var(--guide-color-ink); }
.eqx-area { fill: color-mix(in srgb, var(--guide-color-series-1) 16%, transparent); stroke: var(--guide-color-series-1); stroke-width: 1; stroke-dasharray: 3 3; }
.eqx-area.is-now { stroke-dasharray: none; fill: color-mix(in srgb, var(--guide-color-series-1) 34%, transparent); }
.eqx-monitor { fill: var(--guide-color-series-1); stroke: var(--guide-color-paper); stroke-width: 1; }
.eqx-radius { fill: none; stroke: var(--guide-color-ink); stroke-width: 1.2; stroke-dasharray: 5 4; }
.eqx-here { fill: var(--guide-color-ink); }
.eqx-maplabel { font-size: var(--guide-fs-xs); fill: var(--guide-color-ink); font-weight: 600; pointer-events: none; }
.eqx-maplabel.is-town { font-weight: 400; fill: var(--guide-color-ink-soft); }
.eqx-layers { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eqx-layer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); color: var(--guide-color-ink-muted); font: inherit; font-size: var(--guide-fs-sm); cursor: pointer; }
.eqx-layer.is-on { color: var(--guide-color-ink); border-color: var(--guide-color-ink); }
.eqx-swatch { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--c); flex: none; }
.eqx-layer.is-on .eqx-swatch { background: var(--c); }
.eqx-swatch--air { border-radius: 0; transform: rotate(45deg) scale(.82); }
.eqx-layer.is-on .eqx-swatch--federal { background: transparent; }

/* lists and records */
.eqx-rowctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.eqx-sort { display: inline-flex; align-items: center; gap: 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); }
.eqx-sort select { font: inherit; font-size: var(--guide-fs-sm); color: var(--guide-color-ink); padding: 6px 8px; border-radius: 8px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-paper); }
.eqx-rowlink { text-align: left; font-weight: 600; }
.eqx-call { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--guide-color-ink); font-size: var(--guide-fs-md); line-height: 1.5; }
.eqx-call i, .eqx-call svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.eqx-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.eqx-facts { margin: 16px 0 0; display: grid; gap: 0; font-size: var(--guide-fs-sm); }
.eqx-facts div { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--guide-color-border-subtle); }
.eqx-facts dt { color: var(--guide-color-ink-muted); }
.eqx-facts dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.eqx-none { color: var(--guide-color-ink-muted); font-style: italic; }
.eqx-clamp { margin: 0 0 6px; font-size: var(--guide-fs-sm); line-height: 1.55; color: var(--guide-color-ink-soft); max-width: 70ch; }
.eqx-summary { font-size: var(--guide-fs-md); line-height: 1.6; }

/* sections */
.eqx-band { font-family: var(--guide-font-display, inherit); font-size: var(--guide-fs-2xl); font-weight: 600; margin: 10px 0 -6px; scroll-margin-top: 80px; }
.eqx-h4 { margin: 16px 0 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); font-weight: 600; }
.eqx-oldest { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: var(--guide-fs-sm); }
.eqx-oldest li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid var(--guide-color-border-subtle); align-items: baseline; }
.eqx-oldest .wqx-link { text-align: left; }
.eqx-oldest span { color: var(--guide-color-ink-muted); }
.eqx-oldest b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 620px) { .eqx-oldest li { grid-template-columns: minmax(0, 1fr); } }
.eqx-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.eqx-chip { width: 100%; height: 100%; text-align: left; display: grid; gap: 3px; align-content: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-bg-1); color: inherit; font: inherit; font-size: var(--guide-fs-sm); cursor: pointer; }
.eqx-chip.is-static { cursor: default; }
.eqx-chip:not(.is-static):hover, .eqx-chip:focus-visible { border-color: var(--guide-color-lake); background: var(--guide-color-paper); }
.eqx-thin { opacity: .8; }
.eqx-key-full { background: var(--guide-color-lake); } .eqx-key-thin { background: var(--guide-color-neutral-400); }
.eqx-meter { display: grid; grid-template-columns: minmax(48px, 1fr) auto; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.eqx-meter.is-none { display: inline; color: var(--guide-color-ink-muted); font-style: italic; }
.eqx-meter-track { position: relative; height: 10px; border-radius: 5px; background: var(--guide-color-bg-2); }
.eqx-meter-fill { display: block; height: 100%; border-radius: 5px; background: var(--guide-color-lake); }
.eqx-meter.is-part .eqx-meter-fill { opacity: .4; }
.eqx-meter-line { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--guide-color-ink); }
.eqx-montable td { min-width: 96px; }
.eqx-burnlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; font-size: var(--guide-fs-sm); }
.eqx-burnlist li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--guide-color-border-subtle); }
.eqx-burnlist .wqx-link { text-align: left; }
.eqx-burnlist span { color: var(--guide-color-ink-soft); }
.eqx-th { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.eqx-th.is-on { color: var(--guide-color-ink); font-weight: 700; }
.eqx-ctable td { font-variant-numeric: tabular-nums; }
.eqx-caveats { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); }
.eqx-sections { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 6px; border-top: 1px solid var(--guide-color-border-subtle); }
.eqx-sections span { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); margin-right: 6px; }
.eqx .wqx-card { scroll-margin-top: 80px; }

@media print {
  .eqx-layers, .eqx-rowctl, .eqx-sections, .eqx-tile em, .eqx .wqx-pager { display: none !important; }
  .eqx-top { grid-template-columns: 1fr; }
  .eqx-tile { border-color: var(--guide-color-border-strong); }
}

/* With the tiles out of view nothing follows the shared hero band inside its panel, so the panel carries no padding
   below it. The band itself (styles/modules/hero-band.css) is not touched here. */
#main-content .quality-fs-scroll:has(> #eq-twin) .hub-hero-panel { padding-bottom: 0; border-bottom: 0; }
