/* The Earthquakes and Ground Hazards page (src/seismic/seismic-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). */

.sm { display: grid; gap: 18px; }
.sm-trust { margin: 0 0 10px; font-size: var(--guide-fs-sm); line-height: 1.5; color: var(--guide-color-ink-soft); max-width: 62em; }
.sm-roles { margin-top: 10px; flex-wrap: wrap; }
.sm-lede { margin: 0 0 8px; font-size: var(--guide-fs-md); line-height: 1.5; font-weight: 600; }
.sm-steps { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.sm-status { font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); }
.sm-now { margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--guide-color-bg-1); font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.sm-state { margin-top: 8px; }
.sm-steps li, .sm-lines li, .sm-facts li, .sm-stmt p, .sm-stmt small, .sm-now { overflow-wrap: anywhere; }

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

/* the map: county outlines, faults as thin lines stepped by age, earthquakes as circles sized by magnitude */
.sm-mapwrap { max-width: 900px; }
.sm-map { width: 100%; height: auto; display: block; }
.sm-co { fill: var(--guide-color-bg-1); stroke: var(--guide-color-border-strong); stroke-width: 0.8; cursor: pointer; }
.sm-co.is-sel { stroke: var(--guide-color-ink); stroke-width: 2; }
.sm-co:hover { stroke: var(--guide-color-ink); stroke-width: 1.4; }
.sm-co:focus-visible, .sm-ev:focus-visible { outline: 2px solid var(--guide-color-signal); outline-offset: 1px; }
.sm-fault { stroke: var(--guide-color-ink-soft); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sm-fault.sm-a0 { stroke-width: 1.8; stroke: var(--guide-color-ink); }
.sm-fault.sm-a1 { stroke-width: 1.3; }
.sm-fault.sm-a2 { stroke-width: 0.9; stroke-dasharray: 5 2; }
.sm-fault.sm-a3 { stroke-width: 0.7; stroke-dasharray: 2 3; stroke: var(--guide-color-ink-muted); }
.sm-fault:hover { stroke: var(--guide-color-signal); stroke-width: 2.6; }
.sm-sta { fill: var(--guide-color-ink-muted); stroke: var(--guide-color-paper); stroke-width: 0.6; }
.sm-ev { cursor: pointer; stroke-width: 1.2; }
.sm-recent, .sm-near { fill: color-mix(in srgb, var(--guide-color-lake) 62%, transparent); stroke: var(--guide-color-paper); }
.sm-big { fill: none; stroke: var(--guide-color-ink); stroke-width: 1.4; }
.sm-ev.is-sel { stroke: var(--guide-color-signal); stroke-width: 3; }
.sm-ev:hover { stroke: var(--guide-color-ink); stroke-width: 2.2; }
.sm-hist { fill: none; stroke: var(--guide-color-brick); stroke-width: 1.6; }
.sm-radius { fill: none; stroke: var(--guide-color-ink-soft); stroke-width: 1.2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.sm-pin { fill: var(--guide-color-ink); stroke: var(--guide-color-paper); stroke-width: 1.6; }
.sm-pinlabel { fill: var(--guide-color-ink); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--guide-color-paper); stroke-width: 3px; }
.sm-stripwrap { overflow-x: auto; max-width: 640px; }
.sm-strip { min-width: 480px; }
.sm-dot { fill: color-mix(in srgb, var(--guide-color-lake) 55%, transparent); }
.sm-sel { fill: var(--guide-color-ink); stroke: var(--guide-color-paper); stroke-width: 2; }
.sm-key { display: inline-block; width: 14px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.sm-keyline { width: 24px; height: 8px; margin-right: 6px; vertical-align: middle; flex: none; }
.sm-keydot { width: 12px; border-radius: 50%; background: color-mix(in srgb, var(--guide-color-lake) 62%, transparent); }
.sm-keyring { width: 12px; border-radius: 50%; border: 2px solid var(--guide-color-ink); }
.sm-keysq { width: 11px; height: 11px; border: 2px solid var(--guide-color-brick); }
.sm-keysta { width: 12px; height: 10px; background: var(--guide-color-ink-muted); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sm-keypin { width: 11px; height: 11px; border-radius: 50%; background: var(--guide-color-ink); }
.sm-radii { margin-bottom: 8px; }
.sm-radii .wqx-btn.is-on { background: var(--guide-color-ink); color: var(--guide-color-paper); }

/* the list */
.sm-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 10px; }
.sm-filters label { display: grid; gap: 3px; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-soft); }
.sm-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; }
.sm-rowbtn { text-align: left; }
.sm-rowbtn small, .sm-sub { color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }
.sm-sub { display: block; margin-top: 2px; }
.sm-table td, .sm-table th { vertical-align: top; }

/* a record: a place or one earthquake */
.sm-record { scroll-margin-top: 80px; border-color: var(--guide-color-border-strong); background: var(--guide-color-bg-1); }
.sm-record h3 small { color: var(--guide-color-ink-muted); font-size: var(--guide-fs-sm); font-weight: 500; }
.sm-lines { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--guide-fs-md); line-height: 1.5; max-width: 62em; }
.sm-facts-table th { width: 38%; font-weight: 600; }
.sm-facts-table small { color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }
.sm-design th:not(:first-child), .sm-design td { text-align: right; font-variant-numeric: tabular-nums; }
.sm-links { margin-top: 10px; }

@media (max-width: 640px) {
  .sm-table th:nth-child(4), .sm-table td:nth-child(4), .sm-table th:nth-child(5), .sm-table td:nth-child(5) { display: none; }
  .sm-filters label { flex: 1 1 140px; }
  .sm-filters select { width: 100%; }
  .sm-design th, .sm-design td { font-size: var(--guide-fs-xs); }
}

/* the printed page: the finder, role tabs, filters, buttons, pager and pop-up are left off; every card is kept whole */
@media print {
  .sm-finder, .sm .wqx-actions, .sm .wqx-tabs, .sm-filters, .sm .wqx-pager, #sm-roles, .sm-radii { display: none !important; }
  .sm { gap: 10px; }
  .sm-record, .sm-stmt { break-inside: avoid; }
  .sm-map { max-height: 320px; }
}
