/* The Ecosystem page (src/quality/eco-twin.js). It wears the shared twin classes (.wqx-*, styles/modules/wq-twin.css);
   this sheet holds only what is new here. Tokens only, no keyframes, nothing under 12px. */

.ecx h4 { margin: 14px 0 6px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); font-weight: 600; }
.ecx-lede { margin: 8px 0 14px; max-width: 68ch; color: var(--guide-color-ink-soft); line-height: 1.5; }
.ecx-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* the temperature picker and other one-line controls */
.ecx-thresh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.ecx-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: inherit; }
.ecx-inline select { font: inherit; font-size: var(--guide-fs-sm); padding: 5px 8px; border-radius: 8px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); color: var(--guide-color-ink); max-width: 100%; }
.ecx-gaugepick { display: flex; margin: 14px 0 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); }
.ecx-gaugepick select { flex: 1 1 220px; min-width: 0; width: 100%; }

/* map: the streams with nothing to show are one quiet line; gauges are selectable dots */
.eco-map-base { pointer-events: none; }
.eco-gauge { cursor: pointer; }
.eco-gauge:hover { stroke-width: 2.4; }

/* the reach ruler keeps its size, so its labels stay readable; on a phone it scrolls sideways inside its own box */
.eco-rulerwrap { overflow-x: auto; }
.eco-ruler { max-width: 560px; min-width: 520px; }
/* charts inside a stream record keep the size they have in a two-column card */
.ecx .wqx-water > .wqx-svg { max-width: 520px; display: block; }

/* years with an afternoon restriction: one cell per year, filled when a notice was posted */
.eco-yearstrip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.eco-yearstrip li { min-width: 30px; padding: 5px 0; text-align: center; border-radius: 6px; border: 1px solid var(--guide-color-border-default); font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.eco-yearstrip li.is-on { background: var(--guide-color-ochre-fill); border-color: var(--guide-color-ochre); color: var(--guide-color-on-ochre-fill); font-weight: 700; }

.ecx-caveats { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); line-height: 1.5; }

/* a download is a link dressed as the page's button */
.ecx a.wqx-btn { text-decoration: none; color: inherit; }

@media print {
  .ecx-thresh, .ecx-gaugepick, .ecx-inline select { display: none !important; }
}

/* five-column tables keep their columns on a phone and scroll sideways inside their own box, instead of breaking words */
.ecx .wqx-tablewrap { overflow-x: auto; }
.ecx .wqx-table { min-width: 560px; }
.ecx .wqx-table td { overflow-wrap: break-word; }
