/* Tempo. An instrument in GateKey's warm look: cream ground, paper panels,
   deep green ink for everything normal (warm charcoal and cream ink in the
   dark), colour only where something needs attention. Rain is the one
   measurement that is always blue. Every value and its measured contrast:
   docs/superpowers/specs/2026-11-23-look-design.md; test/look.test.mjs holds
   them. */

@font-face {
  font-family: 'Atkinson Next';
  src: url('/vendor/font/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Next';
  src: url('/vendor/font/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  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;
}

:root {
  --ground: #f7f1e5;
  --panel: #fffcf5;
  --ink: #173f3a;
  --ink-2: #4c6560;
  --line: #dad3c3;
  --line-soft: #ebe4d5;
  /* Field guide's masthead and rain lead use the same ink in both themes. */
  --mast: #173f3a;
  --mast-paper: #f7f1e5;
  --mast-label: #e0e9df;
  --mast-focus: #e8bb70;
  --tempo-mark: url('/brand/tempo-mark-light-v1.svg');
  --rain-1: #86b9ea;
  --rain-2: #2f7fd1;
  --rain-ink: #0f5aa8;
  /* Rain by amount, the map's six classes (RAIN_KEY in rain-movie.js), as
     marks on a card: the map's colour on a light map, darkened only as far as
     3:1 against the card, the ground and the wet wash. */
  --rain-c0: #6687a0;
  --rain-c1: #4788ce;
  --rain-c2: #069674;
  --rain-c3: #be7040;
  --rain-c4: #f200c6;
  --rain-c5: #c920f0;
  --watch: #795019;
  --watch-bg: #fff0d4;
  --watch-line: #b0721f;
  --danger: #912a24;
  --danger-bg: #f9e8e5;
  --danger-line: #c4473c;
  --focus: #355631;
  --wash: #e4edf0;
  --cold: #2a74c9;
  --warm: #b35f00;
  /* For text on the ground or a panel: 5.3:1 and 5.5:1 on --ground. */
  --cold-ink: #1d5fae;
  --warm-ink: #8f4c00;
  --warn: #f4c531;
  --warn-ink: #3b2c00;
  --cloud: #ffffff;
  --cloud-back: #e5dfd3;
  --cloud-edge: #8c8578;
  /* The map key's cloud chip: the clouds' veil of the screen (sat-clouds.js
     VEIL) mixed 37 % toward white; warm here, as the light veil is (the
     light map's option A, paper). */
  --key-cloud: #a9a29a;
  --radius: 16px;
  --radius-s: 10px;
  /* A card, a main or outline button, their height (the look spec, cards). */
  --radius-card: 24px;
  --radius-btn: 18px;
  --tap-main: 52px;
  --tap: 48px;
  --backdrop: rgb(27 26 24 / 0.55);
  --rail: 0px;
  --tabs: 62px;
  font-family: 'Atkinson Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 100%;
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #1b1a18;
    --tempo-mark: url('/brand/tempo-mark-dark-v1.svg');
    --panel: #26241f;
    --ink: #f3ede2;
    --ink-2: #bdb4a6;
    --line: #3d3a33;
    --line-soft: #312e28;
    --rain-1: #2f6fb0;
    --rain-2: #4d9ae6;
    --rain-ink: #7fbcff;
    --rain-c0: #6487a6;
    --rain-c1: #3b77c4;
    --rain-c2: #059c77;
    --rain-c3: #b46537;
    --rain-c4: #ed12c1;
    --rain-c5: #c118e9;
    --watch: #e8bb70;
    --watch-bg: #342a1d;
    --watch-line: #a8741f;
    --danger: #f0a395;
    --danger-bg: #382723;
    --danger-line: #cf6155;
    --focus: #aac694;
    --wash: #1a242c;
    --cold: #7db8ff;
    --warm: #ffb256;
    --cold-ink: #7db8ff;
    --warm-ink: #ffb256;
    --cloud: #d9d3c8;
    --cloud-back: #8f887c;
    --cloud-edge: #757064;
    --key-cloud: #9aa3ad;
  }
}
/* The same list when Dark is chosen in Settings (public/theme-boot.js),
   whatever the phone says. One list: test/look.test.mjs holds the two
   copies to the same text. */
:root[data-theme='dark'] {
  --ground: #1b1a18;
  --tempo-mark: url('/brand/tempo-mark-dark-v1.svg');
  --panel: #26241f;
  --ink: #f3ede2;
  --ink-2: #bdb4a6;
  --line: #3d3a33;
  --line-soft: #312e28;
  --rain-1: #2f6fb0;
  --rain-2: #4d9ae6;
  --rain-ink: #7fbcff;
  --rain-c0: #6487a6;
  --rain-c1: #3b77c4;
  --rain-c2: #059c77;
  --rain-c3: #b46537;
  --rain-c4: #ed12c1;
  --rain-c5: #c118e9;
  --watch: #e8bb70;
  --watch-bg: #342a1d;
  --watch-line: #a8741f;
  --danger: #f0a395;
  --danger-bg: #382723;
  --danger-line: #cf6155;
  --focus: #aac694;
  --wash: #1a242c;
  --cold: #7db8ff;
  --warm: #ffb256;
  --cold-ink: #7db8ff;
  --warm-ink: #ffb256;
  --cloud: #d9d3c8;
  --cloud-back: #8f887c;
  --cloud-edge: #757064;
  --key-cloud: #9aa3ad;
}
:root[data-theme='light'] {
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom));
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 2000;
  background: var(--ink);
  color: var(--panel);
  padding: 10px 14px;
  border-radius: var(--radius-s);
}
.skip:focus {
  top: 8px;
}

/* Top bar: where, and how fresh. */
.top {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  margin-left: var(--rail);
}
/* Lightning within 20 km in the newest fresh picture (public/sky-flash.js):
   the top bar's sky lifts, 90 ms up and 400 ms down, twice, with a 3 px
   yellow line along its lower edge. Under WCAG's general flash: on the dark
   screen +0.066 relative luminance at most (a flash needs 0.10); on the
   light one both states are above 0.80, which is not a flash by definition
   (test/sky-flash.test.mjs). Reduced motion stops every animation (below). */
.top {
  --sky-lift: #fffaeb;
  --sky-line: #ffd21f;
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme='light'])) .top {
    --sky-lift: #5a4d2a;
  }
}
:where(:root[data-theme='dark']) .top {
  --sky-lift: #5a4d2a;
}
.top.skyflash {
  animation: skylift 0.49s linear;
}
@keyframes skylift {
  0% {
    background-color: var(--ground);
    box-shadow: inset 0 -3px 0 transparent;
  }
  18.4% {
    background-color: var(--sky-lift);
    box-shadow: inset 0 -3px 0 var(--sky-line);
  }
  100% {
    background-color: var(--ground);
    box-shadow: inset 0 -3px 0 transparent;
  }
}
.top-end {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-right: -10px;
}
.top button,
.top .account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: none;
}
.top button:hover,
.top .account:hover {
  border-color: var(--line);
  background: var(--panel);
}
.top svg,
.tabs svg,
.close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.place {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-left: -10px;
  min-width: 0;
}
.place span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.refresh {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.top .account {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
@media (max-width: 420px) {
  .account-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.refresh.busy svg {
  animation: turn 0.9s linear infinite;
}
/* Occurrences near you: the icon beside refresh (public/occurrences.js). Its
   small number is how many ANEPC lists within 15 km, only when the list was
   read; a list not read is a mark, never a number. */
.top .occbtn {
  position: relative;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  color: var(--ink-2);
}
.occn {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--ground);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.occn.unread {
  background: var(--ground);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.occn[hidden] {
  display: none;
}
/* At phone width the place's name, the webcams' icon, this icon and refresh
   do not fit with their gaps (22 px over at 375 px, measured): while this icon
   is shown, its group gives back its own spacing (26 px), so a name that
   fitted is not cut short for it. Every control keeps its 48 px. This rule
   does not apply while the icon is hidden; the bar is then not main's to the
   pixel either, since the group around refresh ends 10 px further right
   (371 px against 361 at 375 px, the second review's P3-4). */
@media (max-width: 420px) {
  .top-end:has(.occbtn:not([hidden])) {
    gap: 0;
    margin-left: -12px;
  }
  .top-end:has(.occbtn:not([hidden])) .refresh {
    padding-left: 0;
  }
}
/* Its sheet's way back is the arrow alone: 48 px to touch. */
#occ-sheet .sheet-back {
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 4px;
}
#occ-sheet .sheet-head { justify-content: space-between; padding-right: 16px; }
#occ-sheet .linkish { min-height: 44px; }
#occ-sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
#occ-sheet .sheet-body { overflow-y: auto; flex: 1; width: 100%; min-height: 0; padding: 1.1rem var(--page-gutter) 1rem; }
#occ-sheet .sheet-body h2 { font: 500 clamp(1.85rem, 4vw, 2.4rem)/1.1 var(--display-type); letter-spacing: -.03em; text-wrap: wrap; }
#occ-sheet .sheet-lede { margin-block: .6rem 0; font-weight: 650; }
#occ-sheet .sheet-lede.unread { font-size: .95rem; }
#occ-sheet .occ-source { margin-block: .5rem; }
#occ-sheet .occ-source .note { margin-top: .15rem; }
#occ-sheet .rows { margin: .7rem 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--surface-radius); background: var(--panel); }
#occ-sheet .rows > li:last-child { padding-bottom: 0; }
#occ-sheet .sheet-head, .occ-toolbar { flex: none; }
.occ-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; padding: 0 16px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--panel); }
.occ-toolbar[hidden] { display: none; }
.occ-filter { margin-block-start: .7rem; }
.occ-filter > summary { min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); cursor: pointer; font-weight: 700; }
.occ-filter > summary span, .occ-matches { color: var(--ink-2); font-size: .875rem; }
.occ-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 8px 12px; margin: .55rem 0; }
.occ-filters label, .occ-search label { display: block; margin: 0; color: var(--ink-2); font-size: .875rem; font-weight: 700; }
.occ-filters select, .occ-search input, .occ-search button {
  min-width: 0; max-width: 100%; min-height: 44px; padding: 6px 8px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
.occ-filters select { width: 100%; display: block; margin-top: 3px; }
.occ-search { margin: 20px 0 8px; }
.occ-search div { display: flex; gap: 8px; margin-top: 4px; }
.occ-search input { flex: 1; }
#occ-sheet [data-saved-places] { margin-top: 18px; }
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

/* Sections: a bar along the bottom on a phone, a rail on the left on a desk. */
.tabs {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: var(--tabs);
  padding: 9px 4px 7px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.8125rem;
}
.tabs button[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 3px 0 var(--ink);
}
.tabs .dot {
  position: absolute;
  top: 8px;
  left: calc(50% + 9px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--watch-line);
  border: 2px solid var(--panel);
  box-sizing: content-box;
}
.tabs .dot.danger {
  background: var(--danger-line);
}

main {
  margin-left: var(--rail);
  outline: none;
}
.view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  max-width: 720px;
  margin: 0 auto;
}

/* The verdict: one sentence that answers the screen's question. */
.verdict {
  border-left: 3px solid var(--ink);
  padding: 2px 0 2px 14px;
}
.verdict h1 {
  font-size: clamp(1.75rem, 6.2vw, 2.5rem);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.verdict p {
  margin-top: 8px;
  color: var(--ink-2);
  max-width: 34em;
}
.verdict.wet {
  border-left-color: var(--rain-2);
}
.verdict.watch {
  border-left-color: var(--watch-line);
}
.verdict.watch h1 {
  color: var(--watch);
}
.verdict.danger {
  border-left-color: var(--danger-line);
}
.verdict.danger h1 {
  color: var(--danger);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.panel > h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.panel > h2 + .sub {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.note {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.note + .note {
  margin-top: 6px;
}

/* Maps */
.mapwrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.map {
  height: min(62vh, 380px);
  background: var(--line-soft);
}
.mapbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.mapbar button {
  min-width: 44px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
}
.mapbar button:disabled {
  opacity: 0.45;
}
.mapnote {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
/* Lightning arrives pale yellow to dark red, by how many flashes a pixel saw
   in 5 minutes. It used to be turned violet, which made 10 or more flashes
   rain's blue. Now one gold, the map's free hue: index.html's tone tables,
   darker on a light map and brighter on a dark one, the more flashes the
   stronger. The key's chip takes the tone at 10, through --key-lightning. */
.leaflet-lightning-pane img {
  filter: url(#lightning-tone-light);
}
.kc {
  --key-lightning: #5a4900;
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme='light'])) .leaflet-lightning-pane img {
    filter: url(#lightning-tone-dark);
  }
  :where(:root:not([data-theme='light'])) .kc {
    --key-lightning: #e5b704;
  }
}
:where(:root[data-theme='dark']) .leaflet-lightning-pane img {
  filter: url(#lightning-tone-dark);
}
:where(:root[data-theme='dark']) .kc {
  --key-lightning: #e5b704;
}
/* Lightning's pictures pass into each other (public/lightning-film.js): the
   two of a blend, at 1 - mix and mix, are added to each other inside the
   pane only, which is exactly the strength between them. */
.leaflet-lightning-pane {
  isolation: isolate;
}
.leaflet-lightning-pane > .leaflet-layer {
  mix-blend-mode: plus-lighter;
}
.windmark {
  display: grid;
  justify-items: center;
  color: #1b2430;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff;
}
.windmark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff);
}
.windmark.strong {
  color: #8a1c14;
}
.mapbar .grow {
  flex: 1;
  min-width: 0;
}
.leaflet-container {
  font: inherit;
  font-size: 0.8125rem;
  background: var(--line-soft);
}
/* ---------- rain map: base map tone and rain blend (2026-11-22) ----------
   The reasons and the measurements are in
   docs/superpowers/specs/2026-11-22-rain-map-design.md.

   The base map is filtered as one picture, not tile by tile: a filter on
   each tile turns its soft edges into light seams. Only the base map lives in
   the tile pane; every overlay has its own pane.

   Light: paper (Tom, 23 November, option A of the light base options): the
   map's greys warmed toward the page's cream, its land at 246,240,228
   against the page's 247,241,229, a little more contrast so names stay
   sharp, and nothing blue, so blue on the map is rain's alone. A light
   screen has this drawn map at every zoom, no earth picture
   (public/space-base.js). Dark:
   the light map turned over with its hues put back (sea a cool grey-blue,
   land near black), names light and sharp: dry names went from 6.2:1 to over
   11:1. The rain is mixed into the map rather than laid over it (multiply on
   a light map, screen on a dark one), so a town's name still shows through
   rain instead of being painted out. */
.leaflet-tile-pane {
  filter: grayscale(1) sepia(0.19) brightness(0.94) contrast(1.06);
}
.leaflet-rainmovie-pane {
  mix-blend-mode: multiply;
}
/* The earth at night (public/space-base.js) over the drawn map, out to zoom
   7, faded into it by zoom over a zoom's quarter second, never switched. Its
   own colours: none of the drawn map's filters. */
.leaflet-space-pane {
  transition: opacity 0.25s linear;
}
@media (prefers-reduced-motion: reduce) {
  .leaflet-space-pane {
    transition: none;
  }
}
/* Over the earth by day (public/space-base.js: Blue Marble under the Fire
   map's chosen photo, short of its zoom 9) the rain is laid on in its own
   colours, never multiplied into a dark sea nor added into a pale wash on
   brown land; over the earth at night
   it is added, as on the dark screen's drawn map (the two dark rules below). */
.spacelook .leaflet-rainmovie-pane {
  mix-blend-mode: normal;
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme='light'])) .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) saturate(0.3) brightness(1) contrast(1.3);
  }
  :where(:root:not([data-theme='light'])) .leaflet-rainmovie-pane {
    mix-blend-mode: screen;
  }
  :where(:root:not([data-theme='light'])) .spacelook .leaflet-rainmovie-pane {
    mix-blend-mode: screen;
  }
}
/* The same when Dark is chosen in Settings (theme-boot.js). */
:where(:root[data-theme='dark']) .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) saturate(0.3) brightness(1) contrast(1.3);
}
:where(:root[data-theme='dark']) .leaflet-rainmovie-pane {
  mix-blend-mode: screen;
}
:where(:root[data-theme='dark']) .spacelook .leaflet-rainmovie-pane {
  mix-blend-mode: screen;
}
/* What the map shows right now: the day and hour, then measured (a solid
   square) or predicted (a pale square with drops, as on the map), and how
   coarse the rain is when the map is zoomed in past it. */
.moviebadge .sw.wetdrops {
  background: color-mix(in srgb, var(--rain-2) 40%, transparent);
}
.moviebadge .sw svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: var(--rain-2);
}
@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme='dark'])) .moviebadge .sw svg {
    fill: color-mix(in srgb, var(--rain-2) 74%, #000);
  }
}
/* The same when Light is chosen in Settings (theme-boot.js). */
:where(:root[data-theme='light']) .moviebadge .sw svg {
  fill: color-mix(in srgb, var(--rain-2) 74%, #000);
}
.moviebadge .bc {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-2);
}
.moviebadge .bc[hidden],
.moviebadge .sw[hidden] {
  display: none;
}
/* In a story's small map the badge is one short line, so it covers little
   of the picture: the time, and measured or predicted as the square. */
