/* The Hydrology overview (src/streamflow/hydro-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. */

.hqx-rule, .hqx-season { margin: 10px 0 0; max-width: 62em; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); }
.hqx-feed { margin-top: 12px; font-size: var(--guide-fs-sm); }
.hqx-h4 { margin: 14px 0 8px; font-size: var(--guide-fs-sm); font-weight: 600; color: var(--guide-color-ink-soft); }
.hqx-h4:first-of-type { margin-top: 0; }
.hqx-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hqx .wqx-table tr.is-on td { background: var(--guide-color-bg-2); }
.hqx-barcell { min-width: 120px; width: 34%; }

/* five-step flow bar in a table row: thin, segments parted by a surface gap */
.hqx-mini { display: flex; gap: 2px; height: 12px; min-width: 96px; border-radius: 4px; overflow: hidden; }
.hqx-mini i { display: block; min-width: 3px; }
.hqx-mini.is-empty { border: 1px dashed var(--guide-color-border-strong); }

/* a class always travels as swatch plus words */
.hqx-chip { display: inline-flex; align-items: center; gap: 7px; font-size: var(--guide-fs-sm); }
.hqx-chip i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.hqx-chip.is-none { color: var(--guide-color-ink-muted); }
.hqx-hollow { background: var(--guide-color-paper); border: 1.5px solid var(--guide-color-ink-muted); border-radius: 50%; }
.wqx-legend .hqx-hollow { border-radius: 50%; }
.hqx-diamond { background: var(--guide-color-plum); transform: rotate(45deg) scale(.8); border-radius: 1px; }
.hqx-hair { height: 1px; align-self: center; background: var(--guide-color-ink-muted); border-radius: 0; }
.hqx-legend-tight { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.hqx-kind { background: var(--guide-color-lake); }

/* map marks: a surface ring keeps overlapping dots apart */
.hqx-dot { stroke: var(--guide-color-paper); stroke-width: 2; cursor: pointer; }
.hqx-dot.is-none { fill: var(--guide-color-paper); stroke: var(--guide-color-ink-muted); stroke-width: 1.3; }
.hqx-dot.is-dim { opacity: .22; }
.hqx-dot.is-on { stroke: var(--guide-color-ink); stroke-width: 2.5; }
.hqx-dot:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 2px; }
.hqx-snow { fill: color-mix(in srgb, var(--guide-color-plum) 40%, var(--guide-color-paper)); stroke: var(--guide-color-paper); stroke-width: 1.5; }
.hqx-snow.is-low { fill: var(--guide-color-plum); }
.hqx-snow.is-none { fill: var(--guide-color-paper); stroke: var(--guide-color-plum); }

.hqx-gauge { scroll-margin-top: 80px; }
.hqx-verdict { margin: 10px 0 14px; font-size: var(--guide-fs-md); line-height: 1.5; }
.hqx-caveats { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--guide-fs-sm); line-height: 1.5; }
.hqx .wqx-details { margin-top: 12px; font-size: var(--guide-fs-sm); }
.hqx .wqx-details ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 640px) {
  .hqx-barcell { min-width: 84px; }
  .hqx .wqx-table th:nth-child(4), .hqx .wqx-table td:nth-child(4) { display: none; }
  .hqx .hqx-basins th:nth-child(4), .hqx .hqx-basins td:nth-child(4) { display: table-cell; }
}

@media print {
  .hqx .wqx-pager, .hqx .wqx-seg-ctl { display: none !important; }
  .hqx-dot.is-dim { opacity: .5; }
}

/* a wide card must not blow a 560-unit chart up to the full page width */
.hqx-gauge .wqx-svg { max-width: 780px; }
.hqx .wqx-table .wqx-link { text-align: left; }
.hqx .wqx-legend .hqx-hair { height: 2px; border-radius: 0; }
/* the legend under the bar carries every count in ink; a number inside a pale segment cannot be read in either theme */
.hqx .wqx-seg b { display: none; }
