/* Forecast Israel — highway signage design system, Israeli cut
 *
 * Sibling to Forecast Ireland, Forecast Britain, Forecast Euro and Forecast Africa,
 * readable as one network: the same paper ground, Overpass / Overpass Mono, guide-sign
 * panel, exit chips, card grid and timeline, with EB Garamond Italic as the atlas voice.
 * (The explorer's rules at the end are Forecast Africa's, because the explorer is.)
 *
 * The colour:
 *   - the panel is the **flag's blue** (#0038b8), so the site reads as Israel at a
 *     glance and never as Finland's darker navy or Euro's motorway blue;
 *   - the working accent is **Mediterranean teal** — rules, timeline, live values —
 *     the colour of the coast every winter storm crosses first;
 *   - **desert gold** marks the model plate, the exit numbers and the Hebrew line,
 *     the way the light in the Negev and on Jerusalem stone is gold;
 *   - the paper is a shade warmer than the network's, toward limestone.
 *
 * Israel's road signs are trilingual — Hebrew, then Arabic, then English — and so is
 * the site wherever a place is named: the plate, the town pages, the seas.
 */

:root {
  --paper: #e9e5dc;
  --paper2: #f4f1ea;
  --card: #ffffff;
  --ink: #141619;
  --ink2: #44474c;

  /* the flag's blue — the guide-sign panel */
  --sign: #0038b8;
  --sign-dk: #00267f;
  --sign-tx: #ffffff;
  --sign-sub: #cfdcf6;

  /* Mediterranean teal — the working accent (kept under the network's old name
     so the shared rules pick it up unchanged) */
  --motorway: #0b7f8a;
  --motorway-dk: #075c64;
  --motorway-sub: #cdeaec;
  --accent: #0b7f8a;

  --blue: #1f5fa8;
  --navy: #13305e;
  --blue-sub: #d2e1f4;

  /* desert gold — the route plate */
  --route: #f2c230;
  --route-dk: #c99a12;

  /* the explorer's picker colours (Forecast Africa's names) */
  --green: #0b7f8a; --green-dk: #075c64; --green-sub: #cdeaec;
  --mf: #b5741f; --mf-dk: #7d4f12; --mf-sub: #f3e3cc;
  --nf: #0038b8; --nf-dk: #00267f; --nf-sub: #cfdcf6;

  --line: #cbc6bb;
  --line2: #e5e1d8;
  --mut: #858077;
  --amber: #f2ac14;

  /* warning levels, as the IMS colours them */
  --w-yellow: #ffd100;
  --w-orange: #ff8c00;
  --w-red: #e0202a;

  --figure: #0b1220;
  --figure-line: #1d2c45;
  --figure-tx: #e3e9f3;
  --figure-mut: #93a3bf;

  --shadow: 0 6px 22px rgba(15, 25, 50, .09);
  --shadow-hi: 0 10px 26px rgba(15, 25, 50, .16);

  --font: 'Overpass', Helvetica, Arial, sans-serif;
  --mono-font: 'Overpass Mono', ui-monospace, monospace;
  --atlas-font: 'EB Garamond', Garamond, Georgia, serif;
  --he-font: 'Noto Sans Hebrew', 'Arial Hebrew', 'Overpass', sans-serif;
  --ar-font: 'Noto Naskh Arabic', 'Geeza Pro', 'Arial', serif;
  --maxw: 1180px;
}


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--mono-font); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1560px; margin: 0 auto; padding: 0 18px; }