.map.compact .moviebadge {
  padding: 3px 7px;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
}
.map.compact .moviebadge[data-clock-only="true"] {
  display: none;
}
.map.compact .moviebadge .bt {
  font-size: 0.875rem;
}
.map.compact .leaflet-control-attribution {
  font-size: 0.625rem;
}
.map.compact .moviebadge .bs span,
.map.compact .moviebadge .bc {
  display: none;
}
/* ---------- end of rain map block ---------- */
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme='light'])) .leaflet-container .leaflet-control-attribution,
  :where(:root:not([data-theme='light'])) .leaflet-bar a {
    background: var(--panel);
    color: var(--ink-2);
  }
  :where(:root:not([data-theme='light'])) .leaflet-container .leaflet-control-attribution a {
    color: var(--ink);
  }
}
/* The same when Dark is chosen in Settings (theme-boot.js). */
:where(:root[data-theme='dark']) .leaflet-container .leaflet-control-attribution,
:where(:root[data-theme='dark']) .leaflet-bar a {
  background: var(--panel);
  color: var(--ink-2);
}
:where(:root[data-theme='dark']) .leaflet-container .leaflet-control-attribution a {
  color: var(--ink);
}
.leaflet-control-attribution {
  font-size: 0.6875rem;
}
.here {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--panel);
  box-shadow: 0 0 0 1px var(--ink);
}
.windbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}
.windbox svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Facts in a row: label under value. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 12px 14px;
}
.facts dt {
  color: var(--ink-2);
  font-size: 0.8125rem;
  order: 2;
}
.facts dd {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.facts div {
  display: flex;
  flex-direction: column;
}
.facts small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-2);
}

/* The five-step official fire risk scale. */
.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 10px 0 6px;
}
.scale i {
  height: 8px;
  background: var(--line);
  border-radius: 1px;
}
.scale i.on {
  background: var(--ink);
}
.scale.l3 i.on {
  background: var(--watch-line);
}
.scale.l4 i.on,
.scale.l5 i.on {
  background: var(--danger-line);
}
.risk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.risk b {
  display: block;
  font-size: 1.125rem;
}
.risk span {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.rows > li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.rows > li:first-child {
  border-top: 0;
  padding-top: 0;
}
.rows b {
  font-weight: 700;
}
.rows .meta {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.rows .right {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
}
.tag.watch,
.tag.yellow {
  background: var(--watch-bg);
  border-color: var(--watch-line);
  color: var(--watch);
}
.tag.danger,
.tag.orange,
.tag.red {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger);
}

/* Banner: only when something official or urgent is active. */
#banner:not(:empty) {
  max-width: 720px;
  margin: 14px auto 0;
  padding: 0 14px;
  display: grid;
  gap: 8px;
}
.alert {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--watch-line);
  background: var(--watch-bg);
  color: var(--watch);
  font-weight: 700;
}
.alert.danger {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}
.alert small {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
}

/* Weather now */
.nowrow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nowrow .temp {
  font-size: 3.5rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.sky {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.nowrow .sky {
  width: 54px;
  height: 54px;
}
.hourly {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 56px;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.hourly li {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.hourly b {
  color: var(--ink);
  font-size: 1rem;
}
.days li {
  display: grid;
  grid-template-columns: 3.2em 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.days li:first-child {
  border-top: 0;
}
.days .what {
  min-width: 0;
}
.days .what small {
  display: block;
  color: var(--ink-2);
  font-size: 0.8125rem;
}
.days .rainy {
  color: var(--rain-ink);
  font-weight: 700;
}
.days .temps {
  text-align: right;
  white-space: nowrap;
}
.days .temps span {
  color: var(--ink-2);
}

/* Sources, one tap away */
#sources {
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 14px 28px;
}
#sources details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
#sources summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: 0.875rem;
  min-height: 32px;
}
#sources table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.8125rem;
}
#sources th,
#sources td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px 6px 0;
  border-top: 1px solid var(--line-soft);
  font-weight: 400;
}
#sources th {
  font-weight: 700;
  white-space: nowrap;
}
#sources td.state {
  white-space: nowrap;
  font-weight: 700;
}
#sources td.bad {
  color: var(--danger);
}

.empty {
  padding: 36px 8px;
  text-align: center;
  color: var(--ink-2);
}
.empty h1 {
  color: var(--ink);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Place dialog */
dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  color: var(--ink);
}
dialog::backdrop {
  background: var(--backdrop);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}
dialog h2 {
  font-size: 1.25rem;
  line-height: 1.2;
}
dialog h3 {
  font-size: 0.875rem;
  color: var(--ink-2);
  font-weight: 400;
  margin: 16px 0 4px;
}
.close {
  border: 0;
  background: none;
  min-width: 44px;
  min-height: 44px;
  margin: -10px -10px 0 0;
  display: grid;
  place-items: center;
}
.primary {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--panel);
  font-weight: 700;
}
dialog label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.9375rem;
}
dialog input {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-s);
  background: var(--panel);
}
.hint {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin-top: 6px;
  min-height: 1.2em;
}
.results button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 48px;
  padding: 8px 4px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: none;
}
.results button:hover {
  background: var(--ground);
}
.results small {
  display: block;
  color: var(--ink-2);
}

/* ---------- Rain: the story ----------
   The weather reads like a short page: the headline in large type, the map
   with its time line, then each day as a chapter. Wet days are washed blue,
   dry days are left plain. On a wide screen the map stays beside the story. */

.story-view {
  gap: 0;
  padding: 0 0 20px;
}
.story-view > * {
  min-width: 0;
}
.lead {
  padding: 10px 16px 0;
}
.lead h1 {
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 6px 0 10px;
  text-wrap: balance;
}
.lead p {
  font-size: 1.1875rem;
  max-width: 30em;
}
.drops {
  margin: 18px 0 2px;
}
.drops .row {
  display: grid;
  gap: 2px;
  align-items: end;
}
.drops svg {
  width: 100%;
  height: auto;
}
.drops .shell {
  fill: none;
  stroke: var(--ink-2);
  stroke-opacity: 0.75;
  stroke-width: 1.6;
}
.drops .shell.unknown {
  stroke-dasharray: 2 2.4;
}
.drops .fill.c0 {
  fill: var(--rain-c0);
}
.drops .fill.c1 {
  fill: var(--rain-c1);
}
.drops .fill.c2 {
  fill: var(--rain-c2);
}
.drops .fill.c3 {
  fill: var(--rain-c3);
}
.drops .fill.c4 {
  fill: var(--rain-c4);
}
.drops .fill.c5 {
  fill: var(--rain-c5);
}
.drops .t,
.chapter .rib .t {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.chapters {
  padding: 0 16px;
}
.chapter {
  margin: 22px -16px 0;
  padding: 18px 16px 20px;
}
.chapter.wet {
  background: var(--wash);
}
.chapter header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.chapter h2 {
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.chapter .pic {
  width: 72px;
  height: 72px;
  grid-row: span 2;
}
.chapter .range {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chapter .range .lo {
  color: var(--cold-ink);
}
.chapter .range .hi {
  color: var(--warm-ink);
}
.chapter .range .to {
  color: var(--ink-2);
  font-weight: 500;
  margin: 0 5px;
}
.chapter p {
  margin-top: 10px;
  font-size: 1.1875rem;
  max-width: 32em;
}
.chapter .rib {
  margin-top: 14px;
}
.chapter .ribbon {
  display: block;
  width: 100%;
  height: 44px;
}
.ribbon .dry {
  fill: var(--line);
}
.ribbon .c0 {
  fill: var(--rain-c0);
}
.ribbon .c1 {
  fill: var(--rain-c1);
}
.ribbon .c2 {
  fill: var(--rain-c2);
}
.ribbon .c3 {
  fill: var(--rain-c3);
}
.ribbon .c4 {
  fill: var(--rain-c4);
}
.ribbon .c5 {
  fill: var(--rain-c5);
}
.warntag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 8px 0 0;
  background: var(--warn);
  color: var(--warn-ink);
  border-radius: 999px;
  padding: 3px 12px 3px 8px;
  font-weight: 700;
  font-size: 0.9375rem;
}
.warntag.orange {
  background: #f08a24;
}
.warntag.red {
  background: #d0453b;
  color: #fff;
}
.warntag svg {
  width: 16px;
  height: 16px;
  flex: none;
}
/* "Watch it on the map". Not ".watch": that is the fire level's class (the
   banner, the fire verdict and its tags), which took this pill shape. */
.watchmap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 1.5px solid var(--focus);
  background: none;
  color: var(--focus);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  min-height: 44px;
}
.watchmap svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.watchmap:hover:not(:disabled) {
  background: var(--focus);
  color: var(--panel);
}
.watchmap:disabled {
  border-style: dashed;
  color: var(--ink-2);
  cursor: default;
}
.watchmap[hidden] {
  display: none;
}
/* Words standing in for a Watch button the map cannot honour just now. */
.watchoff {
  flex-basis: 100%;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* Sky pictures */
.pic .sun {
  fill: #f5b51b;
}
.pic .ray {
  stroke: #f5b51b;
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
}
.pic .cloud {
  fill: var(--cloud);
  stroke: var(--cloud-edge);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.pic .cloud.back {
  fill: var(--cloud-back);
}
.pic .cloud.dark {
  fill: #7d8fa3;
  stroke: #55677a;
}
.pic .drop {
  stroke: var(--rain-2);
  stroke-width: 2;
  stroke-linecap: round;
}
.pic .mist {
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.pic .flake {
  fill: #9fc6ee;
}
.pic .bolt {
  fill: #f5b51b;
  stroke: #a36d00;
  stroke-width: 0.6;
}

/* ---------- Weather: the story ----------
   The twin of the rain's page. The map and its time line are one instance
   shared with Rain: they move into this tab's hosts when it is shown. */

.maphost,
.scrubhost {
  display: contents;
}
.maphead {
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 12px 14px 8px;
}
.lead .flash {
  margin-top: 8px;
  font-weight: 700;
}
.lead .warnings {
  margin-top: 16px;
}
.chapters .later {
  margin-top: 22px;
}
.trib {
  margin-top: 14px;
}
.trib .plot {
  position: relative;
  margin: 20px 0 22px;
}
.trib svg {
  display: block;
  width: 100%;
  height: 48px;
  overflow: visible;
}
.trib .tline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.trib .zero {
  stroke: var(--cold);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.trib .gstrip {
  display: block;
  width: 100%;
  height: 5px;
  margin: 0 0 6px;
}
.trib .gmark {
  fill: var(--warm);
}
.trib .lab {
  position: absolute;
  transform: translate(-50%, calc(-100% - 5px));
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trib .lab.hi {
  color: var(--warm-ink);
}
.trib .lab.lo {
  color: var(--cold-ink);
  transform: translate(-50%, 6px);
}
.trib .lab.zlab {
  left: 0;
  transform: translate(0, -50%);
  font-size: 0.75rem;
  color: var(--cold-ink);
  background: var(--ground);
  padding: 0 3px;
}
.chapter .trib .t {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.gustkey {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.gustkey i {
  flex: none;
  width: 8px;
  height: 5px;
  background: var(--warm);
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
}
.rainlink {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  border: 1.5px solid var(--line);
  background: none;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.9375rem;
  min-height: 44px;
}
.rainlink:hover {
  border-color: var(--ink-2);
}
.pic .moon {
  fill: #f2d67a;
  stroke: #a3862b;
  stroke-width: 0.8;
}

/* The map card: tabs, the map, the time line, a note. */
.mapcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 20px 16px 0;
  overflow: hidden;
}
.maptabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.maptabs button {
  flex: none;
  border: 0;
  background: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink-2);
  min-height: 44px;
}
.maptabs button[aria-selected='true'] {
  background: var(--ink);
  color: var(--panel);
}
.maptabs button:focus-visible {
  outline-offset: -3px;
}
.mapcard .map {
  height: min(62vh, 380px);
}
.under {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.under h3 {
  font-size: 1.0625rem;
  margin-bottom: 2px;
}
.undernote .mapnote {
  margin-top: 10px;
}
#scrub[hidden] + .undernote .mapnote {
  margin-top: 0;
}
.daypick {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.daypick button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-s);
  padding: 6px 12px;
  font-weight: 700;
  min-height: 44px;
}
.daypick button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}
.fwikey {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.fwikey i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  vertical-align: -2px;
  margin-right: 4px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}
.ring {
  stroke: var(--ink-2);
}
.spot {
  stroke: var(--danger-line);
  fill: var(--danger-line);
}
.spot.low {
  stroke: var(--ink-2);
  fill: var(--ink-2);
}

/* What the map shows right now (the swatch and the coarse note are in the
   rain map block, under the base map's tone). */
.moviebadge {
  display: grid;
  gap: 1px;
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  padding: 5px 10px 6px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  pointer-events: none;
  contain: layout style;
}
.moviebadge .bt {
  font-size: 1.1875rem;
  line-height: 1.15;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.moviebadge .bs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
}
.moviebadge .sw {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: none;
}
.moviebadge .sw.solid {
  background: var(--rain-2);
}

/* The time line: play, the strip of when the weather comes, the slider, the
   words, the speed. */
.scrub {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: 'play track track' 'play when speed';
  column-gap: 12px;
  align-items: center;
}
.scrub .play {
  grid-area: play;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--focus);
  color: var(--panel);
  display: grid;
  place-items: center;
}
.scrub .play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.scrub .track {
  grid-area: track;
  position: relative;
  padding-top: 4px;
  min-width: 0;
}
.scrub .rail {
  position: relative;
}
.scrub .strip {
  position: relative;
  display: grid;
  gap: 3px;
  margin-bottom: 2px;
}
.scrub .strip .row {
  position: relative;
  height: 16px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--line) 45%, transparent);
  overflow: hidden;
}
.scrub .strip.many .row {
  height: 11px;
}
.scrub .strip .row i {
  position: absolute;
  bottom: 0;
  height: 100%;
}
.scrub .strip .row i.gap {
  height: 45%;
  border-top: 1px dotted var(--ink-2);
}
.scrub .strip .row i.dry {
  height: 2px;
  background: var(--ink-2);
  opacity: .65;
}
.scrub .strip .row i.observed {
  border-top: 2px solid var(--ink);
}
.scrub .strip .row i.snow {
  background: #f4f8ff;
  box-shadow: inset 0 0 0 1px #5b6b80;
  background-image: radial-gradient(circle, #5b6b80 0.9px, transparent 1.2px);
  background-size: 4px 4px;
}
.scrub .strip .row i.gust {
  background: var(--ink-2);
  opacity: 0.75;
}
.scrub .strip .row i.gust.strong {
  background: #e8590c;
  opacity: 1;
  box-shadow: inset 0 2px 0 #9c3a06;
}
.scrub .strip .row i.cloud {
  background: var(--ink-2);
}
.scrub .strip.many .row::before {
  content: attr(data-name);
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--panel);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-2);
  white-space: nowrap;
}
.scrub .strip > b {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--ink-2);
  opacity: 0.55;
}
.scrub .speed {
  grid-area: speed;
  min-width: 48px;
  height: 44px;
  padding: 0 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.scrub .speed:hover {
  border-color: var(--focus);
}
/* Three stretches under the slider: seen (solid), carried forward by Tempo
   (hatched), forecast by the models (dotted). */
.scrub .zones {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 6px;
  pointer-events: none;
}
.scrub .zones i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  opacity: 0.55;
}
.scrub .z-radar {
  left: 0;
  width: var(--last-radar, 50%);
  background: var(--rain-2);
  opacity: 0.3;
}
.scrub .z-now {
  left: var(--last-radar, 50%);
  width: calc(var(--fc, 100%) - var(--last-radar, 50%));
  /* Predicted, as on the map: a paler wash with drops (the days: drops alone). */
  background:
    radial-gradient(circle, var(--rain-2) 1.5px, transparent 2px) 0 50% / 7px 6px repeat-x,
    color-mix(in srgb, var(--rain-2) 40%, transparent);
}
.scrub .z-days {
  left: var(--fc, 100%);
  right: 0;
  background: radial-gradient(circle, var(--rain-2) 1.5px, transparent 2px) 0 50% / 7px 6px repeat-x;
}
.scrub input {
  width: 100%;
  margin: 0;
  accent-color: var(--focus);
  height: 24px;
}
.scrub .marks {
  position: relative;
  height: 16px;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.scrub .marks span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.scrub .marks span:first-child {
  transform: none;
}
.scrub .marks span:last-child {
  transform: translateX(-100%);
}
.scrub .marks span.dtick,
.scrub .marks span.dtick:last-child {
  transform: none;
  padding-left: 4px;
  border-left: 1px solid var(--line);
}
.scrub .marks .nowmark {
  font-weight: 700;
  color: var(--ink);
}
.scrub .marks .nowmark::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -16px;
  width: 2px;
  height: 14px;
  background: var(--ink);
}
.scrub .when {
  grid-area: when;
  font-size: 0.875rem;
  line-height: 19px;
  color: var(--ink-2);
  height: 38px;
  overflow: hidden;
  min-width: 0;
  contain: strict;
}
.scrub .when b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.scrub .when .fc {
  color: var(--ink);
}
.scrub .when .proj {
  color: var(--rain-ink);
}

.numbers {
  margin: 26px 16px 0;
}
.numbers summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1875rem;
  padding: 8px 0;
  min-height: 44px;
}
.numbers table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.numbers td,
.numbers th {
  text-align: left;
  padding: 5px 6px 5px 0;
  border-bottom: 1px solid var(--line);
}
.numbers .bar {
  display: inline-block;
  height: 8px;
  background: var(--rain-2);
  border-radius: 4px;
  vertical-align: middle;
}
.numbers .note {
  margin-top: 10px;
}
.story-view .how {
  margin: 16px 16px 0;
}

