/*
 * VOICE Alerts: shared styles for the public site and the team area.
 * Colors chosen in Settings > Appearance arrive from /theme.css.php as
 * --brand and --p-emergency, --p-high, --p-normal, --p-low.
 *
 * Fonts: Public Sans for headings, the header, and labels. It is a plain,
 * sturdy grotesque like the bold VOICE lettering in the logo, and its light
 * capitals echo the ring of text around it. Atkinson Hyperlegible Next, made
 * by the Braille Institute for readers with low vision, sets running text.
 * Both use the SIL Open Font License. Extended Latin and Vietnamese subsets
 * load only when a page uses those letters.
 */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/public-sans-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/public-sans-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

:root {
  --brand: #2a7d7b;
  --brand-deep: color-mix(in srgb, var(--brand) 72%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 32%, #fff);
  --ink: #1b2626;
  --ink-soft: #4b5856;
  --ink-faint: #5f6a68;
  --paper: #f6f3ec;
  --card: #ffffff;
  --sunk: #efebe2;
  --line: #ddd7ca;
  --line-strong: #c4bcac;
  --field-border: #8a8272; /* at least 3:1 against the page, so form fields can be seen */
  --ok: #1d6b3a;
  --warn: #8a5300;
  --bad: #a3231b;
  --focus: #0b5cad;
  --p-emergency: #b3261e;
  --p-high: #a64b00;
  --p-normal: #1f5fa8;
  --p-low: #56616b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(27, 38, 38, .06), 0 2px 8px rgba(27, 38, 38, .05);
  --font: "Atkinson Hyperlegible Next", "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not(.force-light) {
    --brand-deep: color-mix(in srgb, var(--brand) 55%, #fff);
    --brand-tint: color-mix(in srgb, var(--brand) 22%, #121a19);
    --brand-line: color-mix(in srgb, var(--brand) 50%, #121a19);
    --ink: #e9efee;
    --ink-soft: #bccac8;
    --ink-faint: #93a3a0;
    --paper: #111817;
    --card: #19221f;
    --sunk: #141c1b;
    --line: #2d3a38;
    --line-strong: #435452;
    --field-border: #6b7f7c;
    --ok: #6fcf97;
    --warn: #f0b45a;
    --bad: #ff8a80;
    --focus: #8ab4ff;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
a { color: var(--brand-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--sunk); padding: .05em .35em; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Phone and computer wording: both are in the page, the right one shows. */
.dev-phone .dv-c, .dev-computer .dv-p { display: none !important; }
.sr-only.skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--card); padding: .6em 1em; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.small { font-size: .9rem; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.hidden, [hidden] { display: none !important; }
.ui-icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* ---------- Header ---------- */

.site-head { background: transparent; color: var(--ink); }
.head-row { display: flex; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 6px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-logo { width: 64px; height: 64px; display: block; }
.brand-word { font-family: var(--display); font-size: 2.15rem; font-weight: 700; letter-spacing: -.005em; color: var(--brand-deep); line-height: 1; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding: .45em .8em; border-radius: 999px; }
.site-nav a:hover { background: var(--brand-tint); }
.site-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand-line); }
.clock { text-align: right; line-height: 1.2; min-width: 7.5em; }
.clock-time { font-family: var(--display); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.clock-date { font-size: .88rem; color: var(--ink-soft); }
/* The phone cord under the header: one drawing, so the straight runs and
   the loops share a single line. The loops sit 48px in (16px on phones). */
.cord { display: flex; color: var(--ink); height: 18px; margin-top: 2px; }
.cord-main { flex: 1; min-width: 0; height: 18px; display: block; overflow: hidden; }
.cord-path { transform: translateX(48px); }
/* On the front page the cord runs to the right edge, bends down, and wraps
   the top of the page (.cord-frame), stopping short of where it began. */
.cord-drop { display: none; flex: none; overflow: visible; position: relative; z-index: 1; }
.page-home .cord-drop { display: block; }
@media (max-width: 640px) {
  .head-row { padding-top: 10px; gap: 8px 12px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-word { font-size: 1.8rem; }
  .clock { min-width: 0; }
  .clock-time { font-size: 1.15rem; }
  .site-nav { order: 3; width: 100%; margin: 0 -.5em; }
  .site-nav a { font-size: 1rem; padding: .4em .65em; }
  .cord-path { transform: translateX(16px); }
}

/* ---------- Footer ---------- */

.site-foot { margin-top: 3rem; background: var(--card); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.site-foot .wrap { padding-top: 1.6rem; padding-bottom: 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; }
.foot-trust { color: var(--ink); }
.foot-phone { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.foot-phone .ui-icon { flex: none; margin-top: 3px; }
.foot-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4em 1.2em; }
.foot-links li + li { margin-top: 0; }
.foot-langs { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .9em; margin: .2rem 0 1rem; }
.foot-langs svg { width: 1.05em; height: 1.05em; opacity: .75; }
.foot-langs a[aria-current] { font-weight: 700; text-decoration: none; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1.4em; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; }
.cc-mark { display: inline-flex; align-items: center; gap: .5em; color: inherit; text-decoration: none; }
.cc-mark:hover span { text-decoration: underline; }
.cc-icons { display: inline-flex; gap: 2px; }
.cc-icons svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  min-height: 44px; padding: .62em 1.15em;
  background: var(--brand); color: #fff; border: 1.5px solid var(--brand);
  border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
  transition: background-color .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: var(--card); color: var(--brand-deep); border-color: var(--brand-line); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand); }
.btn-quiet { background: transparent; color: var(--brand-deep); border-color: transparent; padding-left: .6em; padding-right: .6em; }
.btn-quiet:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: transparent; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 80%, #000); border-color: color-mix(in srgb, var(--bad) 80%, #000); }
.btn-danger-outline { background: var(--card); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--card)); }
.btn-danger-outline:hover { background: color-mix(in srgb, var(--bad) 8%, var(--card)); color: var(--bad); border-color: var(--bad); }
.btn-big { font-size: 1.15rem; min-height: 54px; padding: .8em 1.4em; }
.btn-small { font-size: .92rem; min-height: 36px; padding: .4em .8em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn-row.end { justify-content: flex-end; }
@media (prefers-color-scheme: dark) { :root:not(.force-light) .btn { color: #fff; } }

/* ---------- Panels and cards ---------- */

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.panel > :last-child { margin-bottom: 0; }
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.2rem; }
.panel-tint { background: var(--brand-tint); border-color: var(--brand-line); box-shadow: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.8rem 0 .7rem; }
.section-head h2 { margin: 0; }
.section-head .count { color: var(--ink-soft); font-size: .92rem; }
.empty { color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem 1.2rem; }

/* ---------- Priority colors ---------- */

.p-emergency { --pc: var(--p-emergency); }
.p-high { --pc: var(--p-high); }
.p-normal { --pc: var(--p-normal); }
.p-low { --pc: var(--p-low); }
.pill {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pc, var(--ink-soft)); background: color-mix(in srgb, var(--pc, var(--ink-soft)) 11%, var(--card));
  border: 1px solid color-mix(in srgb, var(--pc, var(--ink-soft)) 35%, var(--card));
  padding: .14em .6em; border-radius: 999px; line-height: 1.4; white-space: nowrap;
}
.pill-solid { color: #fff; background: var(--pc); border-color: var(--pc); }
.pill-plain { --pc: var(--ink-soft); }
.pill-ok { --pc: var(--ok); }
.pill-warn { --pc: var(--warn); }
.pill-bad { --pc: var(--bad); }
.pill-brand { --pc: var(--brand-deep); }
@media (prefers-color-scheme: dark) {
  :root:not(.force-light) .pill:not(.pill-solid) { color: color-mix(in srgb, var(--pc) 45%, #fff); }
}

/* ---------- Alert type icons ---------- */

.type-icon { --tc: var(--brand); display: inline-grid; place-items: center; flex: none; background: var(--tc); color: #fff; border-radius: 50%; }
.type-icon svg { width: 58%; height: 58%; }
.type-icon img { width: 70%; height: 70%; object-fit: contain; }
.type-icon-sm { width: 30px; height: 30px; }
.type-icon-md { width: 44px; height: 44px; }
.type-icon-lg { width: 64px; height: 64px; }
.type-icon-xl { width: 88px; height: 88px; }

/* ---------- Status band (top of the front page) ---------- */

.status { padding: 22px 0 4px; }
.page-home .status { padding-top: 0; }
/* The cord's loop around the top of the front page. The right side comes
   down from the header; the left side rises and stops short of the header,
   like the free end of a cord. Inside, the page warms into the alert's own
   color, so the card seems to glow up toward the cord. Plain gradients only. */
.cord-frame { --tc: var(--brand); --frame-r: 30px; --glow-1: 8%; --glow-2: 16%; --halo: 42%; position: relative; padding: 20px 12px 12px; border-radius: 0 0 var(--frame-r) var(--frame-r);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 0%, transparent) 0, color-mix(in srgb, var(--tc) var(--glow-1), transparent) 26px, color-mix(in srgb, var(--tc) var(--glow-2), transparent) 100%); }
/* On a dark page the same color needs more strength to show. */
@media (prefers-color-scheme: dark) { :root:not(.force-light) .cord-frame { --glow-1: 16%; --glow-2: 30%; --halo: 60%; } }
/* The card's own color spreads outward and fades into the frame, so there is
   no hard line between the card and the glow around it. */
.cord-frame .status-card { --halo-c: var(--tc); box-shadow: 0 0 14px 3px color-mix(in srgb, var(--halo-c) var(--halo), transparent), 0 0 4px 1px color-mix(in srgb, var(--halo-c) var(--halo), transparent); }
.cord-frame .emergency-card { --halo-c: var(--tc-band); }
.cord-frame .lead-card, .cord-frame .calm-card { --halo: 20%; }
.cord-frame::before, .cord-frame::after { content: ""; position: absolute; bottom: 0; border-bottom: 2px solid var(--ink); pointer-events: none; }
.cord-frame::before { top: 18px; right: 0; left: 40px; border-right: 2px solid var(--ink); border-bottom-right-radius: var(--frame-r); }
.cord-frame::after { top: 15px; left: 0; width: 56px; border-left: 2px solid var(--ink); border-bottom-left-radius: var(--frame-r); }
/* The free end: a small rounded tip, the way a cord ends. */
.cord-end { position: absolute; left: -2.5px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
@media (max-width: 640px) {
  .cord-frame { padding: 22px 11px 13px; --glow-1: 12%; --glow-2: 22%; }
}
@media (max-width: 640px) and (prefers-color-scheme: dark) { :root:not(.force-light) .cord-frame { --glow-1: 20%; --glow-2: 36%; } }
.status h1 { margin-bottom: .25em; }
.status p { margin: 0; }
.status-stack { display: flex; flex-direction: column; gap: 22px; }
/* Cards hang from the phone cord: soft corners to match its curves. */
.status-card { border-radius: 22px; padding: 1.3rem 1.5rem; }
.calm-card { display: flex; align-items: center; gap: 14px; background: var(--brand-tint); border: 1px solid var(--brand-line); }
.calm-card h1 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.calm-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--brand-deep); border: 1px solid var(--brand-line); }
.calm-mark svg { width: 24px; height: 24px; }
.emergency-card { --tc-band: var(--p-emergency); background: var(--tc-band); color: #fff; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; padding: 1.4rem 1.6rem 1.5rem; box-shadow: 0 8px 22px color-mix(in srgb, var(--tc-band) 24%, transparent); }
.emergency-card a { color: #fff; }
.emergency-card .type-icon { --tc: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .6); grid-row: 1 / span 5; grid-column: 1; }
.emergency-card > :not(.type-icon) { grid-column: 2; }
.emergency-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .7em; }
.tag-emergency { display: inline-flex; align-items: center; gap: .35em; background: var(--p-emergency); color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: .22em .75em .22em .6em; border-radius: 999px; box-shadow: 0 0 0 2px #fff; }
.tag-emergency .ui-icon { width: 1.05em; height: 1.05em; vertical-align: 0; }
.emergency-type { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
.emergency-card h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .35em 0 .25em; }
.emergency-card p { font-size: 1.15rem; }
.emergency-card .meta { font-size: 1rem; opacity: .95; margin-top: .4em; }
.btn-oncolor { display: inline-flex; align-items: center; gap: .4em; margin-top: .9rem; background: #fff; color: var(--tc-band) !important; font-weight: 700; text-decoration: none; padding: .6em 1.1em; border-radius: 999px; min-height: 44px; }
.btn-oncolor:hover { text-decoration: underline; }
.lead-card { --tc-band: var(--brand); --tc: var(--brand); background: color-mix(in srgb, var(--tc) 9%, var(--card)); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; padding: 1.3rem 1.5rem 1.4rem; }
.lead-card .type-icon { grid-row: 1 / span 5; grid-column: 1; }
.lead-card > :not(.type-icon) { grid-column: 2; }
.lead-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .7em; }
.lead-type { font-family: var(--display); font-weight: 600; color: var(--ink-soft); }
.lead-note { flex-basis: 100%; font-size: .9rem; color: var(--ink-soft); }
.lead-card h1 { font-size: clamp(1.45rem, 4.4vw, 2.1rem); margin: .35em 0 .25em; }
.lead-card p { font-size: 1.1rem; }
.lead-card .meta { font-size: 1rem; color: var(--ink-soft); margin-top: .4em; }
.btn-lead { display: inline-flex; align-items: center; gap: .4em; margin-top: .9rem; background: var(--tc-band); color: #fff; font-weight: 700; text-decoration: none; padding: .6em 1.1em; border-radius: 999px; min-height: 44px; }
.btn-lead:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .emergency-card { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 1.15rem 1.25rem; }
  .emergency-card .type-icon { grid-row: auto; margin-bottom: .6rem; width: 52px; height: 52px; }
  .emergency-card > :not(.type-icon) { grid-column: 1; }
  .status-card { border-radius: 18px; }
  .lead-card { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 1.15rem 1.25rem; }
  .lead-card .type-icon { grid-row: auto; margin-bottom: .6rem; width: 52px; height: 52px; }
  .lead-card > :not(.type-icon) { grid-column: 1; }
}

/* ---------- Front page layout ---------- */

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "alerts side"; gap: 0 2rem; align-items: start; }
.dash-alerts { grid-area: alerts; min-width: 0; }
.dash-side { grid-area: side; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.dash-side .panel + .panel { margin-top: 0; }
.dash-side [data-live] { display: contents; }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "alerts"; }
  .dash-side .weather-panel { display: none; }
  .dash-after { display: block !important; }
}
.dash-after { display: none; margin-top: 1.5rem; }
.join-panel h2 { font-size: 1.3rem; }
.join-panel .btn { width: 100%; }
.join-panel.is-on { background: var(--card); }

/* ---------- Alert cards ---------- */

.alert-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--tc, var(--pc, var(--brand)));
  border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow);
  color: inherit; position: relative;
}
.alert-card .card-link { color: inherit; text-decoration: none; }
.alert-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.alert-card .card-link:focus-visible { outline: none; }
.alert-card .card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.alert-card:hover { border-color: var(--line-strong); border-left-color: var(--tc, var(--pc)); }
.alert-card:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.alert-card + .alert-card { margin-top: .75rem; }
.alert-card .type-icon { grid-row: span 4; margin-top: 2px; }
.alert-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .6em; margin-bottom: .3rem; }
.alert-card-type { color: var(--ink-soft); font-size: .9rem; }
.alert-card h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.alert-card p { margin: 0; }
.alert-card .meta { color: var(--ink-soft); font-size: .93rem; margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .2em 1em; }
.alert-card .meta span { display: inline-flex; align-items: center; gap: .3em; }
.lang-chips { display: inline-flex; gap: .3em; flex-wrap: wrap; }
.lang-chip { font-size: .78rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 .5em; color: var(--ink-soft); }
@media (max-width: 480px) {
  .alert-card { grid-template-columns: minmax(0, 1fr); }
  .alert-card .type-icon { grid-row: auto; display: none; }
}
.ended { margin-top: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ended summary { cursor: pointer; padding: .8rem 1.1rem; font-family: var(--display); font-weight: 600; }
.ended-row { padding: .65rem 1.1rem; border-top: 1px solid var(--line); }

/* ---------- Weather ---------- */

.weather-now { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .6rem; }
.weather-temp { font-family: var(--display); font-size: 2.3rem; font-weight: 600; line-height: 1; }
.weather-periods { list-style: none; padding: 0; margin: 0 0 .8rem; }
.weather-periods li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.weather-periods li + li { margin-top: 0; }
.weather-periods .t { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nws-warning { border-left: 4px solid var(--p-high); background: color-mix(in srgb, var(--p-high) 9%, var(--card)); padding: .5rem .75rem; border-radius: 4px; margin-bottom: .6rem; }
.nws-warning strong { display: block; }

/* ---------- Code check ---------- */

.lookup { display: flex; gap: .5rem; }
.lookup input { flex: 1; min-width: 0; text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }

/* ---------- Forms ---------- */

label, .label { display: block; font-weight: 700; margin: 0 0 .3rem; }
.label-note { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=search],
input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  display: block; width: 100%; font: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
  padding: .55em .7em; min-height: 44px;
}
textarea { min-height: 6em; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand); outline: 3px solid var(--focus); outline-offset: 1px; }
input[type=color] { width: 52px; height: 44px; padding: 3px; border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.help { color: var(--ink-soft); font-size: .92rem; margin: .3rem 0 0; }
.err { color: var(--bad); font-weight: 700; font-size: .95rem; margin: .3rem 0 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-bottom: .5rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: .17rem 0 0; flex: none; accent-color: var(--brand); }
.check strong { display: block; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin: 0 0 1.2rem; background: var(--card); }
legend { font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 0 .4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.counter { float: right; font-weight: 400; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.counter.over-soft { color: var(--warn); }
.counter.over { color: var(--bad); font-weight: 700; }
.input-row { display: flex; gap: .5rem; align-items: center; }
.input-row > input, .input-row > select { flex: 1; min-width: 0; }

/* ---------- Messages ---------- */

.flash { border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1rem; border: 1px solid; }
.flash ul { margin: 0; }
.flash-ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 40%, var(--card)); }
.flash-info { background: var(--brand-tint); border-color: var(--brand-line); }
.flash-error { background: color-mix(in srgb, var(--bad) 9%, var(--card)); border-color: color-mix(in srgb, var(--bad) 40%, var(--card)); }
.flash-warn { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border-color: color-mix(in srgb, var(--warn) 40%, var(--card)); }
.callout { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: .75rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--card)); }
.callout-bad { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--card)); }