/* ── thin utility bar ─────────────────────────────────── */
.util {
  background: var(--ink); color: #cfccc4; border-bottom: 3px solid var(--sign);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}
.util .bar {
  max-width: 1560px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 34px; flex-wrap: wrap;
}
.util .mono { font-size: 11px; letter-spacing: .06em; }
.util .lnks { display: flex; gap: 16px; flex-wrap: wrap; }
.util a { color: #e9e7e0; font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.util a:hover { color: var(--sign-sub); text-decoration: none; }
.util a[aria-current="page"] { color: var(--sign-sub); }

/* ── province strip ───────────────────────────────────────
   A second tier of the top navigation, because a province is a destination people
   return to and the models are not — you look up Ontario far more often than you
   choose between HRDPS and RDPS. Sits directly under the utility bar and shares its
   geometry so the two read as one masthead.

   Short forms rather than full names: thirteen provinces at full length wrap on any
   laptop, and "Sask." is unambiguous to every Canadian in a way that a truncated
   "Saskatch…" is not. The full name is the link's title. */
.provbar {
  background: var(--sign-dk); color: var(--sign-sub);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
}
.provbar .bar {
  max-width: 1560px; margin: 0 auto; padding: 5px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.provbar .lbl {
  font: 700 9px var(--mono-font); letter-spacing: .14em;
  color: rgba(255, 255, 255, .55); white-space: nowrap;
}
.provbar .lnks { display: flex; gap: 4px; flex-wrap: wrap; }
.provbar a {
  font: 800 11px var(--font); letter-spacing: .02em; color: #fff;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.provbar a:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.provbar a[aria-current="page"] { background: #fff; color: var(--sign-dk); }

/* ── guide sign panel ─────────────────────────────────── */
.sign {
  background: var(--sign); border-radius: 10px; color: var(--sign-tx);
  padding: 26px 24px 24px; position: relative;
  box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6px rgba(255, 255, 255, .9),
              0 10px 30px rgba(0, 0, 0, .16);
}
.sign a { color: #fff; }
.signhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.signhead img { width: 62px; height: 62px; flex: none; display: block; }
.word {
  font-weight: 900; font-size: clamp(28px, 5.4vw, 50px); line-height: .92;
  letter-spacing: -.02em; margin: 0;
}
.word .yl { color: var(--sign-sub); }
.tag {
  margin: 8px 0 0; font-weight: 700; font-size: clamp(13px, 2.2vw, 16px);
  color: var(--sign-sub); letter-spacing: .01em;
}

/* UK motorway route plate.
   The real sign is white Transport lettering on motorway blue inside a white
   keyline — the "M 6" confirmation plate — so this one is motorway blue on the
   navy panel, outlined in white, rather than the solid white shield the
   Trans-Canada marker uses. */
.shield {
  background: var(--motorway); color: #fff; border: 2.5px solid #fff;
  border-radius: 6px; padding: 5px 11px 6px; text-align: center; line-height: 1;
  flex: none; display: inline-block; box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.shield .a { font-size: 8px; font-weight: 700; letter-spacing: .16em; color: var(--motorway-sub); display: block; }
.shield .b { font-size: 20px; font-weight: 900; letter-spacing: .04em; display: block; color: #fff; }
.shield .c { font-size: 8px; font-weight: 700; letter-spacing: .12em; color: var(--motorway-sub); display: block; }

/* Junction-style chips — Britain numbers junctions, not exits. */
.exits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.exits .lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--sign-sub); }
.mm {
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 5px; padding: 6px 12px; font-family: inherit; font-weight: 700;
  font-size: 12px; letter-spacing: .03em; cursor: pointer; color: #fff;
}
.mm:hover { background: #fff; color: var(--sign); text-decoration: none; }

/* ── section rule header ──────────────────────────────── */
section { padding: 26px 0 4px; }
.rule { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rule .ln {
  height: 3px; flex: 1;
  background: repeating-linear-gradient(90deg, var(--motorway) 0 18px, transparent 18px 34px);
}
.rule h2 {
  margin: 0; color: var(--motorway); font-size: 15px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
}
.rule .sub { color: var(--mut); font-size: 11px; font-weight: 700; letter-spacing: .06em; }

/* ── cards ────────────────────────────────────────────── */
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0; overflow: hidden; display: block; color: inherit;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08); transition: transform .14s, box-shadow .14s;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .13); text-decoration: none; }
.card .chead {
  background: var(--motorway); color: #fff; padding: 9px 14px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.card .chead.blue { background: var(--blue); }
.card .chead.red { background: var(--sign); }
.card .chead.navy { background: var(--navy); }
.card .chead.navy .k { color: var(--blue-sub); }
.card .chead .k { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--motorway-sub); }
.card .chead.blue .k { color: var(--blue-sub); }
.card .chead.red .k { color: var(--sign-sub); }
.card .cbody { padding: 14px; }
.card h3 { margin: 0 0 5px; font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink2); font-size: 13.5px; font-weight: 600; line-height: 1.5; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

/* ── controls ─────────────────────────────────────────── */
.btn {
  cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink2);
  border-radius: 3px; font-family: var(--font); font-weight: 700; font-size: 11.5px;
  letter-spacing: .02em; padding: 7px 12px; line-height: 1.3;
}
.btn:hover { border-color: var(--motorway); color: var(--ink); }
.btn.on, .btn[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: #08488a; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-go { background: var(--blue); color: #fff; border-color: #08488a; font-weight: 900; letter-spacing: .06em; }
.btn-go:hover { background: #0b6bc4; color: #fff; }

select, input[type="text"], input[type="search"] {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 3px; padding: 6px 9px; font-family: var(--font);
  font-weight: 700; font-size: 12px;
}
select:focus, input:focus, .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* The `hidden` attribute is a promise the HTML makes, and a layout rule as ordinary
   as `.toolbar .group > div { display: flex }` outranks it on specificity and quietly
   breaks it — which is how the wind options first shipped visible while switched off.
   Restore it once, globally, rather than re-winning the argument per component. */
[hidden] { display: none !important; }

label { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }

/* ── timeline ─────────────────────────────────────────────
   Transport, scrubber and a UTC tick strip, in one card under the map. Shared by
   every model viewer, because a forecast loop is a forecast loop whether the frames
   are HRDPS hours or GDPS days.

   The range is index-based, so every frame gets equal width and the thumb always
   lands on one, and ticks are drawn on frames rather than at arbitrary clock times.
   Labels therefore thin out across a run exactly where its cadence coarsens. */
.timeline {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px 9px; box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}
.tl-side { display: flex; flex-direction: column; gap: 5px; }
.tl-lab { font-size: 9px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mut); }
.tl-transport { display: flex; align-items: center; gap: 5px; }
.tl-track { flex: 1 1 340px; min-width: 240px; display: flex; flex-direction: column; }
.tl-track input[type="range"] { width: 100%; margin: 0; accent-color: var(--motorway); }
/* Inset by half a thumb so the first and last ticks sit under the thumb's travel,
   not under the ends of the groove the thumb never reaches. */
.tl-ticks { position: relative; height: 23px; margin: 3px 9px 0; pointer-events: none; }
.tl-ticks .tk { position: absolute; top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; }
.tl-ticks .tk.at-start { transform: translateX(-2px); align-items: flex-start; }
.tl-ticks .tk.at-end { transform: translateX(calc(-100% + 2px)); align-items: flex-end; }
.tl-ticks .tk i { width: 1px; height: 5px; background: var(--line); display: block; }
.tl-ticks .tk span { font: 700 8.5px var(--mono-font); color: var(--mut);
  white-space: nowrap; line-height: 1; margin-top: 3px; letter-spacing: .02em; }
/* The tick that opens each forecast day carries the date and the accent green;
   the hours within that day are hairlines. */
.tl-ticks .tk.day i { height: 9px; width: 2px; background: var(--motorway); }
.tl-ticks .tk.day span { color: var(--ink2); font-weight: 800; }
/* Buffer fill. Sits between the scrubber and the tick strip, so the thing that says
   "the loop is ready" is directly under the thing you drag. It fades out once full
   rather than staying as chrome nobody needs. */
.tl-buffer { height: 2px; margin: 2px 9px 0; border-radius: 2px; background: var(--line2);
  overflow: hidden; transition: opacity .4s ease .3s; }
.tl-buffer::before { content: ""; display: block; height: 100%; width: var(--pct, 0%);
  background: var(--motorway); transition: width .15s linear; }
.tl-buffer.is-full { opacity: 0; }
.tl-ends { display: flex; justify-content: space-between; gap: 10px;
  font: 700 9.5px var(--mono-font); color: var(--mut); letter-spacing: .02em; }
.tl-count { font: 900 13px var(--mono-font); color: var(--ink); }
.tl-hint { margin-top: 7px; font-size: 11px; font-weight: 700; color: var(--mut); }

/* ── buffer policy chrome ──────────────────────────────────
   New with the converged maptimeline.js. The buffer bar's dashed tail is the part of
   the run deliberately not fetched (see Timeline.buffer); LOAD ALL beside the frame
   counter fetches it, and says what that costs. The button is created by the module,
   so there is no markup for it here — only these rules. */
.tl-buffer { position: relative; }
.tl-buffer.is-held::after {
  content: ""; position: absolute; right: 0; top: 0; height: 100%; width: var(--held, 0%);
  background: repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 6px);
}
.tl-load { font-size: 10px; padding: 4px 8px; margin-top: 4px; letter-spacing: .06em;
           font-family: var(--mono-font); white-space: nowrap; }
.tl-load:hover { border-color: var(--sign); color: var(--sign); }


/* Segmented control — the speed menu, and anything else that is one choice of a few */
.seg { display: flex; }
.seg button { font: 700 11px var(--mono-font); background: var(--card); color: var(--ink2);
  border: 1px solid var(--line); border-left-width: 0; padding: 5px 8px; cursor: pointer; }
.seg button:first-child { border-left-width: 1px; border-radius: 4px 0 0 4px; }
.seg button:last-child { border-radius: 0 4px 4px 0; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--motorway); color: #fff; border-color: var(--motorway); }
.seg button:disabled { cursor: not-allowed; }
/* A segment the active model or cycle cannot drive at all. Greyed as a block rather
   than hidden: a control that quietly vanishes reads as a bug, one that is greyed out
   reads as an answer, and a control strip that changes length as you switch models is
   disorienting. */
.seg.unavailable { opacity: .35; }
.seg.unavailable button { cursor: not-allowed; text-decoration: line-through;
  text-decoration-thickness: 1px; }

/* Breadcrumbs and drill chips are anchors now, not buttons, so places can be
   middle-clicked into a new tab and right-click-copied. They still have to look
   exactly like the controls they replaced — an underline on hover is the browser's
   idea, not ours. */
a.crumb, a.chip { text-decoration: none; display: inline-block; }
a.crumb:hover, a.chip:hover { text-decoration: none; }
.crumb.on { color: var(--ink); text-decoration: underline;
            text-decoration-color: var(--sign); text-underline-offset: 3px;
            text-decoration-thickness: 2px; }

/* Unit toggle — a segmented control, but a primary one, so it is a touch larger
   than the speed menu and uses the maple red rather than the accent green. Two
   buttons rather than a menu: it is a binary people flip back and forth, and a
   select turns one click into two. */
#units button { font: 800 12px var(--mono-font); padding: 6px 11px; }
#units button.on { background: var(--sign); border-color: var(--sign-dk); color: #fff; }

/* The wind overlay sits above the map and takes no pointer events — the map still
   drags and the value probe still reads through it. */
#wind-overlay {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
}
#wind-mode button { font: 700 10.5px var(--mono-font); padding: 5px 8px; }
#wind-mode button.on { background: var(--motorway); border-color: var(--motorway); color: #fff; }

/* ── misc ─────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 3px;
  font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.badge-live { background: var(--motorway); color: #fff; }
.badge-new { background: var(--sign); color: #fff; }
.badge-soon { background: #efece5; color: var(--mut); border: 1px solid var(--line); }

.dim { color: var(--ink2); }
.faint { color: var(--mut); }

.site-footer {
  border-top: 3px solid var(--sign); margin-top: 44px; padding: 18px 0 34px;
  color: var(--ink2); font-size: 12px; font-weight: 600; background: #ddd8ce;
}
.site-footer a { color: var(--navy); font-weight: 800; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--sign); color: #fff;
  padding: 9px 14px; z-index: 200; font-weight: 800;
}
.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── wind options ─────────────────────────────────────────
   Sub-controls of the wind mode segment, and styled to read as subordinate to it:
   indented under a rule, smaller labels, and hidden outright when the active mode
   has nothing for them to change. */
.wind-opts { display: flex; flex-direction: column; gap: 5px; margin-top: 6px;
             padding-left: 9px; border-left: 2px solid var(--line2); }
.wind-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wind-opt label { font-size: 9px; letter-spacing: .09em; }
.wind-opt select { padding: 3px 5px; font-size: 11px; font-weight: 700; min-width: 92px; }

/* ══════════════════════════════════════════════════════════════════════════
   Place pages — /<province> and /<province>/<city>
   ------------------------------------------------------------------------
   The explorer is the site's model side; these are its place side, reading
   Environment Canada's City Page Weather rather than the GEM grids. Same
   paper, same maple-red panel, same Trans-Canada green for anything that
   does work; the only new colour is the amber already in the palette, used
   for a watch, and the maple red re-used for a warning.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── breadcrumb + compass row above the sign ───────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono-font, 'Overpass Mono', monospace);
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--mut); margin: 0 0 12px; }
.crumbs a { color: var(--motorway); }
.crumbs .sep { color: var(--line); }

/* ── the live conditions headline on a city page ───────────────────────── */
.nowcard { display: grid; gap: 18px; grid-template-columns: minmax(210px, 300px) 1fr;
  align-items: center; }
@media (max-width: 660px) { .nowcard { grid-template-columns: 1fr; } }
.nowtemp { display: flex; align-items: baseline; gap: 10px; }
.nowtemp .deg { font-size: clamp(52px, 11vw, 78px); font-weight: 900; line-height: .95;
  letter-spacing: -.03em; color: var(--ink); }
.nowtemp .un { font-size: 17px; font-weight: 900; color: var(--mut); }
.nowcond { font-size: 17px; font-weight: 800; margin: 6px 0 0; }
.nowmeta { display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); }
.nowmeta div { border-left: 3px solid var(--motorway); padding-left: 10px; }
.nowmeta .k { display: block; font-family: 'Overpass Mono', monospace; font-size: 10px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.nowmeta .v { display: block; font-size: 17px; font-weight: 800; }

/* ── metro / city tiles carrying a live reading ────────────────────────── */
.placegrid { display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); }
.placetile { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 13px; display: block; color: inherit;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .07); transition: transform .14s, box-shadow .14s; }
a.placetile:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(0, 0, 0, .12);
  text-decoration: none; }
