/* Seasonal weight restrictions: hub, trip mode, weight helper and region pages.
   Site tokens only (style.css). Status colours are used for status and nothing else: warn = in force / announced, success = verified none,
   accent = a programme or local roads, neutral = we do not know. Spacing sits on the 4/8/12/16/24/32/48 ramp. */

.ss { --ss-gap: 16px; color: var(--ink); text-align: left; min-width: 0; }
.ss *, .ss *::before, .ss *::after { box-sizing: border-box; }
.ss h2, .ss h3 { text-align: left; margin: 0; color: var(--ink); }
.ss p { margin: 0; }
.ss a { color: inherit; }
.ss-sr { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ss-js-only { display: none !important; }
.ss[data-ready] .ss-js-only { display: inline-flex !important; }
.ss[data-ready] div.ss-js-only, .ss[data-ready] .ss-tools.ss-js-only { display: flex !important; }
.ss [hidden] { display: none !important; }

.ss-h2 { font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }
.ss-h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
.ss-sub { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 720px; }
.ss-fine { color: var(--muted); font-size: 13px; line-height: 1.5; }
.ss-dim { color: var(--muted); }
.ss-empty { color: var(--ink-soft); font-size: 14px; line-height: 1.55; padding: 16px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.ss-count { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-soft); font-size: 13px; font-weight: 600; line-height: 1.6; vertical-align: middle; }
.ss-sec { margin-top: 32px; display: grid; gap: 12px; }
.ss-sec-head { display: grid; gap: 4px; }
.ss-link { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.ss-ver { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ── Controls ─────────────────────────────────────────────────────────── */
.ss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-btn); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.ss-btn:hover { border-color: var(--ink-soft); background: var(--surface-2); }
.ss-btn.is-primary { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-text); }
.ss-btn.is-primary:hover { background: var(--cta-bg-hover); }
.ss-btn-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; margin-right: 4px; }
.ss-input, .ss-select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-btn); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.ss-select { padding-right: 8px; }
.ss-btn:focus-visible, .ss-input:focus-visible, .ss-select:focus-visible, .ss-fbtn:focus-visible, .ss a:focus-visible, .ss summary:focus-visible, .ss-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-fgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ss-fbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.ss-fbtn:hover { border-color: var(--ink-soft); }
.ss-fbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ss-fbtn .ss-n { font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-soft); line-height: 1.6; }
.ss-fbtn[aria-pressed="true"] .ss-n { background: color-mix(in srgb, var(--surface) 22%, transparent); color: var(--surface); }
.ss-clear { border-style: dashed; color: var(--ink-soft); }
@media (pointer: coarse) { .ss-fbtn, .ss-btn { min-height: 44px; } }

/* ── Status pills and the hero badge ──────────────────────────────────── */
.ss-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 0 8px; min-height: 24px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.ss-pill.is-force { background: var(--warn-bg); border-color: var(--warn); color: var(--ink); }
.ss-pill.is-announced { border-color: var(--warn); border-style: dashed; color: var(--ink); }
.ss-pill.is-none { border-color: var(--success); background: var(--success-bg); }
.ss-pill.is-nofound { border-color: var(--success); border-style: dashed; }
.ss-pill.is-local { border-color: var(--accent); background: var(--accent-soft); }
.ss-pill.is-programme { border-color: var(--accent); border-style: dashed; }
.ss-pill.is-nodata { border-color: var(--ink-soft); border-style: dashed; color: var(--ink-soft); }
.ss-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 1.4; }
.ss-chip.is-warn { background: var(--warn-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--warn); }

