/* Layout: a status board in one centered column, on a few pages that share
   one file and one look.
   The front page is one line per section, and the line is the section's
   answer: can I drive it, what is the weather doing, how much snow, what is
   the avalanche danger, how is the air, is anything burning, where is the
   lake. Each line opens that section's page.
   A section's page is a heading over short tables of rows: what it is on the
   left, its state on the right. Summit Check is the roads, each with its
   status in colour, a verdict beside the heading, a map of where the trouble
   is, and live stills; a road opens to show its own cameras, checkpoints and
   closures. Under every section come the lines for the other sections, so
   the rest of the site is one tap away with its answers showing.
   Above it all, one line says which place the site is for; pick a resort
   there and every page narrows to it.
   Which page is showing is data-page on #app. Each block of the page carries
   data-on with the pages it belongs to, and the rules under "pages" below
   hide the rest, so a page is right before any script has run.
   Colour means status and nothing else.
   Light is the default for everyone, whatever the device is set to. Dark is
   opt-in through the toggle in the top bar, which sets data-mode="dark" on
   <html> and remembers the choice in that browser. */
:root {
  --bg: #ffffff;
  --fg: #14181d;     /* text */
  --fg-2: #56616d;   /* labels and secondary text */
  --fg-3: #6b7682;   /* fine print, chevrons */
  --line: #e4e8ec;   /* hairline between rows */
  --rule: #14181d;   /* rule under each section heading */
  --tint: #f3f5f7;   /* camera placeholders */
  --water: #e9edf1;  /* the lakes on the map */
  --ok: #157a46;     /* open */
  --warn: #a15f00;   /* R-1, advisories */
  --bad: #c2410c;    /* R-2, restrictions */
  --crit: #b91c1c;   /* R-3, closed, warnings */
  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --bg: #121519; --fg: #eceff2; --fg-2: #a3adb8; --fg-3: #7d8894; --line: #262c34; --rule: #5d6875; --tint: #1a1f25; --water: #1e252d;
  --ok: #3fc67c; --warn: #e8a93a; --bad: #ff7a45; --crit: #ff5c6a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Anything marked hidden stays hidden, whatever display its class sets. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 680px;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.45 var(--font);
  padding-block: 14px 44px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration-color: var(--fg-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, p, ul, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
b { font-weight: 600; }

/* top bar ------------------------------------------------------------------ */
/* One line: the name, when the page was last updated, Refresh, and the dark
   toggle. If a line ever cannot hold them (a font that did not load, say), the
   right-hand group drops under the name instead of pushing the page sideways. */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--fg-2); }
/* The site's name is also the way back to the front page. */
.site-name { font-size: 16px; font-weight: 700; color: var(--fg); letter-spacing: 0.01em; white-space: nowrap; text-decoration: none; }
.top-meta { display: flex; gap: 14px; align-items: center; margin-left: auto; font-variant-numeric: tabular-nums; }
#updated, #refresh { white-space: nowrap; }
/* Phones: "12 min ago" without the word "Updated". The smallest: Refresh alone,
   so the line holds whatever the time says. */