@media (min-width: 900px) {
  .story-view {
    padding: 0 24px 24px;
  }
  .lead,
  .chapters {
    padding-left: 0;
    padding-right: 0;
  }
  .chapter {
    margin: 22px 0 0;
    padding: 20px 22px 22px;
    border-radius: var(--radius);
  }
  .mapcard,
  .numbers,
  .story-view .how {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (min-width: 1180px) {
  .view.story-view {
    max-width: 1440px;
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    grid-template-areas: 'lead side' 'chapters side' 'numbers side' 'how side';
    grid-template-rows: auto auto auto 1fr;
    column-gap: 28px;
    align-items: start;
  }
  .story-view .lead {
    grid-area: lead;
  }
  .story-view .chapters {
    grid-area: chapters;
  }
  .story-view .numbers {
    grid-area: numbers;
  }
  .story-view .how {
    grid-area: how;
  }
  .story-view .side {
    grid-area: side;
    position: sticky;
    top: 74px;
    height: calc(100dvh - 90px);
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
  }
  .story-view .mapcard {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .story-view .mappanel {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .story-view .mapcard .map {
    flex: 1;
    height: auto;
  }
}

/* Wide screens: rail on the left; rain and fire put the map beside the words. */
@media (min-width: 900px) {
  :root {
    --rail: 92px;
  }
  body {
    padding-bottom: 0;
  }
  .tabs {
    inset: 0 auto 0 0;
    width: var(--rail);
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    align-content: start;
    padding-top: 64px;
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .tabs button {
    padding: 14px 4px;
  }
  .tabs button[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--ink);
  }
  .view,
  #banner:not(:empty),
  #sources {
    max-width: 760px;
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (min-width: 1180px) {
  .view.split {
    max-width: none;
    grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
    align-items: start;
    gap: 14px 24px;
  }
  .view.split > * {
    grid-column: 1;
  }
  .view.split > .mapwrap {
    grid-column: 2;
    grid-row: 1 / span 12;
    position: sticky;
    top: 74px;
  }
  .view.split .map {
    height: calc(100dvh - 150px);
  }
  #banner:not(:empty),
  #sources {
    max-width: none;
  }
}

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

/* The code screen and the people page: one narrow column, the same
   instrument look as the app. */
body.door {
  padding: max(32px, env(safe-area-inset-top)) 16px 48px;
}
.door main {
  max-width: 26rem;
  margin: 0 auto;
}
.door h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 12px 0 6px;
}
.door-mark {
  display: block;
  border-radius: 12px;
}
.door-lead {
  color: var(--ink-2);
  margin: 0 0 24px;
}
.door-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 20px;
}
.door-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.door-form input {
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-s);
  background: var(--panel);
}
.door-form input[inputmode='numeric'] {
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.door-form button,
.door-fresh + .door-form button {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--panel);
  font-weight: 700;
}
.door-hint,
.door-meta {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin: 6px 0 0;
}
.door-meta {
  display: block;
}
.door-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-left: 4px solid var(--danger-line);
  padding: 8px 10px;
  margin: 10px 0 0;
}
.door-fresh {
  background: var(--panel);
  border: 2px solid var(--focus);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 20px;
}
.door-fresh p {
  margin: 0;
}
.door-code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 !important;
}
.door-people {
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.door-people li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.door-people li.is-off strong {
  color: var(--ink-2);
  text-decoration: line-through;
}
.door-tag {
  font-size: 0.8125rem;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  white-space: nowrap;
}
.door-quiet {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: none;
  white-space: nowrap;
}
.door a {
  color: var(--focus);
}
.door-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.door-bar form {
  margin: 0;
}
#sources .people-link {
  margin-top: 10px;
}
#sources .people-link a {
  color: var(--focus);
}

/* When it rains: one row per spell, time on the left, what on the right.
   A sure spell carries the rain blue; a maybe stays quiet. */