/* ── Answer bar (sticky) ──────────────────────────────────────────────── */
.ss-bar { position: sticky; top: 80px; z-index: 25; display: grid; gap: 12px; padding: 12px 16px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ss-bar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ss-combo { position: relative; flex: 1 1 280px; min-width: 0; }
.ss-q { padding-left: 12px; }
.ss-date-f { display: grid; gap: 4px; flex: 0 1 180px; min-width: 0; }
.ss-datel { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.ss-bar-note { max-width: none; }
.ss-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.ss-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.ss-opt[aria-selected="true"], .ss-opt:hover { background: var(--accent-soft); }
.ss-opt b { font-weight: 600; }
.ss-opt-c { color: var(--muted); font-family: var(--font-mono); font-size: 12px; margin-left: 4px; }
.ss-opt-none { padding: 12px; color: var(--muted); font-size: 14px; }

/* ── Right now in force ───────────────────────────────────────────────── */
.ss-ranked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ss-rank { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--warn); border-radius: var(--radius); }
.ss-rank-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--warn-bg); color: var(--ink); font-size: 12px; font-weight: 700; }
.ss-rank-a { display: grid; gap: 4px; text-decoration: none; min-width: 0; }
.ss-rank-a b { font-size: 16px; font-weight: 700; line-height: 1.4; }
.ss-rank-a:hover b { text-decoration: underline; }
.ss-rank-c { color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.ss-rank-f { color: var(--muted); font-size: 12px; text-align: right; }
.ss-rank-f.is-warn { color: var(--warn); font-weight: 600; }

/* ── Trip mode ────────────────────────────────────────────────────────── */
.ss-trip { padding: 24px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.ss-trip-add { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 12px; align-items: center; }
.ss-rchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ss-rchip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-2); font-size: 14px; font-weight: 700; }
.ss-rchip-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 12px; }
.ss-x { min-height: 32px; padding: 0 8px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ss-x:hover { color: var(--ink); }
.ss-card { display: grid; gap: 12px; padding: 16px 24px; border: 1px solid var(--border-strong); border-left: 8px solid var(--ink-soft); border-radius: var(--radius); background: var(--surface); }
.ss-card[data-tone="force"] { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn-bg) 60%, var(--surface)); }
.ss-card[data-tone="clear"] { border-left-color: var(--success); }
.ss-card[data-tone="unconfirmed"] { border-left-style: dashed; }
.ss-card-h { font-size: 18px; font-weight: 700; line-height: 1.4; }
.ss-card-line { font-size: 16px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.ss-notes { margin: 0; padding-left: 24px; display: grid; gap: 4px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.ss-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ss-leg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ss-leg-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; }
.ss-leg-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 15px; line-height: 1.4; }
.ss-leg-h a { text-decoration: none; }
.ss-leg-h a:hover { text-decoration: underline; }
.ss-leg-d { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ss-leg .ss-x { margin-left: auto; }
.ss-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Map + details ────────────────────────────────────────────────────── */
.ss-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.ss-panel { display: grid; gap: 12px; min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ss-detail { align-self: start; }
.ss-detail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-d-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.ss-d-name { font-size: 22px; font-weight: 700; line-height: 1.4; }
.ss-d-line { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.ss-d-facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ss-d-facts b { color: var(--ink); }
.ss-d-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ss .na-picker .na-select-lab { display: none; }
.ss[data-ready] .na-picker .na-select-lab { display: none; }
.ss .na-chips-cap { color: var(--muted); font-size: 12px; }
.ss .na-legend { gap: 8px; }

/* ── Weight helper ────────────────────────────────────────────────────── */
.ss-weight { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ss-wform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ss-lab { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.ss-wres { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--border-strong); border-left: 8px solid var(--success); border-radius: var(--radius); background: var(--surface-2); }
.ss-wres[data-fits="no"] { border-left-color: var(--warn); background: var(--warn-bg); }
.ss-wres-h { font-size: 20px; font-weight: 700; line-height: 1.4; }
.ss-wres-d { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ── All regions ──────────────────────────────────────────────────────── */
.ss-all { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-all-i { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ss-all-i a { display: flex; align-items: baseline; gap: 8px; text-decoration: none; min-width: 0; font-size: 15px; line-height: 1.4; }
.ss-all-i a:hover .ss-all-n { text-decoration: underline; }
.ss-all-n { font-weight: 600; }
.ss-all-c { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.ss-all-i .ss-pill { flex: 0 0 auto; font-size: 11px; }
.ss-all-i.is-sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ── Region page ──────────────────────────────────────────────────────── */
.ss-region { display: block; }
.ss-hero { display: grid; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--border-strong); border-top: 8px solid var(--ink-soft); border-radius: var(--radius); }
.ss-hero[data-status="force"], .ss-hero[data-status="announced"] { border-top-color: var(--warn); }
.ss-hero[data-status="none"], .ss-hero[data-status="nofound"] { border-top-color: var(--success); }
.ss-hero[data-status="local"], .ss-hero[data-status="programme"] { border-top-color: var(--accent); }
.ss-crumb { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ss-crumb a { color: var(--accent-strong); text-underline-offset: 4px; }
.ss-hero-name { font-size: 32px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; }
.ss-badge { display: inline-flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 12px 16px; border: 2px solid var(--ink-soft); border-radius: var(--radius); background: var(--surface-2); font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: 0.02em; text-transform: uppercase; }
.ss-badge-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: var(--radius-pill); background: var(--ink-soft); }
.ss-badge[data-status="force"] { border-color: var(--warn); background: var(--warn-bg); }
.ss-badge[data-status="force"] .ss-badge-dot { background: var(--warn); }
.ss-badge[data-status="announced"] { border-color: var(--warn); border-style: dashed; background: var(--surface); }
.ss-badge[data-status="announced"] .ss-badge-dot { background: var(--warn); }
.ss-badge[data-status="none"] { border-color: var(--success); background: var(--success-bg); }
.ss-badge[data-status="none"] .ss-badge-dot { background: var(--success); }
.ss-badge[data-status="nofound"] { border-color: var(--success); border-style: dashed; background: var(--surface); }
.ss-badge[data-status="local"] { border-color: var(--accent); background: var(--accent-soft); }
.ss-badge[data-status="local"] .ss-badge-dot, .ss-badge[data-status="programme"] .ss-badge-dot { background: var(--accent); }
.ss-badge[data-status="programme"] { border-color: var(--accent); border-style: dashed; background: var(--surface); }
.ss-badge[data-status="nodata"] { border-style: dashed; background: var(--surface); }
.ss-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ss-meta-t { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ss-lead { font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 760px; }
.ss-warn { padding: 12px 16px; border: 1px solid var(--warn); border-radius: var(--radius); background: var(--warn-bg); font-size: 14px; line-height: 1.5; }
.ss-embed { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: 13px; }
.ss-embed textarea { width: 100%; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; padding: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-btn); background: var(--surface); color: var(--ink); resize: vertical; }
.ss-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ss-bullets li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.ss-bullets b { color: var(--ink); font-weight: 700; }

.ss-season { position: relative; padding: 16px 0 4px; }
.ss-season-bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ss-m { display: grid; place-items: center; min-height: 40px; font-size: 12px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--border); }
.ss-m:first-child { border-left: 0; }
.ss-m.is-on { background: color-mix(in srgb, var(--ink) 16%, var(--surface)); color: var(--ink); }
.ss-m.is-now { font-weight: 800; }
.ss-ms { display: none; }
@media (max-width: 480px) { .ss-mf { display: none; } .ss-ms { display: inline; } }
.ss-today { position: absolute; top: 4px; bottom: 0; width: 0; border-left: 2px solid var(--ink); pointer-events: none; }
.ss-today span { position: absolute; top: -8px; left: 0; transform: translate(-50%, -4px); padding: 0 8px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 700; line-height: 1.6; }

/* Tools row above a list */
.ss-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.ss-field { flex: 1 1 240px; min-width: 0; }
.ss-sortf { flex: 0 1 200px; display: flex; align-items: center; gap: 8px; }
.ss-sortl { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Tables that become cards on a phone */
.ss-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; font-size: 14px; line-height: 1.5; }
.ss-table thead th { padding: 12px; text-align: left; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--border-strong); }
.ss-table tbody th, .ss-table tbody td { padding: 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); font-weight: 400; }
.ss-table tbody tr:first-child th, .ss-table tbody tr:first-child td { border-top: 0; }
.ss-table .ss-area { font-weight: 700; color: var(--ink); }
.ss-table .ss-limit { font-weight: 700; }
.ss-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--ink-soft); }
.ss-more { margin-top: 4px; }
.ss-more summary { cursor: pointer; color: var(--accent-strong); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 24px; }
.ss-more p { margin-top: 8px; color: var(--ink-soft); }
.ss-table td[data-label="Notice"] { min-width: 144px; }
.ss-table td[data-label="Source"] { min-width: 128px; white-space: nowrap; }
.ss-ref { display: block; font-weight: 600; font-size: 13px; }
.ss-date { display: block; white-space: nowrap; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ss-inactive { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.ss-inactive > summary { cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ss-inactive[open] > summary { border-bottom: 1px solid var(--border); }
.ss-inactive .ss-table { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.ss-group { display: grid; gap: 8px; }
.ss-group + .ss-group { margin-top: 12px; }
.ss-kind { display: inline-flex; padding: 0 8px; min-height: 24px; align-items: center; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; background: var(--surface); }
.ss-kind.is-posting { border-color: var(--accent); background: var(--accent-soft); }
.ss-kind.is-ordinance { border-color: var(--accent); }
.ss-kind.is-none { border-style: dashed; color: var(--ink-soft); }

.ss-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ss-src { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ss-linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.ss-src-details { margin-top: 32px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.ss-src-details > summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 24px; }
.ss-src-details > * + * { margin-top: 12px; }
.ss-dl { display: grid; gap: 12px; margin: 0; }
.ss-dl > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 16px; }
.ss-dl dt { color: var(--muted); }
.ss-dl dd { margin: 0; overflow-wrap: anywhere; }
.ss-embed-body .ss { padding: 16px; }

/* ── Tablet and phone ─────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .ss-main { grid-template-columns: minmax(0, 1fr); }
  .ss-wform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ss-ranked { grid-template-columns: minmax(0, 1fr); }
  .ss-trip { padding: 16px; }
  .ss-trip-add { grid-template-columns: minmax(0, 1fr); }
  .ss-rules { grid-template-columns: minmax(0, 1fr); }
  .ss-bullets li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ss-hero { padding: 16px; }
  .ss-hero-name { font-size: 26px; }
  .ss-badge { font-size: 17px; }
  .ss-dl > div { grid-template-columns: minmax(0, 1fr); }
  .ss-bar { top: 60px; padding: 8px; gap: 8px; }
  .ss-bar-note { display: none; }
  .ss-combo { flex: 1 1 100%; }
  .ss-date-f { flex: 1 1 0; }
  .ss-trip-btn { flex: 0 0 auto; }
  .ss-bar .ss-fgroup { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .ss-bar .ss-fbtn { flex: 0 0 auto; }
  .ss-wform { grid-template-columns: minmax(0, 1fr); }
  .ss-weight { padding: 16px; }
  .ss-all { grid-template-columns: minmax(0, 1fr); }
  .ss-sortf { flex: 1 1 100%; }

  .ss-table, .ss-table tbody, .ss-table tr, .ss-table td, .ss-table th { display: block; }
  .ss-table { border: 0; background: transparent; overflow: visible; }
  .ss-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ss-table tbody { display: grid; gap: 8px; }
  .ss-table tbody tr { padding: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
  .ss-table tbody th, .ss-table tbody td { display: block; padding: 8px 0 0; border-top: 0; }
  .ss-table tbody th::before, .ss-table tbody td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.6; }
  .ss-date { white-space: normal; }
  .ss-table tbody tr:first-child th, .ss-table tbody tr:first-child td { border-top: 0; }
  .ss-table .ss-clamp { -webkit-line-clamp: 3; line-clamp: 3; }
  .ss-inactive .ss-table tbody { padding: 12px; }
  .ss-inactive .ss-table tbody tr { background: var(--surface); }
}

/* ── Print / Save as PDF ──────────────────────────────────────────────── */
@media print {
  body > header, body > footer, body > nav, .qtt-crumbs, .qtt-band, .qtt-related, .qtt-faq, .qtt-block, .qtt-promo, .qh-rail, [data-report-problem], .report-problem, #report-problem, .rp-wrap,
  .ss-bar, .ss-tools, .ss-actions, .ss-embed, .ss-js-only, .ss-linkrow .ss-btn-k, .na-map, .ss-stage, .ss-trip-add, .ss-x, .ss-weight, .ss-crumb { display: none !important; }
  body { background: Canvas; color: CanvasText; }
  .ss { color: CanvasText; }
  .ss-hero, .ss-table, .ss-rule, .ss-card, .ss-bullets li, .ss-rank, .ss-leg { break-inside: avoid; box-shadow: none; }
  .ss-table tbody tr { break-inside: avoid; }
  .ss-main { grid-template-columns: minmax(0, 1fr); }
  .ss-inactive[open] { border: 0; }
  .ss .ss-tools, .ss .ss-js-only, .ss[data-ready] .ss-js-only, .ss[data-ready] .ss-tools.ss-js-only, .ss[data-ready] div.ss-js-only { display: none !important; }
  .ss-linkrow a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; word-break: break-all; }
  .ss-trip[hidden] { display: none !important; }
  .ss-clamp { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
}

@media (prefers-reduced-motion: reduce) { .ss *, .ss *::before, .ss *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ── The shared map inside this tool: compact zoom pill, small-state chips, selected outline ───────────────── */
.ss .na-picker { display: grid; gap: 8px; padding: 0; }
.ss .na-chips { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.ss .na-chip { min-width: 40px; min-height: 40px; padding: 0 4px; font-size: 13px; }
.ss .na-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.ss .na-chip:focus-visible, .ss .na-zbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss .na-zoom { top: auto; right: auto; left: 8px; bottom: 8px; flex-direction: row; align-items: center; gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-btn); background: var(--surface); }
.ss .na-zbtn { min-width: 32px; min-height: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; font-size: 16px; line-height: 1.4; }
.ss .na-zbtn + .na-zbtn { border-left: 1px solid var(--border); }
.ss .na-zreset { font-size: 11px; }
@media (max-width: 720px) { .ss .na-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
body.ss-print-trip .ss-main, body.ss-print-trip .ss-sec:not(.ss-trip), body.ss-print-trip .ss-now { display: none !important; }

@media (max-width: 760px) {
  .ss-table tbody td[data-label="Status"]::before, .ss-table tbody th[data-label="Area"]::before, .ss-table tbody th[data-label="County"]::before { display: none; }
  .ss-table tbody td[data-label="Status"] { padding-top: 0; }
}

/* Grouped restriction tables share one column grid so the groups line up under each other. */
@media (min-width: 761px) {
  .ss-group .ss-table { table-layout: fixed; }
  .ss-group .ss-table th:nth-child(1), .ss-group .ss-table td:nth-child(1) { width: 112px; }
  .ss-group .ss-table th:nth-child(3), .ss-group .ss-table td:nth-child(3) { width: 120px; }
  .ss-group .ss-table th:nth-child(4), .ss-group .ss-table td:nth-child(4) { width: 136px; }
  .ss-group .ss-table th:nth-child(5), .ss-group .ss-table td:nth-child(5) { width: 232px; }
  .ss-group .ss-table th:nth-child(6), .ss-group .ss-table td:nth-child(6) { width: 112px; }
  .ss-dir { table-layout: fixed; }
  .ss-dir th:nth-child(1), .ss-dir td:nth-child(1) { width: 200px; }
  .ss-dir th:nth-child(2), .ss-dir td:nth-child(2) { width: 128px; }
  .ss-dir th:nth-child(4), .ss-dir td:nth-child(4) { width: 144px; }
  .ss-dir th:nth-child(5), .ss-dir td:nth-child(5) { width: 112px; }
}

/* ── Spreadsheet-style grids on the region page (rules, posting weights, exemptions, ordinance rules) ─────────── */
.ss-rules { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.ss-block { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ss-scroll { overflow: auto; max-width: 100%; max-height: 560px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.ss-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ss-gt { width: 100%; min-width: 480px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.5; }
.ss-gt thead th { position: sticky; top: 0; z-index: 2; padding: 8px 12px; text-align: left; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.ss-gt tbody th, .ss-gt tbody td { padding: 8px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); font-weight: 400; color: var(--ink-soft); }
.ss-gt tbody tr:first-child th, .ss-gt tbody tr:first-child td { border-top: 0; }
.ss-gt tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); color: var(--ink); font-weight: 700; min-width: 112px; }
.ss-gt thead th:first-child { left: 0; z-index: 3; }
.ss-gt tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.ss-gt tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.ss-rg { min-width: 640px; }
.ss-rg td[data-label="Source"] { min-width: 144px; }
.ss-rg td[data-label$="reduction"], .ss-rg td[data-label="Season"], .ss-rg td[data-label="Permits"], .ss-rg td[data-label="Authority"], .ss-rg td[data-label="Penalties"], .ss-rg td[data-label="Speed"], .ss-rg td[data-label="How it is declared"] { min-width: 240px; }
.ss-gt td[data-label="Verified"] { white-space: nowrap; }
.ss-val { display: block; color: var(--ink); }
.ss-yes { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--success); border-radius: var(--radius-pill); background: var(--success-bg); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ss-cond { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px dashed var(--warn); border-radius: var(--radius-pill); color: var(--ink); font-size: 12px; font-weight: 700; }
.ss-pbar { display: inline-block; vertical-align: middle; width: 96px; height: 8px; margin-right: 8px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.ss-pbar > span { display: block; height: 100%; background: var(--ink-soft); }
.ss-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 8px; counter-reset: ss-step; }
.ss-step { counter-increment: ss-step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-content: start; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--ink-soft); border-radius: var(--radius); font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ss-step-n::before { content: counter(ss-step); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; }
.ss-chart { margin: 0; display: grid; gap: 8px; max-width: 420px; }
.ss-chart svg { width: 100%; height: auto; display: block; }
.ss-ch-t { fill: var(--ink); font-size: 14px; font-weight: 700; font-family: inherit; }
.ss-ch-track { fill: var(--surface-3); }
.ss-ch-fill { fill: var(--ink-soft); }
@media (max-width: 760px) {
  .ss-gt { min-width: 440px; }
  .ss-rg { min-width: 600px; }
  .ss-scroll { max-height: 480px; }
  .ss-steps { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .ss-scroll { overflow: visible; max-height: none; border: 0; }
  .ss-gt { min-width: 0; }
  .ss-gt thead th, .ss-gt tbody th { position: static; }
  .ss-block, .ss-step, .ss-chart { break-inside: avoid; }
}