@media (max-width: 439px) { .upd-word { display: none; } }
@media (max-width: 350px) { #updated { display: none; } }
/* The padding gives Refresh a thumb-sized target; the negative margin keeps the bar's height. */
#refresh { background: none; border: 0; padding: 10px 4px; margin: -10px -4px; color: var(--fg-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--fg-3); text-underline-offset: 3px; }
#refresh:disabled { opacity: 0.5; cursor: progress; }
/* Dark-mode toggle: a moon in light mode, a sun in dark. The padding gives a
   thumb-sized target; the negative margin keeps it from widening the bar. */
.mode { display: inline-flex; background: none; border: 0; padding: 8px; margin: -8px; color: var(--fg-2); cursor: pointer; border-radius: 50%; }
.mode:hover { color: var(--fg); }
.mode svg { display: block; }
.mode .i-sun { display: none; }
:root[data-mode="dark"] .mode .i-moon { display: none; }
:root[data-mode="dark"] .mode .i-sun { display: block; }

/* pages: #app says which page this is, and only that page's blocks show ------ */
#app[data-page="home"] [data-on]:not([data-on~="home"]),
#app[data-page="roads"] [data-on]:not([data-on~="roads"]),
#app[data-page="weather"] [data-on]:not([data-on~="weather"]),
#app[data-page="snow"] [data-on]:not([data-on~="snow"]),
#app[data-page="avalanche"] [data-on]:not([data-on~="avalanche"]),
#app[data-page="air"] [data-on]:not([data-on~="air"]),
#app[data-page="fire"] [data-on]:not([data-on~="fire"]),
#app[data-page="lake"] [data-on]:not([data-on~="lake"]) { display: none; }
/* On every page but the front one. */
#app[data-page="home"] .off-home { display: none; }
/* Under a section come the lines for the others. Its own line is the page it is on. */
#app[data-page="roads"] [data-line="roads"],
#app[data-page="weather"] [data-line="weather"],
#app[data-page="snow"] [data-line="snow"],
#app[data-page="avalanche"] [data-line="avalanche"],
#app[data-page="air"] [data-line="air"],
#app[data-page="fire"] [data-line="fire"],
#app[data-page="lake"] [data-line="lake"] { display: none; }
/* Read out, not shown: a page's title where the page already says it another way. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* A heading takes the focus when its page opens, so a screen reader starts there. It needs no ring. */
[tabindex="-1"]:focus { outline: none; }

/* On a section's page: the way back to the front page. */
.back { margin-top: 4px; font-size: 14px; }
.back a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; color: var(--fg-2); text-decoration: none; }
.back a::before { content: ""; width: 6px; height: 6px; margin-left: 2px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.back a:hover { color: var(--fg); }

.demo-banner { margin-top: 10px; font-size: 13px; color: var(--fg-3); }
.demo-banner button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--fg-3); text-underline-offset: 3px; }

/* scope: which place the page is for. "Conditions for Truckee & North Tahoe",
   with the place as the control. ------------------------------------------- */
.scope { margin-top: 6px; }
.scope > summary { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 15px; color: var(--fg-2); }
.scope > summary::-webkit-details-marker { display: none; }
.scope-place { display: inline-flex; align-items: baseline; gap: 6px; color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--fg-3); text-underline-offset: 4px; }
.scope-place::after {
  content: ""; flex: none; align-self: center; width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2);
  transform: translateY(-2px) rotate(45deg);
}
.scope[open] .scope-place::after { transform: translateY(2px) rotate(-135deg); }
.star { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
/* The star marks a picked resort: beside its name up here, and in the list. */
.scope > summary .star { display: none; align-self: center; fill: currentColor; }
.scope[data-starred] > summary .star { display: block; }
.resort[aria-pressed="true"] .star { fill: currentColor; }
.scope-body { padding-bottom: 4px; }
.resort-list { margin-top: 8px; border-top: 1px solid var(--line); }
.resort-list > li { border-bottom: 1px solid var(--line); }
.resort { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; width: 100%; padding: 11px 0; background: none; border: 0; text-align: left; font-size: 16px; cursor: pointer; }
.resort .star { color: var(--fg-3); }
.resort[aria-pressed="true"] .star { color: var(--fg); }
.resort[aria-pressed="true"] .resort-name { font-weight: 600; }
.resort-road { font-size: 14px; color: var(--fg-2); }

/* alerts: one line each, above everything, only when something is active ---- */
.alerts { display: grid; gap: 6px; margin-top: 14px; }
.alerts:empty { display: none; }
.alert { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--warn); text-wrap: balance; }
.alert--severe, .alert--extreme, .alert--crit { color: var(--crit); }
.alert--bad { color: var(--bad); }
.alert > summary { cursor: pointer; list-style: none; }
.alert > summary::-webkit-details-marker { display: none; }
.alert > summary::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
.alert[open] > summary::after { transform: translateY(-4px) rotate(45deg); }
.alert-body { display: grid; gap: 6px; margin: 8px 0 2px; font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--fg-2); max-width: 62ch; text-wrap: pretty; }
.alert-part { display: grid; grid-template-columns: 4.8em minmax(0, 1fr); column-gap: 10px; }
.alert-part dt { color: var(--fg-3); }
.alert-part dd { margin: 0; }
.alert-part--loose { grid-template-columns: minmax(0, 1fr); }

