/* Weather companion -- layout and components.

   Colours, typefaces and the backdrop are in theme.css; this file only reads
   its tokens, so re-branding never means editing anything here.

   Author: laffiesphere. */

:root {
  /* The one control colour color-scheme does not set: a ticked checkbox would
     otherwise be the browser's own blue. */
  accent-color: var(--accent);
  /* Width of the column everything sits in. */
  --column: 820px;
  --gutter: 1rem;
  /* Height of the mascot; it is a quarter wider than tall, growing leftwards. */
  --mascot-size: clamp(104px, 30vw, 170px);
}

* { box-sizing: border-box; }

/* `hidden` must beat any author `display:` rule on the same element. */
[hidden] { display: none !important; }

/* Off the screen but still in the accessibility tree, for the word behind an
   icon. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  padding: 0 var(--gutter) 3rem;
  background: transparent; /* the backdrop is the background */
  color: var(--text);
  font: 16px/1.5 var(--font-body);
  /* The mascot flies partly outside the index panel; it must never be what
     makes a phone page scroll sideways. */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

a { color: var(--link); }

.site-header, main, .settings, .site-footer, .skeleton, .load-notice, .error {
  max-width: var(--column);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Loading ---------- */

/* Across the very top of the window, above everything including the map. */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 2000;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transition: opacity 260ms ease;
}
.progress .fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--highlight), var(--accent));
  border-radius: 0 3px 3px 0;
  /* Slower on the way up than on the way out: the crawl should look like
     progress, the finish like a snap. */
  transition: width 320ms ease-out;
}
.progress:not(.is-busy) .fill { transition: width 160ms ease-in; }
.progress:not(.is-busy) { opacity: 0; }

/* Over a map, in the same place every time, so the eye learns where to look. */
.map-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 900;
  background: color-mix(in srgb, #000 35%, transparent);
  border-radius: 0 0 var(--radius-small) var(--radius-small);
  overflow: hidden;
  transition: opacity 260ms ease;
}
.map-progress .fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 240ms ease-out;
}
.map-progress:not(.is-busy) { opacity: 0; }

/* The page's own shape, greyed, until the first payload arrives. */
.skeleton .sk-card {
  background: var(--card);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.skeleton .sk-row { display: flex; align-items: center; gap: 1.1rem; }
.skeleton .sk-lines { flex: 1; display: grid; gap: 0.55rem; }

.skeleton .sk-score,
.skeleton .sk-lines i,
.skeleton .sk-strip,
.skeleton .sk-now span {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 8%, transparent) 25%,
    color-mix(in srgb, var(--text) 18%, transparent) 45%,
    color-mix(in srgb, var(--text) 8%, transparent) 65%
  );
  background-size: 300% 100%;
  animation: sk-shimmer 1.5s ease-in-out infinite;
}

.skeleton .sk-score { width: 5.5rem; height: 4.2rem; border-radius: 12px; }
.skeleton .sk-lines i { height: 1.35rem; }
.skeleton .sk-lines i.short { width: 55%; height: 1rem; }
.skeleton .sk-strip { height: 170px; border-radius: 10px; }
.skeleton .sk-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.9rem 1rem; }
.skeleton .sk-now span { height: 2.6rem; }

@keyframes sk-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton .sk-score,
  .skeleton .sk-lines i,
  .skeleton .sk-strip,
  .skeleton .sk-now span { animation: none; }
  .progress .fill, .map-progress .fill { transition: none; }
}

/* ---------- Top bar ---------- */

/* The pages of the site, the language, and the event, always within reach.
   Frosted like the cards and stuck to the top of the window. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--backdrop-base) 62%, transparent);
  border-bottom: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* On a phone: the event and the language on one row, the pages on a row of
   their own that scrolls sideways if it has to. */
.topbar-inner {
  max-width: var(--column);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'brand lang'
    'nav nav';
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.55rem 0 0.5rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 1.45rem;
  height: 1.45rem;
}
.brand-name { color: var(--text-strong); white-space: nowrap; }
.brand-name b { color: var(--accent); font-weight: 700; }

.site-nav {
  grid-area: nav;
  display: flex;
  gap: 0.3rem;
  margin-top: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  /* Let the row bleed to the screen edge while it scrolls. */
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 0.1rem;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  flex: 0 0 auto;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.site-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.site-nav a.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.lang-switch { grid-area: lang; }
/* The right-hand end of the bar: the Ko-fi button, then the flags. */
.topbar-end { grid-area: lang; display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.topbar-end > [hidden] { display: none; }

/* Light or dark (static/theme.js): a round button showing what a click
   turns it into, the sun by night and the moon by day. */
.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.theme-btn:hover { border-color: var(--accent); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .theme-moon { display: none; fill: currentColor; stroke: none; }
:root[data-theme='light'] .theme-btn .theme-sun { display: none; }
:root[data-theme='light'] .theme-btn .theme-moon { display: block; }
/* Only while switching: the colours turn instead of jumping. */
:root.theme-turning body,
:root.theme-turning .card,
:root.theme-turning .topbar { transition: background-color 450ms ease, color 450ms ease, border-color 450ms ease; }

/* Support the project: styled like Ko-fi's own button (its coral, a white
   cup with a heart), a plain link to the page in site.tip_url. */
.kofi {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem 0.3rem 0.6rem;
  border-radius: 999px;
  background: #ff5e5b;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgb(0 0 0 / 25%);
  transition: filter 150ms ease, transform 150ms ease;
}
.kofi:hover { filter: brightness(1.08); transform: translateY(-1px); }
.kofi:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.kofi-cup { width: 1.25rem; height: 1.25rem; flex: none; }
.kofi-short { display: none; }
@media (max-width: 520px) {
  .kofi-long { display: none; }
  .kofi-short { display: inline; }
}

@media (min-width: 760px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand nav lang';
    column-gap: 1.25rem;
    padding: 0.6rem 0;
  }
  .site-nav { margin: 0; padding: 0; overflow: visible; }
}

/* ---------- Title ---------- */

/* The column is a size container so the title can be sized to it: it is one
   line on every screen, getting smaller rather than wrapping. */
.site-header {
  container-type: inline-size;
  padding: 1.6rem 0 1.2rem;
}

.place {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.place svg { width: 0.95rem; height: 0.95rem; fill: currentColor; flex: none; }

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  /* Sized against the column: about one line's worth of a 26-letter title at
     every width, capped where it would start to shout. */
  font-size: clamp(1.15rem, 7.4cqi, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Without container units the title falls back to the window. */
@supports not (font-size: 1cqi) {
  .title { font-size: clamp(1.15rem, 6.8vw, 2.7rem); }
}

.subtitle { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }
.stale { color: var(--notice); }

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--glass-rim), var(--shadow);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

/* A heading with an optional line of context beside it -- the station and the
   time it measured at, the radar's age -- written as a sentence, not strung
   together with separators. */
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1rem;
  margin-bottom: 0.9rem;
}

.card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.25;
  color: var(--text);
}

.card-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.card-note:empty { display: none; }

/* ---------- Warnings ---------- */

.warnings:empty { display: none; }

.warning {
  background: var(--card);
  border-radius: var(--radius-small);
  border: 1px solid var(--glass-edge);
  padding: 0.85rem 1rem;
}

.warning-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.65rem; }
.warning h3 { margin: 0; font-size: 1rem; }

/* The severity badge: the level's own colour, an icon and the word. It carries
   what the coloured left edge used to, without a stripe down every card. */
.wbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  padding: 0.18rem 0.55rem 0.18rem 0.35rem;
  border-radius: 999px;
  background: var(--level, #fb8c00);
  color: var(--level-ink, #10161d);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.wbadge-icon { display: inline-grid; width: 1.05rem; height: 1.05rem; }
.wbadge-icon svg { width: 100%; height: 100%; }
.wbadge.is-info {
  background: color-mix(in srgb, var(--info) 22%, transparent);
  color: var(--info);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 55%, transparent);
}
.wbadge.is-advance {
  color: #fff;
  background-color: color-mix(in srgb, #e53935 35%, transparent);
  background-image: repeating-linear-gradient(45deg, rgb(229 57 53 / 75%) 0 4px, transparent 4px 9px);
  box-shadow: inset 0 0 0 1px #e53935;
  text-shadow: 0 1px 2px rgb(0 0 0 / 60%);
}
.warning .when {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.2rem 0 0.45rem;
}
.warning p { margin: 0.35rem 0 0; font-size: 0.9rem; }
.warning .official { font-weight: 700; }
.warning .instruction { color: var(--muted); }

/* ---------- Fursuiting index (the panel takes the score colour) ---------- */

/* Solid, not glass: the colour IS the answer. Above the cards that follow it,
   so the mascot can fly over their top edge instead of under it. */
.fsi-card {
  z-index: 2;
  /* The part of the mascot above the panel sits in this gap, not on the title. */
  margin-top: calc(var(--mascot-size) * 0.32);
  background: var(--fsi, var(--card-solid));
  border-color: color-mix(in srgb, var(--fsi, #fff) 70%, #000);
  color: var(--ink, var(--text));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 320ms ease, border-color 320ms ease;
}

/* Everything inside inherits the contrast ink chosen in JS. */
.fsi-card h2,
.fsi-card .subscores-head,
.fsi-card .explain summary { color: var(--ink, var(--text)); }

.fsi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
  /* Keeps the heading and badge clear of the mascot on the right. */
  padding-right: calc(var(--mascot-size) * 0.95);
}
.fsi-card h2 { opacity: 0.85; }

/* Which hour the panel is about, and whether that is a reading or a forecast.
   Two different shapes, not just two different words: a filled dot for a
   measurement, a hollow one inside a dashed outline for a forecast. */
.source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.65rem 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.source:empty { display: none; }
.source::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: none;
}
.source.is-measured { background: color-mix(in srgb, var(--ink, #000) 15%, transparent); }
.source.is-measured::before { background: currentColor; }
.source.is-forecast { border: 1.5px dashed currentColor; }
.source.is-forecast::before { border: 2px solid currentColor; }

.back-to-now {
  border: 1.5px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.16rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.back-to-now:hover { background: color-mix(in srgb, var(--ink, #000) 12%, transparent); }
.back-to-now:focus-visible { outline: 2px solid var(--ink, var(--accent)); outline-offset: 2px; }

/* Like the info display: the band name and the advice beside the number.
   Both keep clear of the mascot in the top right: here it hangs down past
   the first line of advice. */
.fsi-top {
  display: flex;
  align-items: center;
  gap: 0.6rem 1.4rem;
  min-height: calc(var(--mascot-size) * 0.45);
}

.fsi-score { display: flex; align-items: baseline; font-family: var(--font-display); }
.fsi-score .value { font-size: clamp(4.2rem, 6vw, 5.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fsi-score .max { font-size: 1.2rem; opacity: 0.7; margin-left: 0.15rem; }

.fsi-text { flex: 1 1 auto; min-width: 0; margin-right: calc(var(--mascot-size) * 0.95); container-type: inline-size; }
/* One word that cannot wrap ("Ausgezeichnet"): it shrinks to the room beside
   the number rather than running into the mascot. */
.fsi-label { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-size: min(clamp(1.6rem, 2.4vw, 2.2rem), 13cqi); font-weight: 600; line-height: 1.1; }
.fsi-advice { margin: 0.2rem 0 0; font-size: 0.98rem; font-weight: 600; opacity: 0.9; }

/* What took points off the hour on show: one quiet line of chips. */
.fsi-costs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}
.fsi-costs .k {
  margin-right: 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}
.fsi-costs .cost {
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink, #000) 14%, transparent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fsi-costs .cost small { font-size: 0.78rem; font-weight: 600; opacity: 0.85; }

/* The weather of that hour, on the page's own plain ground inside the tinted
   card: the readings keep their colours whatever the score is. */
.fsi-cond {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-small, 12px);
  background: var(--card-solid);
  color: var(--text);
  border: 1px solid color-mix(in srgb, #000 22%, transparent);
}
.fsi-cond .venue { margin-bottom: 0.8rem; }

/* Compact sub-scores: label, bar, number on one line each. */
.subscores-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.subscores { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.subscores li { display: grid; grid-template-columns: 8.5rem 1fr 2.2rem; align-items: center; gap: 0.6rem; font-size: 0.86rem; }
.subscores .name { font-weight: 600; opacity: 0.9; }
.subscores .bar { background: color-mix(in srgb, var(--ink, #000) 18%, transparent); border-radius: 99px; height: 7px; overflow: hidden; }
.subscores .fill { display: block; height: 100%; border-radius: 99px; background: currentColor; opacity: 0.85; transition: width 320ms ease; }
.subscores .num { text-align: right; font-weight: 700; opacity: 0.9; }

.explain { margin-top: 0.9rem; font-size: 0.86rem; }
.explain summary { cursor: pointer; font-weight: 800; opacity: 0.85; }
.explain p { margin: 0.5rem 0 0; opacity: 0.9; }

/* ---------- The weights, as a ring ---------- */

/* One ink at four strengths: the panel around this is tinted with the current
   score, so any fixed set of hues would be readable on some scores and not on
   others. */
.weights .s1 { --step: 90%; }
.weights .s2 { --step: 66%; }
.weights .s3 { --step: 45%; }
.weights .s4 { --step: 30%; }

.weights { margin: 0.9rem 0 0; padding: 0; }

.weights figcaption {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.weights-body { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.1rem; margin-top: 0.6rem; }

.weights-pie { flex: 0 0 auto; width: 116px; }
.weights-pie svg { display: block; width: 100%; height: auto; }
.weights .seg { fill: none; stroke: color-mix(in srgb, var(--ink, var(--text)) var(--step), transparent); }

.weights-legend {
  flex: 1 1 11rem;
  max-width: 20rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.weights-legend li { display: grid; grid-template-columns: 0.7rem 1fr auto; align-items: center; gap: 0.55rem; }
.weights-legend .swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink, var(--text)) var(--step), transparent);
}
.weights-legend .pct { font-weight: 800; }

.weights-note { font-size: 0.8rem; opacity: 0.8; }

/* ---------- The mascot ---------- */

/* A still picture (or GIF) in the panel's top right corner, a third of it
   above the edge (the panel leaves room for that, see .fsi-card). The heading
   and the score keep clear of it (.fsi-head, .fsi-top). Anchored on the
   right, so a wider drawing grows leftwards. Never takes a click. */
.mascot {
  position: absolute;
  top: calc(var(--mascot-size) * -0.32);
  right: 0.5rem;
  width: calc(var(--mascot-size) * 1.25);
  height: var(--mascot-size);
  z-index: 5;
  pointer-events: none;
}
.mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  user-select: none;
  transition: opacity 180ms ease;
}
/* Changing mood: the old picture fades out and the new one in. No movement. */
.mascot img.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .mascot img { transition: none; }
}

/* ---------- Hourly timeline ---------- */

.timeline {
  /* Row metrics for the warning track, shared with the padding calc below so
     the chart always reserves exactly as much space as it drew. */
  --warn-row-h: 1.25rem;
  --warn-gap: 3px;
  --warn-top: 0.35rem;
  --warn-space: calc(
    var(--warn-top) + var(--warn-rows, 1) * var(--warn-row-h) +
      (var(--warn-rows, 1) - 1) * var(--warn-gap) + 0.4rem
  );
  position: relative;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  /* content-box, deliberately: `height` is the height of the BARS, and the
     padding for hour labels, icons and warning rows is added around it. */
  box-sizing: content-box;
  height: 150px;
  overflow-x: auto;
  padding-bottom: 1.5rem;
}

.timeline .hour {
  flex: 1 1 22px;
  /* Keep a near-empty day (a few forecast hours) from stretching one bar
     across the whole card. */
  max-width: 48px;
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.timeline .hour > .fsi-bar {
  width: 100%;
  background: var(--c);
  border-radius: 5px 5px 0 0;
  min-height: 3px;
}

/* An hour the forecast never reached: an empty outline, so it reads as "no
   reading" rather than as a score of nearly zero. */
.timeline .hour.is-empty { cursor: default; }
.timeline .hour.is-empty > .fsi-bar {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 5px,
    color-mix(in srgb, var(--text) 7%, transparent) 5px 10px
  );
  border: 1px dashed color-mix(in srgb, var(--text) 18%, transparent);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.timeline.is-pickable .hour.is-empty:hover { background: none; }

/* Hours that have gone by stay on the chart for context, drained of colour so
   the eye lands on what is still ahead. */
.timeline .hour.is-past > .fsi-bar { filter: grayscale(1); opacity: 0.4; }
.timeline .hour.is-past .wx { filter: grayscale(1); opacity: 0.35; }
.timeline .hour.is-past::after { opacity: 0.45; }

/* Where we are right now, at the current minute rather than the hour edge. */
.timeline .now-line {
  position: absolute;
  top: -0.3rem;
  bottom: -0.3rem;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--now);
  pointer-events: none;
  z-index: 4;
}
.timeline .now-line::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--now);
}

/* Any bar can be clicked for the conditions behind it, so the whole column
   highlights -- the bar itself is often only a few pixels tall. */
.timeline.is-pickable .hour { cursor: pointer; border-radius: 5px; }
.timeline.is-pickable .hour:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.timeline .hour:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.timeline .hour.is-selected {
  background: color-mix(in srgb, var(--text) 16%, transparent);
  /* The page's ink, not the bar's colour: a green outline round a green bar
     was invisible. */
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.timeline .empty { color: var(--muted); font-size: 0.85rem; align-self: center; }

.timeline .hour::after {
  content: attr(data-label);
  position: absolute;
  bottom: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

/* The strips sit on their own darker inset, so every band colour stays
   distinguishable whatever the backdrop is doing behind the card. */
.forecast-card .timeline,
.day .day-strip {
  background: var(--inset);
  border-radius: var(--radius-small);
}
.forecast-card .timeline { height: 180px; padding: 0.6rem 0.55rem 1.5rem; }

.legend { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; }
.legend .item { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend .item.is-temp .line {
  width: 1.2rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5aa9ff, #ffd166, #ff7b54);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 45%);
}

/* What set each hour (app.js, renderParts): a row of cells per part, sized
   exactly like the bars above (.timeline .hour: flex 1 1 22px, max 48px,
   3px apart, the strip's 0.55rem side padding), so a cell sits under its
   bar. The ring marks the part that cost that hour the most. */
.parts-grid { margin: 0.9rem 0 0; display: grid; gap: 0.55rem; }
.parts-grid[hidden] { display: none; }
.parts-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin: 0;
  font-size: 0.85rem;
}
.parts-head b { color: var(--text-strong); }
/* Folded behind a button (2026-11-28): the rows open on request. */
.parts-head { align-items: center; }
.parts-key[hidden] { display: none; }
.parts-chev {
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
  transition: transform 160ms ease;
}
.parts-toggle[aria-expanded='true'] .parts-chev { transform: translateY(20%) rotate(-135deg); }
.parts-body { display: grid; gap: 0.55rem; }
.parts-body[hidden] { display: none; }
.parts-key { color: var(--muted); font-size: 0.78rem; }
.parts-key::before {
  content: '';
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  vertical-align: -0.08rem;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--text-strong);
}
.parts-row { display: grid; gap: 0.2rem; }
.parts-name {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0 0.55rem;
  font-size: 0.8rem;
  color: var(--text);
}
.parts-name small { color: var(--muted); }
.parts-count { color: var(--muted); font-size: 0.76rem; }
.parts-cells {
  display: flex;
  gap: 3px;
  padding: 3px 0.55rem;
  border-radius: var(--radius-small);
  background: var(--inset);
}
.parts-cells .cell {
  flex: 1 1 22px;
  max-width: 48px;
  height: 0.95rem;
  border-radius: 3px;
  background: var(--c, transparent);
  opacity: 0.88;
  cursor: pointer;
}
.parts-cells .cell.is-empty { background: none; box-shadow: inset 0 0 0 1px var(--glass-edge); opacity: 1; cursor: default; }
.parts-cells .cell.is-past { filter: grayscale(1); opacity: 0.4; }
.parts-cells .cell.is-worst { opacity: 1; box-shadow: inset 0 0 0 2px var(--text-strong); }
.parts-cells .cell.is-selected { outline: 2px solid var(--text); outline-offset: 1px; opacity: 1; }
.parts-cells .cell:not(.is-empty):hover { opacity: 1; filter: brightness(1.12); }

/* The temperature over the bars (chart.js, drawTempLine): a thin coloured
   line with a dark halo, so it reads over every band colour. */
.timeline .temp-line { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; overflow: visible; }
.timeline .temp-line path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.timeline .temp-line .halo { stroke: rgb(6 8 12 / 62%); stroke-width: 5; }
.timeline .temp-line .stroke { stroke-width: 2.2; }
.timeline .temp-tag {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, calc(-100% - 6px));
  padding: 0 0.3rem;
  border-radius: 6px;
  background: rgb(6 8 12 / 72%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.timeline .temp-tag.is-low { transform: translate(-50%, 6px); }
.chip { width: 11px; height: 11px; border-radius: 3px; background: var(--c); display: inline-block; flex: none; }

/* ---------- Current conditions ---------- */

.now { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.9rem 1rem; }
/* German compounds run long -- "Feuchtkugeltemperatur" is one 21-letter word in
   an 8rem column. The label carries a soft hyphen; this is the backstop. */
.now .item .k { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); overflow-wrap: break-word; }
.now .item .v { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }

/* Sits in the run of the label rather than beside it, so a long German
   compound still wraps where it wants to and the (i) follows the last line. */
.now .item .k .info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  padding: 0;
  margin-left: 0.1em;
  vertical-align: middle;
  position: relative;
  top: -0.09em;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.95em;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  opacity: 0.8;
}
.now .item .k .info:hover { opacity: 1; }
.now .item .k .info[aria-expanded='true'] {
  background: var(--ink, var(--muted));
  color: var(--fsi, var(--card-solid));
  opacity: 1;
}

/* Full width under the figures: in an 8rem column a definition would come out
   three words to the line. */
.stat-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border-left: 3px solid currentColor;
  background: color-mix(in srgb, var(--ink, #000) 14%, transparent);
  font-size: 0.86rem;
  line-height: 1.45;
}

.wind-arrow {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.35em;
  fill: var(--link);
  transition: transform 320ms ease;
}


/* Your own sensors at the venue, set apart above the station's figures. */
.venue {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border-left: 4px solid var(--link);
  background: color-mix(in srgb, var(--link) 8%, transparent);
}
.venue-where { margin: 0 0 0.5rem; font-size: 0.86rem; font-weight: 700; color: var(--text); }

/* ---------- Daily rows ---------- */

/* One line per day, read across like a lab's sample rack: the day, its sky,
   its index as one coloured bar, rain, and its temperatures on a scale every
   row shares. A row opens into the full hourly chart. */
.days-card .card-head { margin-bottom: 0.35rem; }
.days { display: grid; gap: 0.45rem; }

.day {
  min-width: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 3.5%, transparent);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.day.is-open {
  background: color-mix(in srgb, var(--tint) 13%, transparent);
  border-color: color-mix(in srgb, var(--tint-line) 45%, transparent);
}

.day-row {
  display: grid;
  width: 100%;
  grid-template-columns: 7rem 1.9rem minmax(0, 1fr) 3.9rem minmax(8.5rem, 11rem) 0.8rem;
  grid-template-areas: 'when sky pill rain temps chev';
  align-items: center;
  gap: 0.35rem 0.8rem;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: 0;
  border-radius: 14px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.day-row:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.day-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.day .when { grid-area: when; display: grid; min-width: 0; line-height: 1.15; }
.day .when .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day .when .name .short { display: none; }
.day .when .date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.day .sky { grid-area: sky; font-size: 1.45rem; line-height: 1; text-align: center; }
.day .day-pill { grid-area: pill; height: 14px; }
.day .rain {
  grid-area: rain;
  justify-self: end;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--r, transparent);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}
.day .rain.is-wet { color: var(--ink-dark); }

.temp-range {
  grid-area: temps;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
}
.temp-range .lo { color: var(--muted); text-align: right; }
.temp-range .hi { color: var(--text-strong); }
.temp-range .track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.temp-range .track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }

.day .chevron {
  grid-area: chev;
  justify-self: end;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 180ms ease;
}
.day.is-open .chevron { transform: translateY(25%) rotate(-135deg); }

.day-panel { padding: 0.15rem 0.9rem 0.85rem; }
.day-panel .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.day .day-strip { height: 130px; padding: 0.5rem 0.5rem 1.35rem; }

.day .hilo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.2rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.7rem;
}
.day .hilo strong { color: var(--text); }
.day .hilo .good strong { color: var(--good-text); }
.day .hilo .avoid strong { color: var(--avoid-text); }
.day .hilo .none { color: var(--muted); }

@media (max-width: 640px) {
  .day .when .name .long { display: none; }
  .day .when .name .short { display: inline; }
  /* The day of the event ("Day 2", "Departure") is left out: the date is
     enough on a phone, and the travel days are quieter anyway. */
  .day .when .role { display: none; }
  .day .when .name { font-size: 1rem; }
  .day-row {
    grid-template-columns: 5.2rem 1.7rem minmax(4rem, 1fr) 3.2rem 0.7rem;
    grid-template-areas:
      'when sky temps temps chev'
      'pill pill pill rain rain';
    gap: 0.45rem 0.6rem;
    padding: 0.6rem 0.75rem;
  }
  .temp-range { grid-template-columns: 1.8rem minmax(0, 1fr) 1.8rem; }
  .day .rain { font-size: 0.74rem; }
  .day-panel { padding: 0.15rem 0.7rem 0.75rem; }
}

/* ---------- The one-line bar (day rows; the widget has its own copy) ---------- */

.pill {
  position: relative;
  display: block;
  min-width: 0;
  border-radius: 999px;
  overflow: hidden;
  /* An hour with no forecast shows the track: hatched, not a colour. */
  background:
    repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in srgb, var(--text) 9%, transparent) 4px 8px),
    var(--inset);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent);
}
.pill-fill { position: absolute; inset: 0; }
.pill-past { position: absolute; top: 0; bottom: 0; left: 0; background: color-mix(in srgb, var(--ink-dark) 64%, transparent); }
.pill-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--now); }
.pill-margin {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(-45deg, var(--hatch-dark) 0 3px, var(--hatch-light) 3px 6px);
}
.pill-range { position: absolute; top: 0; bottom: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--text-strong); }

/* ---------- Maps ---------- */

.map { height: 380px; border-radius: var(--radius-small); border: 1px solid var(--glass-edge); background: var(--backdrop-base); }
/* The radar and model pages are about the map, so it takes the screen. */
.map-card .map { height: min(68vh, 620px); min-height: 320px; }
/* The server cuts the model field to 2.3 wide for every 1 tall (MODEL_ASPECT in
   app/main.py), so the map takes that shape and the field fills it.
   The width is pinned: with only a ratio and a minimum height, a phone widened
   the map past the edge of its card to keep the shape. */
.map-card #model-map { width: 100%; height: auto; aspect-ratio: 2.3 / 1; min-height: 280px; }
/* Only added on touch screens, where one-finger dragging is off; see addMapHint. */
.map-hint { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); }
.leaflet-container { border-radius: var(--radius-small); font: inherit; background: var(--map-bg); }
.leaflet-container .leaflet-control-attribution {
  background: var(--map-credit-bg);
  color: var(--muted);
  font-size: 0.68rem;
}
.leaflet-container .leaflet-control-attribution a { color: var(--link); }
/* The credits under the map (static/mapcredit.js): Leaflet's attribution
   control taken out of the map's corner, one quiet line, the full list a
   link away. */
.map-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
.map-credit .leaflet-control-attribution {
  float: none;
  clear: none;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  box-shadow: none;
}
.map-credit .leaflet-control-attribution:empty { display: none; }
.map-credit-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.66rem; }
.map-credit a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.map-credit a:hover { color: var(--text); }
.map-credit-more { margin-left: auto; }

/* A light basemap made to sit in a dark page. Only the basemap: the radar and
   the model fields on top keep their own colours. The sepia and hue turn give
   the grey a faint navy cast to match the page. */
.basemap.is-inverted { filter: var(--basemap-filter, invert(1) grayscale(1) brightness(0.85)); }
/* Europe's countries under every map (static/europe.js). */
.europe-land { fill: var(--map-land, #191919); stroke: var(--map-border, #4a4f57); }
/* Cities outside Germany: a dot and a name, like basemap.de's. */
.fw-city { display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; transform: translate(-3px, -50%); }
.fw-city i { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--map-city, #b8bec7); }
.fw-city span { font-size: 0.72rem; font-weight: 600; color: var(--map-city, #b8bec7); text-shadow: 0 0 3px var(--map-halo, #000), 0 0 2px var(--map-halo, #000); }
.fw-city.is-capital span { font-weight: 800; }

.radar-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0.65rem 0 0; font-size: 0.88rem; color: var(--muted); }
.radar-controls label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.radar-controls label[hidden], .radar-legend[hidden] { display: none; }
/* OPERA's colours are ours (the rain ramp of the model maps, square-rooted
   from 0.08 to 10 mm/h); DWD's and NOAA's pictures carry their own. */
.radar-legend { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; }
.radar-ramp { display: inline-block; width: 7rem; height: 0.55rem; border-radius: 999px; background: linear-gradient(90deg, rgb(90 170 255), rgb(60 225 255) 35%, rgb(255 214 51) 70%, rgb(241 60 163)); }
.radar-none { margin-top: 0.5rem; }

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

/* Quiet but there: small muted type, plain links, a hairline above. */
.site-footer {
  margin-top: clamp(2rem, 6vh, 3.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--glass-edge);
  font-size: 0.78rem;
  color: var(--muted);
}
.site-footer p { margin: 0.35rem 0; }

/* Three columns -- who, where to go, where the data is from -- folding to two
   and then one on a phone. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.3fr;
  gap: 1rem 2rem;
  padding: 0.6rem 0 0.4rem;
}
.footer-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}
.footer-name b { color: var(--accent); font-weight: 600; }
.footer-brand p { margin: 0 0 0.35rem; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.3rem 1.6rem;
  align-content: start;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-data a { color: inherit; }
.footer-data p { margin: 0 0 0.35rem; }
.site-footer .footer-meta {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.site-footer .footer-meta:empty { display: none; }
/* This forecast's own sources, folded (index.html). */
.footer-sources summary { cursor: pointer; color: var(--muted); width: fit-content; }
.footer-sources summary:hover { color: var(--text); }
.footer-sources[open] summary { margin-bottom: 0.45rem; }
.disclaimer {
  margin-top: 0.3rem;
  padding-top: 0.7rem;
  text-align: center;
  font-size: 0.72rem;
  opacity: 0.8;
}
.docs .site-footer { text-align: center; }
.docs .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.3rem; margin: 0.8rem 0; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0.8rem; }
}

.error {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--highlight) 22%, var(--card-solid));
  border: 1px solid var(--highlight);
}

/* ---------- Busy notice ---------- */

/* Amber, not pink: nothing is broken, the site is simply carrying a crowd. */
.load-notice {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--notice);
  background: color-mix(in srgb, var(--notice) 14%, var(--card-solid));
}