.spells ul {
  margin: 8px 0 10px;
  padding: 0;
}
.spell {
  display: grid;
  grid-template-columns: minmax(7.5em, auto) minmax(0, 1fr);
  gap: 4px 14px;
  padding: 10px 0 10px 12px;
  border-top: 1px solid var(--line-soft);
  border-left: 4px solid var(--rain-2);
}
.spell.likely {
  border-left-color: var(--rain-1);
}
.spell.maybe {
  border-left: 4px dashed var(--line);
}
.spell-when {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.spell-what strong {
  color: var(--rain-ink);
}
.spell.maybe .spell-what strong {
  color: var(--ink-2);
}
.spell-what small {
  display: block;
  color: var(--ink-2);
}
@media (max-width: 420px) {
  .spell {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The next days as a story: the day's name, then a plain sentence or two. */
.story ul {
  margin: 6px 0 0;
  padding: 0;
}
.story li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 2px 14px;
  padding: 10px 0 10px 12px;
  border-top: 1px solid var(--line-soft);
  border-left: 4px solid transparent;
}
.story li.wet {
  border-left-color: var(--rain-2);
}
.story li strong {
  font-weight: 700;
}
@media (max-width: 420px) {
  .story li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The forms on the "you" and people pages. */
.door textarea {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-s);
  background: var(--panel);
  color: inherit;
  margin-top: 8px;
  resize: vertical;
}
.door-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.door-actions form { margin: 0; }
.door-text { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.door h2 { font-size: 1.05rem; margin: 24px 0 8px; }

/* Install and rain alerts on the "you" page. */
.door-form .door-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 400;
}
.door-form .door-check input {
  width: 22px;
  min-height: 22px;
  margin: 0;
}
.door-form input + label { margin-top: 12px; }
.door-steps { margin: 12px 0 0; padding-left: 1.4em; }
.door-steps li + li { margin-top: 6px; }
#alerts .door-people li { flex-wrap: wrap; }

/* ---------- Air: the story ----------
   The Weather tab's shape without the map: a chapter a day with the
   European index as a line over dashed band lines, named at the left, and
   the UV as bars under it, said in words. One column at every width. */
.chapter .range.aq .idx {
  margin-left: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
.chapter .range.aq.bad .word {
  color: var(--watch);
}
.arib .plot svg {
  height: 60px;
}
.trib .band {
  stroke: var(--ink-2);
  stroke-opacity: 0.5;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.trib .lab.blab {
  right: 0;
  transform: translate(0, -50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--ground);
  padding: 0 3px;
}
.trib .uvstrip {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0 0 6px;
}
.trib .uvbar {
  fill: var(--warm);
}
.numbers h3 {
  margin: 18px 0 6px;
  font-size: 1.0625rem;
}
.numbers .facts {
  margin-top: 12px;
}
@media (min-width: 1180px) {
  .view.story-view.alone {
    max-width: 760px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'lead' 'chapters' 'numbers' 'how';
    grid-template-rows: auto;
  }
}

/* ---------- Fire: the story (2026-11-22) ---------- */

.verdict .share,
.linkish {
  font: inherit;
  color: var(--focus);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 12px;
  cursor: pointer;
}
.linkish {
  border: 0;
  padding: 0;
  margin: 0;
  text-decoration: underline;
}
.firech > h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.firech > p,
.firech > dl,
.firech > ol {
  margin-top: 8px;
}
.firech .sub,
.firech .pt {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.firech .pt {
  margin-top: 4px;
}
.phases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.phases li {
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
  padding: 6px 2px;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.phases li.done {
  color: var(--ink);
  border-color: var(--line);
}
/* Passed steps carry a tick, not only a colour. */
.phases li.done::before {
  content: '\2713\00a0';
}
.phases li.on {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-line);
  font-weight: 700;
}
.means {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.means div {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 8px 4px;
}
.means dd {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.means dt {
  order: 2;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.windsteps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin: 10px 0;
}
.windsteps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  padding: 4px 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}
.windsteps .h {
  color: var(--ink-2);
}
.windsteps svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.windsteps .k {
  font-weight: 700;
}
.windsteps .r {
  font-size: 0.6875rem;
  line-height: 1.15;
  text-align: center;
  color: var(--ink-2);
}
.windsteps li.toward {
  background: var(--danger-bg);
  border-color: var(--danger-line);
}
.windsteps li.toward .r {
  color: var(--danger);
  font-weight: 700;
}
.windsteps li.away {
  border-style: dashed;
}
.todo ul {
  margin: 8px 0 0 1.1em;
}
.todo li + li {
  margin-top: 6px;
}
.todo .note,
.others {
  margin-top: 8px;
}
.burn {
  margin-top: 6px;
  font-size: 1.125rem;
}
.firepin {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  width: auto !important;
  height: auto !important;
  white-space: nowrap;
}
.firepin svg {
  width: 20px;
  height: 24px;
  flex: none;
}
.firepin .outer {
  fill: #a3211a;
  stroke: #fff;
  stroke-width: 1.2;
}
.firepin .inner {
  fill: #f4c531;
}
.firepin span {
  background: var(--panel);
  color: var(--danger);
  border: 1px solid var(--danger-line);
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 4px;
  margin-top: 2px;
}
/* A section with nothing to say takes no room. */
[data-slot]:empty {
  display: none;
}

/* ---------- Three tabs: Stories, Map, Settings (2026-11-22) ----------
   docs/superpowers/specs/2026-11-22-streamline-design.md. One scroll of
   stories; a quiet story is short, a telling one opens its days. */

:root {
  --topbar: calc(61px + env(safe-area-inset-top));
}
.tabs {
  grid-template-columns: repeat(3, 1fr);
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab {
  max-width: 720px;
  margin: 0 auto;
}

/* The jump buttons: sticky under the top bar, the story being read dark. */
.jumps {
  position: sticky;
  top: var(--topbar);
  z-index: 1000;
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  background: var(--ground);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.jumps::-webkit-scrollbar {
  display: none;
}
.jumps:empty {
  display: none;
}
.jumps button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  font-size: 0.875rem;
  font-weight: 700;
}
.jumps .ico {
  width: 16px;
  height: 16px;
}
.jumps button[aria-current='true'] {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}
.jumps button.hot {
  border-color: var(--danger-line);
}
.dword {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger);
}
.jumps button[aria-current='true'] .dword {
  color: var(--panel);
}

/* The four small numbers. */
.ipma-credit {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
.ipma-credit img {
  padding: 3px;
  background: var(--mast-paper);
  border-radius: var(--radius-s);
}
.minis > .source-credit { grid-column: 1 / -1; }
.minis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 4px;
}
.minis:empty {
  display: none;
}
.minis button {
  display: grid;
  gap: 1px;
  align-content: start;
  min-width: 0;
  padding: 7px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--panel);
  text-align: left;
}
.minis .k {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-2);
}
.minis .k .ico {
  width: 14px;
  height: 14px;
}
.minis b {
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.minis small {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.minis button.hot {
  border-color: var(--danger-line);
  box-shadow: inset 0 0 0 1px var(--danger-line);
}
.minis button.hot b {
  color: var(--danger);
}

/* One story. */
.story {
  padding: 16px 16px 10px;
  scroll-margin-top: calc(var(--topbar) + 53px);
}
.story + .story {
  margin-top: 14px;
  border-top: 2px solid var(--line);
}
.story .kname {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  outline: none;
}
.story .kname .ico {
  width: 22px;
  height: 22px;
}
.story .tomap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.story h2 {
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  outline: none;
}
.story .head {
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 6px;
  text-wrap: balance;
}
.story.danger .head {
  color: var(--danger);
}
.story .lede {
  font-size: 1.0625rem;
  max-width: 34em;
}
.story .calm {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.story .unread {
  margin-top: 8px;
  padding: 6px 10px;
  border-left: 3px solid var(--watch-line);
  background: var(--watch-bg);
  color: var(--watch);
  font-size: 0.875rem;
}
.story .spic {
  margin-top: 10px;
}
.story .spic .drops {
  margin: 0;
}
.story .spic .trib {
  margin-top: 0;
}
.story .spic .trib .plot {
  margin: 18px 0 18px;
}
.story .spic .rib .ribbon {
  display: block;
  width: 100%;
  height: 36px;
}
.story .spic .rib .t {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.riskline {
  display: grid;
  gap: 4px;
}
.riskline .scale {
  margin: 0;
}
.riskline .src {
  color: var(--ink-2);
  font-size: 0.75rem;
}
.burnline {
  margin-top: 10px;
}
.burnline > p {
  font-size: 1rem;
}
.acts {
  margin-top: 8px;
}

/* The front page: one card per story, one way in. */
/* Tight enough that four cards fit the front page's budget at 375 px wide
   (1,400 px, the spec), the way in keeping its 44 px to touch. */
.story.card {
  position: relative;
  padding: 12px 16px 2px;
}
/* The whole card is one touch target: its way in is stretched over it, so a
   touch on the title, the headline or anywhere on the card opens the story
   (the spec: "A touch on a card, on its title ... opens it"). What the card
   holds that acts on its own (the live map, Send to family, a link in an
   official line, the phone-place line) stays above it and keeps its own act. */
.story.card .wayin::after {
  content: '';
  position: absolute;
  inset: 0;
}
.story.card :is(button, details, .storymap, .avisostory a, [data-slot]) {
  position: relative;
  z-index: 1;
}
.story.card + .story.card {
  margin-top: 4px;
}
.story.card .head {
  margin: 4px 0;
}
.story.card .way {
  margin-top: 0;
}
.story.card .unread {
  margin-top: 6px;
  padding: 4px 10px;
}
.story .wayin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  font-size: 1rem;
  font-weight: 700;
  color: var(--focus);
  text-decoration: none;
}
.story .wayin:hover {
  text-decoration: underline;
}
.story .wayin .go {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A story's own page: back, the name as its title, the days, the foot. */
body[data-view]:not([data-view='']) #jumps,
body[data-view]:not([data-view='']) #minis {
  display: none;
}
.storypage .backline {
  margin: -6px 0 4px;
}
.storypage .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  font-weight: 700;
  color: var(--focus);
  text-decoration: none;
}
.storypage .back::before {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.storypage .ptitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  outline: none;
}
.storypage .ptitle .ico {
  width: 24px;
  height: 24px;
}
.storypage .days {
  margin-top: 6px;
}
.storypage .foot {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.storypage .foot .tomap {
  margin: 6px 0 4px;
}
.story .chapter.later {
  padding: 10px 14px;
  background: transparent;
}

/* The week (story-pages.js weekHtml): seven columns on one scale after the
   days, in the chapters' own shape. Each column is one touch target, at least
   48 px wide at 375 px, so the row runs out to the card's edges. Rain's blue
   is on the rain's bars only; the temperature's bar runs from the cold token
   to the warm one. A bar by one forecast is hatched, a day not read is a grey
   hatch, a dry day an open ring: each a shape, not a colour alone. */
.story .week {
  position: relative;
  margin: 12px 0 0;
  padding: 12px 14px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
/* On a story's page each chapter is a card (16 px inside, the card's corner
   and edge), and the week is one of them. The row of days still runs out to
   2 px from the card's edge, so seven columns keep their 48 px at 375 px. */
.storypage .week {
  padding: 16px;
  border-color: var(--line);
  border-radius: var(--radius-card);
}
.storypage .week .wkcols {
  margin-inline: -14px;
}
/* "Watch it on the map" in an opened day: the outline button the chapters'
   own has on a story's page, the same height and corners. */
.storypage .week .wkday .watchmap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: var(--tap-main);
  padding: 0 20px;
  border: 1px solid var(--focus);
  border-radius: var(--radius-btn);
  background: none;
  color: var(--focus);
  font-size: 1rem;
  font-weight: 700;
}
.storypage .week .wkday .watchmap:hover:not(:disabled) {
  background: var(--focus);
  color: var(--panel);
}
.storypage .week .wkday .watchmap:disabled {
  border-style: dashed;
  border-color: var(--ink-2);
  color: var(--ink-2);
}
/* Where the map cannot show the moment the button is hidden and words stand
   in its place: the shape above must not bring it back. */
.storypage .week .wkday .watchmap[hidden] {
  display: none;
}
.week .wktitle {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.week .wkdefs {
  position: absolute;
}
.week .wkcols {
  display: grid;
  grid-template-columns: repeat(7, minmax(48px, 1fr));
  align-items: start;
  margin: 8px -12px 0;
}
/* The days that rest on one forecast: a bracket over their columns with the
   words, in the row above the day names. A shape and words, not a colour.
   The words keep to one line, in the middle of their columns: the longest
   ("uma só previsão", 92 px) fits two columns of a 375 px screen (96 px), so
   the bracket is drawn 3 px in from the columns' edges and the words are not.
   Over one column alone nothing that wide fits, and there they wrap. */
.week .wkone {
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 3px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  color: var(--ink-2);
}
.week .wkone[data-cols='1'] {
  white-space: normal;
}
.week .wkone::after {
  content: '';
  align-self: stretch;
  height: 5px;
  margin: 3px 3px 0;
  border: 2px solid var(--ink-2);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.week .wkcol {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  min-height: var(--tap);
  padding: 6px 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.week .wkcol[aria-expanded='true'] {
  box-shadow: inset 0 0 0 2px var(--focus);
}
.week .wkname {
  font-size: 0.8125rem;
  font-weight: 700;
}
.week .wksky {
  display: block;
  height: 26px;
}
.week .wksky .pic {
  width: 26px;
  height: 26px;
}
.week .wkplot {
  display: block;
  width: 48px;
  height: 100px;
  overflow: visible;
}
.week .wkbase {
  stroke: var(--line);
  stroke-width: 1.5;
}
.week .wkbar {
  fill: var(--rain-2);
  stroke: var(--rain-2);
  stroke-width: 1.5;
}
.week .wkbar.one {
  fill: url(#wk-one);
}
.week .wkhatch {
  stroke-width: 2;
}
.week .wkhatch.one {
  stroke: var(--rain-2);
}
.week .wkhatch.unread {
  stroke: var(--ink-2);
}
.week .wkrange {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.week .wkring {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2;
}
.week .wkring.one {
  stroke-dasharray: 2.6 2.6;
}
.week .wkunread {
  fill: url(#wk-unread);
  stroke: var(--ink-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.week .wkfig,
.week .wkhi,
.week .wklo {
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
}
.week .wkhi {
  fill: var(--warm-ink);
}
.week .wklo {
  fill: var(--cold-ink);
}
.week .wktbar {
  fill: url(#wk-temp);
}
.week .wkwarm {
  stop-color: var(--warm);
}
.week .wkcold {
  stop-color: var(--cold);
}
.week .wkfrost {
  fill: none;
  stroke: var(--cold-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.week .wkhot {
  fill: none;
  stroke: var(--warm-ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.week .wkword {
  max-width: 48px;
  min-height: 2.3em;
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
  color: var(--ink-2);
}
.week[data-weekcard='weather'] .wkword:empty {
  display: none;
}
.week .wkchance,
.week .wkgust {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.week .wkgust {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.week .wkgust.strong {
  font-weight: 800;
  color: var(--ink);
}
.week .wkarrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.week .wkstrong {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.week .wkday {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.week .wkday h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
}
.week .wkday p {
  margin-top: 4px;
}
.week .wkday .watchmap {
  margin-top: 10px;
  min-height: var(--tap);
}
.week .wkgo .linkish {
  min-height: var(--tap);
  text-align: left;
}
/* A Rain chapter the week leads to: clear of the top bar, and its name takes
   the focus without a ring when it was a touch that sent it there. */
.story .chapter[id^='rday-'] {
  scroll-margin-top: calc(var(--topbar) + 12px);
}
.story .chapter[id^='rday-'] h3:focus:not(:focus-visible) {
  outline: none;
}
.week .wkwords {
  margin-top: 12px;
  font-size: 1rem;
}
.week .wkkey {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.week .wkkey p + p {
  margin-top: 3px;
}

/* Chapters inside a story: smaller than they were on their own page. */
.story .chapter {
  margin: 12px 0 0;
  padding: 12px 14px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.story .chapter.wet {
  background: var(--wash);
}
.story .chapter h3 {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.story .chapter .pic {
  width: 44px;
  height: 44px;
  grid-row: auto;
}
.story .chapter header {
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.story .chapter .range {
  font-size: 1.125rem;
}
.story .chapter p {
  margin-top: 6px;
  font-size: 1rem;
}
.story .chapter .rib {
  margin-top: 10px;
}
.story .chapter .ribbon {
  height: 36px;
}
.story .chapter .trib .plot {
  margin: 18px 0 18px;
}
.story .chapter .watchmap {
  margin-top: 10px;
  min-height: 40px;
}
.story .firech > h3 {
  font-size: 1.1875rem;
}
.story .warnings {
  margin-top: 12px;
}
.story .flash {
  margin-top: 8px;
  font-weight: 700;
}
.story h3 {
  font-size: 1rem;
  margin: 14px 0 6px;
}
.story .chapter h3,
.story .risk h3 {
  margin: 0;
}

/* The closed controls: what lies behind is said on the button. */
.story details {
  margin-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.story details details {
  margin-top: 6px;
}
.story summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.story summary::-webkit-details-marker {
  display: none;
}
.story summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.story details[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.story details.how summary {
  font-weight: 400;
  font-size: 0.875rem;
}
.story details > .inside {
  padding: 2px 0 10px;
}
.story details > .inside > p + p {
  margin-top: 8px;
}
.story .burnline details {
  border-top: 0;
  margin-top: 0;
}
.tablewrap {
  overflow-x: auto;
  max-width: 100%;
}
.story table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.story th,
.story td {
  text-align: left;
  vertical-align: top;
  padding: 5px 8px 5px 0;
  border-top: 1px solid var(--line-soft);
  font-weight: 400;
}
.story thead th,
.story table.sources th {
  font-weight: 700;
}
.story td.state {
  font-weight: 700;
  white-space: nowrap;
}
.story td.bad {
  color: var(--danger);
}
.story td .sky {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}
.story td .bar {
  display: inline-block;
  height: 8px;
  border-radius: 2px;
  background: var(--rain-2);
  vertical-align: 0;
}
.numbers .bar.c0,
.story td .bar.c0 {
  background: var(--rain-c0);
}
.numbers .bar.c1,
.story td .bar.c1 {
  background: var(--rain-c1);
}
.numbers .bar.c2,
.story td .bar.c2 {
  background: var(--rain-c2);
}
.numbers .bar.c3,
.story td .bar.c3 {
  background: var(--rain-c3);
}
.numbers .bar.c4,
.story td .bar.c4 {
  background: var(--rain-c4);
}
.numbers .bar.c5,
.story td .bar.c5 {
  background: var(--rain-c5);
}
.tosettings {
  padding: 18px 16px 28px;
  border-top: 8px solid var(--line-soft);
  font-size: 0.9375rem;
}

/* The one live map, small in the top story. Touching it opens the Map tab. */
.storymap {
  position: relative;
  margin-top: 12px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line-soft);
}
.storymap-host {
  position: absolute;
  inset: 0;
}
.storymap .map {
  height: 100%;
}
.storymap .storymap-open,
.story.card .storymap > .storymap-open {
  position: absolute;
  inset: 0 0 24px;
  z-index: 900;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.storymap-open:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -4px;
}
.map.compact .leaflet-control-zoom,
.map.compact .scrub {
  display: none;
}
/* The way home (map-home.js): a round button under the zoom buttons, 44 px
   to touch; on the place already, the mark's centre fills in (by shape, not
   colour alone). Not on a story's small map. */
.map.compact .homebar {
  display: none;
}
.homebar {
  clear: both;
}
.homebtn {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
  cursor: pointer;
}
.homebtn[hidden] {
  display: none;
}
.homebtn .dot {
  opacity: 0;
}
.homebtn.athome .dot {
  opacity: 1;
}
.homebtn.athome {
  color: var(--ink-2);
}
.homebtn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* The Map tab: the map fills what the bars leave. */
body[data-showing='map'] {
  overflow: hidden;
}
.maptab {
  display: flex;
  flex-direction: column;
  max-width: none;
  height: calc(100dvh - var(--topbar) - var(--tabs) - env(safe-area-inset-bottom));
}
.maptab[hidden] {
  display: none;
}
.maptop {
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--line-soft);
}
/* The switches wrap to a second row rather than hide one past the screen's
   edge: five on a phone (more are coming), and a switch out of sight is one
   the reader never finds. */
.layers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.layers button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  font-size: 0.875rem;
  font-weight: 700;
}
.layers button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}
.layers .ico {
  width: 16px;
  height: 16px;
}
/* A switch shows on or off by a tick as well as by colour: an empty ring
   when off, a filled ring with a tick when on. */
.layers .tick {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}
.layers button[aria-pressed='true'] .tick {
  opacity: 1;
  background: currentColor;
}
/* On a phone the switches are tick and word, without the weather icons. */
@media (max-width: 480px) {
  .layers {
    gap: 5px;
  }
  .layers button {
    gap: 5px;
    padding: 4px 9px;
    font-size: 0.8125rem;
  }
  .layers [data-overlay] .ico {
    display: none;
  }
}
.layers button[aria-pressed='true'] .tick::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 3px;
  height: 7px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mapsay {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.nearby-rain {
  margin: 6px 0;
  line-height: 1.35;
}
.nearby-connector {
  stroke: var(--ink);
  pointer-events: none;
}
.mapstage {
  position: relative;
  flex: 1;
  min-height: 200px;
}
/* Leaflet makes its box position: relative, so the map takes the stage's
   height rather than its insets. */
.mapstage .map {
  height: 100%;
}
/* The selected time and town readings are under the map. Acquisition and layer details remain in the information control. */
.map.world-base {
  background: var(--ground);
}
.worldtile {
  background-image: url('/blue-marble-2004.webp');
  background-repeat: no-repeat;
}
.map.world-base:not(.world-model) :is(.mapkey, .mapempty) {
  display: none;
}
.world-rain-note {
  background: var(--panel);
  color: var(--ink);
  max-width: min(20rem, 76vw);
  border-radius: .35rem;
  padding: .25rem .45rem;
  font: 600 .72rem/1.25 var(--sans, sans-serif);
}
.world-rain-note[hidden] { display: none; }

/* The map's key, in the bottom-left corner above the credits (maps.js,
   map-key.js): two short rows without a tap, the fuller key on a tap, a
   small Key button when folded away. */
.leaflet-bottom.leaflet-left .mapkey {
  margin: 0 0 6px 8px;
}
.mapkey {
  max-width: calc(100vw - 16px);
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--ink);
}
.mapkey[hidden],
.mapkey [hidden] {
  display: none !important;
}
.map.compact .mapkey {
  display: none;
}
.mapkey .kcard {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
}
.mapkey .kbody {
  display: block;
  padding: 5px 6px 5px 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mapkey .krows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mapkey .kblock {
  display: flex;
  gap: 8px;
}
.mapkey .kgrid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 8px;
}
.mapkey .kline {
  flex-wrap: wrap;
  gap: 4px 10px;
}
.mapkey .kc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.mapkey .kc > i {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}
/* The cloud chip: its colour by screen (--key-cloud). */
.mapkey .kc > i.kcloud {
  background: var(--key-cloud);
}
.mapkey .kc > i.edge {
  box-shadow: inset 0 0 0 1px var(--line);
}
.mapkey .kc > i.sw {
  width: 13px;
  height: 13px;
  display: grid;
}
.mapkey .sw.solid {
  background: var(--rain-2);
}
.mapkey .sw.wetdrops {
  background: color-mix(in srgb, var(--rain-2) 40%, transparent);
}
.mapkey .sw svg {
  width: 100%;
  height: 100%;
  fill: var(--rain-2);
}
@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme='dark'])) .mapkey .sw svg {
    fill: color-mix(in srgb, var(--rain-2) 74%, #000);
  }
}
/* The same when Light is chosen in Settings (theme-boot.js). */
:where(:root[data-theme='light']) .mapkey .sw svg {
  fill: color-mix(in srgb, var(--rain-2) 74%, #000);
}
.mapkey .arrow {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
}
.mapkey .arrow.gust {
  stroke: #e8590c;
  stroke-width: 2.6;
}
/* Wind's streaks in the key, longer and heavier from calm to gale, as on
   the map (weather-layers.js). */
.mapkey .kc > i.streak {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: none;
}
.mapkey .kc > i.streak.s0 {
  width: 5px;
  height: 1px;
  opacity: 0.7;
}
.mapkey .kc > i.streak.s1 {
  width: 9px;
  height: 1.5px;
}
.mapkey .kc > i.streak.s2 {
  width: 13px;
  height: 2px;
}
.mapkey .kc > i.streak.s3 {
  width: 17px;
  height: 3px;
}
/* The line across the middle of a map with nothing to show (maps.js). */
.mapempty {
  position: absolute;
  z-index: 650;
  left: 50%;
  /* Just under the middle, where the place's own marker is, so it stays seen. */
  top: calc(50% + 26px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(320px, calc(100% - 32px));
  padding: 6px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}
.mapempty[hidden],
.map.compact .mapempty:not(.example):not(.unavailable) {
  display: none;
}
.mapkey .kmore {
  flex: none;
  width: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: italic 800 1rem Georgia, serif;
  cursor: pointer;
}
.mapkey .kpill {
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
}
.mapkey .kfull {
  width: min(340px, calc(100vw - 16px));
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 0.8125rem;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
  cursor: pointer;
}
.mapkey .kfull:popover-open {
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 max(12px, env(safe-area-inset-bottom));
  margin: 0 auto;
  width: min(29rem, calc(100vw - 24px));
  max-height: min(68dvh, 34rem);
  padding: 1rem;
  color: var(--ink);
  font-size: 1rem;
  cursor: auto;
}
.mapkey .kfull:popover-open::backdrop {
  background: var(--backdrop);
}
.mapkey .kfull > * + * {
  margin-top: 6px;
}
.mapkey .khead {
  font-weight: 700;
}
.mapkey .kfull .kamounts {
  margin-top: 2px;
}
.mapkey .kamounts {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  gap: 2px 14px;
  padding: 0;
  list-style: none;
}
.mapkey .kamounts li {
  white-space: nowrap;
}
.mapkey .kamounts span {
  color: var(--ink-2);
}
.mapkey .kamounts i {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: -1px;
}
.mapkey .ksrc {
  color: var(--ink-2);
}
.mapkey .kfoot {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.mapkey .kfoot button {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.swatches {
  margin-top: 6px;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.swatches i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  vertical-align: -2px;
  margin-right: 4px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}
.mapfoot {
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  background: var(--ground);
}
.mapfoot:has(> .scrub[hidden]):has(> .firebar[hidden]):has(> .maperr[hidden]) {
  display: none;
}
.firebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.firebar .daypick {
  margin: 0;
}
.switch {
  min-height: 40px;
  padding: 4px 12px 4px 40px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  font-weight: 700;
  font-size: 0.875rem;
}
.switch::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 24px;
  height: 14px;
  margin-top: -7px;
  border-radius: 7px;
  background: var(--line);
}
.switch::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--panel);
}
.switch[aria-pressed='true']::before {
  background: var(--ink);
}
.switch[aria-pressed='true']::after {
  left: 20px;
}
.maperr {
  margin-top: 4px;
}

/* Settings. */
.settings {
  padding: 16px 16px 32px;
}
.settings h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.settings h2 {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin: 22px 0 8px;
}
.settings .hint {
  margin: -2px 0 10px;
}
.setlist li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px 6px 12px;
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.setlist .pick,
.setlist label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  font-weight: 700;
}
.setlist .pick {
  min-height: 44px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
}
.setlist small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.setlist li.current {
  border-color: var(--ink);
}
.setlist label {
  cursor: pointer;
  min-height: 44px;
}
.setlist input[type='checkbox'] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--focus);
}
.setlist .mv {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--panel);
}
.setlist .mv:disabled {
  opacity: 0.35;
  cursor: default;
}
.settings .add {
  width: 100%;
  min-height: 48px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: none;
  font-weight: 700;
  color: var(--focus);
}
.rows-links .row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.rows-links .row small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.rows-links .go {
  margin-left: auto;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .tabs {
    grid-template-columns: 1fr;
  }
  .maptab {
    height: calc(100dvh - var(--topbar));
  }
  .story {
    padding-left: 24px;
    padding-right: 24px;
  }
  .storymap {
    height: 320px;
  }
}
.minis b.w {
  font-size: 0.9375rem;
  line-height: 1.2;
  overflow-wrap: normal;
}
.story.quiet h2 {
  font-size: 1.5rem;
}
.story .t {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.story .burnline summary {
  min-height: 36px;
}
.story .spic {
  position: relative;
}
.daylab {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-2);
}
.story .spic .rib {
  padding-top: 18px;
}
details.burnline {
  border-top: 0;
}
.story details.burnline > summary {
  display: block;
  font-weight: 400;
  color: var(--ink);
  font-size: 1rem;
  min-height: 0;
  padding: 2px 0;
}
.story details.burnline > summary::after {
  display: inline-block;
  margin-left: 6px;
  vertical-align: 2px;
}
.burnline .rules {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.story .share {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--focus);
  font-weight: 700;
}
.story .todo ul {
  list-style: disc;
}
.story .todo details {
  margin-top: 8px;
}
.setlist li > span:not(.ico) {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}

/* ---------- Rain now, the days in Weather (2026-11-22) ----------
   docs/superpowers/specs/2026-11-22-rain-now-days-in-weather-design.md.
   The day's name in the Rain story's line opens that day in the Weather
   story; the chapter stops below the top bar and the jump buttons, as a
   story does. */
.story .lede .daylink {
  font-weight: 700;
  text-underline-offset: 2px;
}
.story .chapter[id^='wday-'] {
  scroll-margin-top: calc(var(--topbar) + 53px);
}
.story .chapter[id^='wday-'] h3:focus:not(:focus-visible) {
  outline: none;
}
.minis .nobr {
  white-space: nowrap;
}

/* ---------- Fire screens: the national line, "Fires in Portugal" and a fire's
   page (2026-11-22, docs/superpowers/specs/2026-11-22-fire-screens-design.md).
   Every rule for these screens is in this block. ---------- */

.firesline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 7px 10px 7px 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  font: inherit;
}
.firesline .s {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.firesline .go,
.firerow .go {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.firesline.unread {
  border-left: 3px solid var(--watch-line);
  background: var(--watch-bg);
}
.firesline.unread .s {
  color: var(--watch);
}
.firesline[aria-busy='true'] .s {
  color: var(--ink-2);
}
.lede-moved {
  margin-bottom: 8px;
}
.story .chapter h3 .tofire {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -4px 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tofire svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The sheet: full height over the tabs on a phone, a column at the right on
   a wide screen. */
dialog.sheet {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--ground);
  color: var(--ink);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
@media (min-width: 900px) {
  dialog.sheet {
    width: 560px;
    margin-left: auto;
    border-left: 1px solid var(--line);
  }
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  padding-top: calc(6px + env(safe-area-inset-top));
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.sheet-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px 12px 4px 4px;
  border: 0;
  border-radius: 22px;
  background: none;
  color: var(--focus);
  font: inherit;
  font-weight: 700;
}
.sheet-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sheet-body {
  padding: 14px 16px calc(28px + env(safe-area-inset-bottom));
  max-width: 40rem;
  overflow-wrap: anywhere; /* a long unbroken name never pushes the sheet sideways */
}
.sheet-body h2 {
  font-size: 1.625rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  outline: none;
}
.sheet-body h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}
.sheet-lede {
  margin-top: 6px;
  font-size: 1.0625rem;
}
.sheet-lede.unread {
  padding: 6px 10px;
  border-left: 3px solid var(--watch-line);
  background: var(--watch-bg);
  color: var(--watch);
}
.sheet-body .src {
  margin-top: 6px;
}
.sheet-body .call {
  margin-top: 18px;
  font-weight: 700;
}
.sheet-status:empty {
  display: none;
}
.sheet-status {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--panel);
  font-weight: 700;
}
.sheet-body .pill {
  min-height: 44px;
  margin-top: 12px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--focus);
  font: inherit;
  font-weight: 700;
}
.sheet-body .box {
  margin-top: 12px;
  padding: 8px 12px;
  border-left: 3px solid var(--watch-line);
  background: var(--watch-bg);
  color: var(--watch);
}

/* The list of every fire. */
.firelist {
  list-style: none;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.firerow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  font: inherit;
}
.firerow > span {
  grid-column: 1;
  min-width: 0;
}
.firerow .go {
  grid-column: 2;
  grid-row: 1 / span 4;
}
.firerow .where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 1.0625rem;
}
.firerow .local,
.firerow .far {
  font-size: 0.875rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.firerow .far {
  color: var(--ink);
  font-weight: 700;
}
.firerow .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 0.9375rem;
  margin: 2px 0;
}
.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.tmark {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* A fire's page. */
.fsec {
  margin-top: 14px;
  padding: 12px 14px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.fsec .big {
  font-size: 1.125rem;
  font-weight: 700;
}
.fsec .note {
  margin-top: 6px;
}
.fsec .windsteps {
  margin-top: 4px;
}
.plain {
  list-style: none;
  margin: 6px 0 0;
}
.plain li + li {
  margin-top: 4px;
}
.times .at {
  display: inline-block;
  min-width: 5.5em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.crewchart {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 4px 0 6px;
  overflow: visible;
}
.crewchart .axis {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
.crewchart .line {
  stroke: var(--ink);
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
}
.crewchart circle {
  fill: var(--panel);
  stroke: var(--ink);
  stroke-width: 2;
}
.crewchart text {
  font-size: 11px;
  fill: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.sheet-foot {
  margin-top: 8px;
}

/* ---------- The Fire tab, step 1 (2026-11-23,
   docs/superpowers/specs/2026-11-22-fire-home-design.md): the sentence, the
   two large buttons, the fire map, every fire in Portugal and "If a fire
   comes". Every rule for the tab is in this block. ---------- */

/* Each destination has its own touch target on the phone’s bottom bar. */
@media (max-width: 899.98px) {
  .tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.firetab {
  padding: 14px 16px 28px;
}
.firesay {
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.firesay:focus:not(:focus-visible) {
  outline: none;
}
/* The call (docs/superpowers/specs/2026-11-23-fire-tab-layout-design.md, 1.2):
   Report a fire and, fastened under it, what to read out to the operator:
   one unit, always the second thing on the tab. The read-out is a fold of the
   tab's one sign (the block "The Fire tab's folds"). */
.firecall {
  margin-top: 12px;
}
.firecall .bigact.report:not(:last-child) {
  border-radius: var(--radius-btn) var(--radius-btn) 0 0;
}
.firecall .readoutfold {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  background: var(--panel);
}
.firecall .readoutfold > summary {
  font-weight: 700;
}
.firecall .readout {
  margin: 0;
  padding: 8px 16px 12px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  background: none;
}
/* The two answers, May I burn today and May I use machines today: one under
   the other on a phone, side by side where there is room. No cell is named
   for either, so the browser sets each in its own: one card alone (abroad,
   where there is no machines answer) takes the whole width. */
.fireanswers {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.fireanswers > .bigact {
  margin-top: 0;
}
.bigact {
  display: block;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.bigact.report {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 10px 16px;
  /* The same deep red with white words in light and dark (7.5:1): the dark
     theme's --danger is a light red made for words, not for a button. */
  background: #a3211a;
  color: #fff;
  text-decoration: none;
}
.bigact.report b {
  font-size: 1.375rem;
  line-height: 1.15;
}
.bigact.report span {
  font-size: 1rem;
  font-weight: 700;
}
.bigact.report:focus-visible {
  outline-offset: 3px;
}
.readout {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.readout dl > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 8px;
  padding: 2px 0;
}
.readout dt {
  color: var(--ink-2);
}
.readout dd {
  margin: 0;
  font-weight: 700;
}
.bigact.machines .fold > summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  cursor: pointer;
}
.bigact.machines .fold > summary h3 {
  margin: 0;
  font-size: 1rem;
}
.bigact.burn {
  border: 1px solid var(--line);
  background: var(--panel);
}
.bigact.burn > summary {
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 10px 16px;
  cursor: pointer;
}
.bigact.burn > summary b {
  font-size: 1.25rem;
}
/* The answer alone, with nothing behind it (a place abroad with no rule read): the summary's look, no fold. */
.bigact.burn > .said {
  display: grid;
  gap: 2px;
  min-height: 56px;
  margin: 0;
  padding: 10px 16px;
}
.bigact.burn > .said b {
  font-size: 1.25rem;
}
.bigact.burn > summary::-webkit-details-marker {
  display: none;
}
.bigact.burn > summary .rules {
  margin-top: 2px;
  color: var(--focus);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
}
.bigact.burn[open] > summary .rules {
  text-decoration: none;
}
.bigact.burn .inside {
  padding: 0 16px 14px;
}
.bigact.burn .inside > * + * {
  margin-top: 8px;
}
.bigact.burn .icnf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.bigact.burn .icnf .pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 22px;
  background: var(--focus);
  color: var(--panel);
  font-weight: 700;
  text-decoration: none;
}
.bigact.burn .icnf .tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--focus);
  font-weight: 700;
}
.firesec {
  margin-top: 22px;
}
.firesec .from {
  color: var(--ink-2);
  white-space: nowrap;
}
.firesec h2 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  outline: none;
}
.firetab .firestage {
  flex: none;
  height: 340px;
  margin-top: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.firetab .firebar {
  margin-top: 8px;
}
.firenational .sheet-lede {
  margin-top: 6px;
}
.firenational .src {
  margin-top: 6px;
}
.firenational .pill, .fqsheet .pill {
  min-height: 44px;
  margin-top: 10px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--focus);
  font: inherit;
  font-weight: 700;
}
.firetab .clearing details.fold {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
/* The clearing card's folds and the machines exceptions wear the Fire tab's
   one sign for a fold (the last block of this sheet). */
/* Each fold's summary is a whole tap target: 48 px at the least. */
.firetab .clearing details.fold > summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  cursor: pointer;
}
.firetab .clearing details.fold > summary h3 {
  margin: 0;
  font-size: 1rem;
}
.firetab .clearing .law .lawitem {
  margin: 8px 0;
}
.firetab .clearing .clearing-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.firetab details.firesec > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.firetab details.firesec > summary h2 {
  display: inline;
}
.comes .yours {
  margin: 4px 0 8px;
  padding: 6px 10px;
  border-left: 3px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 700;
}
.comes ul {
  padding-left: 1.2em;
  list-style: disc;
}
.comes li + li {
  margin-top: 6px;
}
.comes details {
  margin-top: 6px;
}
/* If a fire comes, with a fire near: the card takes the danger surface and its
   line, and the sentence on the fire leads it in the danger ink, with no box
   of its own inside a card that already is one. */
.firetab details.firesec.comes.now {
  border-color: var(--danger-line);
  border-left-width: 4px;
  background: var(--danger-bg);
}
.comes.now .yours {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
}
/* Under the call, not a section apart: the call's own distance. */
#fire-comes > .firesec {
  margin-top: 12px;
}
.comes .unread {
  padding: 6px 10px;
  border-left: 3px solid var(--watch-line);
  background: var(--watch-bg);
  color: var(--watch);
}
.firetab .how .inside {
  margin-top: 6px;
}
/* ANEPC's warnings to the population on the Fire tab: one place, under the
   call. The current ones on the danger surface; the line that none is, plain;
   the line that they could not be read, on the watch surface. Empty away from
   Portugal, and then it takes no room. One line in the Fire story. */
.fireavisos:not(:empty) {
  margin-top: 12px;
}
.avisos {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aviso,
.avisostory {
  padding: 10px 14px;
  border-left: 4px solid var(--danger-line);
  border-radius: var(--radius);
  background: var(--danger-bg);
  overflow-wrap: anywhere;
}
.aviso p {
  margin: 0;
}
.aviso .lab span {
  margin-left: 4px;
  color: var(--ink-2);
}
.aviso .ttl {
  margin-top: 2px;
  font-size: 1.0625rem;
  font-weight: 700;
}
.aviso .ttl a,
.avisostory a {
  color: inherit;
}
.fireavisos > .note {
  margin: 6px 0 0;
}
.avisoline.unread {
  padding: 8px 12px;
  border-left: 4px solid var(--watch-line);
  border-radius: var(--radius);
  background: var(--watch-bg);
}
.avisoline p {
  margin: 0;
  overflow-wrap: anywhere;
}
.avisoline .note {
  margin-top: 2px;
}
.avisostory {
  margin: 8px 0;
}
.avisostory b {
  display: block;
}
.burnline .decl,
.bigact.burn .decl {
  font-weight: 700;
}
.burnline .decl span,
.bigact.burn .decl span {
  margin-left: 4px;
  font-weight: 400;
  color: var(--ink-2);
}
/* Other emergency numbers: one closed control under Report a fire, and the
   same list, open, in Settings under Your places. */
.emnumbers {
  margin-top: -4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.emnumbers > summary {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 10px 16px;
  cursor: pointer;
}
.emnumbers > summary span {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.emnumbers .inside {
  padding: 0 16px 12px;
}
.emnumbers .pick {
  margin: 0;
}
.emnumbers .pick select {
  min-height: 44px;
  max-width: 100%;
  margin-left: 6px;
  font: inherit;
}
.setnumbers .emnumbers {
  margin-top: 20px;
}
.numrows {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
/* Near a border: the other country's name over its emergency numbers. */
.numborder {
  margin-top: 12px;
  font-weight: 700;
}
.numrows p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.numrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  text-decoration: none;
}
.numrow b {
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
}
.numrow.urgent {
  border-color: var(--danger-line);
}
@media (min-width: 600px) {
  .fireanswers {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
  }
}
@media (min-width: 900px) {
  .firetab {
    padding-top: 20px;
  }
  .firetab .firestage {
    height: 420px;
  }
}

/* ---------- The look: watch and danger told apart without colour, and taps
   of 48 px (2026-11-23) ----------
   docs/superpowers/specs/2026-11-23-look-design.md; test/look.test.mjs.
   Below this block: the saved examples', the fire map's three questions',
   the photo base map's and the whose-place blocks. Where one of them draws a
   control under 48 px, the selector here is one class more specific, so it
   wins without touching that block. */

/* A watch tag and a danger tag can carry the same words ("wind toward you" at
   31 to 60 km, and within 30 km), so each has its own symbol as well as its
   colour: watch an open triangle with "!", danger a filled disc with "!". */
.tag.watch::before,
.tag.danger::before {
  content: '';
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 4px;
  vertical-align: -0.14em;
  background: currentColor;
  -webkit-mask: var(--sym) center / contain no-repeat;
  mask: var(--sym) center / contain no-repeat;
}
.tag.watch {
  --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.9 14.9 14H1.1z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M7.15 5.6h1.7v4.2h-1.7zM8 10.7a1 1 0 1 0 0 2a1 1 0 1 0 0-2z'/%3E%3C/svg%3E");
}
.tag.danger {
  --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 .8a7.2 7.2 0 1 0 0 14.4A7.2 7.2 0 1 0 8 .8zM7.1 3.6h1.8v5.6H7.1zM8 10.4a1.15 1.15 0 1 0 0 2.3a1.15 1.15 0 1 0 0-2.3z'/%3E%3C/svg%3E");
}

/* 48 px for anything tapped (measured at 375 px: these were 22 to 47 px). The
   top bar and the jump row keep their height by giving up padding, so the
   offsets that hang off them still hold: 6 + 48 + 6 + 1 = 61 = --topbar. */
.top {
  padding-top: calc(6px + env(safe-area-inset-top));
  padding-bottom: 6px;
}
.jumps {
  padding-top: 6px;
  padding-bottom: 6px;
}
.story,
.story .chapter[id^='wday-'] {
  scroll-margin-top: calc(var(--topbar) + 61px);
}
.skip,
.top button,
.top .account,
.jumps button,
.story .tomap,
.story .share,
.story summary,
.numbers summary,
.story .chapter .watchmap,
.tofire,
.tosettings .linkish,
#order-line .linkish,
.layers button,
.switch,
.mapkey .kbody,
.scrub .speed,
.daypick button,
.setlist label,
.firesline,
.bigact.burn .icnf .tel,
.bigact.burn .icnf .pill,
.firetab details.firesec > summary,
.emnumbers .pick select,
.close,
.sheet-back,
.sheet-body .pill,
.firenational .pill,
.decl > a,
.firebar .fqask button,
#fire-marks .fqmarks > summary,
.firemap .fqmarks button,
.firesec .fqcheck label,
.numrows .note > a,
.photobase .pbtns button,
.fortesting .langs .choice {
  min-height: var(--tap);
}
/* The source line under an emergency number is a link alone on its line. */
.numrows .note > a {
  display: inline-flex;
  align-items: center;
}
/* "From:" and the advice's source, a link that runs over two lines: its
   target grows by padding, which moves no text. */
.firesec.ready .inside > .note > a,
.firesec.after .inside > .note > a {
  padding-block: 5px;
}
/* Leaflet's zoom buttons on a full map (a story's small map has none). */
.leaflet-touch .leaflet-control-zoom a {
  width: var(--tap);
  height: var(--tap);
  line-height: var(--tap);
}
/* The time line's slider: 48 px to touch, the track where it was (the
   margins give back what the height adds; the hour marks under it let
   touches through). */
.scrub .rail input {
  height: var(--tap);
  margin: -12px 0;
}
.scrub .marks {
  pointer-events: none;
}
/* "Back to live" in the 40 px saved-example bar: the bar keeps its height,
   the link's target runs from the screen's top edge down 48 px, to where the
   top bar's place button starts. */
.examplebar a {
  position: relative;
}
.examplebar a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  bottom: -9px;
}
.close {
  min-width: var(--tap);
}
/* A declaration's title is a link the width of its line. */
.decl > a {
  display: inline-flex;
  align-items: center;
}
/* "2 more" keeps its disclosure triangle (a list item), so padding, not flex. */
.comes details > summary {
  box-sizing: border-box;
  min-height: var(--tap);
  padding: 12px 0;
}
.skip {
  display: inline-flex;
  align-items: center;
}
.scrub .play,
.setlist .mv {
  width: var(--tap);
  height: var(--tap);
}
.scrub .speed {
  height: var(--tap);
}
.mapkey .kmore {
  min-width: var(--tap);
  min-height: var(--tap);
}

/* Controls the browser or Leaflet drew in their own colours (white, black,
   link blue) take the look's: found by the review measuring the built page. */
:where(a:link, a:visited) {
  color: var(--focus);
}
::placeholder {
  color: var(--ink-2);
  opacity: 1;
}
.emnumbers .pick select {
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-s);
  background: var(--panel);
  color: var(--ink);
}
.leaflet-container .leaflet-control-attribution,
.leaflet-bar a {
  background: var(--panel);
  color: var(--ink-2);
}
.leaflet-container .leaflet-control-attribution a {
  color: var(--ink);
}

/* ---------- Saved examples (public/examples.js), 2026-11-23 ----------
   One bar over every tab while a saved example is shown, not dismissible,
   and the closed "For testing" section in Settings (admins only). The bar
   pushes the top bar down: --topbar grows by its height, so the sticky
   jumps and the Map tab's height follow. */
body.example {
  --example-h: calc(40px + env(safe-area-inset-top));
  --topbar: calc(61px + var(--example-h));
  padding-top: var(--example-h);
}
.examplebar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1300;
  box-sizing: border-box;
  height: var(--example-h, 40px);
  padding: env(safe-area-inset-top) 12px 0;
  display: flex;
  align-items: center;
  background: repeating-linear-gradient(-45deg, var(--warn) 0 14px, #f7d667 14px 28px);
  color: var(--warn-ink);
  border-bottom: 2px solid var(--warn-ink);
}
.examplebar[hidden] {
  display: none;
}
.examplebar p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.9375rem;
}
.examplebar a {
  color: var(--warn-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 8px 0;
}
.examplebar a:focus-visible {
  outline: 3px solid var(--warn-ink);
  outline-offset: 2px;
}
body.example .top {
  top: var(--example-h);
  padding-top: 8px;
}
@media (min-width: 900px) {
  body.example .tabs {
    top: var(--example-h);
  }
}
.fortesting {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.fortesting > summary {
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}
.fortesting .inside {
  padding: 0 16px 14px;
}
.fortesting h3 {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin: 12px 0 8px;
}
.fortesting .examples {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fortesting .row {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.fortesting .row[aria-current='page'] {
  border-color: var(--focus);
}
.fortesting .row small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.fortesting .langs {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.fortesting .langs legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-2);
}
.fortesting .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.fortesting .choice input {
  width: 20px;
  height: 20px;
  margin: 0;
}
/* ---------- end of saved examples ---------- */

/* ---------- the fire map's three questions (fire-tab step 2) ----------
   Now / Danger / Burnt under the Fire tab's map (public/fire-tab.js,
   public/fire-layers.js): the row, the sentence on top, the danger strip,
   the shapes, the touch sheet and the keyboard's list of marks.
   docs/superpowers/specs/2026-11-22-fire-map-design.md */
.fqask {
  display: flex;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.fqask button {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.fqask button + button {
  border-left: 1px solid var(--line);
}
.fqask button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--panel);
}
/* The pressed choice is marked by more than its colour: its word is
   underlined, on the three choices and on the day and year rows. */
.fqask button[aria-pressed='true'] span,
.firebar .daypick button[aria-pressed='true'] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.fqask button:focus-visible {
  position: relative;
  z-index: 1;
}
.fqask svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
#fire-say p {
  margin: 6px 0;
  font-weight: 700;
  line-height: 1.35;
}
#fire-say p.unread {
  color: var(--watch);
}
/* IPMA's five classes; the two lowest almost clear, so a quiet day leaves
   the map readable. The same classes paint the strip's swatches. */
.fqd {
  --fq: #7a8794;
  stroke: var(--fq);
  fill: var(--fq);
  fill-opacity: 0.06;
  stroke-opacity: 0.45;
}
.fqd-1 {
  --fq: #3e9b4f;
}
.fqd-2 {
  --fq: #b9a400;
}
.fqd-3 {
  --fq: #e07b00;
  fill-opacity: 0.32;
  stroke-opacity: 0.8;
}
.fqd-4 {
  --fq: #d12b1f;
  fill-opacity: 0.4;
  stroke-opacity: 0.9;
}
.fqd-5 {
  --fq: #7a0a2a;
  fill-opacity: 0.5;
  stroke-opacity: 1;
}
.fqd-none {
  fill-opacity: 0;
  stroke-dasharray: 3 4;
}
.fqb {
  stroke: #6b2a10;
  fill: #8c3a17;
  fill-opacity: 0.55;
}
.fqb-last {
  stroke-dasharray: 5 4;
  fill-opacity: 0.25;
}
.fqsel {
  stroke: var(--ink);
  stroke-width: 4px;
  stroke-opacity: 1;
}
/* On a photo the concelhos keep their strength: their class is the point of
   the choice (the photo block dims EFFIS's old wash, not these). */
.photo-on .leaflet-pane.leaflet-danger-pane:has(.fqd) {
  opacity: 1;
}
.photo-on .fqd,
.photo-on .fqb {
  stroke-width: 2px;
  stroke-opacity: 1;
}
.photo-on .fqd-1,
.photo-on .fqd-2 {
  fill-opacity: 0.12;
}
.fqstrip {
  width: 100%;
}
.fqstrip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 700;
}
.fqstrip li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fqstrip i {
  display: inline-block;
  width: 16px;
  height: 12px;
  border: 1px solid var(--fq);
  border-radius: 2px;
  background: color-mix(in srgb, var(--fq) 70%, transparent);
}
.fqstrip i.fqd-1,
.fqstrip i.fqd-2 {
  background: color-mix(in srgb, var(--fq) 22%, transparent);
}
.fqstrip i.fqd-none {
  background: transparent;
  border-style: dashed;
}
.fqstrip .note {
  margin: 4px 0 0;
}
/* The one sheet for whatever was touched, at the foot of the map. */
.fqsheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1100;
  max-height: 60%;
  overflow: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
}
.fqsheet-in {
  position: relative;
  padding: 10px 52px 10px 12px;
  outline: none;
}
.fqsheet-in:focus-visible {
  box-shadow: inset 0 0 0 3px var(--focus);
  border-radius: 10px;
}
.fqsheet h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.3;
}
.fqsheet p {
  margin: 4px 0;
}
.fqclose {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.fqclose svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.fqmarks {
  margin-top: 8px;
}
.fqmarks summary {
  padding: 11px 0;
  font-weight: 700;
  cursor: pointer;
}
.fqmarks ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fqmarks button {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  margin: 2px 0;
  text-align: left;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
/* Get ready and After a fire (step 3): the checklist and the list. */
.fqcheck {
  margin: 4px 0;
  padding: 0;
  list-style: none;
}
.fqcheck label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.fqcheck input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
}
.ready .lead {
  margin: 10px 0 0;
  font-weight: 700;
}
.after ul {
  padding-left: 1.2em;
  list-style: disc;
}
.after li + li {
  margin-top: 6px;
}
.ready .note a,
.after .note a {
  color: inherit;
  overflow-wrap: anywhere;
}
/* ---------- end of the fire map's three questions block ---------- */

/* ---------- the photo base map (public/photo-base.js) ----------
   The "Map / Photo" switch in the Fire map's top-right corner, its note, and
   the photo's own pane. docs/superpowers/specs/2026-11-23-photo-base-map-design.md */
/* The note sits left of the switch, on its row, so it never reaches down to
   the wind box under the zoom buttons on a phone. */
.photobase {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 6px;
}
.photobase .pbtns {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.photobase button {
  min-height: 44px;
  min-width: 64px;
  padding: 0 14px;
  border: 0;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.photobase button:first-child {
  border-radius: 9px 0 0 9px;
}
.photobase button:last-child {
  border-radius: 0 9px 9px 0;
  border-left: 1px solid var(--line);
}
.photobase button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--panel);
}
.photobase button:focus-visible {
  position: relative;
  z-index: 1;
}
/* Its left edge stays clear of the zoom buttons at every phone width: the
   switch is right-aligned, so 100vw less a constant keeps that edge in one
   place. At 232 px it started at x 66, over the buttons that end at x 79
   (measured at 320, 360 and 375 px, 2026-11-24); 253 starts it at x 87. */
.photobase .pnote {
  margin: 0;
  max-width: min(220px, calc(100vw - 253px));
  padding: 4px 8px;
  line-height: 1.25;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
}
/* A phone under 360 px: the column left of the switch would be about 67 px
   wide, 8 lines and 160 px tall, nearly down to the wind chip (the review of
   d5dec40, P3-7). There the note goes under the switch, as wide as it. */
@media (max-width: 359px) {
  .photobase {
    flex-direction: column;
    align-items: flex-end;
  }
  .photobase .pnote {
    max-width: 150px;
  }
}
/* No overlap between photo tiles: Leaflet 1.9 draws tiles with
   mix-blend-mode plus-lighter, which already closes the seams; an overlap
   adds the two tiles together and draws a light line (seen 2026-11-23). */
/* The rings are dark dashes in light: on a photo they get a white edge. */
@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme='dark'])) .photo-on .leaflet-overlay-pane svg {
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
  }
}
/* The same when Light is chosen in Settings (theme-boot.js). */
:where(:root[data-theme='light']) .photo-on .leaflet-overlay-pane svg {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
/* At night the photo, a summer day, is dimmed to sit with the dark page. */
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme='light'])) .leaflet-photo-pane {
    filter: saturate(0.55) brightness(0.62);
  }
}
/* The same when Dark is chosen in Settings (theme-boot.js). */
:where(:root[data-theme='dark']) .leaflet-photo-pane {
  filter: saturate(0.55) brightness(0.62);
}
/* The danger shading is a wash at 0.45; over a photo it hid the ground
   (seen in the review, 2026-11-23). While a photo shows from zoom 12
   (photo-base.js PHOTO.dimFrom) it steps back to a tint: the class is still
   said in words on the tab. At 9 to 11, the regional view, it keeps its
   strength, as before the photo came to 9. */
.photo-on.photo-near .leaflet-danger-pane {
  opacity: 0.35;
}
/* Once a DGT tile reports loaded, its opaque interior covers the earth
   underneath. Match that credit transition on Leaflet's very first frame. */
.leaflet-photo-pane .phototiles .leaflet-tile-loaded {
  opacity: 1 !important;
}
/* ---------- end of photo base map block ---------- */
/* ---------- whose place the fire is measured from (public/phone-place.js) ---------- */
.fromline {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.fromacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.fromacts .linkish {
  min-height: 44px;
  padding: 10px 0;
}
.fromacts .linkish[aria-disabled="true"] {
  color: var(--ink-2);
  text-decoration: none;
  cursor: default;
}
/* ---------- end of whose-place block ---------- */
/* ---------- Fire tab at phone width, seen in the browser 2026-11-23 ---------- */
/* The fire map's key: the button stood unstyled under the map, outside the
   stage's 340 px, so it and the key it opens were cut off. It is a round
   button in the map's free corner; the key opens over the map above it. */
.firestage .mapinfo {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 1.125rem;
}
.firestage .mapinfo[aria-expanded='true'] {
  background: var(--ink);
  color: var(--panel);
}
.firestage .legend {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 64px;
  z-index: 1001;
  max-height: calc(100% - 80px);
  overflow: auto;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 0.875rem;
}
.firestage .legend[hidden] {
  display: none;
}
.firestage .legend p + p {
  margin-top: 4px;
}
/* Around you: the fire's chapters are cards as they are in the Fire story,
   whose rules were written for .story only. */
.firehere > .chapter {
  margin: 12px 0 0;
  padding: 12px 14px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.firehere > .chapter h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.firehere > .chapter p {
  margin-top: 6px;
  font-size: 1rem;
}
.firehere > .chapter h3 .tofire {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin: -8px 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* What is near, under the call: the same cards, with no heading of their own.
   Where the wind takes it stands inside the card of the fire it is about, a
   part of that card under a line. */
.firehere > .chapter .windin {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.firehere > .chapter h4 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
}
/* The tab's groups (docs/superpowers/specs/2026-11-23-fire-tab-layout-design.md,
   "The order"): Now is headed by the tab's sentence; each other group by a
   plain heading, the only thing on the tab set at 20 px and weight 800. A
   block inside a group is a card or a row and is headed at 17 to 19 px. */
.firegroup > h2 {
  margin-top: 26px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
/* Before and after a fire, and Numbers and sources: each block a card or a
   row, 10 px apart under the group's heading. */
#fire-before > div > *,
#fire-foot > div > * {
  margin-top: 10px;
}
/* Clearing the land: a card, in view; its law's texts folded inside it. */
.firetab section.clearing {
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}
.firetab section.clearing > h3 {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.firetab section.clearing > h3 + p {
  margin-top: 6px;
}
/* Two columns from 960 px (the layout's "Wide screens"). The reading order is
   the page's own and does not change: Now and Today in the left column,
   Around you in the right, so the fire and the map stand side by side; the
   last two groups run under both, two blocks to a row. Only the five groups
   and the clearing card are given a place, each by its own id, and no two
   share one; every block inside a group is placed by the browser. */
@media (min-width: 960px) {
  .firetab {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* Around you spans the first two rows. When it is the taller side (a quiet
       day) the second row alone takes the rest, so Today stays right under
       Now: with two even rows they shared it and a hole opened between them. */
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    align-items: start;
  }
  #fire-now {
    grid-area: 1 / 1;
  }
  #fire-today {
    grid-area: 2 / 1;
  }
  #fire-around {
    grid-area: 1 / 2 / span 2;
  }
  /* Beside the sentence, the right column's heading starts where the left column does. */
  #fire-around > h2 {
    margin-top: 0;
  }
  #fire-before,
  #fire-foot {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* The heading, then Get ready beside the clearing card; the third row takes what the card needs more. */
    grid-template-rows: auto auto 1fr;
    column-gap: 28px;
    align-items: start;
  }
  #fire-before > h2,
  #fire-foot > h2 {
    grid-column: 1 / -1;
  }
  /* The clearing card is tall: it takes the left column, and Get ready and
     After a fire stand one under the other beside it. Where there is no
     card its place takes no cell, and the two rows stand side by side. */
  #fire-clearing {
    grid-area: 2 / 1 / span 2;
  }
  #fire-clearing:empty {
    display: none;
  }
}
.firenational > h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  outline: none;
}
/* A block of Around you with no class or no reading to show keeps its place
   and its heading; when a source was not read it takes the watch surface. */
.firehere > .chapter.unread {
  border-color: var(--watch-line);
  border-left-width: 4px;
  background: var(--watch-bg);
}
.firehere > .chapter .rows {
  margin-top: 8px;
}
.firehere > .chapter .risk,
.firehere > .chapter .facts {
  margin-top: 10px;
}
#fire-nolist > .note,
.firehere > .note {
  margin-top: 12px;
}
/* Four facts stand two by two on a phone, not three and one. */
.firehere .facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 560px) {
  .firehere .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* A passed step's tick stands over its word, so "Arriving" is not broken
   in the middle of the word at 375 px. */
.phases li.done::before {
  content: '\2713';
  display: block;
}
/* ---------- end of Fire tab at phone width ---------- */

/* ---------- The weather map's key at phone width, 2026-11-23 ---------- */
/* On a map narrower than 480 px (maps.js KEY_PHONE_PX) the key's card is a
   round 48 px "i" in the corner, as the Fire map's key button is; the fuller
   key opens above it. Open, the button turns dark and shows a cross: said by
   more than colour. Folding away means nothing here, so its button goes. */
.mapkey.kphone {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
}
.mapkey.kphone .kcard {
  box-sizing: content-box;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  overflow: hidden;
}
.mapkey.kphone .kbody {
  display: none;
}
.mapkey.kphone .kmore {
  width: 100%;
  height: 100%;
  border-left: 0;
  font-size: 1.25rem;
}
.mapkey.kphone.kopen .kcard {
  background: var(--ink);
}
.mapkey.kphone.kopen .kmore {
  color: var(--panel);
  font: 800 1.5rem system-ui, sans-serif;
}
.mapkey.kphone .kfold {
  display: none;
}
.mapkey.kphone .kfoot button {
  min-height: var(--tap);
  padding: 4px 16px;
}
/* ---------- end of the weather map's key at phone width ---------- */

/* ---------- The map's credits at phone width, 2026-11-23 ---------- */
/* On a map narrower than 480 px (maps.js creditBox) the credits fold behind
   one round 48 px button in the bottom-right corner; open, the full credit
   text shows above it and the button turns dark with a cross. Folded, the
   text is clipped, not hidden, so a screen reader still reads it, and it
   shows while a link in it has the keyboard's focus. */
.creditbox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.creditbox .cmore {
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font: 700 1.25rem system-ui, sans-serif;
  cursor: pointer;
}
.creditbox .road-credit {
  align-self: end;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
  background: var(--panel);
  color: var(--ink);
}
.creditbox.copen .road-credit,
.road-base-hidden .creditbox .road-credit {
  display: none;
}
.creditbox.copen .cmore {
  background: var(--ink);
  color: var(--panel);
  font-size: 1.5rem;
}
.creditbox .leaflet-control-attribution {
  max-width: min(320px, calc(100vw - 32px));
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: right;
}
.creditbox .leaflet-control-attribution.cfold:not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* ---------- end of the map's credits at phone width ---------- */

/* The map following the view (maps.js, wide-view.js): the part of a wide
   frame outside Europe, where the route's cells are empty, hatched so it
   never reads as clear sky. */
.wideout {
  background: repeating-linear-gradient(135deg, var(--cloud-edge) 0 2px, transparent 2px 9px);
  opacity: 0.55;
}

/* ---------- Settings as a whole page ----------
   docs/superpowers/specs/2026-11-23-settings-design.md: one card per
   subject with a plain heading, in a fixed order, Sign out last and alone.
   The card's shape is the look's (the next block); this block is what is
   inside. */
.setcard {
  margin: 12px 0 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.settings .setcard > h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
}
.setcard h3 {
  margin: 16px 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-2);
}
.setcard .setlist li:last-child,
.setcard .rows-links .row:last-child {
  margin-bottom: 0;
}
.setcard .hint:last-child {
  margin-bottom: 0;
}
/* A choice of one: Language, Appearance. Each row is its own 48 px tap. */
.setcard .choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.setcard .choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.setcard .choice:has(input:checked) {
  border-color: var(--focus);
}
.setcard .choice input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--focus);
}
/* Beside Português: how much of Tempo it covers, in the page's English. */
.setcard .langnote {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.setcard .choices + .hint {
  margin: 10px 0 0;
}
.setvalue {
  font-weight: 700;
}
/* Emergency numbers: 112 in view, the rest in one fold, a tile in the card. */
.setcard .numrows.always {
  margin: 0 0 12px;
}
.setcard .setfold {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.setcard .setfold > summary {
  min-height: var(--tap);
}
.setout {
  margin: 24px 0 0;
}
/* ---------- end of Settings as a whole page ---------- */

/* ---------- Get ready at the watch level (fire-tab.js readyHtml) ----------
   The watch advice ("Be ready") that heads Get ready with a fire at the watch
   level: a list like If a fire comes and After a fire, then the checklist. */
.ready .beready {
  margin: 0 0 14px;
}
.ready .beready ul {
  padding-left: 1.2em;
  list-style: disc;
}
.ready .beready li + li {
  margin-top: 6px;
}
/* ---------- end of Get ready at the watch level ---------- */

/* ---------- Webcams: the icon in the top bar, the page, a camera's page (public/webcams-app.js) ---------- */
.camgo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
}
.camgo svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.camtab {
  padding: 0 14px 24px;
}
.camtab .ptitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  outline: none;
}
.camtab .ptitle .ico {
  width: 24px;
  height: 24px;
}
.camsearch {
  width: 100%;
  min-height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.camfilters { margin-block-start: .5rem; }
.camfilters > summary {
  width: fit-content;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--panel);
  cursor: pointer;
  font-weight: 700;
}
.camchips {
  margin-block: .45rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--surface-radius);
}
.camfamily {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.camfname {
  flex: none;
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-2);
}
.camchip,
.cammore,
.camagain,
.camshow,
.camout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.camchip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--panel);
}
.camshow,
.camout {
  min-height: var(--tap-main);
  margin: 12px 0;
  border-color: var(--focus);
  background: var(--focus);
  color: var(--panel);
}
.cammap {
  height: clamp(200px, 30dvh, 320px);
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}
@media (min-width: 600px) {
  .cammap {
    height: min(44vh, 320px);
  }
}
.campin {
  height: 180px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line-soft);
  overflow: hidden;
}
.campinwrap {
  background: none;
  border: 0;
}
.campinmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 10px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--focus);
  color: var(--panel);
  font-size: 0.8125rem;
  font-weight: 800;
}
.camorder,
.camnote,
.camwords,
.camplace,
.camrunby,
.camprivacy,
.camapprox,
.camfetched {
  margin: 6px 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.camfailed,
.camdown {
  color: var(--danger);
}
.camlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) {
  .camlist {
    grid-template-columns: 1fr 1fr;
  }
}
.camcard {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
.camcard .camwords { margin: 0; }
.caminfo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.cam-results .camcredit { margin: 0 0 .45rem; color: var(--ink-2); font-size: .875rem; }
.camcard.camhit {
  outline: 3px solid var(--focus);
}
.camname {
  font-weight: 800;
}
.camwords,
.camkind,
.camkm {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.camback {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  font-weight: 700;
}
.camstage {
  margin: 12px 0;
  outline: none;
}
.camplayer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: var(--line-soft);
  object-fit: contain;
}

/* Dated rain and weather stories, then the shared hour and model readings. */
body[data-explanations='false'] [data-explanation] {
  display: none !important;
}
.forecast-entry {
  margin: 6px 16px 0;
}
.forecast-entry a,
.forecast-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  color: var(--focus);
  font-weight: 750;
  text-align: left;
}
.forecast-entry a {
  text-underline-offset: 3px;
}
.storypage.forecast-page .ptitle {
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  line-height: 1.12;
}
.storypage.forecast-page .head {
  margin-top: 14px;
  font-size: 1.2rem;
}
.forecast-meta,
.drop-source {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.forecast-unread {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--watch-line);
  background: var(--watch-bg);
  color: var(--watch);
  overflow-wrap: anywhere;
}
.forecast-reading {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.story .forecast-day {
  margin: 0;
  padding: 16px clamp(14px, 3vw, 24px);
}
.story .forecast-day header {
  display: block;
}
.story .forecast-day h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 1.35rem;
}
.forecast-day h3 time {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
}
.story .forecast-day p {
  max-width: 62ch;
  margin-top: 10px;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.forecast-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 4px;
}
.forecast-jump {
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.forecast-instruments {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.forecast-chart,
.forecast-compare,
.story .forecast-radar:has([data-radar-strip]) {
  min-width: 0;
  padding: 16px clamp(12px, 2.4vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.forecast-chart h2,
.forecast-compare h2 {
  font-size: 1.25rem;
}
.story .forecast-chart h2:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
#forecast-chart-heading {
  scroll-margin-top: calc(var(--topbar) + 14px);
}
.forecast-metrics {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}
.forecast-metrics button,
.forecast-hours button,
.drops .row button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.forecast-metrics button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--tap);
  padding: 4px 8px;
  font-size: 0.9rem;
}
.forecast-metrics .ico,
.forecast-jump .ico,
.forecast-entry .ico {
  width: 18px;
  height: 18px;
  flex: none;
}
.forecast-metrics [aria-pressed='true'],
.drops .row [aria-pressed='true'] {
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--focus);
}
.forecast-unit,
.forecast-gap-label {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.forecast-plot-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  margin-top: 8px;
}
.forecast-plot {
  width: 100%;
  height: 118px;
  color: var(--ink);
  cursor: pointer;
}
.forecast-plot[data-forecast-plot='rain'] {
  color: var(--rain-ink);
}
.forecast-slot {
  fill: var(--wash);
  stroke: var(--focus);
  stroke-width: 1;
}
.forecast-bar,
.forecast-point {
  fill: currentColor;
}
.forecast-zero {
  opacity: 0.7;
}
.forecast-grid-line,
.forecast-midnight,
.forecast-curve,
.forecast-gap {
  fill: none;
  stroke: var(--line);
  vector-effect: non-scaling-stroke;
}
.forecast-midnight {
  stroke: var(--ink-2);
  stroke-dasharray: 4 4;
}
.forecast-curve {
  stroke: currentColor;
  stroke-width: 2;
}
.forecast-gap {
  stroke: var(--ink-2);
  stroke-width: 1.5;
}
.forecast-y {
  position: relative;
}
.forecast-y span {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--ink-2);
}
.forecast-x {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin: 4px 0 0 2.5rem;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.forecast-gap-label {
  margin-top: 6px;
}
.forecast-hours {
  display: grid;
  align-items: end;
  grid-template-columns: var(--tap) minmax(0, 1fr) var(--tap);
  gap: 5px;
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
}
.forecast-hours button {
  min-height: var(--tap);
  font-size: 1.5rem;
}
.forecast-hours button:disabled {
  opacity: 0.45;
  cursor: default;
}
.forecast-hours label {
  font-weight: 700;
}
.forecast-hours output {
  display: block;
}
.forecast-hours input {
  display: block;
  width: calc(100% - 8px);
  height: var(--tap);
  margin: 0 4px;
  accent-color: var(--focus);
}
.forecast-teaching,
.story .forecast-day .forecast-teaching {
  color: var(--ink-2);
  font-size: 0.9rem;
}
.forecast-chart .forecast-teaching,
.forecast-compare .forecast-teaching {
  margin-top: 10px;
}
.forecast-readout {
  margin: 10px 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--wash);
}
.forecast-readout > strong {
  display: block;
  margin: 3px 0;
  font-size: 1.4rem;
}
.forecast-readout p + p {
  margin-top: 4px;
}
.week:not(:has(.wkmethod[open])) .wkone {
  visibility: hidden;
}
.wkmethod > summary,
.forecast-method > summary {
  padding: 8px 0;
  cursor: pointer;
  color: var(--ink);
}
.forecast-method[open] > summary {
  margin-bottom: 8px;
}
.forecast-models {
  width: 100%;
  margin-bottom: 8px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.forecast-models th,
.forecast-models td {
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.forecast-models th:last-child,
.forecast-models td:last-child {
  text-align: right;
}
.forecast-sources {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.forecast-sources li + li {
  margin-top: 3px;
}
.story .forecast-radar:empty {
  display: none;
}
.drops .row {
  display: flex;
  gap: 5px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 4px 8px;
  scrollbar-color: var(--focus) var(--ground);
}
.drops .row button {
  flex: 0 0 3.625rem;
  min-height: var(--tap-main);
  padding: 4px 5px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.drops .row button svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 2px;
}
.drop-title {
  font-weight: 750;
}
.drop-reading {
  margin-top: 6px;
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .forecast-instruments {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

/* ---------- The Fire tab's folds: one sign ----------
   docs/superpowers/specs/2026-11-23-fire-tab-layout-design.md, "Folds".
   Every fold on the tab is a row at least 48 px high with its words at the
   left and one chevron at the right edge, down when shut, up when open. A
   heading that is plain words is never a fold, and is the only thing on the
   tab set at 20 px and weight 800; a section that folds is a card whose one
   row says its name at 17 px. The two answers keep their own words for what
   is behind them ("Why, and the rules"), with the same chevron beside them.
   test/fire-tab-folds.test.mjs holds that every fold the tab draws is named
   here and that no other rule draws a sign for one. */
.firetab details.firesec > summary,
.firetab .clearing details.fold > summary,
.firetab .bigact.machines .fold > summary,
.firetab .fqmarks > summary,
.firetab .comes details > summary,
.firetab .readoutfold > summary,
.firetab .bigact.burn > summary .rules {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
.firetab .emnumbers > summary {
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  list-style: none;
}
.firetab .emnumbers > summary > * {
  grid-column: 1;
}
.firetab details.firesec > summary::-webkit-details-marker,
.firetab .clearing details.fold > summary::-webkit-details-marker,
.firetab .bigact.machines .fold > summary::-webkit-details-marker,
.firetab .fqmarks > summary::-webkit-details-marker,
.firetab .comes details > summary::-webkit-details-marker,
.firetab .readoutfold > summary::-webkit-details-marker,
.firetab .emnumbers > summary::-webkit-details-marker {
  display: none;
}
.firetab details.firesec > summary::after,
.firetab .clearing details.fold > summary::after,
.firetab .bigact.machines .fold > summary::after,
.firetab .fqmarks > summary::after,
.firetab .comes details > summary::after,
.firetab .readoutfold > summary::after,
.firetab .emnumbers > summary::after,
.firetab .bigact.burn > summary .rules::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 4px 4px 0;
  border: solid var(--ink-2);
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg);
}
.firetab details.firesec[open] > summary::after,
.firetab .clearing details.fold[open] > summary::after,
.firetab .bigact.machines .fold[open] > summary::after,
.firetab .fqmarks[open] > summary::after,
.firetab .comes details[open] > summary::after,
.firetab .readoutfold[open] > summary::after,
.firetab .emnumbers[open] > summary::after,
.firetab .bigact.burn[open] > summary .rules::after {
  margin: 4px 4px 0 0;
  transform: rotate(-135deg);
}
.firetab .emnumbers > summary::after {
  grid-column: 2;
  grid-row: 1 / span 2;
}
/* The rows: 48 px at the least, each a whole tap target. */
.firetab details.firesec > summary,
.firetab .fqmarks > summary,
.firetab .readoutfold > summary,
.firetab .comes details > summary {
  box-sizing: border-box;
  min-height: var(--tap);
  padding: 4px 0;
}
.firetab .readoutfold > summary {
  padding: 4px 16px;
}
/* A section that folds is a card with one row, not a heading. */
.firetab details.firesec {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}
.firetab details.firesec > summary {
  padding: 4px 16px;
}
.firetab details.firesec > summary h2 {
  font-size: 1.0625rem;
  line-height: 1.25;
}
.firetab details.firesec > .inside {
  margin-top: 0;
  padding: 0 16px 14px;
}
/* ---------- end of the Fire tab's folds ---------- */

#fire-explore:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
#fire-explore button, #fire-explore a, .fire-locate {
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#fire-explore a {
  display: inline-flex;
  align-items: center;
}
#fire-say h4, #fire-say .note {
  margin: 6px 0;
}
#fire-say .note {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-2);
}

.burnt-origin {
  stroke: var(--ink);
  fill: var(--panel);
}
.burnt-origin-label {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.fqsheet:has([data-fire]) {
  max-height: 66%;
}
.fqsheet .pill {
  margin-top: 0;
}

/* ---------- The look: cards and the main button ----------
   The chosen mockup's shapes (docs/superpowers/specs/2026-11-23-look-design.md,
   "Cards and the main button"): a story is a card on the panel, 1 px line,
   24 px corners; a story carrying danger is a card on the failure surface;
   the way in is one full-width olive button 52 px high with 18 px corners, and
   every other action an outline button of the same shape. Last in the file so
   it wins on order; no other block is edited for it. */
/* The mockup's spacing (look-cards-check.md, "Spacing"): 14 px inside a card,
   10 px between cards and above the button. The side stays 16 px, in line
   with the number tiles and the chips above the cards. */
.story.card {
  margin: 0 16px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
/* Every card has its whole 1 px edge already: a top rule here would outweigh
   a danger card's own line (0,4,0 against 0,3,0). */
.story.card + .story.card {
  margin-top: 10px;
}
.story.card.danger {
  background: var(--danger-bg);
  border-color: var(--danger-line);
}
/* A fire at the watch level ("Be ready", story-pages.js fireWatch): the
   warning surface and its line; its words, tag and headline stay. */
.story.card.danger.watch {
  background: var(--watch-bg);
  border-color: var(--watch-line);
}
.story.card .way {
  margin: 10px 0 0;
}
/* Cards are told apart by their gap: no rule under the last one either. */
.tosettings {
  border-top: 0;
}
/* What to do on a Fire card is a plain list, not the days' two columns
   (".story li" was putting each point in the day's 6.5em name column). */
.story .todo li {
  display: list-item;
  padding: 0;
  border: 0;
}
/* The one filled button on the page: the Fire card's while it carries
   danger (story-pages.js cardHtml, "wayin main"). Every other card's way in
   keeps the plain link of the stories block, 48 px to touch. */
.story .wayin.main {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--tap-main);
  padding: 0 20px;
  border-radius: var(--radius-btn);
  background: var(--focus);
  color: var(--panel);
  text-align: center;
}
.story .wayin:hover {
  text-decoration: underline;
}
.primary,
.door-form button,
.door-fresh + .door-form button {
  min-height: var(--tap-main);
  border-color: var(--focus);
  border-radius: var(--radius-btn);
  background: var(--focus);
  color: var(--panel);
}
/* The other actions: outline buttons of the same height and corners. */
.story .share,
.story .chapter .watchmap,
.storypage .foot .tomap,
.settings .add,
.signout,
.door-quiet {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: var(--tap-main);
  padding: 0 20px;
  border: 1px solid var(--focus);
  border-radius: var(--radius-btn);
  background: none;
  color: var(--focus);
  font-size: 1rem;
  font-weight: 700;
}
/* The outline group outweighs .watchmap:hover (both 0,3,0, this one later):
   "Watch it on the map" in a chapter keeps its hover fill here. */
.story .chapter .watchmap:hover:not(:disabled) {
  background: var(--focus);
  color: var(--panel);
}
.story .chapter .watchmap:disabled {
  border-style: dashed;
  border-color: var(--ink-2);
  color: var(--ink-2);
}
/* The own page's small actions (Sign out, a person off or on) keep their
   width: they sit beside a name or alone, never across the card. */
.door-quiet {
  display: inline-flex;
  width: auto;
}
/* An alert row's actions and the "where this phone was" switch sit inside a
   card whose main button is its own: outline, never a second filled one. */
.door-actions .door-quiet,
.door-seen .door-quiet {
  margin-top: 0;
  border-color: var(--focus);
  background: none;
  color: var(--focus);
}
/* A story's page: each chapter a card. Inside a front-page card a chapter
   stays a tile (16 px), so a card never holds a card of its own shape. */
.storypage .chapter {
  padding: 16px;
  border-color: var(--line);
  border-radius: var(--radius-card);
}
.storypage .chapter.later {
  padding: 10px 16px;
}
/* Every other panel takes the card's shape; nothing is moved. */
.panel,
.alert,
.bigact,
.emnumbers,
.readout,
.fsec,
.firehere > .chapter,
.door-form,
.door-fresh {
  border-radius: var(--radius-card);
}
.readout,
.firehere > .chapter {
  border-color: var(--line);
}
/* Report a fire is a button, not a card. */
.bigact.report {
  border-radius: var(--radius-btn);
}
/* The Fire card carrying danger as short as the mockup: a small label line
   in the surface's own ink, written out whole as it is read aloud ("Fire, be
   ready" at the watch level, "Fire near" at danger: story-pages.js
   fireLabelHtml); at the watch level the headline in ink, smaller; at danger
   it stays red at its size. */
.story.card[data-story='fire'].danger .kname {
  gap: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--danger);
}
.story.card[data-story='fire'].danger.watch .kname {
  color: var(--watch);
}
.story.card[data-story='fire'].danger .kname .ico {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}
.story.card[data-story='fire'].danger.watch .head {
  font-size: 1.25rem;
  color: var(--ink);
}
/* Send to family under the button: a quiet line, 48 px to touch. */
.story.card .send {
  margin: 0;
}
.story.card .send .share {
  display: inline-flex;
  width: auto;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
}
/* The Fire chip and tile wear what the Fire card does (story-pages.js
   storyLook): on the warning surface, its line and its ink; where the card
   is red they stay red. The chip in view keeps its own colours. */
.jumps button.hot.watch {
  border-color: var(--watch-line);
}
.jumps button.hot.watch:not([aria-current='true']) .dword {
  color: var(--watch);
}
.minis button.hot.watch {
  border-color: var(--watch-line);
  box-shadow: inset 0 0 0 1px var(--watch-line);
}
.minis button.hot.watch b {
  color: var(--watch);
}
/* ---------- end of the look: cards and the main button ---------- */

/* Field guide. Display type and rules are part of the page furniture.
   Weather, warning and map keys continue to use their own colours. */
body.field-guide {
  --display-type: 'Baskerville', 'Iowan Old Style', Georgia, serif;
  --tabs: max(68px, 2.75rem + 24px);
  --topbar: var(--masthead-height, calc(61px + env(safe-area-inset-top)));
}
body.field-guide.example {
  /* The example banner can wrap to several lines when text is enlarged. */
  --example-h: calc(max(40px, 6.6rem - 65px) + env(safe-area-inset-top));
  --topbar: calc(var(--example-h) + var(--masthead-height, 61px));
}
.field-guide .examplebar p {
  line-height: 1.25;
}
.field-guide .top {
  container: tempo-header / inline-size;
  gap: 2px;
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  background: var(--panel);
}
.top-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .14em;
  flex: none;
  max-width: 26vw;
  padding: 0 8px 3px 0;
  border-inline-end: 1px solid var(--line);
  font: 700 min(1.6rem, 7vw)/.95 var(--display-type);
  letter-spacing: -.063em;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Both mastheads already carry the name in text. The SVGs include optical
   margins, so crop their empty edges to keep the town button roomy. */
.door-brand::before,
.top-wordmark::before {
  content: '';
  flex: none;
  width: min(1em, 24px);
  aspect-ratio: 1;
  background: var(--tempo-mark) center / 140% no-repeat;
}
.door-brand::before {
  width: 32px;
}
.top-wordmark + .place {
  gap: 4px;
  margin: 0 auto 0 0;
  padding-inline: 2px;
  font-size: .98rem;
}
.top-wordmark + .place svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.field-guide .top .camgo {
  margin: 0;
  padding: 0;
}
.field-guide .top .top-end {
  flex: 0 1 auto;
  gap: 0;
  margin: 0;
  min-width: 0;
}
.field-guide .top .refresh {
  flex: 0 1 auto;
  justify-content: center;
  gap: 4px;
  min-width: var(--tap);
  padding-inline: 3px;
}
.field-guide .refresh svg {
  flex: none;
}
.field-guide #updated {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-guide .tabs {
  gap: 2px;
  min-height: calc(var(--tabs) + env(safe-area-inset-bottom));
  padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: var(--mast);
  border-color: var(--mast);
}
.field-guide .tabs button {
  align-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 5px 2px;
  border-radius: 15px;
  color: var(--mast-label);
  font-size: min(.84rem, 5.4vw);
  overflow-wrap: anywhere;
}
.field-guide .tabs button svg {
  width: 19px;
  height: 19px;
}
.field-guide .tabs button[aria-current='page'] {
  color: var(--mast);
  background: var(--mast-paper);
  box-shadow: none;
}
.field-guide .tabs button:focus-visible {
  outline: 3px solid var(--mast-focus);
  outline-offset: -3px;
}
.field-guide .tabs button[aria-current='page']:focus-visible {
  outline-color: var(--mast);
}
.field-guide .tabs .dot {
  border-color: var(--mast);
}
.field-guide .tabs [aria-current='page'] .dot {
  border-color: var(--mast-paper);
}