/* sections ----------------------------------------------------------------- */
.sec { margin-top: 34px; }
/* A page's first section comes straight after the line that says where: no wide gap between the question and the answer. */
.sec--first { margin-top: 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--rule); }
.sec-head h1, .sec-head h2 { flex: none; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; }
.sec-note { font-size: 13px; color: var(--fg-2); text-align: right; }
.sec[data-state="error"] .sec-note { color: var(--bad); }
/* The roads in a phrase: the answer, in the colour of the worst status. */
.sec[data-tone] .sec-note { font-size: 15px; font-weight: 700; }
.sec[data-tone="ok"] .sec-note { color: var(--ok); }
.sec[data-tone="warn"] .sec-note { color: var(--warn); }
.sec[data-tone="bad"] .sec-note { color: var(--bad); }
.sec[data-tone="crit"] .sec-note { color: var(--crit); }
.fine { font-size: 13px; line-height: 1.45; color: var(--fg-3); margin-top: 10px; max-width: 66ch; text-wrap: pretty; }

/* the lines: one per section. The section's name, small, over its answer,
   large; the answer is in its status colour when it is a status. The whole
   line is the link to the section. On the front page they are the page, close
   under the line that says where. Under a section they have a heading, whose
   rule stands in for their own. ------------------------------------------ */
#app[data-page="home"] #board { margin-top: 20px; }
.lines { border-top: 1px solid var(--rule); }
#app:not([data-page="home"]) #lines { border-top: 0; }
/* A line inside a section, linking out. */
.lines--plain { margin-top: 16px; border-top-color: var(--line); }
.lines > li { border-bottom: 1px solid var(--line); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 12px; column-gap: 12px; align-items: center; padding: 13px 0 14px; color: inherit; text-decoration: none; }
.line-name { grid-column: 1; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--fg-2); }
.line-say { grid-column: 1; margin-top: 2px; font-size: 19px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.line::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 7px; height: 7px; justify-self: end;
  border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3);
  transform: rotate(-45deg);
}
.line:hover .line-name { color: var(--fg); }
.line[data-tone="ok"] .line-say { color: var(--ok); }
.line[data-tone="warn"] .line-say { color: var(--warn); }
.line[data-tone="bad"] .line-say, .line[data-tone="down"] .line-say { color: var(--bad); }
.line[data-tone="crit"] .line-say { color: var(--crit); }
.line[data-tone="wait"] .line-say { color: var(--fg-3); font-weight: 400; }
/* A line that leaves the site instead of opening a section: same shape, an arrow out. */
.line--out::after { content: none; }
.line--out .line-say { font-size: 16px; font-weight: 400; color: var(--fg-2); }
.line--out .ext { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.ext { align-self: center; flex: none; color: var(--fg-3); }

/* roads: road, place, status. Each row opens to its cameras and checkpoints. - */
.roads > li { border-bottom: 1px solid var(--line); }
.road-row > summary { display: block; padding: 12px 0; cursor: pointer; list-style: none; }
.road-row > summary::-webkit-details-marker { display: none; }
.road-main { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto 12px; column-gap: 10px; align-items: baseline; }
.road-main::after {
  content: ""; width: 7px; height: 7px; justify-self: end; align-self: center;
  border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3);
  transform: translateY(-1px) rotate(-45deg);
}
.road-row[open] .road-main::after { transform: translateY(-3px) rotate(45deg); }
.road-id { font-size: 18px; font-weight: 700; white-space: nowrap; }
.road-name { font-size: 15px; color: var(--fg-2); }
.road-status { font-size: 17px; font-weight: 700; white-space: nowrap; text-align: right; }
.road--r0 .road-status { color: var(--ok); }
.road--r1 .road-status { color: var(--warn); }
.road--r2 .road-status, .road--other .road-status { color: var(--bad); }
.road--r3 .road-status, .road--closed .road-status { color: var(--crit); }
.road--unknown .road-status, .road--loading .road-status { color: var(--fg-3); font-weight: 400; }
/* What is behind a status: where the closure or the checkpoints are. Indented
   to the place column so the road numbers stay a clean left edge. */
