/* The Vegetation and Land Cover page (src/flora/veg-twin.js). Cards, tables, pills, tabs, pagers, the segmented bar 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; no gradients, no blur, no
   coloured edge stripes, no keyframes (styles/motion.css owns those). Nothing is set below 12px. */

.vg { display: grid; gap: 18px; }
.vg-trust { margin: 0 0 10px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }
.vg-trust b { color: var(--guide-color-ink); }
.vg-status { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.vg-lede { margin: 0 0 8px; font-size: var(--guide-fs-md); line-height: 1.5; font-weight: 600; }
.vg-steps { margin: 10px 0; padding-left: 22px; display: grid; gap: 12px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.vg-steps li > span { display: block; }
.vg-lawrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vg-office { margin: 10px 0; font-size: var(--guide-fs-sm); line-height: 1.6; max-width: 62em; }

/* the four doors: plain buttons, one on at a time */
.vg-doors { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.vg-door { width: 100%; height: 100%; text-align: left; display: grid; gap: 3px; align-content: start; padding: 12px 14px; font: inherit; color: var(--guide-color-ink); background: var(--guide-color-paper); border: 1px solid var(--guide-color-border-default); border-radius: 12px; cursor: pointer; }
.vg-door b { font-size: var(--guide-fs-md); line-height: 1.35; }
.vg-door span { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); line-height: 1.4; }
.vg-door:hover { border-color: var(--guide-color-ink); }
.vg-door.is-on { background: var(--guide-color-bg-2); border-color: var(--guide-color-ink); border-width: 2px; padding: 11px 13px; }
.vg-door:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 2px; }
.vg-door .vg-door-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--guide-color-link); }
.vg-door .vg-door-more svg, .vg-door .vg-door-more i { width: 14px; height: 14px; }
.vg-door-panel { scroll-margin-top: 80px; background: var(--guide-color-bg-1); border-color: var(--guide-color-border-strong); }

/* the weed district: a call button first, then the office */
.vg-district { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 10px 0 4px; }
.vg-district span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--guide-fs-sm); }
.vg-call { background: var(--guide-color-lake); color: var(--guide-color-on-lake); border-color: var(--guide-color-lake); font-weight: 600; }
.vg-call:hover { background: var(--guide-color-lake-hover); }
.vg-county-weeds p { max-width: 62em; line-height: 1.55; }

/* the statements you can paste */
.vg-stmts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; max-width: 54em; }
.vg-stmt p { margin: 0 0 2px; font-size: clamp(16px, 2.6vw, 20px); line-height: 1.45; }
.vg-stmt small { display: block; color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); line-height: 1.4; }
.vg-stamp { margin-top: 10px; }
.vg-facts { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--guide-fs-sm); line-height: 1.5; max-width: 62em; }

/* what to shade the map by */
.vg-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 10px; }
.vg-chip { font: inherit; font-size: var(--guide-fs-sm); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-paper); color: var(--guide-color-ink); cursor: pointer; }
.vg-chip:hover { border-color: var(--guide-color-ink); }
.vg-chip.is-on { background: var(--guide-color-ink); border-color: var(--guide-color-ink); color: var(--guide-color-paper); }
.vg-chip:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 2px; }