#tab-stories .jumps {
  justify-content: space-between;
  gap: 0;
  padding: 0 14px;
  border-bottom-color: var(--line);
}
#tab-stories .jumps button:not(.hot) {
  gap: 4px;
  padding-inline: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
}
#tab-stories .jumps button[aria-current='true']:not(.hot) {
  color: var(--focus);
  box-shadow: inset 0 -3px var(--focus);
}
#tab-stories .jumps button:focus-visible {
  outline-offset: -3px;
}
#tab-stories .minis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding: 4px 16px 0;
}
#tab-stories .minis button {
  min-height: 58px;
}
#tab-stories .minis button:not(.hot) {
  grid-template-columns: minmax(min-content, 1fr) minmax(0, max-content);
  align-items: baseline;
  align-content: center;
  column-gap: 5px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
#tab-stories .minis .k,
#tab-stories .minis small {
  font-size: .81rem;
}
#tab-stories .minis button:not(.hot) b {
  font-size: 1.07rem;
  text-align: end;
  overflow-wrap: anywhere;
}
#tab-stories .minis small {
  grid-column: 1 / -1;
}
#tab-stories .forecast-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0 16px;
}
.forecast-entry a,
.forecast-entry [data-weather-history] {
  font-size: .96rem;
}
.forecast-entry [data-weather-history] {
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--focus);
  font-weight: 750;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story.card:not(.danger) {
  padding: 0 0 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.story.card:not(.danger) + .story.card:not(.danger) {
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.story.card:not(.danger) .head,
.storypage.forecast-page .ptitle {
  font: 600 clamp(1.8rem, 6vw, 2.8rem)/1.04 var(--display-type);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.story.card:not(.danger) .kname {
  font-size: .9rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.story.card:not(.danger) .rain-lead {
  margin: 0 -16px 15px;
  padding: 18px 18px 15px;
  background-color: var(--mast);
  color: var(--mast-paper);
}
.rain-lead.penamacor {
  /* Supplied DGT orthophoto of Penamacor, cropped, resized and re-encoded.
     The credit belongs to the photograph, outside the radar and its timing. */
  background-image: linear-gradient(90deg,
      var(--mast),
      color-mix(in srgb, var(--mast) 97%, transparent) 30%,
      color-mix(in srgb, var(--mast) 94%, transparent) 50%,
      color-mix(in srgb, var(--mast) 80%, transparent) 75%,
      color-mix(in srgb, var(--mast) 15%, transparent)),
    url('/penamacor-2025.webp');
  background-position: 60% 43%;
  background-size: cover;
}
.story.card:not(.danger) .rain-lead .kname {
  color: inherit;
}
.story.card:not(.danger) .rain-lead .head {
  max-width: min(10.5ch, 74%);
  margin: 9px 0 5px;
  font-size: clamp(2.1rem, 11vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
  text-wrap: wrap;
}
.rain-lead .lede {
  max-width: min(25ch, 74%);
  font-size: 1.02rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.rain-lead .forecast-meta {
  max-width: 28rem;
  width: fit-content;
  padding-inline: 4px;
  border-radius: 2px;
  background: var(--mast);
  color: var(--mast-label);
}
.rain-photo-credit {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 2px 4px;
  border-radius: 2px;
  background: var(--mast);
  color: var(--mast-paper);
  font-size: .72rem;
  line-height: 1.3;
}
.rain-photo-credit a {
  position: relative;
  z-index: 1;
  color: inherit;
}
.rain-photo-credit a:focus-visible {
  outline-color: var(--mast-focus);
}
.story .chapter:not(.wet) {
  border-radius: 4px;
}

#tab-map .maptop {
  padding: 7px 14px 6px;
  background: var(--panel);
}
#tab-map {
  /* The map and time controls remain reachable on a short or zoomed phone. */
  overflow-y: auto;
}
#tab-map .mapstage {
  isolation: isolate;
  /* A source note appearing below the time slider must never resize Leaflet. */
  flex: 0 0 auto;
  height: clamp(228px, calc(100% - 18.5rem), 76dvh);
}
#tab-map .moviebadge {
  /* A long observation stays in the right column, clear of the zoom buttons. */
  max-width: min(300px, calc(100vw - 84px));
  overflow-wrap: anywhere;
}
#tab-map .mapsay {
  margin: 0 0 5px;
  font: 600 clamp(1.55rem, 7.3vw, 1.8rem)/1.12 var(--display-type);
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
#tab-map .mapsay:empty {
  display: none;
}
#tab-map .layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 3px;
}
#tab-map .layers button {
  min-width: 0;
  padding-inline: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: .83rem;
  text-align: start;
  overflow-wrap: anywhere;
}
#tab-map .layers button:focus-visible {
  outline-offset: -3px;
}
#tab-map .layers button[aria-pressed='true'] {
  color: var(--focus);
  box-shadow: inset 0 -3px var(--focus);
}
#tab-map .layers button[aria-pressed='true'] .tick::after {
  border-color: var(--panel);
}
#tab-map .mapfoot {
  position: relative;
  z-index: 1;
  padding-block: 4px;
}
.mapcaption {
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.25;
}
.map.compact .mapempty.example {
  top: auto;
  bottom: 34px;
  max-width: calc(100% - 20px);
  font-size: .76rem;
  padding: 4px 8px;
}
#scrub {
  grid-template-columns: var(--tap) minmax(0, 1fr) auto;
  grid-template-areas: 'heading heading heading' 'play track speed';
  gap: .7rem 1rem;
  padding: .85rem clamp(.15rem, 1.1vw, 1.2rem);
}
.timeline-heading {
  grid-area: heading;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}
