/* The Soils & Land Capacity page (src/geology/soils-twin.js). It wears the Water Quality page's classes (wqx-*, in
   wq-twin.css) so the pages read as one; only what that page does not have is here. Colour comes from tokens only, and
   every ordinal chart is one hue in five steps (see src/geology/soils-twin-charts.js). No new @keyframes: styles/motion.css
   owns them. */

.sxx-scope { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--guide-color-bg-1); color: var(--guide-color-ink-soft); }
.sxx-scope b { color: var(--guide-color-ink); }
.sxx-scope i, .sxx-scope svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sxx-age { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.sxx-age i, .sxx-age svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.sxx-lede { margin: 0 0 12px; font-size: var(--guide-fs-md); line-height: 1.5; }
.sxx-h4 { margin: 18px 0 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); font-weight: 600; }
.sxx-plain { margin: 0 0 8px; font-size: var(--guide-fs-sm); line-height: 1.55; color: var(--guide-color-ink); }
.sxx-plainlist { margin: 0 0 8px; padding-left: 18px; font-size: var(--guide-fs-sm); line-height: 1.6; }
.sxx-todo { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--guide-fs-sm); line-height: 1.55; }
.sxx-todo li { padding-left: 2px; overflow-wrap: anywhere; }
.sxx code { font-size: var(--guide-fs-xs); }

/* the hub gives every label in a panel small capitals; this page's labels are sentences */
.sxx .wqx-scope label { font-size: var(--guide-fs-xs); }

/* the search result mark: a hollow square, so a place is not mistaken for a status */
.sxx-mark { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; box-sizing: border-box; border: 2px solid var(--guide-color-ink-muted); }

/* the county banner: the survey areas that cover a county, as buttons */
.sxx-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sxx-chips .wqx-btn { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.sxx-chips .wqx-btn small { font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.sxx-chips .wqx-btn.is-on { border-color: var(--guide-color-ink); box-shadow: inset 0 0 0 1px var(--guide-color-ink); }

/* map: every region is a focusable button */
.sxx-map .sxx-area { stroke: var(--guide-color-paper); stroke-width: .8; stroke-linejoin: round; cursor: pointer; }
.sxx-map .sxx-area:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.sxx-map .sxx-area:focus-visible { outline: none; stroke: var(--guide-color-ink); stroke-width: 2.4; }
.sxx-map .sxx-area.is-county { stroke: var(--guide-color-ink-soft); stroke-width: 1.4; stroke-dasharray: 4 3; }
.sxx-map .sxx-area.is-sel { stroke: var(--guide-color-ink); stroke-width: 2.4; stroke-dasharray: none; }
.sxx-map .sxx-area.is-none { stroke-dasharray: 3 2; }
.sxx-legend .sxx-none { background: var(--guide-color-neutral-300); }

/* one-line rows: the ranked list of survey areas */
.sxx-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.sxx-rows li + li { border-top: 1px solid var(--guide-color-border-subtle); }
.sxx-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sxx-row:hover, .sxx-row:focus-visible { background: var(--guide-color-bg-1); }
.sxx-row-main { min-width: 0; }
.sxx-row-main b { display: block; font-size: var(--guide-fs-md); font-weight: 600; overflow-wrap: anywhere; }
.sxx-row-main small { color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }
.sxx-row-fig { text-align: right; font-size: var(--guide-fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* slope bars carry a second line saying what the rule does at that step */
.sxx-slope .wqx-bar-name em { white-space: normal; }

.sxx .wqx-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sxx #sx-spot-slot { margin-top: 10px; }

@media (max-width: 560px) {
  .sxx-chips .wqx-btn { width: 100%; }
}
@media print {
  .sxx-chips .wqx-btn { border-color: var(--guide-color-border-strong); }
  .sxx [aria-label="One exact spot"] { display: none !important; }
}