/* the map: counties shaded one hue in five steps */
.vg-mapwrap { max-width: 900px; }
.vg-map { width: 100%; height: auto; display: block; }
.vg-co { fill: var(--guide-color-bg-2); stroke: var(--guide-color-paper); stroke-width: .8; cursor: pointer; }
.vg-co:hover, .vg-co:focus-visible { stroke: var(--guide-color-ink); stroke-width: 1.6; outline: none; }
.vg-co.is-sel { stroke: var(--guide-color-ink); stroke-width: 2.4; }
.vg-co.vg-s0 { fill: color-mix(in srgb, var(--guide-color-moss) 8%, var(--guide-color-paper)); }
.vg-co.vg-s1 { fill: color-mix(in srgb, var(--guide-color-moss) 22%, var(--guide-color-paper)); }
.vg-co.vg-s2 { fill: color-mix(in srgb, var(--guide-color-moss) 38%, var(--guide-color-paper)); }
.vg-co.vg-s3 { fill: color-mix(in srgb, var(--guide-color-moss) 56%, var(--guide-color-paper)); }
.vg-co.vg-s4 { fill: color-mix(in srgb, var(--guide-color-moss) 76%, var(--guide-color-paper)); }
.vg-key.vg-s0 { background: color-mix(in srgb, var(--guide-color-moss) 8%, var(--guide-color-paper)); }
.vg-key.vg-s1 { background: color-mix(in srgb, var(--guide-color-moss) 22%, var(--guide-color-paper)); }
.vg-key.vg-s2 { background: color-mix(in srgb, var(--guide-color-moss) 38%, var(--guide-color-paper)); }
.vg-key.vg-s3 { background: color-mix(in srgb, var(--guide-color-moss) 56%, var(--guide-color-paper)); }
.vg-key.vg-s4 { background: color-mix(in srgb, var(--guide-color-moss) 76%, var(--guide-color-paper)); }
.vg-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; flex: none; vertical-align: baseline; }

/* cover and change */
.vg-legend li small { margin-left: 8px; color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }
.vg .wqx-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vg .wqx-table td small, .vg .wqx-table th small { display: block; margin-top: 2px; color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); font-weight: 400; }
.vg-sci { font-style: italic; }
.vg-delta { min-width: 12em; }
.vg-delta svg, .vg-delta i { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.vg-wobble { font-style: italic; }
.vg-sparkcell { width: 140px; }
.vg-spark { width: 132px; height: 30px; display: block; }
.vg-pt { fill: transparent; stroke: none; cursor: default; }
.vg-pt:hover { fill: var(--guide-color-ink); opacity: .35; }
.vg-to { display: inline-flex; vertical-align: middle; margin: 0 4px; color: var(--guide-color-ink-muted); }
.vg-to svg, .vg-to i { width: 14px; height: 14px; }
.vg-flowbar { width: 30%; }
.vg-flowbar span { display: block; height: 6px; border-radius: 3px; background: var(--guide-color-ink-soft); }
.vg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vg-score { margin: 10px 0 0; font-size: var(--guide-fs-sm); line-height: 1.55; color: var(--guide-color-ink-soft); max-width: 62em; }

/* lists and filters */
.vg-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 10px; align-items: flex-end; }
.vg-filters label { display: grid; gap: 4px; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); text-transform: none; letter-spacing: 0; }
.vg-filters input, .vg-filters select { font: inherit; font-size: var(--guide-fs-sm); padding: 7px 10px; border: 1px solid var(--guide-color-border-default); border-radius: 8px; background: var(--guide-color-paper); color: var(--guide-color-ink); min-width: 190px; }
.vg-prios { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; font-size: var(--guide-fs-sm); line-height: 1.45; max-width: 62em; }
.vg-prios li { display: grid; grid-template-columns: minmax(150px, 14em) 1fr; gap: 4px 12px; }
.vg-prios small { grid-column: 2; color: var(--guide-color-ink-muted); }
.vg-prio { background: transparent; border: 1px solid var(--guide-color-ink-soft); color: var(--guide-color-ink); }
.vg-prio-1a { border-width: 2px; font-weight: 700; }
.vg-prio-1b { border-width: 2px; }
.vg-prio-3 { border-style: dashed; }

@media (max-width: 640px) {
  .vg-doors { grid-template-columns: minmax(0, 1fr); }
  .vg-filters label { flex: 1 1 140px; }
  .vg-filters select, .vg-filters input { width: 100%; min-width: 0; }
  .vg-prios li { grid-template-columns: minmax(0, 1fr); }
  .vg-prios small { grid-column: 1; }
  .vg-sparkcell, .vg-flowbar { display: none; }
  .vg-delta { min-width: 0; }
}

/* the printed page: the finder, buttons, filters, pagers and pop-up are left off; every card is kept whole */
@media print {
  .vg-finder, .vg-door-panel, .vg .wqx-actions, .vg-chips, .vg-filters, .vg .wqx-pager, #vg-do { display: none !important; }
  .vg { gap: 10px; }
  .vg-stmt { break-inside: avoid; }
  .vg-map { max-height: 300px; }
}