#scrub .when {
  flex: 1;
  color: var(--ink);
  height: auto;
  contain: none;
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.2;
}
#map-reading {
  position: absolute;
  z-index: 1001;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  max-width: min(19rem, calc(100% - 84px));
}
#map-reading .bs { display: block; }
#map-reading[hidden], #mapstage:has(#map-reading:not([hidden])) .leaflet-control.moviebadge { display: none; }
#scrub .strip {
  margin-bottom: 4px;
}
#scrub .marks {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.map-view-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.map-view-heading .mapsay { min-width: 0; }
.map-view-heading button {
  flex: none;
  min-height: 44px;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
}
.map-periods[hidden] { display: none; }
.map-periods {
  display: inline-flex;
  align-items: stretch;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: color-mix(in srgb, var(--ink) 5%, var(--panel));
}
.map-periods button {
  min-height: 44px;
  min-width: 0;
  padding: .25rem .85rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.map-periods button[aria-pressed='true'] {
  background: var(--focus);
  color: var(--panel);
}
.map-periods button:focus-visible {
  outline-offset: -3px;
}
.map-periods button:disabled {
  opacity: .6;
}
@media (max-width: 680px) {
  #scrub { gap: .5rem; padding-block: .6rem; }
  .timeline-heading { gap: .2rem; }
  .map-periods button { padding-inline: .5rem; }
  #scrub .when { max-width: 9rem; }
}

#tab-fire {
  padding-inline: 16px;
}
#tab-fire .firesay {
  max-width: 30ch;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.55rem, 6.7vw, 2.8rem);
}
#tab-fire .bigact.report {
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
  border-radius: 7px;
}
#tab-fire .bigact.report span {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
}
#tab-fire .bigact.burn {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
#tab-fire .bigact.burn > :is(summary, .said) {
  padding: 12px 0;
  line-height: 1.35;
}
#tab-fire .bigact.burn > :is(summary, .said) b {
  margin-bottom: 3px;
  font: 600 1.5rem/1.1 var(--display-type);
}

