/* The Forests and Timber page (src/forest/forest-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 gradients, no blur, no coloured
   edge stripes, no keyframes (styles/motion.css owns those). */

.fx { display: grid; gap: 18px; }
.fx-trust { margin: 0 0 10px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }
.fx-lede { margin: 0 0 10px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.fx-sub { margin: 0 0 8px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }

/* the four plain-question buttons under the search */
.fx-asks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fx-ask { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-paper); color: var(--guide-color-ink); cursor: pointer; font: inherit; }
.fx-ask b { font-size: var(--guide-fs-md); line-height: 1.3; }
.fx-ask-go { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: var(--guide-fs-sm); font-weight: 600; color: var(--guide-color-link); white-space: nowrap; }
.fx-ask-go svg { width: 14px; height: 14px; }
.fx-ask:hover { border-color: var(--guide-color-border-strong); background: var(--guide-color-bg-1); }
.fx-ask:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 2px; }

/* the memo sentence */
.fx-big { max-width: 52em; font-size: clamp(18px, 3vw, 23px); }
.fx-srcs { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: var(--guide-fs-sm); }
.fx-status { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }

/* lines, steps, facts */
.fx-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--guide-fs-sm); line-height: 1.45; }
.fx-lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fx-lines svg { width: 14px; height: 14px; flex: none; align-self: center; color: var(--guide-color-ink-muted); }
.fx-lines small, .fx-facts small, .fx-table small, .fx-mini small { color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }
.fx-steps { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; font-size: var(--guide-fs-md); line-height: 1.5; }
.fx-facts { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: var(--guide-fs-sm); line-height: 1.5; max-width: 62em; }

/* one place */
.fx-placewrap { display: grid; gap: 14px; }
.fx-place { border-color: var(--guide-color-border-strong); scroll-margin-top: 80px; }
.fx-blocks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 14px; }
.fx-block h4 { margin: 0 0 6px; font-size: var(--guide-fs-sm); font-weight: 700; color: var(--guide-color-ink-soft); }
.fx-num { margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fx-num span { font-size: var(--guide-fs-sm); font-weight: 500; color: var(--guide-color-ink-soft); }
.fx-num.fx-none { color: var(--guide-color-ink-muted); }
.fx-mini th, .fx-mini td { padding: 4px 8px; }

/* the map */
.fx-mapwrap { max-width: 920px; }
.fx-map { width: 100%; height: auto; display: block; }
.fx-co { stroke: var(--guide-color-border-strong); stroke-width: 0.8; cursor: pointer; }
.fx-co.is-sel { stroke: var(--guide-color-ink); stroke-width: 2; }
.fx-co:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.fx-fire { cursor: pointer; }
.fx-fire:hover { stroke-width: 1.6; }

/* charts */
.fx-balance .fx-owner { font-size: var(--guide-fs-sm); fill: var(--guide-color-ink); font-weight: 600; }
.fx-dash { display: inline-block; width: 12px; height: 12px; border: 1.2px dashed var(--guide-color-ink); border-radius: 2px; }

/* the worksheet */
.fx-smz { align-items: end; }
.fx-smz input[type="number"] { width: 7em; }
.fx-check { display: inline-flex; align-items: center; gap: 6px; }

/* the species and age fold */
.fx-more { margin: 0; }

@media (max-width: 640px) {
  .fx-asks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fx-ask { padding: 10px 12px; }
  .fx-ask-go { display: none; }
  .fx-blocks { grid-template-columns: minmax(0, 1fr); }
}

/* the printed sheet: the finder, tabs, buttons, worksheet and pop-up are left off; every card is kept whole */
@media print {
  .fx-finder, .fx .wqx-actions, .fx .wqx-tabs, .fx .wqx-pager, .fx-smz, .fx-more { display: none !important; }
  .fx { gap: 10px; }
  .fx-place, .fx-block { break-inside: avoid; }
  .fx-map { max-height: 260px; }
}

/* search results: a name over a line of detail */
.fx .wqx-results .wqx-hit { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.fx .wqx-results .wqx-hit span { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); overflow-wrap: anywhere; }