.load-notice.crowded {
  border-color: #f97316;
  background: color-mix(in srgb, #f97316 18%, var(--card-solid));
}

/* ---------- Language / unit toggles ---------- */

.lang-switch, .unit-switch span[role="group"] {
  display: inline-flex;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.lang-switch button, .unit-switch button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.32rem 0.75rem;
  cursor: pointer;
}
.lang-switch button:hover, .unit-switch button:hover { color: var(--text); }
.lang-switch button.active, .unit-switch button.active { background: var(--accent); color: var(--accent-ink); }
/* The languages as flags: the one in use in full colour on the accent, the
   other dimmed until pointed at. */
.lang-switch button { display: inline-grid; place-items: center; padding: 0.3rem 0.55rem; }
.lang-switch .flag { display: block; width: 1.45rem; height: 0.97rem; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / 30%); }
.lang-switch button:not(.active) .flag { opacity: 0.55; filter: saturate(0.6); transition: opacity 150ms ease, filter 150ms ease; }
.lang-switch button:not(.active):hover .flag { opacity: 1; filter: none; }

/* Units and clock: the footer's first line, without a box of their own. */
.site-footer .settings { margin: 0 0 0.4rem; }

.unit-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0;
}
/* A label and its buttons are one thing and wrap as one. */
.unit-switch .pair { display: inline-flex; align-items: center; gap: 0.45rem; }
.unit-switch .k { color: var(--muted); font-size: 0.82rem; font-weight: 700; }