#tab-settings {
  padding: 16px 19px 32px;
}
#tab-settings h1 {
  margin: 0 0 12px;
  font: 500 3rem/1 var(--display-type);
  letter-spacing: -.045em;
}
#tab-settings .setcard {
  margin: 0;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
#tab-settings .setcard:first-of-type {
  border-top: 2px solid var(--ink);
}
#tab-settings .setcard > h2 {
  margin-bottom: 9px;
  font: 600 1.45rem/1.15 var(--display-type);
}
#tab-settings :is(.setlist li, .add) {
  border-radius: 5px;
}
#tab-settings .add {
  margin-top: 6px;
}
#tab-settings .choices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
#tab-settings .choice {
  flex: auto;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 6px;
  border-color: var(--line);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
#tab-settings .choice:has(input:checked) {
  border-color: var(--focus);
  box-shadow: inset 0 -2px var(--focus);
}
#tab-settings .choice input {
  width: 17px;
  height: 17px;
}

@media (max-width: 365px) {
  .field-guide .top {
    padding-inline: max(3px, env(safe-area-inset-left)) max(3px, env(safe-area-inset-right));
  }
  #tab-stories .jumps {
    padding-inline: 7px;
  }
  #tab-stories .minis {
    column-gap: 8px;
  }
}
/* Give the town and read time their own space in the compact masthead. */
@media (max-width: 36em) {
  .field-guide .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }
  .top .top-wordmark,
  .top .place {
    grid-area: 1 / 1;
  }
  .top .top-wordmark {
    align-self: start;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 1px 0 0 2px;
    padding: 0;
    border: 0;
    background: none;
    font-size: min(1.1rem, 22px);
    pointer-events: none;
  }
  .top .place {
    align-items: end;
    justify-self: stretch;
    margin: 0;
    padding: 20px 2px 2px;
  }
  .top .place svg {
    align-self: end;
    margin-bottom: 2px;
  }
  .field-guide .top .refresh {
    flex-direction: column-reverse;
    gap: 0;
    padding-block: 1px;
    line-height: 1.15;
  }
}
@media (max-width: 420px) {
  /* When the occurrences button is present, let the update time wrap below
     its label so the place name keeps its space in Portuguese as well. */
  .field-guide .top:has(.occbtn:not([hidden])) #updated {
    max-inline-size: 5.4em;
    white-space: normal;
    font-size: .8125rem;
    line-height: 1.1;
  }
}
/* Journal uses a single-line masthead on larger screens. Its phone edition
   shares the two-level layout so the mark and actions leave room for a town. */
