/* The Flora overview (src/flora/flora-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. No new keyframes. */

/* The page is landing content: it is not shown while a sub-page of the hub is open. */
#cat-flora:has(.hydro-sub:not([hidden])) #flora-twin { display: none; }

/* The hub's three launcher cards (Forests and Timber, Vegetation and Land Cover, Riparian and Wetlands) pushed the search below the first screen. The same tools open from the fold at the bottom of the page, "Worksheets and map tools". */
/* tu-atlas.css forces every hub card grid to display:grid !important unless it is [hidden], so hiding needs the same weight. */
#cat-flora .hub-hero-panel #flora-cards.hydro-card-grid { display: none !important; }

.fltw-tools { margin: 24px 0 0; }
.fltw-tools > summary { cursor: pointer; padding: 12px 16px; border: 1px solid var(--guide-color-border-strong); border-radius: 12px; background: var(--guide-color-paper); font-size: var(--guide-fs-md); font-weight: 600; }
.fltw-tools[open] > summary { margin-bottom: 14px; }

.fltw-rule { margin: 10px 0 0; max-width: 62em; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); }
.fltw-sentences { margin: 14px 0 0; display: grid; gap: 10px; max-width: 62em; }
.fltw-sentences p { margin: 0; font-size: var(--guide-fs-sm); line-height: 1.55; }
.fltw-h4 { margin: 18px 0 8px; font-size: var(--guide-fs-sm); font-weight: 600; color: var(--guide-color-ink-soft); }
.wqx-card-head + .fltw-h4 { margin-top: 0; }
.fltw-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fltw-table small, .fltw-dl small { display: block; margin-top: 2px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); white-space: normal; }
.fltw .wqx-table tr.is-on td { background: var(--guide-color-bg-2); }
.fltw .wqx-table .wqx-link { text-align: left; }
.fltw-fig { font-size: var(--guide-fs-md); font-variant-numeric: tabular-nums; }

/* "what do you need" buttons under the search: four plain doors */
.fltw-start { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.fltw-startbtn { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); color: var(--guide-color-ink); font: inherit; cursor: pointer; }
.fltw-startbtn:hover, .fltw-startbtn:focus-visible { background: var(--guide-color-bg-2); }
.fltw-startbtn svg, .fltw-startbtn i { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--guide-color-lake); }
.fltw-startbtn b { display: block; font-size: var(--guide-fs-md); line-height: 1.3; }
.fltw-startbtn small { display: block; margin-top: 2px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }

/* fire dots: area proportional to acres; a ring (no fill) marks a record that is not a wildfire, so colour never carries the difference alone */
.fltw-dot { fill: color-mix(in srgb, var(--guide-color-clay) 62%, transparent); stroke: var(--guide-color-clay); stroke-width: 1; cursor: pointer; }
.fltw-dot.is-other { fill: transparent; stroke: var(--guide-color-ink-soft); stroke-dasharray: 3 2; }
.fltw-dot.is-on { stroke: var(--guide-color-ink); stroke-width: 2.6; fill: color-mix(in srgb, var(--guide-color-clay) 85%, transparent); }
.fltw-dot:hover { stroke: var(--guide-color-ink); }
.fltw-kind { background: var(--guide-color-clay); }

/* the plain answer under the headline, and the rule lines under the weed bar */
.fltw-answer { margin: 12px 0 0; max-width: 62em; font-size: var(--guide-fs-md); line-height: 1.5; }
.fltw-rules { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--guide-fs-sm); line-height: 1.5; max-width: 62em; }
.fltw-rules small { color: var(--guide-color-ink-muted); }

/* list controls */
.fltw-ctl { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 12px; align-items: flex-end; }
.fltw-sort { display: grid; gap: 4px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.fltw-sort select, .fltw-sort input { min-height: 40px; max-width: 100%; padding: 0 10px; border-radius: 8px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); color: var(--guide-color-ink); font: inherit; font-size: var(--guide-fs-sm); }
.wqx-card-head .fltw-sort { grid-auto-flow: column; align-items: center; gap: 8px; }

/* one record */
.fltw-record { scroll-margin-top: 80px; }
.fltw-verdict { margin: 10px 0 14px; font-size: var(--guide-fs-md); line-height: 1.5; }
.fltw-dl { display: grid; gap: 0; margin: 0 0 14px; border-top: 1px solid var(--guide-color-border-subtle); }
.fltw-dl > div { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--guide-color-border-subtle); }
.fltw-dl dt { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.fltw-dl dd { margin: 0; font-size: var(--guide-fs-sm); line-height: 1.5; }

/* what you can do */
.fltw-lede { margin: 0 0 12px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }
.fltw-triage { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.fltw-triage details { border: 1px solid var(--guide-color-border-strong); border-radius: 10px; padding: 10px 14px; background: var(--guide-color-paper); }
.fltw-triage summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: var(--guide-fs-sm); line-height: 1.45; }
.fltw-triage summary span { color: var(--guide-color-ink-soft); }
.fltw-triage details p { margin: 8px 0 0; font-size: var(--guide-fs-sm); line-height: 1.55; max-width: 62em; }
.fltw-steps, .fltw-caveats, .fltw-contacts { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--guide-fs-sm); line-height: 1.55; max-width: 62em; }
.fltw-caveats { margin-top: 14px; }
.fltw-contacts { padding-left: 18px; gap: 12px; }
.fltw .wqx-details { margin-top: 12px; font-size: var(--guide-fs-sm); }
.fltw .wqx-details ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 640px) {
  /* a table row becomes a stacked block: the name first, then each figure under its column's name */
  .fltw-table, .fltw-table tbody, .fltw-table tr, .fltw-table td { display: block; width: 100%; }
  .fltw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fltw-table tr { padding: 12px 0; border-bottom: 1px solid var(--guide-color-border-subtle); }
  .fltw-table td { padding: 3px 0; border: 0; white-space: normal; }
  .fltw-table td[data-label]::before { content: attr(data-label) ': '; color: var(--guide-color-ink-muted); font-size: var(--guide-fs-sm); }
  .fltw-table td.fltw-num { white-space: normal; }
  .fltw-table td small { display: inline; margin-left: 6px; }
  .fltw-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .fltw-ctl { display: grid; grid-template-columns: 1fr; }
  .fltw-sort select, .fltw-sort input { width: 100%; }
  .wqx-card-head .fltw-sort { grid-auto-flow: row; }
}

@media print {
  .fltw-start, .fltw .wqx-pager, .fltw .wqx-seg-ctl, .fltw .fltw-ctl, .fltw .wqx-tabs { display: none !important; }
  .fltw-triage details { break-inside: avoid; }
  .fltw-triage details > * { display: block; }
}
