/* The Regulatory Compliance page (src/compliance/compliance-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). The map is one hue by count on purpose:
   a dot is a record in EPA's data, not a verdict, so it is never drawn red and green. */

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

/* what do you need to do: four short chips under the search */
.cp-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { padding: 8px 14px; border-radius: 999px; 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); font-weight: 600; cursor: pointer; }
.cp-chip:hover { background: var(--guide-color-bg-1); border-color: var(--guide-color-ink-soft); }
.cp-chip:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 2px; }
.cp-finder.is-mini { margin: 0 0 12px; }

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

/* where: the map beside the county's figures */
.cp-where-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
@media (min-width: 900px) { .cp-where-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.cp-map { width: 100%; height: auto; display: block; }
.cp-co { stroke: var(--guide-color-border-strong); stroke-width: 0.8; cursor: pointer; }
.cp-b0 { fill: var(--guide-color-bg-1); }
.cp-b1 { fill: color-mix(in srgb, var(--guide-color-lake) 16%, var(--guide-color-paper)); }
.cp-b2 { fill: color-mix(in srgb, var(--guide-color-lake) 32%, var(--guide-color-paper)); }
.cp-b3 { fill: color-mix(in srgb, var(--guide-color-lake) 52%, var(--guide-color-paper)); }
.cp-b4 { fill: color-mix(in srgb, var(--guide-color-lake) 74%, var(--guide-color-paper)); }
.cp-co.is-sel { stroke: var(--guide-color-ink); stroke-width: 2; }
.cp-co:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.cp-co:focus-visible, .cp-dot:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 1px; }
.cp-dot { fill: var(--guide-color-ink); fill-opacity: 0.72; stroke: var(--guide-color-paper); stroke-width: 0.6; cursor: pointer; }
.cp-dot.is-big { fill-opacity: 1; stroke: var(--guide-color-paper); stroke-width: 1.2; }
.cp-dot:hover { fill-opacity: 1; stroke: var(--guide-color-signal); stroke-width: 1.5; }
.cp-key { margin-top: 8px; }
.cp-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--guide-color-border-strong); }
.cp-sw.cp-b0 { background: var(--guide-color-bg-1); }
.cp-sw.cp-b1 { background: color-mix(in srgb, var(--guide-color-lake) 16%, var(--guide-color-paper)); }
.cp-sw.cp-b2 { background: color-mix(in srgb, var(--guide-color-lake) 32%, var(--guide-color-paper)); }
.cp-sw.cp-b3 { background: color-mix(in srgb, var(--guide-color-lake) 52%, var(--guide-color-paper)); }
.cp-sw.cp-b4 { background: color-mix(in srgb, var(--guide-color-lake) 74%, var(--guide-color-paper)); }

/* the two programs */
.cp-decides { margin: 0 0 10px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }
.wqx-tile b span { font-size: var(--guide-fs-xs); font-weight: 500; color: var(--guide-color-ink-soft); }

/* the records list */
.cp-listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 10px 0; }
.cp-group { display: inline-flex; align-items: center; gap: 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.cp-group select { font: inherit; max-width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--guide-color-border-strong); background: var(--guide-color-paper); color: var(--guide-color-ink); }
.cp-rowbtn { text-align: left; }
.cp-rowbtn small { color: var(--guide-color-ink-muted); }
.cp-place { display: block; margin-top: 2px; font-size: var(--guide-fs-xs); font-weight: 400; color: var(--guide-color-ink-soft); }
.cp-place small { color: var(--guide-color-ink-muted); }
.cp-table td small, .cp-table th small { color: var(--guide-color-ink-muted); }
.cp-st { white-space: normal; }

/* one record */
.cp-record { scroll-margin-top: 80px; border-color: var(--guide-color-border-strong); }
.cp-record .wqx-h3, .cp-prog .wqx-h3 { margin-top: 18px; }
.cp-reads { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.cp-facts { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--guide-fs-sm); line-height: 1.5; max-width: 62em; }
.cp-facts-table th { width: 38%; font-weight: 600; }
.cp-facts-table small { color: var(--guide-color-ink-muted); }

/* steps and roles (the cards' pop-ups and the roles panel) */
.cp-steps { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; font-size: var(--guide-fs-md); line-height: 1.5; }
.cp-lede { margin: 0 0 8px; font-size: var(--guide-fs-md); line-height: 1.5; }
.cp-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--guide-fs-sm); line-height: 1.45; }
.cp-lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cp-lines svg { width: 14px; height: 14px; flex: none; align-self: center; color: var(--guide-color-ink-muted); }
.wqx-modal-card h4 { margin: 14px 0 4px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }

@media (max-width: 640px) {
  .cp-chips { gap: 6px; }
  .cp-chip { padding: 8px 12px; }
  .cp-table th:nth-child(3), .cp-table td:nth-child(3) { display: none; }
  .cp-facts-table th { width: 46%; }
}

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