.placetile .nm { font-size: 15px; font-weight: 900; letter-spacing: -.01em; display: block; }
.placetile .sub { font-family: 'Overpass Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.placetile .row { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 9px; }
.placetile .tm { font-size: 27px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.placetile .gl { font-size: 21px; line-height: 1; }
.placetile .cd { font-size: 12px; font-weight: 700; color: var(--ink2); margin-top: 4px;
  min-height: 1.2em; }

/* ── the seven-day column set ──────────────────────────────────────────── */
.fcstrip { display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.fcday { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; }
.fcday .d { font-family: 'Overpass Mono', monospace; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--motorway); }
.fcday .g { font-size: 25px; line-height: 1.15; }
.fcday .t { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.fcday .t .lo { color: var(--blue); }
.fcday .c { font-size: 12px; font-weight: 600; color: var(--ink2); line-height: 1.35; }
.fcday .p { font-family: 'Overpass Mono', monospace; font-size: 10.5px; font-weight: 700;
  color: var(--blue); letter-spacing: .05em; }

/* ── the 24-hour scroller ──────────────────────────────────────────────── */
.hrscroll { overflow-x: auto; padding-bottom: 4px; }
.hrrow { display: flex; gap: 8px; min-width: max-content; }
.hrcell { flex: 0 0 auto; width: 74px; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 7px; padding: 9px 4px; }
.hrcell .h { font-family: 'Overpass Mono', monospace; font-size: 10px; font-weight: 700;
  color: var(--mut); letter-spacing: .05em; }
.hrcell .g { font-size: 17px; line-height: 1.3; }
.hrcell .t { font-size: 16px; font-weight: 900; }
.hrcell .p { font-family: 'Overpass Mono', monospace; font-size: 10px; font-weight: 700;
  color: var(--blue); }

/* ── warnings. Red is the maple-red panel colour doing double duty here,
      which is right: on this site red already means "the sign is talking". ── */
.alerts { display: grid; gap: 9px; }
.alert { border-radius: 7px; padding: 11px 14px; border: 1px solid transparent;
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.alert .lv { font-family: 'Overpass Mono', monospace; font-size: 10px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase; }
.alert .tx { font-size: 14.5px; font-weight: 800; }
.alert.warning { background: #fdeceb; border-color: var(--sign); color: var(--sign-dk); }
.alert.watch { background: #fdf4e0; border-color: var(--amber); color: #7a5405; }
.alert.statement, .alert.advisory { background: var(--card); border-color: var(--line); color: var(--ink2); }
.alert-none { font-size: 14px; font-weight: 700; color: var(--motorway-dk);
  background: #eef7f2; border: 1px solid var(--motorway-sub); border-radius: 7px; padding: 11px 14px; }

/* ── the province outline map ──────────────────────────────────────────── */
.provmap { background: linear-gradient(180deg, #eef1f2 0%, #dfe4e5 100%);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
/* Saskatchewan is twice as tall as it is wide in true proportion, and Alberta and
   the territories are not far off. Left alone those render as a metre-long column,
   so the frame is capped and the outline letterboxes inside it — the shape stays
   honest, which a squashed viewBox would not. */
.provmap svg { display: block; width: 100%; height: auto; max-height: 620px; }
.provmap .ghost { fill: #d8d3c8; stroke: #c2bcae; stroke-width: 1.4; }
.provmap .home { fill: #fbe3e0; stroke: var(--sign); stroke-width: 2.4; stroke-linejoin: round; }
.provmap .dot { fill: var(--motorway); stroke: #fff; stroke-width: 2; cursor: pointer; }
.provmap .dot.big { stroke-width: 2.4; }
.provmap text.lb { font-family: 'Overpass', sans-serif; font-weight: 800; fill: #fff;
  paint-order: stroke; stroke: rgba(12, 16, 20, .9); stroke-width: 4.5;
  stroke-linejoin: round; pointer-events: none; }

/* ── unit toggle, sitting where the explorer's own one does ────────────── */
.unitrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.unitrow .lbl { font-family: 'Overpass Mono', monospace; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }

/* ── neighbour compass, the province-to-province step ──────────────────── */
.compass { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.compass .nb { display: inline-flex; align-items: center; gap: 7px; background: var(--card);
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 13px;
  font-size: 13.5px; font-weight: 800; color: inherit; }
.compass .nb:hover { border-color: var(--motorway); text-decoration: none; }
.compass .nb .ar { color: var(--motorway); font-weight: 900; }

.stamp { font-family: 'Overpass Mono', monospace; font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--mut); }

/* ══════════════════════════════════════════════════════════════════════════
   The national hero map
   ------------------------------------------------------------------------
   Flat colour, not terrain. The explorer carries shaded relief; the front
   page is the guide sign, and the whole point of this map is that a province
   and a city are things you click, which a photographic basemap would fight.
   Land is the paper one step warmer, water is the autoroute blue at low
   saturation, the roads are Trans-Canada green, and maple red is reserved
   for the two things that are live: a hovered province and a city dot.
   ══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   Forecast Israel — the Israeli additions
   ═══════════════════════════════════════════════════════════════════════════ */

.atlas { font-family: var(--atlas-font); font-style: italic; }
.he, [lang="he"] { font-family: var(--he-font); }
.ar, [lang="ar"] { font-family: var(--ar-font); }
.prose p { font-size: 14.5px; font-weight: 600; line-height: 1.62; color: var(--ink2); margin: 0 0 12px; }
.prose a, a.inl { color: var(--motorway); font-weight: 800; }
.prose h3 { margin: 18px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sign); }
.prose ul { margin: 0 0 12px 18px; padding: 0; color: var(--ink2); font-weight: 600; font-size: 14px; line-height: 1.6; }
.dim { color: var(--ink2); }
.faint { color: var(--mut); }

/* ── the sign: Hebrew, then Arabic, then English, as on every direction sign ── */
.sign .tri { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; margin-bottom: 4px; line-height: 1.15; }
.sign .tri .he { font: 800 clamp(18px, 3vw, 26px) var(--he-font); color: var(--route); }
.sign .tri .ar { font: 600 clamp(17px, 2.8vw, 24px) var(--ar-font); color: #fff; opacity: .92; }
.signhead .mark { flex: none; width: 70px; height: 70px; border-radius: 10px; background: var(--sign-dk); display: grid; place-items: center; box-shadow: inset 0 0 0 2.5px #fff; }
.signhead .mark svg { width: 50px; height: 50px; }
/* the route plate: gold number on the dark blue, keylined */
.nplate { flex: none; background: var(--sign-dk); border: 2.5px solid #fff; border-radius: 5px; padding: 5px 10px 4px; text-align: center; min-width: 104px; line-height: 1; }
.nplate .a { display: block; font: 800 8px var(--mono-font); letter-spacing: .16em; color: var(--sign-sub); }
.nplate .b { display: block; font-size: 22px; font-weight: 900; color: var(--route); letter-spacing: .03em; margin: 4px 0 3px; }
.nplate .c { display: block; font: 700 8px var(--mono-font); letter-spacing: .12em; color: var(--sign-sub); }
.mm .he { color: var(--route); font-size: 13px; margin-left: 6px; font-weight: 700; }
.mm b { color: var(--route); }

/* ── live warnings strip ── */
.warnbar { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.warn { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--w-yellow); border-radius: 6px; padding: 8px 12px; box-shadow: var(--shadow); }
.warn.orange { border-left-color: var(--w-orange); }
.warn.red { border-left-color: var(--w-red); }
.warn .lv { font: 800 10px var(--mono-font); letter-spacing: .12em; padding: 3px 7px; border-radius: 3px; background: var(--w-yellow); color: #1a1a1a; white-space: nowrap; }
.warn.orange .lv { background: var(--w-orange); }
.warn.red .lv { background: var(--w-red); color: #fff; }
.warn .hd { font-weight: 800; font-size: 13.5px; }
.warn .when { font: 700 11px var(--mono-font); color: var(--mut); white-space: nowrap; }
.warn .ds { grid-column: 2 / 4; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.warn-none { font-size: 13px; font-weight: 700; color: var(--mut); padding: 6px 2px; }
@media (max-width: 620px) { .warn { grid-template-columns: auto 1fr; } .warn .when { grid-column: 2; } .warn .ds { grid-column: 1 / 3; } }

/* ── the front page: the plate beside the IMS ── */
.homegrid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 22px; align-items: start; }
.homegrid .side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 981px) { .homegrid .platecol { position: sticky; top: 46px; } }
@media (max-width: 980px) { .homegrid { grid-template-columns: 1fr; } .homegrid .platecol { max-width: 620px; margin: 0 auto; width: 100%; } }
.sidehead { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.sidehead h3 { margin: 0; font: 900 13px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--sign); }
.sidehead .sub { margin-left: auto; font: 700 10px var(--mono-font); letter-spacing: .08em; color: var(--mut); }
.langbtn { font: 800 11px var(--he-font); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; cursor: pointer; color: var(--sign); }
.imsday { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.imsday:last-of-type { border-bottom: 0; }
.imsday .dd { font: 900 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.imsday .tx { font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--ink2); margin-top: 2px; }
.imsday .tx[dir="rtl"] { font-size: 15px; }
.imstab { width: 100%; border-collapse: collapse; font-size: 13px; }
.imstab th { font: 800 9.5px var(--mono-font); letter-spacing: .1em; color: var(--mut); text-transform: uppercase; text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.imstab th:first-child, .imstab td:first-child { text-align: left; }
.imstab td { padding: 5px 6px; border-bottom: 1px solid var(--line2); text-align: right; white-space: nowrap; font-family: var(--mono-font); font-weight: 700; }
.imstab td:first-child { font-family: var(--font); white-space: normal; }
.imstab td a { color: inherit; }
.imstab td .he { color: var(--mut); font-size: 12.5px; font-weight: 600; margin-left: 4px; }
.imstab .ic { font-family: initial; }
.imstab .lo { color: var(--mut); margin-left: 4px; font-size: 11.5px; }
.imstab tr:hover td { background: var(--paper2); }

/* ── the plate ── */
.platewrap { position: relative; }
.plate {
  position: relative; background: #b9cfdf; border-radius: 10px; overflow: hidden;
  border: 1px solid #9fb3bf; box-shadow: var(--shadow-hi);
}
.plate svg { display: block; width: 100%; height: auto; }
#plateMap .grat path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .8; stroke-dasharray: 3 5; }
#plateMap .grat path.minor { stroke: rgba(255, 255, 255, .32); stroke-dasharray: 1.5 5; }
#plateMap .tick { font: 700 11px var(--mono-font); fill: rgba(20, 40, 55, .6); letter-spacing: .06em; }
#plateMap .nb path { fill: rgba(240, 236, 226, .42); stroke: rgba(80, 80, 70, .35); stroke-width: .7; }
#plateMap .near { font: 800 13px var(--font); letter-spacing: .3em; fill: rgba(70, 64, 54, .55); }
#plateMap .near-he { font: 600 12px var(--he-font); fill: rgba(70, 64, 54, .45); }
#plateMap .riv path { fill: none; stroke: rgba(45, 105, 160, .7); stroke-width: 1.3; stroke-linejoin: round; }
#plateMap .lake path { fill: none; stroke: rgba(45, 95, 140, .55); stroke-width: .8; }
#plateMap .dist path { fill: rgba(255, 255, 255, 0); stroke: none; transition: fill .15s; }
#plateMap .dist path.terr { fill: rgba(255, 255, 255, .1); }
#plateMap .dist a:hover path, #plateMap .dist a:focus path { fill: rgba(255, 255, 255, .22); }
#plateMap .inner { fill: none; stroke: rgba(30, 45, 80, .32); stroke-width: .8; stroke-dasharray: 2 2.5; }
#plateMap .border { fill: none; stroke: rgba(30, 30, 40, .62); stroke-width: 1.4; stroke-dasharray: 7 3 1.5 3; }
#plateMap .green { fill: none; stroke: rgba(30, 30, 40, .55); stroke-width: 1.2; stroke-dasharray: 3 3; }
#plateMap .coast { fill: none; stroke: rgba(30, 60, 80, .5); stroke-width: .8; }
#plateMap .region text { font: italic 500 15px var(--atlas-font); letter-spacing: .32em; fill: rgba(70, 52, 30, .62); pointer-events: none; }
#plateMap .region .big text { font-size: 24px; letter-spacing: .5em; }
#plateMap .region .small text { font-size: 12px; letter-spacing: .22em; }
#plateMap .region .ghost text { font-size: 17px; fill: rgba(70, 64, 54, .38); }
#plateMap .region text.he { font: 600 13px var(--he-font); letter-spacing: .04em; fill: rgba(70, 52, 30, .5); }
#plateMap .region .big text.he { font-size: 16px; letter-spacing: .1em; }
#plateMap .wlabel text { font-family: var(--atlas-font); font-style: italic; fill: #2d5a7a; pointer-events: none; }
#plateMap .wlabel text.sea { font-size: 21px; letter-spacing: .34em; font-weight: 500; }
#plateMap .wlabel text.lake { font-size: 12px; letter-spacing: .22em; }
#plateMap .wlabel text.minor { font-size: 9.5px; letter-spacing: .06em; }
#plateMap .wlabel text.bay { font-size: 9.5px; letter-spacing: .04em; }
#plateMap .wlabel text.he { font: 600 16px var(--he-font); letter-spacing: .06em; fill: #3d6788; font-style: normal; }
#plateMap .wlabel text.ar { font: 500 16px var(--ar-font); fill: #4d7593; font-style: normal; }
#plateMap .pl { cursor: pointer; }
#plateMap .pl .dot { fill: var(--ink); stroke: #fff; stroke-width: 1.6; }
#plateMap .pl.site .dot { fill: var(--sign); }
#plateMap .pl.peak .dot { fill: #7a4b24; }
#plateMap .pl.muted { opacity: .45; }
#plateMap .pl:hover .dot, #plateMap .pl:focus .dot { stroke: var(--route); stroke-width: 3; }
#plateMap .pl text { font: 800 12px var(--font); fill: #10141a; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3.2px; stroke-linejoin: round; }
#plateMap .pl text.lhe { font: 700 12.5px var(--he-font); fill: #1d3a78; }
#plateMap .pl text.val { font: 800 11.5px var(--mono-font); fill: var(--motorway-dk); }
.platehint {
  position: absolute; left: 12px; top: 12px; max-width: 300px; pointer-events: none; opacity: 0;
  transition: opacity .12s; background: rgba(8, 16, 34, .92); color: var(--figure-tx);
  border: 1px solid var(--figure-line); border-radius: 6px; padding: 9px 11px; font-size: 12.5px; line-height: 1.45; font-weight: 600;
}
.platehint.on { opacity: 1; }
.platehint b { font-size: 14px; color: #fff; }
.platehint .he, .platehint .ar { color: var(--route); font-size: 13.5px; }
.platehint .v { font-family: var(--mono-font); color: #bfe6ff; }
.platehint .faint { color: var(--figure-mut); }
.legendrow { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--ink2); align-items: center; }
.legendrow .sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 5px; border: 1.6px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.legendrow .ln { display: inline-block; width: 22px; height: 0; border-top: 1.6px dashed #333; vertical-align: 3px; margin-right: 5px; }
.ctlrow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 10px; }
.ctlrow .lab { font: 700 9.5px var(--mono-font); letter-spacing: .14em; color: var(--mut); text-transform: uppercase; }
.seg.off { opacity: .4; pointer-events: none; }

.seg button.on { background: var(--sign); border-color: var(--sign-dk); color: #fff; }
.seg.acc button.on { background: var(--motorway); border-color: var(--motorway-dk); }

/* ── towns index and town pages ── */
.townlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.towncard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; box-shadow: var(--shadow); color: inherit; }
a.towncard:hover { text-decoration: none; border-color: var(--sign); transform: translateY(-1px); }
.towncard .nm { font-weight: 900; font-size: 15px; }
.towncard .he { display: block; font-size: 14px; color: var(--ink2); font-weight: 600; }
.towncard .meta { font: 700 10px var(--mono-font); color: var(--mut); letter-spacing: .08em; margin-top: 4px; text-transform: uppercase; }
.towncard .now { font: 800 13px var(--mono-font); color: var(--motorway-dk); margin-top: 6px; }
.provhead { margin: 22px 0 8px; font: 900 13px var(--font); letter-spacing: .16em; color: var(--sign); text-transform: uppercase; }
.provhead .he { text-transform: none; letter-spacing: .02em; font-size: 15px; color: var(--ink2); margin-left: 8px; font-weight: 700; }

.townhead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; }
.townhead h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -.01em; line-height: 1; }
.townhead .tri { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 4px; }
.townhead .tri .he { font: 800 clamp(20px, 3vw, 26px) var(--he-font); color: var(--sign); }
.townhead .tri .ar { font: 600 clamp(19px, 2.8vw, 24px) var(--ar-font); color: var(--ink2); }
.townhead .where { font: 700 11px var(--mono-font); color: var(--mut); letter-spacing: .1em; text-transform: uppercase; }
.nowgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.nowgrid .k { font: 700 9.5px var(--mono-font); letter-spacing: .14em; color: var(--mut); text-transform: uppercase; }
.nowgrid .v { font: 900 26px var(--font); line-height: 1.15; }
.nowgrid .v small { font-size: 13px; font-weight: 700; color: var(--ink2); margin-left: 3px; }
.nowgrid .s { font: 700 11px var(--mono-font); color: var(--ink2); }
.meteo { background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 10px 10px 4px; overflow-x: auto; }
.meteo svg { display: block; min-width: 720px; width: 100%; height: auto; }
.meteo .ax { font: 700 10px var(--mono-font); fill: var(--mut); }
.meteo .axl { font: 800 9.5px var(--mono-font); letter-spacing: .12em; fill: var(--ink2); }
.meteo .grid { stroke: var(--line2); stroke-width: 1; }
.meteo .day { stroke: var(--line); stroke-width: 1; }
.meteo .now { stroke: var(--w-red); stroke-width: 1.4; stroke-dasharray: 3 3; }
.meteo .dayl { font: 800 11px var(--font); fill: var(--ink); letter-spacing: .06em; }
.meteo .src { font: 700 9px var(--mono-font); fill: var(--mut); letter-spacing: .08em; }
.meteo .t2 { fill: none; stroke: #d0452b; stroke-width: 2.2; stroke-linejoin: round; }
.meteo .td { fill: none; stroke: #2f8f5b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.meteo .alt { fill: none; stroke-width: 1.5; stroke-linejoin: round; opacity: .9; }
.meteo .alt.icon { stroke: var(--sign); stroke-dasharray: 5 3; }
.meteo .alt.ukmo { stroke: #b5741f; stroke-dasharray: 2 2.5; }
.meteo .ws { fill: none; stroke: var(--motorway); stroke-width: 2; }
.meteo .gust { fill: none; stroke: var(--motorway); stroke-width: 1; stroke-dasharray: 3 2; }
.meteo .bar { fill: #3f86c8; }
.meteo .mslp { fill: none; stroke: #6a5a8c; stroke-width: 1.6; }
.meteo .cloud { fill: #9aa3a8; }
.meteo .zero { stroke: #6fa8dc; stroke-width: 1; stroke-dasharray: 2 2; }
.daystrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.dayc { background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; box-shadow: var(--shadow); }
.dayc.ims { border-top: 4px solid var(--sign); }
.dayc .d { font: 900 12px var(--font); letter-spacing: .1em; text-transform: uppercase; }
.dayc .dhe { font: 600 12.5px var(--he-font); color: var(--ink2); display: block; }
.dayc .t { font: 900 20px var(--font); margin-top: 4px; }
.dayc .t .lo { font-size: 14px; color: var(--mut); font-weight: 800; margin-left: 4px; }
.dayc .m { font: 700 11px var(--mono-font); color: var(--ink2); margin-top: 3px; line-height: 1.5; }
.hrtable { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--card); }
.hrtable th, .hrtable td { padding: 5px 8px; border-bottom: 1px solid var(--line2); text-align: right; white-space: nowrap; }
.hrtable th { font: 800 9.5px var(--mono-font); letter-spacing: .1em; color: var(--mut); text-transform: uppercase; position: sticky; top: 0; background: var(--card); }
.hrtable td { font-family: var(--mono-font); font-weight: 700; }
.hrtable td:first-child, .hrtable th:first-child { text-align: left; }
.hrtable tr.day td { background: var(--line2); font-family: var(--font); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.tablewrap { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.twarn { margin: 14px 0 0; }

/* Light only: the network rule is never a dark page theme (no dark media-query
   override, no toggle). */
:root { color-scheme: light; }

@media (max-width: 620px) {
  .rule .sub { display: none; }
  .util .long { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   The explorer — Forecast Africa's rules, on this palette
   ═══════════════════════════════════════════════════════════════════════════ */
   of the site rather than as a different application.
   ══════════════════════════════════════════════════════════════════════════ */

.wrap-wide { max-width: 1560px; margin: 0 auto; padding: 0 18px; }
.sign-tight { padding: 16px 20px 15px; }
.sign-tight .signhead > img { width: 52px; height: 52px; }

.xp { margin-top: 18px; }

/* ── the control bars ─────────────────────────────────── */
.xp-bar {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 15px; box-shadow: 0 6px 22px rgba(0, 0, 0, .07);
}
.xp-bar2 { margin-top: 9px; padding: 10px 15px; }
.xp-grp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xp-grow { flex: 1 1 320px; }
.xp-desc { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--mut);
  line-height: 1.4; }

/* The model picker. Three buttons, each carrying the centre that made the model and
   the resolution it runs at — because on this page "which model" and "whose model"
   are the same question, and the answer is the reason to click. */
.mdls { display: flex; gap: 7px; flex-wrap: wrap; }
.mdl {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 7px;
  padding: 7px 13px 6px; cursor: pointer; font-family: var(--font); color: var(--ink2);
  transition: border-color .12s, background .12s, color .12s; line-height: 1.15;
}
.mdl .n { font-size: 15px; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
.mdl .c { font-family: var(--mono-font); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; color: var(--mut); }
.mdl .r { font-family: var(--mono-font); font-size: 9px; font-weight: 700;
  letter-spacing: .06em; color: var(--mut); }
.mdl:hover:not(:disabled) { border-color: var(--sign); }
.mdl.on { background: var(--sign); border-color: var(--sign-dk); }
.mdl.on .n, .mdl.on .c, .mdl.on .r { color: #fff; }
.mdl.on .c, .mdl.on .r { color: var(--sign-sub); }
.mdl.dead { opacity: .4; cursor: not-allowed; }

/* The field picker. A field the active model does not publish is greyed rather than
   removed — see the note in explorer.js. */
.flds { display: flex; gap: 5px; flex-wrap: wrap; }
.fld {
  font: 800 11.5px var(--font); letter-spacing: .02em; background: var(--card);
  color: var(--ink2); border: 1px solid var(--line); border-radius: 5px;
  padding: 6px 11px; cursor: pointer; transition: .12s;
}
.fld:hover:not(:disabled) { border-color: var(--green); color: var(--ink); }
.fld.on { background: var(--green); border-color: var(--green-dk); color: #fff; }
.fld.off { opacity: .35; cursor: not-allowed; text-decoration: line-through;
  text-decoration-thickness: 1px; }

.rgns { display: flex; gap: 5px; flex-wrap: wrap; }
.rgn {
  font: 700 11px var(--mono-font); letter-spacing: .04em; text-transform: uppercase;
  background: var(--card); color: var(--ink2); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 12px; cursor: pointer; transition: .12s;
}
.rgn:hover { border-color: var(--mf); color: var(--mf-dk); }

#opacity { width: 150px; accent-color: var(--sign); }

/* ── the map stage ────────────────────────────────────── */
.xp-stage {
  position: relative; margin-top: 11px; border-radius: 10px; overflow: hidden;
  background: #0a0e14; border: 1px solid #223142;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}
#map { width: 100%; height: min(74vh, 820px); min-height: 420px; }

/* MapLibre's own chrome, re-dressed to the site rather than left as its default blue */
.maplibregl-ctrl-group { border-radius: 6px !important; box-shadow: 0 2px 8px rgba(0,0,0,.3) !important; }
.maplibregl-ctrl-scale { background: rgba(10,14,20,.6) !important; border-color: rgba(255,255,255,.4) !important;
  color: #dfe6ea !important; font-family: var(--mono-font) !important; font-size: 10px !important; }

.xp-hud {
  position: absolute; top: 12px; left: 12px; right: 12px; display: flex;
  justify-content: space-between; align-items: flex-start; gap: 12px;
  pointer-events: none; z-index: 2;
}
.xp-stamp {
  background: rgba(10, 14, 20, .82); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px; padding: 7px 12px; color: #fff; line-height: 1.15;
}
.xp-stamp .sv { display: block; font: 900 17px var(--mono-font); letter-spacing: .02em; }
.xp-stamp .sf { display: block; font: 700 10.5px var(--mono-font); letter-spacing: .1em;
  color: #9fc4e0; margin-top: 2px; }

.xp-read {
  background: rgba(10, 14, 20, .82); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px; padding: 7px 12px; text-align: right; min-width: 120px;
}
.xp-read:empty { display: none; }
.xp-read .pv { display: block; font: 900 19px var(--mono-font); color: #fff; }
.xp-read .pv.dim { color: #6f8496; }
.xp-read .pxy { display: block; font: 700 10px var(--mono-font); letter-spacing: .06em;
  color: #9fb3c4; margin-top: 2px; }

.xp-attrib {
  position: absolute; bottom: 0; right: 0; z-index: 2;
  background: rgba(10, 14, 20, .74); color: #b9c9d6; border-radius: 6px 0 0 0;
  padding: 5px 11px; font: 700 10px var(--mono-font); letter-spacing: .05em;
  text-transform: uppercase;
}
.xp-attrib a { color: #9fc4e0; }

/* The pinned point for the compare readout. A ring rather than a filled dot: whatever
   is under it is the thing being measured, and a solid marker hides it. */
.pinmark {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: 0 0 0 2px rgba(10, 14, 20, .75);
  background: transparent; cursor: crosshair;
}

.xp-offset {
  margin: 9px 0 0; font: 700 12px var(--font); color: var(--nf-dk);
  background: var(--nf-sub); border: 1px solid #dda87f; border-radius: 6px;
  padding: 8px 12px;
}

/* ── legend and compare ───────────────────────────────── */
.xp-legend, .xp-compare {
  margin-top: 11px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 15px; box-shadow: 0 6px 22px rgba(0, 0, 0, .07);
}
.lg-head { display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; flex-wrap: wrap; margin-bottom: 9px; }
.lg-t { font-size: 14.5px; font-weight: 900; letter-spacing: -.01em; }
.lg-u { font-family: var(--mono-font); font-size: 11px; font-weight: 700;
  color: var(--mut); margin-left: 5px; }

.lg-bar { height: 15px; border-radius: 3px; border: 1px solid var(--line);
  overflow: hidden; }
/* A banded table draws hard steps and a continuous ramp draws a gradient, from the
   same stop array — the only thing that differs is whether the colour is allowed to
   interpolate, which is exactly the difference between the two products. */
.lg-bar.banded { display: flex; }
.lg-bar.banded span { flex: 1 1 0; }
.lg-ax { display: flex; justify-content: space-between; margin-top: 4px;
  font: 700 10px var(--mono-font); color: var(--mut); }

.cmp-rows { display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cmp-empty { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600;
  color: var(--mut); }
.cmp {
  border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px;
  background: var(--paper2); display: flex; flex-direction: column; gap: 1px;
}
/* The model currently drawn on the map is marked, so the column you are reading is
   tied to the picture you are looking at. */
.cmp.on { border-color: var(--sign); background: #fff;
  box-shadow: inset 3px 0 0 var(--sign); }
.cmp .cm { font-family: var(--mono-font); font-size: 10px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--mut); }
.cmp .cv { font-size: 21px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.cmp .cs { font-family: var(--mono-font); font-size: 10px; font-weight: 700;
  color: var(--mut); }

/* ── the timeline, shared with the sibling sites ──────── */
.timeline {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  margin-top: 11px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px 9px; box-shadow: 0 6px 22px rgba(0, 0, 0, .07);
}
.tl-side { display: flex; flex-direction: column; gap: 5px; }
.tl-lab { font-size: 9px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mut); }
.tl-transport { display: flex; align-items: center; gap: 5px; }
.tl-track { flex: 1 1 340px; min-width: 240px; display: flex; flex-direction: column; }
.tl-track input[type="range"] { width: 100%; margin: 0; accent-color: var(--sign); }
.tl-ticks { position: relative; height: 23px; margin: 3px 9px 0; pointer-events: none; }
.tl-ticks .tk { position: absolute; top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; }
.tl-ticks .tk.at-start { transform: translateX(-2px); align-items: flex-start; }
.tl-ticks .tk.at-end { transform: translateX(calc(-100% + 2px)); align-items: flex-end; }
.tl-ticks .tk i { width: 1px; height: 5px; background: var(--line); display: block; }
.tl-ticks .tk span { font: 700 8.5px var(--mono-font); color: var(--mut);
  white-space: nowrap; line-height: 1; margin-top: 3px; letter-spacing: .02em; }
.tl-ticks .tk.day i { height: 9px; width: 2px; background: var(--sign); }
.tl-ticks .tk.day span { color: var(--ink2); font-weight: 800; }
.tl-buffer { height: 2px; margin: 2px 9px 0; border-radius: 2px; background: var(--line2);
  overflow: hidden; transition: opacity .4s ease .3s; }
.tl-buffer::before { content: ""; display: block; height: 100%; width: var(--pct, 0%);
  background: var(--sign); transition: width .15s linear; }
.tl-buffer.is-full { opacity: 0; }
.tl-ends { display: flex; justify-content: space-between; gap: 10px;
  font: 700 9.5px var(--mono-font); color: var(--mut); letter-spacing: .02em; }
.tl-count { font: 900 13px var(--mono-font); color: var(--ink); }

/* The explorer fades in once the catalogs are in and the first frame is placed —
   without it the page shows a working map with no field on it for a beat, which reads
   as broken rather than as loading. */
.xp-stage, .xp-legend, .xp-compare, .timeline { transition: opacity .3s ease; }
body:not(.ready) .xp-legend, body:not(.ready) .xp-compare { opacity: .45; }

@media (max-width: 700px) {
  #map { height: 62vh; }
  .xp-hud { top: 8px; left: 8px; right: 8px; }
  .xp-stamp .sv { font-size: 14px; }
}

/* The map's own failure state. MapLibre needs WebGL2 and some machines do not have it;
   the rest of the page is still worth reading, so the frame says what happened instead
   of sitting black and empty. */
.xp-nomap {
  margin: 0; padding: 40px 30px; text-align: center; color: #b9c9d6;
  font-size: 14px; font-weight: 700; line-height: 1.6; max-width: 560px;
  margin-inline: auto;
}

/* ── the explorer's second tier of controls ───────────────
   Everything above the fold is the reading instrument — model, field, run, time. The
   rest is how the map *looks*, which matters and is not what anyone opens the page
   for, so it folds away behind one summary. Open it and it is all there; leave it shut
   and the map is bigger. */
.xp-more {
  margin-top: 9px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .07); overflow: hidden;
}
.xp-more > summary {
  cursor: pointer; padding: 10px 15px; font-family: var(--mono-font);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2); list-style: none; display: flex; align-items: center; gap: 8px;
}
.xp-more > summary::-webkit-details-marker { display: none; }
.xp-more > summary::before { content: "▸"; color: var(--sign); font-size: 13px; }
.xp-more[open] > summary::before { content: "▾"; }
.xp-more > summary:hover { color: var(--sign); }
.xp-bar3 { border: 0; border-top: 1px solid var(--line2); border-radius: 0;
  box-shadow: none; gap: 24px; }

.xp-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xp-inline select { max-width: 168px; }

/* A checkbox and its word, as one target. Used for the boundary overlays and the
   Smooth switch — both are on/off facts about the picture rather than settings, so
   they read as a list of things that are or are not drawn. */
.switch {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--ink2);
  letter-spacing: 0; text-transform: none;
}
.switch input { accent-color: var(--sign); margin: 0; cursor: pointer; }
.switch:hover { color: var(--ink); }
.switch input:disabled { cursor: not-allowed; }
.switch:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.overlay-box {
  display: grid; gap: 3px 14px; grid-template-columns: repeat(2, minmax(120px, 1fr));
}

/* Sub-controls of the wind mode segment, styled as subordinate to it: indented under
   a rule, smaller labels, and absent outright when the mode has nothing for them to
   change — barbs have no seeding and no animation speed. */
.wind-opts {
  display: flex; flex-direction: column; gap: 5px; margin-top: 6px;
  padding-left: 9px; border-left: 2px solid var(--line2);
}
.wind-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wind-opt label { font-size: 9px; letter-spacing: .09em; }
.wind-opt select { padding: 3px 5px; font-size: 11px; font-weight: 700; min-width: 92px; }

/* The wind overlay is a canvas of its own above the map, because a streamline
   animation composites frame to frame and must not be cleared by MapLibre's redraw.
   It takes no pointer events, so the map still drags and the probe still reads
   through it. */
#wind-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* MapLibre's attribution, re-dressed to the site. It carries OpenStreetMap and
   whichever imagery basemap is on, and both of those are conditions of use. */
.maplibregl-ctrl-attrib {
  background: rgba(10, 14, 20, .74) !important; color: #b9c9d6 !important;
  font-family: var(--mono-font) !important; font-size: 10px !important;
}
.maplibregl-ctrl-attrib a { color: #9fc4e0 !important; }

@media (max-width: 860px) {
  .overlay-box { grid-template-columns: 1fr; }
  .xp-bar3 { gap: 16px; }
}
.imstab .wxi { vertical-align: -3px; }