.road-notes { display: grid; gap: 2px; margin: 3px 22px 0 calc(5rem + 10px); font-size: 14px; line-height: 1.4; color: var(--fg-2); text-wrap: pretty; }
/* Opened: the road's stills, then what Caltrans reports on it. */
.road-more { padding: 4px 0 20px; }
.road-facts { display: grid; gap: 7px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.cam-grid + .road-facts { margin-top: 16px; }
.fact { display: grid; grid-template-columns: 5rem minmax(0, 1fr); column-gap: 10px; }
.fact dt { color: var(--fg-3); }
.fact dd { display: grid; gap: 3px; margin: 0; }
.fact b { color: var(--fg); margin-right: 4px; white-space: nowrap; }
/* "Tap a road" on a touch screen, "Click a road" with a mouse. */
.say-click { display: none; }
@media (hover: hover) and (pointer: fine) {
  .say-tap { display: none; }
  .say-click { display: inline; }
}
/* the map: the same roads, drawn. Weight carries the status as well as
   colour: a thin green line is open road, a heavy coloured stretch or spot is
   a chain control or a closure, and each one is tagged with what it is. The
   drawing is made by map.mjs; these are its colours. */
.map { margin-top: 18px; }
/* Holds the map's place before it is drawn. The number is MAP_SHAPE in map.mjs. */
.map-canvas { aspect-ratio: 1.1127; }
.map-svg { display: block; width: 100%; height: auto; font-family: var(--font); -webkit-user-select: none; user-select: none; }
.map-lake { fill: var(--water); }
.map-road, .map-mark, .map-case, .map-bar, .map-hit { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-case { stroke: var(--bg); }
/* The pale edge of a marked stretch ends where the stretch does, so it never cuts the road it lies on. */
.map-case--mark { stroke-linecap: butt; }
.map-road--ok { stroke: var(--ok); }
.map-road--none { stroke: var(--fg-3); stroke-dasharray: 0.1 6; }
.map-road--wait, .map-road--far { stroke: var(--line); }
.map-mark--r1 { stroke: var(--warn); }
.map-mark--r2, .map-mark--other { stroke: var(--bad); }
.map-mark--r3, .map-mark--closed { stroke: var(--crit); }
/* A closed stretch is barred, so it reads as closed without its colour. */
.map-bar { stroke: var(--bg); stroke-linecap: butt; stroke-dasharray: 2 5; }
.map-dot { stroke: var(--bg); stroke-width: 1.5; }
.map-dot--r1 { fill: var(--warn); }
.map-dot--r2, .map-dot--other { fill: var(--bad); }
.map-dot--r3, .map-dot--closed { fill: var(--crit); }
/* One-way traffic past a work crew: a diamond, like the sign. */
.map-crew { fill: var(--fg); stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; }
/* Something in the Highway Patrol's log: a hollow triangle, like a warning sign. It is a report, so it carries no status colour. */
.map-incident { fill: var(--bg); stroke: var(--fg); stroke-width: 1.75; stroke-linejoin: round; }
.map-place { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.map-star { fill: var(--fg); stroke: var(--bg); stroke-width: 2; stroke-linejoin: round; paint-order: stroke fill; }
/* Names carry a halo in the page colour, so they stay readable over a road or the lake. */
.map-t { fill: var(--fg-2); stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke fill; }
.map-t--town { fill: var(--fg); font-weight: 600; }
.map-t--resort { fill: var(--fg); font-weight: 700; }
.map-t--far { fill: var(--fg-3); }
.map-t--lake { fill: var(--fg-3); stroke: var(--water); letter-spacing: 0.06em; }
.map-tag rect { stroke: var(--bg); stroke-width: 1.5; }
.map-tag text { fill: var(--bg); font-weight: 700; }
.map-tag--r1 rect { fill: var(--warn); }
.map-tag--r2 rect, .map-tag--other rect { fill: var(--bad); }
.map-tag--r3 rect, .map-tag--closed rect { fill: var(--crit); }
.map-number rect { fill: var(--bg); stroke: var(--fg-3); stroke-width: 1; }
.map-number text { fill: var(--fg); font-weight: 700; }
/* A wide, unseen line over each road: something a thumb can hit. */
.map-hit { stroke: transparent; stroke-width: 26px; pointer-events: stroke; cursor: pointer; }
.map-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.map-key > li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-key svg { flex: none; }
.map-key + .fine { margin-top: 6px; }
/* A road opened from the map is scrolled to with a little air above it. */
.road-row { scroll-margin-top: 10px; }

/* The stills that show without a tap. A phone shows two; wider screens three. */
.cam-strip { margin-top: 18px; }
.cam-strip > .cam:nth-child(n+3) { display: none; }

/* weather and snow: Truckee beside the summit ------------------------------- */
.now { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.now thead th { width: 6.4rem; padding: 0 0 7px; border-bottom: 1px solid var(--rule); vertical-align: baseline; text-align: right; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--fg-2); }
.now thead th.now-title { width: auto; text-align: left; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: var(--fg); }
.now tbody th, .now td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.now tbody th { text-align: left; font-size: 15px; font-weight: 400; color: var(--fg-2); }
.now td { padding-left: 8px; text-align: right; font-size: 16px; }
/* One resort: a single, wider value column. */
.now--one thead th:not(.now-title) { width: 11rem; }
/* The lake's values are short and its labels long, so its column is narrower. */
#lake-table thead th:not(.now-title) { width: 7.5rem; }

.rows { display: grid; }
.rows > li { padding: 9px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }

/* cameras */
.cam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
/* A still is a button: tap it and it takes the full width, tap again and it goes back. */
.cam-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; }
.cam--big { grid-column: 1 / -1; }
.cam--big .cam-zoom { cursor: zoom-out; }
/* Caltrans stills are 320 by 260. `height: auto` lets the ratio apply to an <img> that carries a height attribute. */
.cam img, .cam-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 16 / 13; object-fit: cover; border-radius: 3px; background: var(--tint); }
.cam-placeholder { display: grid; place-items: center; padding: 8px; color: var(--fg-3); font-size: 13px; text-align: center; }
.cam figcaption { margin-top: 6px; font-size: 13px; line-height: 1.35; }
.cam-name { display: block; font-weight: 600; }
.cam-meta { color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* forecast */
.period { display: grid; grid-template-columns: 7.5em 3em minmax(0, 1fr); gap: 0 12px; align-items: baseline; font-size: 15px; }
.period-name { font-weight: 600; }
.period--night .period-name { font-weight: 400; color: var(--fg-2); }
.period-temp { text-align: right; font-variant-numeric: tabular-nums; }
.period-short { min-width: 0; color: var(--fg-2); }
.period-short small { font-size: inherit; color: var(--fg-3); white-space: nowrap; }

/* snow stations */
.snow-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.snow-table th, .snow-table td { padding: 8px 0 8px 8px; border-top: 1px solid var(--line); text-align: right; vertical-align: baseline; }
.snow-table thead th { padding-top: 9px; padding-bottom: 6px; border-top: 0; font-size: 13px; font-weight: 400; color: var(--fg-3); }
.snow-table th:first-child { padding-left: 0; text-align: left; }
.snow-table th[scope="row"] { font-weight: 600; }
.snow-table th[scope="row"] small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--fg-3); white-space: nowrap; }
.delta.up { color: var(--ok); }