/* ---------- Tabs ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1.5px solid var(--line); margin: 0 0 1rem; }
.tab {
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--ink-soft); background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .55em .9em .5em; margin-bottom: -1.5px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--brand-deep); border-bottom-color: var(--brand); }
.tab .count { font-size: .8rem; background: var(--sunk); border-radius: 999px; padding: 0 .5em; color: var(--ink-soft); }
.tab[aria-selected="true"] .count, .tab[aria-current="page"] .count { background: var(--brand-tint); color: var(--brand-deep); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 2px; background: var(--card); }
.seg button, .seg a { font: inherit; font-weight: 700; font-size: .92rem; border: 0; background: none; color: var(--ink-soft); padding: .35em .95em; border-radius: 999px; cursor: pointer; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; gap: .35em; }
.seg [aria-selected="true"], .seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--display); font-weight: 600; color: var(--ink-soft); background: var(--sunk); font-size: .92rem; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1.2rem; margin: 0 0 1rem; }
dl.facts dt { font-weight: 700; color: var(--ink-soft); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: minmax(0, 1fr); gap: .1rem; } dl.facts dd { margin-bottom: .5rem; } }

/* ---------- Single alert page ---------- */

.alert-page { padding-top: 1.4rem; padding-bottom: 1rem; }
.alert-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; align-items: start; margin-bottom: 1rem; }
.alert-hero .type-icon { margin-top: .2rem; }
.alert-hero-top { display: flex; flex-wrap: wrap; gap: .4em .7em; align-items: center; margin-bottom: .45rem; }
.alert-hero h1 { margin: 0 0 .35rem; }
.alert-message { font-size: 1.2rem; line-height: 1.5; }
@media (max-width: 520px) { .alert-hero { grid-template-columns: minmax(0, 1fr); } .alert-hero .type-icon { margin-bottom: .6rem; } }
.lang-switch { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.lang-switch .label { margin: 0; font-weight: 400; color: var(--ink-soft); display: inline-flex; gap: .35em; align-items: center; }
.translation-note { display: flex; gap: .5em; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); background: var(--sunk); border-radius: var(--radius-sm); padding: .55rem .8rem; margin: 0 0 1rem; }
.translation-note.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, var(--card)); }
/* Ended, canceled, and replaced alerts: a plain notice above, and a tag beside the title. */
.state-banner { display: flex; gap: .75rem; align-items: flex-start; border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 0 0 1.1rem; background: var(--sunk); border: 1px solid var(--line-strong); border-left: 6px solid var(--ink-soft); }
.state-banner p { margin: 0 0 .5rem; }
.state-banner p:last-child { margin-bottom: 0; }
.state-banner .state-icon { width: 1.6em; height: 1.6em; flex: none; margin-top: .05em; color: var(--ink-soft); }
.state-banner.past-canceled { background: color-mix(in srgb, var(--bad) 8%, var(--card)); border-color: color-mix(in srgb, var(--bad) 35%, var(--card)); border-left-color: var(--bad); }
.state-banner.past-canceled .state-icon { color: var(--bad); }
.state-banner.past-corrected { border-left-color: var(--brand-deep); }
.state-banner.past-corrected .state-icon { color: var(--brand-deep); }
.state-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.past-tag { display: inline-flex; align-items: center; gap: .35em; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; padding: .2em .7em; border-radius: 999px; border: 2px solid currentColor; color: var(--ink-soft); background: var(--card); white-space: nowrap; }
.past-tag .ui-icon { width: 1.1em; height: 1.1em; }
.past-tag.past-canceled { color: var(--bad); }
.past-tag.past-corrected { color: var(--brand-deep); }
.is-past .alert-hero .type-icon { filter: grayscale(1); opacity: .7; }
.ended-row .past-tag { font-size: .75rem; margin-right: .4em; vertical-align: .1em; }
.alert-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.2rem; }
.speak-status { font-size: .92rem; color: var(--ink-soft); margin: -.6rem 0 1rem; }
.facts-panel { margin-bottom: 1.4rem; }
.facts-panel dl.facts { margin: 0; }
.map-btn { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; margin-top: .25rem; white-space: nowrap; }
.details { font-size: 1.07rem; }
.details h3, .details h4 { margin-top: 1.1em; }
.details h3:first-child, .details h4:first-child { margin-top: 0; }
.credits { color: var(--ink-soft); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .2em 1.4em; margin: 1.2rem 0 .4rem; }
.credits span { display: inline-flex; align-items: center; gap: .35em; }
.verify { font-size: .92rem; border-radius: var(--radius-sm); padding: .6rem .8rem; margin: 1rem 0 0; background: var(--sunk); color: var(--ink-soft); display: flex; gap: .5em; align-items: flex-start; }
.verify.ok { background: color-mix(in srgb, var(--ok) 9%, var(--card)); color: var(--ok); }
.verify.bad { background: color-mix(in srgb, var(--bad) 9%, var(--card)); color: var(--bad); }
.verify.warn { background: color-mix(in srgb, var(--warn) 11%, var(--card)); color: var(--warn); }