/* ---------- Allergy picker (model maps page) ---------- */

/* One pill rather than a label beside a menu. The emoji says what the word
   "Allergy" used to, and the species stays on show so the control answers
   "which one is on" without being opened. */
.allergy-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0 0.55rem 0 0.6rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  cursor: pointer;
}
.allergy-switch:hover { border-color: var(--muted); }
.allergy-switch:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.allergy-switch .icon { font-size: 0.95rem; line-height: 1; }
/* The pill is only as wide as the species on show: the text is drawn by a span
   of our own and the select is laid over the whole pill, invisible -- it is
   the only part of a <select> that opens the menu in Chromium. */
.allergy-switch .field { display: inline-block; }
.allergy-switch .sizer {
  display: block;
  white-space: pre;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  padding: 0.25rem 0;
}
.allergy-switch select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.allergy-switch::after {
  content: '▾';
  font-size: 0.7rem;
  line-height: 1;
  color: var(--muted);
}
/* The menu itself is drawn by the browser; its options need telling too. */
.allergy-switch option { background: var(--card-solid); color: var(--text); }

/* ---------- ICON model card ---------- */

.model-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; }

.model-tabs button {
  border: 1px solid var(--glass-edge);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.model-tabs button:hover { color: var(--text); }
.model-tabs button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Which model and the contour lines (2026-11-25): one quiet row under the tabs. */
.map-switches { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: -0.2rem 0 0.7rem; font-size: 0.86rem; color: var(--muted); }
.map-switches label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.map-switches select {
  font: inherit;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  max-width: 100%;
}
.map-switches select option { background: var(--card-solid); color: var(--text); }
.map-switches .k { font-weight: 700; }

/* The picker (2026-11-28, mappick.js; round 2): one line, two buttons that
   open a panel each, the groups in columns like a chart service's menu.
   Compact on purpose: a tool for reading charts, not a menu to browse. */
.model-tabs.mp { display: block; margin-bottom: 0.4rem; }
.mp-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.mp-menu { position: relative; }
.mp .mp-open {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  font: inherit; font-size: 0.8rem; line-height: 1.25; color: var(--text); cursor: pointer;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  border: 1px solid var(--glass-edge); border-radius: 6px;
  padding: 0.22rem 0.55rem;
}
.mp .mp-open:hover, .mp .mp-open[aria-expanded="true"] { border-color: var(--accent); color: var(--text); }
.mp-k { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.mp-open .mp-v { font-weight: 800; }
.mp-km { font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.mp-caret { color: var(--muted); font-size: 0.7rem; }
.mp-single { font-size: 0.78rem; color: var(--muted); }
.mp-panel {
  position: absolute; z-index: 1200; top: calc(100% + 0.3rem); left: 0;
  width: max-content; max-width: min(52rem, calc(100vw - 2rem));
  max-height: min(70vh, 34rem); overflow: auto;
  background: var(--card-solid); border: 1px solid var(--glass-edge); border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  padding: 0.45rem 0.55rem 0.55rem;
}
.mp-cols { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; align-items: flex-start; }
.mp-col { min-width: 9rem; }
.mp-head {
  margin: 0.15rem 0 0.2rem; padding-bottom: 0.15rem; border-bottom: 1px solid var(--glass-edge);
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.mp-list { display: flex; flex-direction: column; }
.mp .mp-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  font: inherit; font-size: 0.8rem; line-height: 1.3; text-align: left; white-space: nowrap;
  color: var(--text); background: none; border: 0; border-radius: 4px;
  padding: 0.14rem 0.35rem; cursor: pointer; font-weight: 500; width: 100%;
}
.mp .mp-item:hover, .mp .mp-item:focus-visible { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: none; }
.mp .mp-item.active { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.mp .mp-item.active .mp-km { color: inherit; opacity: 0.8; }
.mp .map-switches.mp-extra { display: inline-flex; margin: 0 0 0 auto; font-size: 0.74rem; }
.mp .map-switches.mp-extra input { margin: 0; }
.model-figure .model-status { margin-top: 0.3rem; font-size: 0.78rem; }
.map-card .model-step { margin-top: 0.4rem; }
.map-card .model-legend { margin-top: 0.4rem; }

/* The map takes the screen (2026-11-28): the card leaves the reading column
   for the window's width, and the map most of its height. */
.page[data-page="maps"] > .map-card {
  width: min(calc(100vw - 2 * var(--gutter)), 1900px);
  margin-left: calc(50% - min(50vw - var(--gutter), 950px));
  box-sizing: border-box;
}
.page[data-page="maps"] .map-card #model-map {
  aspect-ratio: auto;
  height: clamp(340px, calc(100svh - 13rem), 1100px);
}

/* Full screen: the card is the screen; picker on top, hours at the foot. */
.map-card.is-full {
  position: fixed; inset: 0; z-index: 3000;
  width: auto !important; margin: 0 !important; max-width: none;
  border-radius: 0;
  display: flex; flex-direction: column;
  padding: max(0.5rem, env(safe-area-inset-top)) max(0.6rem, env(safe-area-inset-right)) max(0.4rem, env(safe-area-inset-bottom)) max(0.6rem, env(safe-area-inset-left));
  background: var(--card-solid, #111);
  overflow: hidden;
}
.map-card:fullscreen { background: var(--card-solid, #111); }
.map-card.is-full .card-head { margin: 0 0 0.25rem; }
.map-card.is-full .card-head h2 { font-size: 1rem; margin: 0; }
.map-card.is-full .model-figure { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.map-card.is-full .model-figure #model-map,
.map-card.is-full .model-figure #dm-map { flex: 1 1 auto; height: auto !important; aspect-ratio: auto !important; min-height: 0; }
.map-card.is-full .model-step { flex: 0 0 auto; }
.map-card.is-full .model-step .hours { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.map-card.is-full .model-step .hours button { flex: 0 0 2.55rem; }
.map-card.is-full .model-legend { flex: 0 0 auto; margin-top: 0.3rem; gap: 0.25rem; font-size: 0.76rem; }
.map-card.is-full .model-legend .note,
.map-card.is-full .model-legend p { display: none; }
:root.fw-map-full, :root.fw-map-full body { overflow: hidden; }

/* The map's own corner buttons and the value under the pointer. */
.fw-full-btn {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  font-size: 18px; line-height: 1; color: #1b1f2a;
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.fw-full-btn:hover { background: #fff; }
.fw-full-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.fw-tip {
  position: absolute; left: 0; top: 0; z-index: 1000; pointer-events: none;
  display: grid; gap: 0.05rem; max-width: 18rem;
  font: 0.8rem/1.25 var(--font-body); color: #1b1f2a; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.94); border-radius: 6px; padding: 0.25rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); white-space: nowrap;
}
.fw-tip b { font-weight: 800; font-size: 0.86rem; }
.fw-tip small { font-size: 0.7rem; color: #4a5060; }
/* The site's name in the corner of every weather map. */
.leaflet-control.fw-watermark {
  display: inline-flex; align-items: center; gap: 0.3rem; margin: 0 0 6px 8px;
  font: 700 0.92rem/1 var(--font-display, var(--font-body)); color: #fff; opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.5);
  pointer-events: none; user-select: none;
}
.fw-watermark img { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.fw-watermark b { color: #8fc4ff; font-weight: 800; }
.fw-field-canvas { pointer-events: none; }
/* A phone: the panels open over the whole width, one column under the
   other; the map a little taller than wide. */
@media (max-width: 640px) {
  .mp-panel { position: fixed; left: 0.5rem; right: 0.5rem; top: auto; width: auto; max-width: none; max-height: 70vh; }
  .mp-col { min-width: 0; flex: 1 1 100%; }
  .page[data-page="maps"] .map-card #model-map { height: clamp(320px, 125vw, 620px); }
}

.model-figure { position: relative; }

.model-status { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- Model: forecast hours ---------- */

.model-step { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.8rem; }

/* Every hour at once, wrapped into a block: the whole 48 hours is one glance,
   and each cell keeps its place from one visit to the next. */
.model-step .hours {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.55rem, 1fr));
  gap: 3px;
}

.model-step .hours button {
  border: 1px solid var(--glass-edge);
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.24rem 0.1rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.model-step .hours button:hover { color: var(--text); border-color: var(--muted); }
.model-step .hours button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.model-step .play {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}
.model-step .play:hover { border-color: var(--accent); }
.model-step .play.is-playing { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Model: the key ---------- */

.model-legend { margin: 0.9rem 0 0; font-size: 0.84rem; color: var(--text); display: grid; gap: 0.7rem; }
.model-legend .row { display: flex; align-items: flex-start; gap: 0.6rem; }
.model-legend .name { flex: 0 0 7rem; padding-top: 1px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.model-legend .bar { flex: 1; min-width: 0; }

/* The field is drawn in steps, so the key is too: one block per band, over the
   same dark backdrop the map has, because the blocks carry the map's opacity. */
.model-legend .swatches {
  display: flex;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--map-bg);
  border: 1px solid var(--glass-edge);
}
.model-legend .swatches span { flex: 1; min-width: 0; }
.model-legend .swatches span + span { border-left: 1px solid rgb(0 0 0 / 22%); }
.model-legend .scale { display: block; height: 14px; border-radius: 4px; border: 1px solid var(--glass-edge); }

/* Numbers sit on the boundaries between blocks, so they are positioned rather
   than laid out; the two at the ends are pulled inside the bar. */
.model-legend .marks { position: relative; height: 1.15em; margin-top: 0.25rem; }
.model-legend .marks span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--muted);
}
.model-legend .marks span.first { transform: none; }
.model-legend .marks span.last { transform: translateX(-100%); }

/* Cloud eighths are names for the blocks themselves, not for their edges. */
.model-legend .marks.cells { display: flex; }
.model-legend .marks.cells span { position: static; flex: 1; transform: none; text-align: center; }

.model-legend .note { color: var(--muted); font-size: 0.8rem; }
.model-legend .note .arrow { color: var(--text); }

/* ---------- conditions behind one bar, opened by clicking it ---------- */

.hour-detail {
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border-left: 4px solid var(--c, var(--accent));
  background: color-mix(in srgb, #000 20%, transparent);
}

.hour-detail .head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin-bottom: 0.65rem;
}
.hour-detail .when { font-weight: 800; }
.hour-detail .icon { font-size: 1.25rem; line-height: 1; }
.hour-detail .cond { font-size: 0.9rem; opacity: 0.85; }
.hour-detail .score {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--c);
  color: var(--c-ink);
}
.hour-detail .score b { font-weight: 900; }
.hour-detail .close {
  border: 0;
  padding: 0 0.15rem;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
}
.hour-detail .close:hover { opacity: 1; }

.hour-detail .now { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.55rem 1rem; }
.hour-detail .now .item .v { font-size: 1.05rem; }

.hour-detail .past-note { margin: 0.55rem 0 0; font-size: 0.8rem; opacity: 0.75; }

/* A day card's panel carries its own breakdown of the hour -- the index panel
   is several screens up. Nothing here is tinted with the score, so the track
   behind each bar is mixed from the text colour. */
.hour-detail .subscores-head { margin-top: 0.75rem; }
.hour-detail .subscores .bar { background: color-mix(in srgb, var(--text) 16%, transparent); }

/* ---------- Weather icons above the bars ---------- */

/* Reserve a row above the bars so the icons sit clear of the tallest hour.
   These rules come after the padding shorthands above so they win. */
.timeline.has-icons { padding-top: 1.5rem; }
.forecast-card .timeline.has-icons { padding-top: 1.6rem; }
.day .day-strip.has-icons { padding-top: 1.45rem; }

.timeline .wx {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.88rem;
  line-height: 1;
  pointer-events: none;
  filter: saturate(1.15);
}

/* ---------- easter egg ---------- */

.egg-card { display: grid; justify-items: center; gap: 0.5rem; }
.egg-card video { max-width: 100%; max-height: 340px; border-radius: 10px; }

/* ---------- warnings marked on the index bars ---------- */

/* Warnings stack above the icon row, so make room for both. Measured from the
   row count the chart actually drew (--warn-rows). */
.timeline.has-warnings { padding-top: var(--warn-space); }
.timeline.has-icons.has-warnings,
.forecast-card .timeline.has-icons.has-warnings { padding-top: calc(var(--warn-space) + 1.5rem); }

.warn-track {
  position: absolute;
  top: var(--warn-top);
  left: 0.55rem;
  right: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: var(--warn-gap);
}

.warn-track .row { position: relative; height: var(--warn-row-h); }

.warn-track .range {
  position: absolute;
  top: 0;
  height: 100%;
  /* block, not flex: a label too long for its span has to degrade to an
     ellipsis, starting at the left so the "!" glyph survives. */
  display: block;
  line-height: 1.25rem;
  text-align: left;
  text-overflow: ellipsis;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 0.35rem;
  color: #10161d;
  background: var(--c, #fb8c00);
}

/* Too narrow to hold any wording: the band shrinks to a bare marker and its
   label moves out to the side (see fitLabel in chart.js). */
.warn-track .range.is-tight { padding: 0; }

.warn-track .range-label {
  position: absolute;
  top: 0;
  height: 100%;
  line-height: var(--warn-row-h);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--c, var(--text));
  pointer-events: none;
}

/* More overlapping warnings than the chart will stack: the rest are counted
   here and stay in full in the list above the chart. */
.warn-track .range.more {
  left: auto;
  right: 0;
  width: auto;
  min-width: 1.9rem;
  text-align: center;
  background: var(--card-solid);
  color: var(--text);
  border: 1px solid var(--glass-edge);
  z-index: 1;
}

/* A Vorabinformation is not a warning in force -- red diagonal hatching keeps
   the two from being read as the same thing. */
.warn-track .range.hatched {
  color: #fff;
  background-color: color-mix(in srgb, var(--c, #e53935) 28%, transparent);
  background-image: repeating-linear-gradient(
    45deg,
    var(--c, #e53935) 0 5px,
    transparent 5px 11px
  );
  border: 1px solid var(--c, #e53935);
  text-shadow: 0 1px 2px rgb(0 0 0 / 75%);
}

/* ---------- an event's cover photo ----------
   Uploaded in the admin, WebP. A strip across the top of the header, cropped
   at the admin's chosen height; the credit small in its corner. */
.ev-cover {
  position: relative;
  margin: 0 0 0.9rem;
  aspect-ratio: 16 / 4.6;
  max-height: 260px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.ev-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-cover figcaption {
  position: absolute;
  right: 0.5rem;
  bottom: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-size: 0.7rem;
}
@media (max-width: 640px) { .ev-cover { aspect-ratio: 16 / 7; } }

/* ---------- the furcasters' warnings ----------
   From the con's weather volunteers (app/furcasters.py). Dashed in their
   level's colour, with the name: theirs, not DWD's. */
.fc-warnings { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.fc-warning {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  border: 2px dashed color-mix(in srgb, var(--c, #f0a830) 70%, var(--glass-edge));
  background: color-mix(in srgb, var(--c, #f0a830) 9%, var(--card));
}
.fc-warning.is-active { border-style: solid; }
.fc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0; }
.fc-level { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-strong); }
.fc-title { margin: 0.35rem 0 0; color: var(--text-strong); font-size: 1.02rem; font-weight: 800; }
.fc-from {
  margin-left: auto;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c, #f0a830) 22%, transparent);
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 800;
}
/* The traffic light (app/furcasters.py LEVELS): a dark housing, three
   lamps, one lit. console.css has the same for the working pages. */
.tl {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: #1b2027;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
  vertical-align: middle;
  flex: none;
}
.tl i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #39414c; }
.tl i.on.is-red { background: #ff5a5f; box-shadow: 0 0 6px #ff5a5f; }
.tl i.on.is-yellow { background: #ffc61a; box-shadow: 0 0 6px #ffc61a; }
.tl i.on.is-green { background: #3fd27a; box-shadow: 0 0 6px #3fd27a; }
.fc-text { margin: 0.35rem 0 0; color: var(--text); font-size: 0.92rem; }
.fc-when { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
/* On the hourly chart's warning track: dashed, so it never passes for DWD. */
.warn-track .range.furcaster {
  background: color-mix(in srgb, var(--c, #f0a830) 30%, var(--card));
  box-shadow: inset 0 0 0 1.5px var(--c, #f0a830);
  color: var(--text-strong);
  outline: 1px dashed var(--c, #f0a830);
  outline-offset: -1px;
}

/* ---------- collapsed warnings summary ---------- */

.warnings-summary { margin-bottom: 1rem; }

.warnings-summary > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  /* A whisper of the level's colour in the fill and the outline: enough to
     tell a red day from a yellow one at a glance, never a stripe. */
  border: 1px solid color-mix(in srgb, var(--level, #fb8c00) 38%, var(--glass-edge));
  background: color-mix(in srgb, var(--level, #fb8c00) 7%, var(--card));
  font-size: 0.92rem;
}
.warnings-summary > summary::-webkit-details-marker { display: none; }
.warnings-summary > summary::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}
.warnings-summary[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.warnings-summary .wsum-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.7rem; min-width: 0; }
.warnings-summary .wsum-title { font-weight: 700; color: var(--text-strong); }
.warnings-summary .count { color: var(--muted); font-weight: 600; font-size: 0.86rem; }
.warnings-summary .more {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.warnings-summary .advance-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: #fff;
  background-color: color-mix(in srgb, #e53935 30%, transparent);
  background-image: repeating-linear-gradient(45deg, #e53935 0 4px, transparent 4px 9px);
  border: 1px solid #e53935;
}
.warnings-summary .detail { margin-top: 0.6rem; display: grid; gap: 0.6rem; }

/* Official but harmless in a suit (fog): listed, in a quiet colour, with no
   alarm sign. */
.warnings-summary.is-info > summary {
  border-color: color-mix(in srgb, var(--info) 35%, var(--glass-edge));
  background: color-mix(in srgb, var(--info) 6%, var(--card));
}
.warnings-summary.is-info .wsum-title { color: var(--text); font-weight: 600; }
.warning .info-note { margin-top: 0.15rem; font-weight: 700; color: var(--info); }

/* An advance notice: dashed outline, hatched badge. */
.warning.is-advance { border-style: dashed; border-color: color-mix(in srgb, #e53935 55%, var(--glass-edge)); }
.warning .advance-note { font-weight: 800; color: #ff6b66; }

/* No room beside both the number and the mascot ("Ausgezeichnet" is long):
   the words go under the number, below the mascot, and use the full width. */
@media (max-width: 600px) {
  .fsi-top { flex-wrap: wrap; }
  .fsi-text { flex-basis: 100%; }
  .fsi-text { margin-right: 0; }
}

/* ---------- Phones ---------- */

@media (max-width: 480px) {
  .fsi-score .value { font-size: 3.4rem; }
  .fsi-label { font-size: 1.4rem; }
  .subscores li { grid-template-columns: 6.2rem 1fr 2rem; }
  .card { padding: 1rem 1rem; }
  .day .temps { margin-left: 0; }
  .day .hilo .avg { margin-left: 0; }
  .map { height: 300px; }
}

/* ---------- API documentation page (/api-docs) ---------- */

/* Prose, so it gets a wider measure than the dashboard's column of panels. */
.docs { --column: 900px; }

.docs-main .card { padding: 1.35rem 1.5rem; }

.docs-main .card h2 { font-size: 1.4rem; margin: 0 0 0.7rem; }
.docs-main .card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1.4rem 0 0.4rem;
  color: var(--accent);
}
.docs-main p { margin: 0.6rem 0; }

.docs-toc { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.9rem; font-weight: 800; }

/* Overview | Widget | Reference: one header on all three API pages. */
.docs-tabs { margin-top: 1rem; }
.docs-tabs > a { font-size: 0.92rem; padding: 0.42rem 1.1rem; }

.docs-list { margin: 0.5rem 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }

.docs-main code {
  background: var(--inset);
  border: 1px solid var(--glass-edge);
  border-radius: 4px;
  padding: 0.05rem 0.32rem;
  font-size: 0.88em;
  /* Short tokens stay on one line because they fit; only a token too long for
     the column breaks, so the page never scrolls sideways. */
  overflow-wrap: break-word;
}

.docs-main pre {
  background: var(--inset);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}
.docs-main pre code { background: none; border: 0; padding: 0; white-space: pre; }
/* The hostname inside a sample, and the two names written out in prose. */
.docs-main .host,
.docs-main .host-name { color: var(--notice); }

.table-scroll { overflow-x: auto; margin: 0.6rem 0; }

.docs-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.docs-table th, .docs-table td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--glass-edge);
  vertical-align: top;
}
.docs-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}
.docs-table tbody tr:last-child td { border-bottom: 0; }
.docs-table td:last-child { white-space: nowrap; color: var(--muted); }

.docs-main .note {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--link) 7%, transparent);
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
}

/* The storage table's last column is a sentence, not a value, so it may wrap. */
.docs-table.wrap td:last-child { white-space: normal; }
/* ...and where it is the meaning itself, it reads at full contrast. */
.docs-table.prose td:last-child { white-space: normal; color: var(--text); }

/* ---------- the widget builder (/widget) ---------- */

.builder { display: grid; gap: 0.8rem; margin: 1rem 0; }
.builder fieldset {
  margin: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
.builder legend {
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.builder .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem 0.8rem; margin-top: 0.55rem; }
.builder label { display: grid; gap: 0.25rem; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.builder label.check { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; color: var(--text); }
.builder input[type='text'],
.builder input[type='number'],
.builder input[type='datetime-local'],
.builder select {
  width: 100%;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  background: var(--inset);
  color: var(--text-strong);
  font: inherit;
  font-size: 0.88rem;
}
.builder input:disabled, .builder select:disabled { opacity: 0.45; }
.builder-note { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); }
.colour-pick { display: grid; gap: 0.35rem; align-content: start; }
.colour-pick .check { margin-top: 0; }
.colour-pick small { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.colour-row { display: flex; gap: 0.5rem; align-items: center; }
.colour-row input[type='color'] {
  flex: none;
  width: 2.6rem;
  height: 2.1rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-2);
  cursor: pointer;
}
.colour-row input[type='text'] { width: 7.5rem; font-family: var(--font-mono); }
.builder input:focus-visible, .builder select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.presets { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.presets button,
.copy {
  border: 1px solid var(--glass-edge);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.presets button:hover, .copy:hover { color: var(--text); }
.presets button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* The preview on the left, in view while the settings scroll by
   (2026-11-21). The page gets a wider column for the two. */
.docs-wide { --column: 1240px; }
.builder-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}
.builder-stage { position: sticky; top: 4.6rem; min-width: 0; }
.builder-side { min-width: 0; }
.builder-side .builder { margin-top: 0; }
.preview {
  padding: 1rem 1.4rem 1.4rem 1rem;
  border-radius: var(--radius-small);
  border: 1px dashed var(--glass-edge);
  /* A neutral page for the preview to sit on, like a host site would be. */
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 3%) 0 10px, transparent 10px 20px),
    var(--preview-bg);
}
/* The widget at the width chosen, never wider than the stage. Dragging its
   edge or corner sets that width (widget.js). */
.preview-box { position: relative; width: 480px; max-width: 100%; }
.preview iframe { display: block; width: 100%; border: 0; transition: height 200ms ease; }
.preview-box.is-dragging { outline: 1px dashed var(--accent); outline-offset: 3px; }
.preview-box.is-dragging iframe { pointer-events: none; transition: none; }
.grip {
  position: absolute;
  z-index: 2;
  touch-action: none;
  opacity: 0.6;
  transition: opacity 120ms ease, background-color 120ms ease;
}
.grip:hover, .preview-box.is-dragging .grip { opacity: 1; }
.grip-e {
  top: 50%;
  right: -0.95rem;
  width: 0.45rem;
  height: 2.8rem;
  max-height: 70%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--muted);
  cursor: ew-resize;
}
.grip-se {
  right: -1.1rem;
  bottom: -1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 45%, var(--muted) 45% 55%, transparent 55% 65%, var(--muted) 65% 75%, transparent 75%);
}
.grip-e:hover, .preview-box.is-dragging .grip-e { background-color: var(--accent); }
.preview-box.is-dragging .grip-se { background:
    linear-gradient(135deg, transparent 45%, var(--accent) 45% 55%, transparent 55% 65%, var(--accent) 65% 75%, transparent 75%); }
.preview-hint { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted); }
.preview-hint b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.snippets h3 { margin-top: 0 !important; }
.snippets h3 + p { margin-top: 0.2rem; font-size: 0.86rem; }
.snippets pre { margin: 0.4rem 0 0.4rem; white-space: pre-wrap; word-break: break-all; }
.snippets pre code { white-space: pre-wrap !important; }
.copy { margin-bottom: 1.2rem; }

/* One column: the preview first, scrolling with the page, as a 380 px card
   pinned over a phone screen would leave no room for the settings. */
@media (max-width: 900px) {
  .builder-wrap { grid-template-columns: minmax(0, 1fr); }
  .builder-stage { position: static; }
}

/* ======================================================================
   The one top bar (static/nav.js, 2026-11-23): the same entries on every
   page, menus that open on a click, a side panel on a phone.
   ====================================================================== */
.nav-unified { display: flex; align-items: center; gap: 0.15rem; }
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav-top:hover, .nav-top[aria-expanded='true'] { color: var(--text-strong); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-top.active { color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 2px 2px; }
.site-nav a.nav-top.active { background: none; color: var(--text-strong); }
.nav-caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}
.nav-top[aria-expanded='true'] .nav-caret { transform: translateY(1px) rotate(225deg); }
.nav-menu { position: relative; }
.nav-menu.is-staff > .nav-top { color: var(--notice); }
/* Climate (static/climate.css, 2026-11-28): orange wherever it is linked. */
.nav-top.is-climate, .nav-item.is-climate, .ev-tabs a.is-climate { color: #fb923c; }
.nav-top.is-climate.active { box-shadow: inset 0 -2px 0 #f97316; }
.nav-top.is-climate:hover, .ev-tabs a.is-climate:hover { color: #fdba74; }
:root[data-theme='light'] .nav-top.is-climate, :root[data-theme='light'] .nav-item.is-climate, :root[data-theme='light'] .ev-tabs a.is-climate { color: #c2410c; }
.nav-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 1600;
  min-width: 15rem;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--glass-edge);
  background: var(--card);
  box-shadow: 0 16px 40px rgb(0 0 0 / 28%);
  display: grid;
  gap: 0.1rem;
}
.nav-panel[hidden] { display: none; }
.nav-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-item .nav-name { grid-column: 2; }
.nav-item .nav-live { grid-column: 1; }
.nav-item:hover, .nav-item:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text-strong); outline: none; }
.nav-item.is-strong { font-weight: 800; color: var(--text-strong); }
.nav-item.active { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text-strong); }
.nav-item.is-note { margin: 0.2rem 0.65rem 0.1rem; padding: 0; font-size: 0.75rem; font-weight: 600; color: var(--muted); display: block; }
.nav-sub {
  margin: 0.55rem 0.65rem 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--glass-edge);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-note { grid-column: 3; font-size: 0.76rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-live { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #e03131; box-shadow: 0 0 0 3px rgb(224 49 49 / 22%); }
.nav-group { display: grid; gap: 0.1rem; align-content: start; }
.nav-group[hidden] { display: none; }
.nav-group-head {
  margin: 0.2rem 0.65rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-group.is-staff .nav-group-head { color: var(--notice); }
.nav-item.is-lone { font-weight: 800; }

/* The phone: a menu button, the entries in a side panel. */
.nav-burger, .nav-close {
  display: none;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-strong);
  cursor: pointer;
}
.nav-burger svg, .nav-close svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nav-close { display: grid; }
.nav-shade {
  position: fixed;
  inset: 0;
  z-index: 2990;
  background: rgb(5 8 14 / 45%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: nav-fade 180ms ease;
}
.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 3000;
  width: min(20rem, 86vw);
  display: flex;
  flex-direction: column;
  background: var(--backdrop-base);
  border-right: 1px solid var(--glass-edge);
  box-shadow: 0 0 40px rgb(0 0 0 / 35%);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  animation: nav-in-left 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-drawer.is-left { left: 0; }
.nav-drawer[hidden], .nav-shade[hidden] { display: none; }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid var(--glass-edge); }
.nav-drawer-body { overflow-y: auto; padding: 0.6rem 0.5rem 1.5rem; display: grid; gap: 0.8rem; }
.nav-drawer .nav-item { font-size: 1rem; padding: 0.65rem 0.7rem; }
:root.nav-open, :root.nav-open body { overflow: hidden; }
@keyframes nav-fade { from { opacity: 0; } }
@keyframes nav-in-left { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .nav-drawer, .nav-shade { animation: none; } }

/* Below the width where the entries fit on one line: the menu button only. */
@media (max-width: 1099px) {
  .has-unified-nav .topbar .nav-unified { display: none; }
  .has-unified-nav .nav-burger { display: grid; }
  .has-unified-nav .topbar-inner { grid-template-columns: auto 1fr; grid-template-areas: 'brand lang'; }
}

/* The event page's own pages, as tabs under its title. */
.site-nav.ev-tabs {
  display: flex;
  gap: 0.3rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: var(--inset);
  width: fit-content;
  max-width: 100%;
}
.site-nav.ev-tabs a { flex: none; }
/* The old row's rules for its links must not reach into the menus. */
.site-nav .nav-panel .nav-item, .nav-drawer .nav-item { white-space: normal; flex: none; border-radius: 9px; }
.nav-panel { min-width: 19rem; }
.nav-item .nav-name { min-width: 0; }
.ev-header .site-nav.ev-tabs { margin: 1rem 0 0; }
.nav-top[hidden], .nav-item[hidden] { display: none; }
/* One bar width on every page (2026-11-24): the brand no longer jumps
   sideways between pages whose columns differ. */
.has-unified-nav .topbar-inner { max-width: 1340px; }
/* A narrow phone: Support moves into the side panel, the menu button stays. */
.nav-item.is-support { color: #ff5e5b; }
@media (max-width: 480px) {
  .has-unified-nav .topbar-end .kofi { display: none; }
  .has-unified-nav .topbar-end { gap: 0.4rem; }
}
@media (min-width: 481px) { .nav-drawer .nav-item.is-support { display: none; } }
/* Points lost: one number with its arrow (2026-11-24), on any band colour. */
.fsi-costs { display: flex; align-items: center; gap: 0.5rem; cursor: help; }
.fsi-costs .cost-total {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 16%);
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fsi-costs .cost-total.is-flat { opacity: 0.8; }

/* ======================================================================
   Round 11 (2026-11-28): the forecast card, on the front page's featured
   con (overview.js) and the event page's Crystal ball tab (longrange.js
   slots). The FSI large on the left; Weather, Temperature, Precipitation
   stacked in the middle; the con's days as rows on the right, as in the
   event page's "During the event". No lines between the parts.
   The user's picks, settled 2026-11-28; the other variants are gone.
   ====================================================================== */
.fw-main {
  display: grid;
  grid-template-columns: minmax(8.5rem, 10.5rem) minmax(9rem, 12.5rem) minmax(17.5rem, 1fr);
  grid-template-areas: 'score facts days';
  gap: 1rem clamp(0.9rem, 1.8vw, 1.5rem);
  align-items: stretch;
}
.fw-main:not(.has-days) { grid-template-columns: minmax(9.5rem, 12rem) minmax(0, 1fr); grid-template-areas: 'score facts'; }
.fw-main > .fw-main-score { grid-area: score; }
.fw-main > .fw-main-facts { grid-area: facts; }
.fw-main > .fw-main-days { grid-area: days; min-width: 0; align-self: start; }

/* The FSI, large (both the front's .feat-score and the tab's .lr-s-tile). */
.fw-main .fw-main-score {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.25rem;
  padding: 1rem 0.8rem;
}
.fw-main .fw-main-score small { font-size: 0.76rem; letter-spacing: 0.12em; }
.fw-main .fw-main-score b { font-size: 4.4rem; line-height: 0.95; letter-spacing: -0.02em; }
.fw-main .fw-main-score span { font-size: 1.12rem; }

/* The facts, one over the other. */
.fw-main .fw-main-facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.5rem;
  align-content: stretch;
  min-width: 0;
}
.fw-main .fw-main-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0.12rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-small, 12px);
  background: var(--inset);
}
.fw-main .fw-main-facts dt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fw-main .fw-main-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.05rem 0.5rem; min-width: 0; }
.fw-main .fw-main-facts dd > b { font-size: 1.02rem; line-height: 1.25; color: var(--text-strong); }
.fw-main .fw-main-facts dd > span { font-size: 0.78rem; color: var(--muted); }

/* The con's days, one row each. */
.fw-rows { list-style: none; margin: 0.45rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.fw-row {
  display: grid;
  grid-template-columns: 2.9rem 1.3rem minmax(2.5rem, 1fr) 3.3rem minmax(5rem, 7.6rem);
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.55rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 3.5%, transparent);
}
.fw-row.is-today { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text-strong) 70%, transparent); }
.fw-row-when { display: grid; min-width: 0; line-height: 1.1; }
.fw-row-when b { font-size: 0.92rem; color: var(--text-strong); white-space: nowrap; }
.fw-row-when small {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-row-sky { display: grid; place-items: center; font-size: 1.15rem; line-height: 1; }
.fw-row-sky .lr-orb-mini { width: 1.05rem; height: 1.05rem; box-shadow: 0 0 6px rgb(167 139 250 / 45%); }
.fw-row-bar { height: 0.95rem; min-width: 0; }
/* a day that is over, or out of reach: a plain bar of the same size */
.fw-rows .fw-row .fw-row-bar.ov-day-box { width: auto; height: 0.95rem; margin: 0; border-radius: 99px; font-size: 0; }
/* the crystal ball's one look for the week: hatched violet */
.fw-row-bar.is-typical {
  border-radius: 999px;
  background:
    repeating-linear-gradient(135deg, rgb(124 58 237 / 62%) 0 3px, transparent 3px 9px),
    var(--c, var(--inset));
}
.fw-row.role-arrival .fw-row-bar, .fw-row.role-departure .fw-row-bar { opacity: 0.6; }
.fw-row-rain {
  justify-self: end;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--r, transparent);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}
.fw-row-rain.is-wet { color: var(--ink-dark); }
.fw-row .temp-range { grid-area: auto; grid-template-columns: 1.7rem minmax(0, 1fr) 1.7rem; gap: 0.25rem; font-size: 0.84rem; }
.fw-row .temp-range.is-typical { grid-template-columns: 0 0 minmax(0, 1fr); gap: 0; }
/* only the typical high: a narrow last column */
.fw-rows.is-typical .fw-row { grid-template-columns: 2.9rem 1.3rem minmax(2.5rem, 1fr) 3.3rem 2.8rem; }
.fw-row .temp-range.is-typical .hi { text-align: right; }

@media (max-width: 1260px) {
  .feat .fw-main { grid-template-columns: minmax(8rem, 9.5rem) minmax(8.5rem, 11rem) minmax(17rem, 1fr); }
}
@media (max-width: 900px) {
  .fw-main.has-days {
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
    grid-template-areas: 'score facts' 'days days';
  }
}
@media (max-width: 520px) {
  .fw-main.has-days,
  .fw-main:not(.has-days) { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'score' 'facts' 'days'; }
  .fw-main .fw-main-score b { font-size: 3.6rem; }
  .fw-row { grid-template-columns: 2.8rem 1.3rem minmax(2rem, 1fr) 3.2rem 4.6rem; gap: 0.4rem; padding-inline: 0.45rem; }
  .fw-row-when small { display: none; }
}
