/* The Planning page's water-supply record (src/planning/planning-twin.js). Everything shared with the other twin pages
   (cards, tables, pills, tabs, the pop-up) is in wq-twin.css; this file holds only what is new here. Tokens only. */

.plx { margin-bottom: 26px; }
.wqx-big.plx-big { max-width: 30em; font-size: clamp(21px, 3.4vw, 30px); }
.plx-lede { margin: 10px 0 0; font-size: var(--guide-fs-md); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 44em; }
.plx .wqx-tile em { display: block; margin-top: 6px; font-style: normal; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }

/* measure and window pickers */
.plx-controls { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.plx-ctl { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; max-width: 100%; }
.plx-seg { flex-wrap: wrap; max-width: 100%; }
.plx-seg button { flex: 1 1 auto; white-space: nowrap; }

/* map */
.plx-unit { fill: var(--guide-color-paper); stroke: var(--guide-color-border-strong); stroke-width: .7; cursor: pointer; }
.plx-unit:hover { fill: var(--guide-color-bg-2); }
.plx-unit.is-closed { fill: var(--guide-color-ochre); }
.plx-unit.is-sel { stroke: var(--guide-color-ink); stroke-width: 2.2; }
.wqx-minimap .plx-unit { fill: var(--guide-color-paper); cursor: default; }
.plx-dot, .plx-pick { cursor: pointer; }
.plx-trendkey svg { flex: none; }
.plx-k-closed, .plx-k-open { border: 1px solid var(--guide-color-border-strong); }
.plx-k-closed { background: var(--guide-color-ochre); opacity: .6; }
.plx-k-open { background: var(--guide-color-paper); }

/* chart furniture */
.plx-median { stroke: var(--guide-color-ink-soft); stroke-width: 1.2; stroke-dasharray: 5 4; }
.plx-median-lbl { fill: var(--guide-color-ink-soft); font-size: var(--guide-fs-xs); paint-order: stroke; stroke: var(--guide-color-paper); stroke-width: 3px; }
.plx .wqx-end { paint-order: stroke; stroke: var(--guide-color-paper); stroke-width: 3px; }
.plx-trendline { stroke-width: 2.4; stroke-linecap: round; }
.wqx-chartkey i.plx-k-bar, .wqx-chartkey i.plx-k-line, .wqx-chartkey i.plx-k-d1, .wqx-chartkey i.plx-k-d3 { border-radius: 2px; }
.plx-k-bar { background: var(--guide-color-lake); opacity: .62; }
.wqx-chartkey i.plx-k-line { background: var(--guide-color-ink); height: 3px; vertical-align: 3px; }
.plx-k-d1 { background: var(--guide-color-ochre-fill); }
.plx-k-d3 { background: var(--guide-color-brick); }

/* one watershed */
.plx-gpick { display: grid; gap: 4px; margin-top: 12px; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.plx-gpick select { font: inherit; font-size: var(--guide-fs-md); color: var(--guide-color-ink); padding: 9px 10px; border-radius: 8px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-paper); width: 100%; min-width: 0; }
.plx-gauge { scroll-margin-top: 80px; }
.plx-now { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--guide-color-bg-1); font-size: var(--guide-fs-md); line-height: 1.5; }
.plx-now b { font-size: var(--guide-fs-xl); font-variant-numeric: tabular-nums; }
.plx-wintable { margin-top: 10px; }
.plx-h4 { margin: 16px 0 4px; font-size: var(--guide-fs-md); font-weight: 700; }
.plx-wintable tr.is-cur td { background: var(--guide-color-bg-1); font-weight: 600; }
.plx-below-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.plx-below-form label { display: grid; gap: 4px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); flex: 1 1 220px; min-width: 0; }
.plx-below-form input { font: inherit; font-size: var(--guide-fs-lg); color: var(--guide-color-ink); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); width: 100%; min-width: 0; }
/* the page's one primary button: the action colour, as everywhere else in the app */
.plx-go { background: var(--guide-color-action); color: var(--guide-color-white); border-color: var(--guide-color-action); }
.plx-go:hover { background: var(--guide-color-action-hover); }
.plx-presets .wqx-btn { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.plx-presets .wqx-btn small { color: var(--guide-color-ink-muted); max-width: 26ch; }
#plx-below-out { margin-top: 12px; }

/* search result kinds: a shape per kind, so the list does not lean on colour */
.plx-type { border-radius: 2px; background: var(--guide-color-neutral-400); }
.plx-type--gauge { border-radius: 50%; background: var(--guide-color-lake); }
.plx-type--watershed { background: var(--guide-color-paper); border: 1.5px solid var(--guide-color-ink-soft); }
.plx-type--county { background: var(--guide-color-ink-soft); }

/* the record leads the landing, full width; the tool catalogue sits under it */
.ph-twin-root { padding: 20px 28px 0; max-width: 1240px; margin: 0 auto; }
.ph-twin-root[hidden], .plx-tools-head[hidden] { display: none; }
@media (max-width: 700px) { .ph-twin-root { padding: 14px 16px 0; } .plx-tools-head { margin-left: 16px; margin-right: 16px; } }
.plx-tools-head { margin: 8px 28px 14px; padding-top: 18px; border-top: 1px solid var(--guide-color-border-default); }
.plx-tools-head h2 { margin: 0; font-size: var(--guide-fs-xl); }
.plx-tools-head p { margin: 4px 0 0; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); }

@media print {
  .plx .plx-controls, .plx .plx-below-form, .plx .plx-presets, .plx .plx-gpick { display: none; }
}