/* A cell that is a status (the air index, the avalanche danger) takes its colour. */
.now td[class^="tone--"] { font-weight: 600; }
.now td.tone--ok { color: var(--ok); }
.now td.tone--warn { color: var(--warn); }
.now td.tone--bad { color: var(--bad); }
.now td.tone--crit { color: var(--crit); }

/* avalanche: the center's travel advice, as the center words it */
.advice { margin: 16px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.advice-label { display: block; margin-bottom: 2px; font-size: 13px; color: var(--fg-3); }

/* fires: one row each. Its name over where it is, on the left; its size, in
   the colour that size takes, over how contained it is, on the right. */
.fires > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fire-name { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.fire-size { font-size: 17px; font-weight: 700; line-height: 1.3; text-align: right; white-space: nowrap; }
.fire-where, .fire-held { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--fg-2); text-wrap: pretty; }
.fire-held { text-align: right; white-space: nowrap; }
.fire--warn .fire-size { color: var(--warn); }
.fire--bad .fire-size { color: var(--bad); }
.fire--crit .fire-size { color: var(--crit); }
/* A prescribed burn is not a status. */
.fire--burn .fire-size { font-weight: 600; }
/* In place of the list when there is nothing to list: the answer itself. */
.fire-none { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--fg-3); }
.fire-none[data-state="ok"] { color: var(--ok); }
.fire-none[data-state="down"] { color: var(--bad); }

