/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Common Front: street-poster print. Blue ink on white, pink for action, caution yellow for live,
   a stamped blue check for verified. Anton for headlines, Inter for everything you read. */

@font-face { font-family: "Anton"; src: url("/fonts/anton.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff") format("woff"); font-weight: 600 800; font-display: swap; }

:root {
  --ink: #1b2a6b;          /* print blue: structure, headlines, verified */
  --ink-2: #4a5a9c;
  --text: #15171c;
  --muted: #5b6070;
  --paper: #ffffff;
  --card: #ffffff;
  --wash: #eef1f8;         /* map ground, quiet panels */
  --line: #1b2a6b;         /* printed rules are ink, not grey */
  --hair: #d5dbec;
  --action: #e0115f;       /* report and other "do it" buttons (white text 4.8:1) */
  --action-ink: #ffffff;
  --misreg: #ff3d7f;       /* the offset second ink on headlines */
  --live: #ffd84d;         /* caution tape: anything happening now */
  --live-ink: #1b2a6b;
  --verified: #1b2a6b; --verified-bg: #e4e9f7;
  --unconfirmed: #7a4b00; --unconfirmed-bg: #fff1b8;
  --retracted: #5b6070; --retracted-bg: #eceef3;
  --danger: #c4122f; --focus: #e0115f;
  --radius: 12px;
  --display: "Anton", Impact, "Arial Narrow Bold", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tabbar-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #afc0ff; --ink-2: #8796d6; --text: #f2f4fa; --muted: #a7aec4;
    --paper: #0e1430; --card: #151c3d; --wash: #1a2248; --line: #afc0ff; --hair: #2b3566;
    --action: #ff5c93; --action-ink: #14061a; --misreg: #e0115f;
    --live: #ffd84d; --live-ink: #0e1430;
    --verified: #afc0ff; --verified-bg: #233070;
    --unconfirmed: #ffd84d; --unconfirmed-bg: #3a3212;
    --retracted: #a7aec4; --retracted-bg: #232a4d;
    --danger: #ff6b7d; --focus: #ffd84d;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 var(--font); color: var(--text); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 20; }

/* --- header ---------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--paper); border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
  font: 400 22px/1 var(--display); letter-spacing: .01em; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; white-space: nowrap; font-size: 15px; }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav a.go { background: var(--action); color: var(--action-ink); }
.nav a.go[aria-current="page"] { outline: 3px solid var(--ink); outline-offset: 1px; }
.lang { font: inherit; font-size: 14px; border: 2px solid var(--line); border-radius: 999px; padding: 4px 8px; background: var(--paper); color: var(--ink); max-width: 130px; }
.exit { background: var(--danger); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.spacer { flex: 1; }

/* Phones: the four main places sit in a bar at the bottom, in thumb reach. */
@media (max-width: 720px) {
  :root { --tabbar-h: 52px; }
  .top { gap: 8px; padding-inline: 12px; }
  .brand { font-size: 21px; }
  .top .nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; gap: 0; justify-content: stretch; background: var(--paper);
    border-top: 2px solid var(--line); padding: 0 0 env(safe-area-inset-bottom); }
  .top .nav a { flex: 1; text-align: center; font-size: 14px; padding: 15px 4px; border-radius: 0; }
  .top .nav a.go { font-weight: 800; }
  .top .nav a.go[aria-current="page"] { outline: 0; box-shadow: inset 0 -4px 0 var(--ink); }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* --- live strip: caution tape. It sits in the header; on phones it replaces the name and the
   whole bar turns yellow, so "is anything happening?" is the first thing anyone sees. --------- */
.live-banner { color: var(--live-ink); background: var(--live); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px;
  font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.live-banner:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .top:has(#live-banner:not([hidden])) { background: var(--live); }
  .top:has(#live-banner:not([hidden])) .brand { display: none; }
  .live-banner { border: 0; border-radius: 0; padding: 0; background: transparent; flex: 1; font-size: 13px; }
  .lang { max-width: 96px; font-size: 13px; }
  .exit { padding: 6px 12px; font-size: 14px; }
}

#app:focus { outline: none; }
main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 16px 56px; }
.pad { padding: 16px; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding: 16px; font-size: 13px; color: var(--muted); border-top: 2px solid var(--line); }
.foot a { color: var(--ink); }

/* --- type ----------------------------------------------------------------- */
h1, .display { font: 400 clamp(36px, 8vw, 52px)/.98 var(--display); color: var(--ink); letter-spacing: .005em; margin: 4px 0 12px;
  text-shadow: 2px 2px 0 var(--misreg); }
h2 { font: 400 clamp(22px, 3.2vw, 26px)/1.1 var(--display); color: var(--ink); letter-spacing: .01em; margin: 28px 0 8px; }
h3 { font-size: 17px; font-weight: 700; margin: 16px 0 6px; color: var(--ink); }
:lang(zh) :is(h1, h2, .display), :lang(ko) :is(h1, h2, .display), :lang(ar) :is(h1, h2, .display),
:lang(ur) :is(h1, h2, .display), :lang(am) :is(h1, h2, .display) { font-family: var(--font); font-weight: 800; letter-spacing: 0; }
p { margin: 8px 0; }
.lede { font-size: 19px; line-height: 1.5; max-width: 58ch; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
code, .mono { font-family: var(--mono); }

/* --- home ------------------------------------------------------------------- */
.hero h1 { font-size: clamp(52px, 15vw, 104px); line-height: .95; margin: 10px 0 16px; text-shadow: 2px 2px 0 var(--misreg); }
.hero h1 span { display: block; }
.hero .lede { margin-bottom: 18px; font-size: 17px; color: var(--muted); }
.cta { display: grid; gap: 8px; margin: 18px 0 10px; max-width: 420px; }
.pulse { color: var(--ink); font-size: 14px; margin: 14px 0 0; }
.pulse b { font-weight: 800; }
.how { list-style: none; counter-reset: how; padding: 0; margin: 10px 0; display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.how li { counter-increment: how; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; font-size: 15px; color: var(--muted); }
.how li::before { content: counter(how); grid-row: span 2; font: 400 30px/1 var(--display); color: var(--action); }
.how strong { color: var(--ink); font-size: 16px; }

/* --- building blocks ----------------------------------------------------------- */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card.quiet { border-color: var(--hair); border-width: 1px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tile strong { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.tile:hover { background: var(--wash); }
.map-full { margin-inline: -16px; }
.map-full .map-wrap { border-radius: 0; border-inline: 0; }
.tile.live { background: var(--live); color: var(--live-ink); }
.map-full { margin-inline: -16px; }
.map-full .map-wrap { border-radius: 0; border-inline: 0; }
.tile.live .muted { color: var(--live-ink); }

.notice { border: 2px solid var(--line); background: var(--wash); padding: 12px 14px; border-radius: var(--radius); margin: 14px 0; }
.notice.safety { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--card)); }
.notice.ok { background: var(--verified-bg); }

/* Segmented switch: map Now / Record, privacy Plain / Technical */
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; margin: 4px 0 14px; background: var(--paper); }
.seg button { font: 700 15px var(--font); border: 0; background: transparent; color: var(--ink); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button.now[aria-pressed="true"] { background: var(--live); color: var(--live-ink); }
.split { display: flex; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 12px; }
.split button { flex: 1; font: 700 15px var(--font); border: 0; background: var(--paper); color: var(--ink); padding: 11px 8px; cursor: pointer; }
.split button + button { border-inline-start: 2px solid var(--line); }
.split button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.split button.now[aria-pressed="true"] { background: var(--live); color: var(--live-ink); }

/* Join: smallest step first */
.ladder { display: grid; gap: 10px; margin: 14px 0; }
.ladder a, .ladder button { display: block; text-align: start; width: 100%;
  font: inherit; color: var(--text); text-decoration: none; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; }
.ladder strong { display: block; font-size: 17px; color: var(--ink); }
.ladder .muted { display: block; font-size: 15px; }
.ladder .cost { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.ladder > :first-child { background: var(--live); }
.ladder > :first-child, .ladder > :first-child .muted { color: var(--live-ink); }
.ladder a:hover, .ladder button:hover { background: var(--wash); }
.ladder > :first-child:hover { background: color-mix(in srgb, var(--live) 85%, var(--ink)); }

/* --- verification marks --------------------------------------------------------- */
.v { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 1px 7px 1px 4px; vertical-align: 1px; white-space: nowrap; }
.v svg { width: 15px; height: 15px; flex: none; }
.v.yes { color: var(--verified); border: 2px solid var(--verified); transform: rotate(-2deg); }
.v.no { color: var(--muted); border: 2px dashed var(--hair); padding-left: 7px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 6px; border: 2px solid currentColor; }
.status.unconfirmed { color: var(--ink); background: transparent; border-style: dashed; }
.status.verified { color: var(--verified); background: transparent; transform: rotate(-3deg); }
.status.retracted { color: var(--retracted); background: var(--retracted-bg); text-decoration: line-through; }
.status.disputed { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--card)); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* --- forms ------------------------------------------------------------------------ */
form { margin: 0; }
fieldset { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; background: var(--card); }
legend { font-weight: 800; padding: 0 6px; color: var(--ink); }
label { display: block; font-weight: 600; margin: 14px 0 5px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; display: block; }
input[type=text], input[type=datetime-local], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--paper); border: 2px solid var(--hair); border-radius: 10px; padding: 11px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
textarea { min-height: 110px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { margin: 0; font-weight: 600; border: 2px solid var(--hair); border-radius: 999px; padding: 7px 13px; cursor: pointer; background: var(--paper); display: inline-flex; align-items: center; gap: 6px; }
.choices input { accent-color: var(--ink); }
.choices label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn { font: 700 16px/1.2 var(--font); border-radius: 12px; padding: 12px 20px; border: 2px solid var(--line); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.go { background: var(--action); color: var(--action-ink); }
.btn.big { font-size: 18px; padding: 16px 24px; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary:hover { background: var(--wash); filter: none; }
.btn:active { transform: translate(1px, 1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.error { color: var(--danger); font-weight: 700; }
.steps { display: flex; gap: 6px; margin: 4px 0 8px; }
.steps span { flex: 1; height: 8px; border-radius: 4px; background: var(--wash); border: 1px solid var(--hair); }
.steps span.on { background: var(--action); border-color: var(--action); }
.redaction-preview { background: var(--wash); border: 2px dashed var(--hair); border-radius: 10px; padding: 10px; white-space: pre-wrap; font-size: 15px; }
.redaction-preview mark { background: var(--live); color: var(--live-ink); border-radius: 4px; padding: 0 3px; }
.receipt { font: 700 22px/1.3 var(--mono); letter-spacing: .04em; background: var(--live); color: var(--live-ink); border: 3px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; user-select: all; word-break: break-all; }

/* --- map ------------------------------------------------------------------------- */
.map-wrap { position: relative; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--wash); }
.map-wrap canvas { display: block; width: 100%; height: min(380px, 52vh); touch-action: none; cursor: grab; }
.map-controls { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.map-controls button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.map-legend { position: absolute; left: 8px; bottom: 8px; background: color-mix(in srgb, var(--paper) 92%, transparent); border-radius: 8px; padding: 6px 10px; font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.map-attrib { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--muted); }

.rows { margin-top: 4px; }
.alert { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.alert:last-child { border-bottom: 0; }
.alert h3 { margin: 0 0 4px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.alert p { margin: 2px 0; font-size: 14px; color: var(--muted); }
.alert.retracted h3 { text-decoration: line-through; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #1fa36b; display: inline-block; box-shadow: 0 0 0 0 #1fa36b; animation: pulse 2s infinite; vertical-align: 0; }
.dot.off { background: var(--muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #1fa36b 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } .btn:active { transform: none; } }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.bar { height: 10px; background: var(--ink); border-radius: 3px; min-width: 2px; }
details { border: 2px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin: 14px 0; }
details > summary { cursor: pointer; font-weight: 800; color: var(--ink); padding: 14px 0; }
details[open] > summary { border-bottom: 1px solid var(--hair); margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 12px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 30; }
.toast.show { opacity: 1; }
.redactor canvas { max-width: 100%; border: 2px solid var(--line); cursor: crosshair; }

/* --- small screens ------------------------------------------------------------------- */
@media (max-width: 560px) {
  .cta .btn { flex: 1 1 100%; }
  dl.facts { grid-template-columns: 7.5em 1fr; }
}

/* --- right-to-left ------------------------------------------------------------------- */
[dir="rtl"] .map-wrap, [dir="rtl"] .receipt, [dir="rtl"] input[type=datetime-local], [dir="rtl"] #rcpt { direction: ltr; }
[dir="rtl"] h1, [dir="rtl"] .display { text-shadow: -3px 3px 0 var(--misreg); }
@media (max-width: 720px) {
  .split { margin: -22px -16px 12px; border-width: 0 0 2px; border-radius: 0; }
  .map-full, #pane > #map { margin-inline: -16px; }
  #pane > #map .map-wrap { border-radius: 0; border-inline: 0; }
}
@media (max-width: 720px) {
  .top:has(#live-banner:not([hidden])) .spacer { display: none; }
  .lang { max-width: 84px; padding-inline: 6px; }
}
@media (max-width: 720px) { .live-banner { white-space: normal; line-height: 1.25; font-size: 12.5px; } }

/* ===== Phone layout, matched to the approved poster mockup ===== */
.foot-tools { display: none; }
@media (max-width: 720px) {
  :root { --tabbar-h: 44px; }
  .top { padding: 0; gap: 0; border-bottom: 0; background: transparent; position: sticky; }
  .top .brand, .top > .lang, .top > .exit, .top .spacer { display: none !important; }
  .top:has(#live-banner:not([hidden])) { background: transparent; }
  .live-banner { display: block; flex: 1; background: var(--live); color: var(--live-ink); border: 0; border-bottom: 2px solid var(--line); border-radius: 0;
    padding: 9px 16px; font-size: 13px; line-height: 1.3; white-space: normal; }
  .top .nav a { font-size: 13px; padding: 12px 4px; font-weight: 500; }
  .top .nav a.go { font-weight: 700; }
  main { padding-top: 20px; }
  .split { margin-top: -20px; }
  .hero h1 { font-size: 64px; line-height: .95; text-shadow: 3px 3px 0 var(--misreg); margin: 4px 0 16px; }
  .hero .lede { font-size: 16px; color: #3a3f4c; margin: 0 0 18px; }
  .cta { max-width: none; gap: 10px; }
  .cta .btn { border-radius: 14px; padding: 14px; font-size: 17px; }
  .cta .btn.secondary { font-size: 16px; padding: 12px; }
  .pulse { margin-top: 14px; font-size: 15px; }
  .map-legend, .map-attrib { display: none; }
  .ladder a, .ladder button { padding: 12px 16px; border-radius: 14px; }
  .foot-tools { display: flex; gap: 10px; align-items: center; width: 100%; }
  .foot-tools .lang { max-width: none; flex: 1; }
}
@media (max-width: 720px) and (prefers-color-scheme: dark) { .hero .lede { color: var(--muted); } }
.live-banner[hidden] { display: none !important; }
@media (max-width: 720px) { #pane > #map .map-wrap { border-top: 0; } }
/* Phones: language and Exit always sit in the top bar, beside the live strip. */
@media (max-width: 720px) {
  .top { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 0; background: var(--paper); border-bottom: 2px solid var(--line); }
  .top:has(#live-banner:not([hidden])) { background: var(--live); }
  .top > .lang, .top > .exit { display: inline-block !important; }
  .top > .spacer { display: block !important; flex: 1; }
  .top:has(#live-banner:not([hidden])) > .spacer { display: none !important; }
  .live-banner { border-bottom: 0; padding: 4px 0 4px 14px; background: transparent; }
  .top > .lang { max-width: 92px; font-size: 13px; padding: 5px 6px; background: var(--paper); }
  .top > .exit { padding: 7px 14px; font-size: 14px; }
  .foot-tools { display: none; }
  .cta .btn { font-size: 20px; padding: 19px 14px; border-radius: 14px; }
  .cta .btn.secondary { font-size: 19px; padding: 17px 14px; }
  .cta { gap: 12px; }
}
.hero .lede { text-wrap: pretty; }
@media (max-width: 720px) { .hero .lede { font-size: 19px; line-height: 1.42; color: var(--text); margin-bottom: 20px; } }
@media (max-width: 720px) { .hero h1 { margin-bottom: 26px; } .hero .lede { margin-bottom: 30px; } }
@media (max-width: 720px) { .hero h1 { font-size: 54px; line-height: .98; } .hero h1 span + span { margin-top: 10px; } }
@media (max-width: 720px) { .hero h1 { font-size: clamp(40px, 12.2vw, 54px); } }
@media (max-width: 720px) { .hero h1 { font-size: 56px; } }
@media (max-width: 720px) { .hero h1 { line-height: 1; margin-top: 14px; } .hero h1 span + span { margin-top: 14px; } }
@media (max-width: 720px) { .hero h1 { font-size: 66px; line-height: .96; } .hero h1 span + span { margin-top: 12px; } }
@media (max-width: 720px) { .hero h1 { font-size: 72px; } }
/* the line under the name: smaller, balanced into an even block */
.hero h1 span + span { font-size: .6em; line-height: 1.02; text-wrap: balance; margin-top: 10px; text-shadow: 2px 2px 0 var(--misreg); }
.hero h1 .fit { display: block; width: max-content; font-weight: 400; white-space: nowrap; line-height: 1.04; }
.hero h1 span + span:has(.fit) { font-size: inherit; }

/* map screen details */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.alert h3 a { color: inherit; text-decoration: none; }
.alert h3 a:hover { text-decoration: underline; }
.alert .sum { color: var(--text); font-size: 15px; margin-top: 6px; }
.bars { display: grid; gap: 12px; margin-top: 8px; }
.barrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; }
.barrow .bar { grid-column: 1 / -1; height: 12px; background: var(--live); border: 2px solid var(--line); border-radius: 4px; min-width: 14px; }
.barnum { font: 400 22px/1 var(--display); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 700; color: var(--ink); background: var(--live); }
.chip button { border: 0; background: var(--paper); color: var(--ink); width: 24px; height: 24px; border-radius: 50%; font: 700 16px/1 var(--font); cursor: pointer; }
.pushbox { margin-top: 16px; border-top: 2px solid var(--hair); padding-top: 12px; }
.pushbox strong { color: var(--ink); }

/* report flow: open sections instead of boxes; pills without radio dots */
form fieldset { border: 0; border-top: 2px solid var(--hair); border-radius: 0; padding: 14px 0 4px; margin: 18px 0 0; background: transparent; }
form fieldset legend { padding: 0 10px 0 0; font-size: 18px; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label { position: relative; padding: 8px 14px; }
.choices label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
form .map-wrap canvas { height: 240px; }
details.more { border: 2px solid var(--line); border-radius: var(--radius); padding: 0 14px 8px; margin: 18px 0 0; }
details.more > summary { padding: 14px 0; }
details.more fieldset:first-of-type { border-top: 0; padding-top: 4px; margin-top: 0; }
input[type=file] { font: inherit; font-size: 14px; color: var(--muted); }
input[type=file]::file-selector-button { font: 700 15px var(--font); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 10px 16px; margin-inline-end: 10px; cursor: pointer; }

/* "for tech folks": dark card so newcomers can tell it apart at a glance */
.tag { display: inline-block; font: 700 12px/1 var(--font); color: var(--paper); background: var(--ink); border-radius: 6px; padding: 5px 8px; }
.ladder a.tech { background: var(--ink); color: var(--paper); border-color: var(--ink); margin-top: 8px; }
.ladder a.tech strong, .ladder a.tech .muted { color: var(--paper); }
.ladder a.tech .tag { background: var(--live); color: var(--live-ink); margin-bottom: 8px; }
.ladder a.tech:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
pre.code { background: var(--wash); border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 13px/1.6 var(--mono); white-space: pre; overflow-x: auto; color: var(--text); }
ol.steps-list { padding-inline-start: 22px; } ol.steps-list li { margin: 8px 0; }

.sublinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.priv.tech { font: 14.5px/1.7 var(--mono); background: var(--wash); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; }

.units { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.units button { font: 700 12px/1 var(--font); border: 0; background: var(--paper); color: var(--ink); padding: 5px 10px; cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* get help */
.helplink { margin: 14px 0 0; font-weight: 700; }
.res { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.res h3 { margin: 0 0 4px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.res-actions .btn { padding: 10px 14px; font-size: 15px; }
.res-actions .btn .small { font-weight: 600; opacity: .9; }