@media (max-width: 26rem) {
  .field-guide.journal .top {
    display: grid;
  }
  .field-guide.journal .top-wordmark {
    align-self: start;
    margin: 1px 0 0 2px;
    padding: 0;
    font-size: min(1.1rem, 22px);
  }
  .field-guide.journal .top .place {
    align-items: end;
    padding-block: 20px 2px;
  }
}
/* With large text, let the actions occupy a second line. The sticky story
   navigation follows the measured height of the header. */
@container tempo-header (max-width: 17em) {
  .top .top-wordmark,
  .top .place {
    grid-area: 1 / 1 / 2 / -1;
  }
  .top .camgo {
    grid-area: 2 / 1;
    justify-self: end;
  }
  .top .top-end {
    grid-area: 2 / 2 / 3 / -1;
  }
}
@media (min-width: 700px) {
  #tab-stories .minis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .story.card:not(.danger) .rain-lead {
    padding: 25px 30px;
  }
  .story.card:not(.danger) .rain-lead .head {
    max-width: min(17ch, 74%);
    font-size: 3.4rem;
  }
  .rain-lead .lede {
    max-width: min(45ch, 74%);
  }
  #tab-map .layers {
    display: flex;
    gap: 7px;
  }
  #tab-map .layers button {
    padding-inline: 9px;
  }
}
@media (min-width: 900px) {
  body.field-guide {
    --rail: max(92px, 4.15rem);
  }
  .field-guide .tabs {
    gap: 4px;
    padding: 64px 3px 0;
  }
}

/* Snow in the key uses the same stipple as the snow timeline. */
.kc .ksnow {
  background-color: var(--cloud);
  background-image: radial-gradient(circle, var(--mast) 1px, transparent 1.4px);
  background-size: 4px 4px;
}

.storm-facts { display: flex; flex-wrap: wrap; gap: .65rem 2.2rem; margin: .7rem 0; }
.storm-facts dt { color: var(--ink-2); font-size: .86rem; }
.storm-facts dd { margin: .15rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

#tab-settings { max-width: 70rem; margin-inline: auto; padding: clamp(1rem, 3vw, 2.8rem); }
#tab-settings h1 { margin-bottom: clamp(1rem, 2.5vw, 2rem); }
.settings-layout { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.settings-nav { display: grid; gap: .25rem; }
.settings-nav button {
  padding: .55rem .8rem; min-height: 44px; text-align: start; border: 1px solid transparent;
  border-radius: .55rem; background: transparent; color: var(--ink-2); font: inherit; font-weight: 650;
}
.settings-nav button[aria-current] { background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: inset 3px 0 var(--focus); }
.settings-content { min-width: 0; }
#tab-settings .settings-content .setcard {
  padding: clamp(1rem, 2.5vw, 1.65rem); margin: 0 0 .9rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel);
}
#tab-settings .setcard > h2 { margin-bottom: .9rem; }
#tab-settings .setcard > .choice { justify-content: start; padding: .65rem .7rem; }
#tab-settings .choice { min-height: 44px; }
#tab-settings #set-home .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#set-home .choices + .choice { margin-top: .65rem; }
#set-home .setting-note { margin-top: .25rem; }
#set-home .setting-note > summary { min-height: 44px; padding: .55rem .1rem; color: var(--ink-2); cursor: pointer; font-size: .875rem; font-weight: 650; }
#set-home .setting-note > .hint { margin-top: 0; }
@media (max-width: 700px) {
  .settings-layout { display: block; }
  .settings-nav { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(max-content, .85fr)) minmax(0, 1fr); margin: 0 0 .85rem; gap: .15rem; }
  .settings-nav button { min-width: 0; padding: .3rem .1rem; text-align: center; font-size: clamp(.75rem, 3.55vw, .85rem); line-height: 1.15; overflow-wrap: anywhere; }
  .settings-nav button[aria-current] { box-shadow: inset 0 -3px var(--focus); }
  #tab-settings #set-home .choices .choice { padding: .38rem .3rem; text-align: center; font-size: .9rem; line-height: 1.15; }
}
@media (max-width: 360px) {
  #tab-settings #set-home .choices .choice { display: grid; place-content: center; justify-items: center; gap: .2rem; }
}

@media (max-width: 680px) {
  /* A two-line town headline and a short forecast time share one header slot. */
  #tab-map .mapsay:not(:empty) { min-block-size: 2.24em; }
  #tab-map .mapstage { height: clamp(208px, calc(100% - 23.5rem), 65dvh); }
}
@media (max-width: 680px) and (max-height: 650px) {
  #tab-map .maptop { padding-block: 4px; }
  #tab-map .mapsay:not(:empty) {
    font-size: 1.16rem;
    line-height: 1.12;
    block-size: 2.24em;
    overflow-y: auto;
  }
  #tab-map .layers {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: .3rem;
  }
  #tab-map .layers button { flex: 0 0 auto; white-space: nowrap; }
  #tab-map .mapstage {
    min-height: 164px;
    height: clamp(164px, calc(100% - 15.4rem), 46dvh);
  }
  #scrub { gap: .25rem; padding-block: .25rem; }
}
#tab-settings .setcard > .choice + .choice { margin-top: .4rem; }