/* sponsors: logo, name and one line, in the same row language as the rest ---- */
.sponsors > li { border-bottom: 1px solid var(--line); }
.sp { display: flex; align-items: center; gap: 14px; padding: 13px 0; color: inherit; text-decoration: none; }
/* The logo column only exists when a sponsor has a logo, and then every row
   keeps it, so names line up down the list. */
.sp-logo { flex: none; width: 64px; height: 32px; }
.sp-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.sp-text { flex: 1; min-width: 0; }
.sp-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.sp-line { display: block; margin-top: 1px; font-size: 15px; line-height: 1.4; color: var(--fg-2); overflow-wrap: anywhere; }
.sp:hover .sp-name { text-decoration: underline; text-decoration-color: var(--fg-3); text-underline-offset: 3px; }

.foot { margin-top: 28px; }

/* wider screens: same structure, a little more air -------------------------- */
@media (min-width: 600px) {
  body { padding-block: 22px 64px; }
  .alerts { margin-top: 20px; }
  .sec { margin-top: 44px; }
  .sec--first { margin-top: 26px; }
  #app[data-page="home"] #board { margin-top: 26px; }
  .back { font-size: 15px; }
  .fire-name, .fire-size { font-size: 18px; }
  .fire-where, .fire-held { font-size: 15px; }
  /* The section's name beside its answer, like every other row on the site. */
  .line { grid-template-columns: 8.5rem minmax(0, 1fr) 12px; align-items: baseline; padding: 15px 0 16px; }
  .line-name { font-size: 15px; }
  .line-say { grid-column: 2; margin-top: 0; font-size: 20px; }
  .line--out .line-say { font-size: 17px; }
  .line::after { grid-column: 3; grid-row: 1; align-self: center; }
  .line--out .ext { grid-column: 3; grid-row: 1; }
  .road-row > summary { padding: 13px 0; }
  .road-id { font-size: 19px; }
  .road-name { font-size: 16px; }
  .road-status { font-size: 18px; }
  .now thead th { width: 9rem; }
  .cam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cam-strip > .cam:nth-child(n+3) { display: block; }
}