/* ---------- Questions page ---------- */

.faq-list { margin-top: 1.2rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand-deep); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 1.2rem 1rem; }
.faq-answer > :last-child { margin-bottom: 0; }
.org-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .6rem; }
.org-list li { border-left: 3px solid var(--brand); padding: .2rem 0 .2rem .8rem; }
.org-list li + li { margin-top: 0; }
.org-list span { display: block; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Sign-up page ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1rem 3rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand-line); }
.steps > li + li { margin-top: 0; }
.join-state { font-size: 1.05rem; }
.join-state.ok { color: var(--ok); }
.topic-list .check { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .45rem; }
.topic-list .check:has(input:checked) { border-color: var(--brand-line); background: var(--brand-tint); }
.topic-list .check.locked { background: var(--sunk); cursor: default; }

/* ---------- Printing ---------- */

/* Shown by the service worker on a page saved for times without signal. */
.offline-note { background: var(--p-high); color: #fff; font-weight: 700; text-align: center; padding: .55rem 1rem; }
.print-only { display: none !important; }
.print-qr { width: 112px; height: 112px; flex: none; }
.print-qr svg { width: 100%; height: 100%; display: block; }
.print-foot { display: none; }
.print-qr:empty { display: none; }

/* A day's alerts on one sheet (print.php). */
.day-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; }
.day-controls .field { margin: 0; }
.day-controls .help { flex-basis: 100%; margin: 0; }
.day-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 1.5rem; margin: 1.6rem 0 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.day-head h1 { margin: .1em 0 .2em; }
.day-site { font-family: var(--display); font-weight: 700; color: var(--brand-deep); margin: 0; }
.day-qr { display: flex; align-items: center; gap: .8rem; max-width: 18rem; }
.day-qr p { margin: 0; }
.day-group { font-size: 1.15rem; margin: 1.4rem 0 .6rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.day-alert { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--tc, var(--brand)); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: .9rem; break-inside: avoid; }
.day-alert.is-past { opacity: 1; }
.day-alert-head { display: flex; gap: .9rem; align-items: flex-start; }
.day-alert-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .6em; margin: 0; }
.day-alert h3 { font-size: 1.3rem; margin: .3em 0 .15em; }
.day-alert-message { margin: 0 0 .6rem; font-size: 1.05rem; }
.day-status { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; border: 1.5px solid currentColor; border-radius: 999px; padding: .05em .6em; }
.day-cancel { font-weight: 700; color: var(--bad); margin: 0 0 .5rem; }
.day-alert .facts { margin: .4rem 0 .6rem; }
.day-alert .details { font-size: .98rem; }
.day-alert-foot { font-size: .88rem; color: var(--ink-soft); margin: .4rem 0 0; }
@media (max-width: 560px) { .day-head { flex-direction: column; } }

