/* The Land Parcels page (src/parcels/parcel-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). */

.pc { display: grid; gap: 18px; }
.pc-trust { margin: 0 0 10px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }
.pc-hint { margin: 6px 0 0; font-size: var(--guide-fs-xs); line-height: 1.45; color: var(--guide-color-ink-muted); max-width: 62em; }
.pc-roles, .pc-metrics { margin-top: 10px; flex-wrap: wrap; }
.pc-lede { margin: 0 0 8px; font-size: var(--guide-fs-md); line-height: 1.5; font-weight: 600; }
.pc-steps { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.pc-status { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.pc-counties { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

/* the statements you can paste */
.pc-stmts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; max-width: 52em; }
.pc-stmt p { margin: 0 0 2px; font-size: clamp(16px, 2.6vw, 20px); line-height: 1.45; }
.pc-stmt small { display: block; color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); line-height: 1.4; }
.pc-stamp { margin-top: 10px; }
.pc-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; }

/* the map: counties shaded one hue in five steps; a county with no value is left unshaded */
.pc-mapwrap { max-width: 900px; }
.pc-map { width: 100%; height: auto; display: block; }
.pc-s0 { --pc-fill: color-mix(in srgb, var(--guide-color-lake) 8%, var(--guide-color-paper)); }
.pc-s1 { --pc-fill: color-mix(in srgb, var(--guide-color-lake) 20%, var(--guide-color-paper)); }
.pc-s2 { --pc-fill: color-mix(in srgb, var(--guide-color-lake) 34%, var(--guide-color-paper)); }
.pc-s3 { --pc-fill: color-mix(in srgb, var(--guide-color-lake) 50%, var(--guide-color-paper)); }
.pc-s4 { --pc-fill: color-mix(in srgb, var(--guide-color-lake) 66%, var(--guide-color-paper)); }
.pc-co { fill: var(--pc-fill, var(--guide-color-bg-1)); stroke: var(--guide-color-border-strong); stroke-width: 0.8; cursor: pointer; }
.pc-co.pc-none { fill: var(--guide-color-paper); }
.pc-co.is-sel { stroke: var(--guide-color-ink); stroke-width: 2.2; }
.pc-co:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.pc-co:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 1px; }
.pc-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--pc-fill, var(--guide-color-bg-1)); border: 1px solid var(--guide-color-border-strong); margin-right: 6px; vertical-align: -1px; }
.pc-key.pc-none { background: var(--guide-color-paper); }

/* lists and tables */
.pc-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 10px; }
.pc-filters label { display: grid; gap: 3px; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-soft); }
.pc-filters select { min-height: 40px; max-width: 100%; font: inherit; font-size: var(--guide-fs-sm); color: var(--guide-color-ink); background: var(--guide-color-paper); border: 1px solid var(--guide-color-border-strong); border-radius: 8px; padding: 0 8px; }
.pc-rowbtn { text-align: left; }
.pc-sub { display: block; margin-top: 2px; color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }
.pc-table td, .pc-table th { vertical-align: top; }
/* a word is never cut mid-way; on a narrow screen the table scrolls inside its own wrapper instead */
.pc-table { min-width: 560px; }
.pc-table td { overflow-wrap: break-word; word-break: normal; }

/* one parcel */
.pc-record { scroll-margin-top: 80px; border-color: var(--guide-color-border-strong); background: var(--guide-color-bg-1); }
.pc-record h3 small { color: var(--guide-color-ink-muted); font-size: var(--guide-fs-sm); font-weight: 500; }
.pc-lines { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.pc-facts-table th { width: 38%; font-weight: 600; }
.pc-facts-table small { color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }
.pc-checks { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.pc-check { padding: 10px 12px; border: 1px solid var(--guide-color-border-default); border-radius: 12px; background: var(--guide-color-paper); display: grid; gap: 6px; align-content: start; }
.pc-check p { margin: 0; font-size: var(--guide-fs-sm); line-height: 1.5; }
.pc-check .wqx-pill { justify-self: start; white-space: normal; }

/* the older tools, kept in a closed fold under the page */
.pcw-tools { margin: 24px 0 0; }
.pcw-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; }
.pcw-tools[open] > summary { margin-bottom: 14px; }
.pcw-tools-note { margin: 0 0 10px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); max-width: 62em; }

@media (max-width: 640px) {
  .pc-filters label { flex: 1 1 140px; }
  .pc-filters select { width: 100%; }
}

/* the printed page: the finder, role tabs, buttons, pagers and pop-up are left off; every card is kept whole */
@media print {
  .pc-finder, .pc-start, .pc .wqx-actions, .pc .wqx-tabs, .pc-filters, .pc .wqx-pager, #pc-results, #pc-table { display: none !important; }
  .pc { gap: 10px; }
  .pc-record, .pc-stmt, .pc-check { break-inside: avoid; }
  .pc-map { max-height: 300px; }
  .pcw-tools { display: none; }
}