@media print {
  @page { margin: 14mm 12mm; }
  .site-head nav, .clock, .site-foot, .alert-tools, .lang-switch, .no-print, .join-panel, .map-btn, .cord-drop { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .alert-card, .day-alert { box-shadow: none; }
  .print-only { display: revert !important; }
  .print-foot { display: flex !important; gap: 1rem; align-items: center; margin-top: 1.2rem; padding-top: .9rem; border-top: 1.5px solid #000; break-inside: avoid; }
  .print-foot p { margin: 0 0 .25rem; }
  /* Keep the alert's colors: icons, priority tags, the Emergency tag. */
  .type-icon, .pill, .tag-emergency, .day-alert { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .alert-page .verify { display: none; }
  a { color: #000; }
  .details a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .day-alert.is-past { opacity: 1; }
  /* Fit more alerts on each sheet. */
  .day-sheet { font-size: .86rem; }
  .day-head { margin-top: .4rem; }
  .day-alert { padding: .7rem .9rem; margin-bottom: .6rem; }
  .day-alert h3 { font-size: 1.15rem; }
  .day-alert .facts { gap: .2rem 1rem; }
  .day-group { break-after: avoid; }
  .print-qr:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Page headings ---------- */

.page-head { padding: 1.6rem 0 .6rem; }
.page-head p { font-size: 1.1rem; color: var(--ink-soft); max-width: 46em; }
.faq-controls { margin: -.2rem 0 -.4rem; }

/* ---------- Sign-up states ---------- */

.state-card { margin: 0 0 1rem; }
.phone-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 1rem; }
.phone-pick-label { font-family: var(--display); font-weight: 600; }
.phone-pick .seg .ui-icon { width: 1em; height: 1em; }
.phone-pick-note { flex-basis: 100%; }
.state-card .pill { margin-bottom: .5rem; }
.state-title { font-size: 1.35rem; }
.state-on { border-color: color-mix(in srgb, var(--ok) 40%, var(--card)); }
.state-blocked { border-color: color-mix(in srgb, var(--bad) 40%, var(--card)); }
.prompt-picture { max-width: 320px; margin: .5rem 0 1rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; font-family: system-ui, sans-serif; font-size: .92rem; }
.prompt-picture .q { padding: .8rem 1rem; }
.prompt-picture .opts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.prompt-picture .opts span { text-align: center; padding: .6rem; }
.prompt-picture .deny { color: var(--ink-soft); border-right: 1px solid var(--line); }
.prompt-picture .allow { color: var(--brand-deep); font-weight: 700; box-shadow: inset 0 0 0 2px var(--brand); border-radius: 0 0 11px 0; }

/* ---------- Feeds page ---------- */
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.feed-row { display: flex; flex-direction: column; gap: .35rem; }
.feed-row .input-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.feed-row input { flex: 1 1 240px; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.feed-types { margin-top: .9rem; }
.feed-types summary { cursor: pointer; font-family: var(--display); font-weight: 600; }
.feed-types .feed-list { margin-top: .8rem; }
.page-feeds .seg { margin-top: .4rem; }

/* Keyboard focus on the colored alert cards, where the usual blue ring would not show. */
.emergency-card :focus-visible, .lead-card :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #000; }

/* Windows high contrast and other forced-color modes: keep selected and current items visible. */
@media (forced-colors: active) {
  .seg [aria-selected="true"], .seg [aria-current="page"], .seg [aria-pressed="true"],
  nav a[aria-current="page"], .tabs [aria-current="page"], [aria-current="location"] { outline: 2px solid Highlight; outline-offset: 1px; }
  .btn-oncolor, .btn-lead, .btn, .past-tag, .pill { border: 1px solid ButtonText; }
  mark { forced-color-adjust: none; background: Mark; color: MarkText; }
}
.speak-status:empty { display: block; margin: 0; }
