/* Forecast Gas — pipeline signage design system
 *
 * Same bones as the rest of the Forecast Network (weather.city, Forecast Eagle,
 * Forecast Euro, Forecast Canada, Forecast Waves): warm paper ground, Overpass (the
 * open cut of Highway Gothic), the utility bar, the guide-sign panel, the dashed
 * rule, the card with a signal-coloured head. What changes is the identity colour
 * and the mark, and neither is arbitrary.
 *
 * The headline is **Safety Yellow** (`#f5b800`). The land sites have claimed the
 * road colours (Eagle's guide green, Euro's motorist blue, Canada's maple red) and
 * Waves took the reserved teal. Yellow is the one colour with a fixed meaning for
 * this subject: under the APWA uniform colour code it marks buried gas lines, and
 * on the road it is the warning sign, black on yellow. So the sign here is a warning
 * sign (black lettering on yellow), the mark is the yellow warning diamond with a
 * flame, and the section rules are caution tape rather than a painted dash.
 *
 * Yellow is an identity and UI colour only. It never encodes data; the charts keep
 * their own validated palette (see "charts" below).
 */

:root {
  --paper: #e6e2da;
  --card: #ffffff;
  --ink: #161616;
  --ink2: #4a463e;
  /* Safety Yellow is the headline; black is its lettering. */
  --sign: #f5b800;
  --sign-dk: #d99e00;
  --sign-tx: #161616;
  --sign-sub: #4f3c00;
  --sign-ink: #7a5300;          /* the yellow's text form, for headings on paper */
  --blue: #0a5ca8;
  --navy: #103e7e;
  --blue-sub: #cfe2f6;
  --line: #c9c5bc;
  --line2: #e4e1d9;
  --mut: #8a867c;
  --shield-red: #c0331a;

  --figure: #0a0e14;
  --figure-line: #223142;

  /* data (never the identity colour) */
  --m-ecmwf: #2a78d6; --m-gefs: #eb6834; --m-gfs: #1baf7a;
  --m-gem: #eda100;   --m-icon: #e87ba4; --m-ukmet: #008300;
  --m-aifs: #6a3fb5; --m-gefs35: #eb6834;
  --m-geps: #8a5a2b; --m-blend: #c0331a; --m-pooled: #0a5ca8;
  --normal: #4a463e;
  --up: #d03b3b;   --down: #2a78d6;
  --grid: #e4e1d9; --axis: #c9c5bc;

  --font: 'Overpass', Helvetica, Arial, sans-serif;
  --mono-font: 'Overpass Mono', ui-monospace, monospace;
  --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; }
.num { 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; }
[hidden] { display: none !important; }

/* ── 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 .home { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 900;
  font-size: 12px; letter-spacing: .08em; }
.util .home img { width: 18px; height: 18px; }
.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); text-decoration: none; }
.util a[aria-current="page"] { color: var(--sign); }

/* ── the warning sign ─────────────────────────────────── */
.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 var(--ink), 0 10px 30px rgba(0, 0, 0, .16); }
.sign.slim { padding: 18px 22px 16px; }
.sign a { color: var(--sign-tx); }
.signhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.signhead img { width: 66px; height: 66px; flex: none; display: block; }
.word { font-weight: 900; font-size: clamp(28px, 5.4vw, 50px); line-height: .92; letter-spacing: -.02em; margin: 0; }
.sign.slim .word { font-size: clamp(22px, 3.6vw, 32px); }
.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; }
.shield { border: 2.5px solid var(--ink); border-radius: 6px; padding: 5px 10px 6px; text-align: center;
  line-height: 1; flex: none; display: inline-block; background: rgba(255, 255, 255, .18); }
.shield .a { font-size: 8px; font-weight: 700; letter-spacing: .16em; color: var(--sign-sub); }
.shield .b { font-size: 20px; font-weight: 900; letter-spacing: .04em; display: block; }
.shield .c { font-size: 8px; font-weight: 700; letter-spacing: .12em; color: var(--sign-sub); }
.exits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.exits .lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--sign-sub); }
.mm { background: rgba(255, 255, 255, .25); border: 1.5px solid var(--ink); border-radius: 5px; padding: 6px 12px;
  font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: .03em; cursor: pointer; color: var(--ink); }
.mm:hover { background: var(--ink); color: var(--sign); text-decoration: none; }

/* ── section rule: caution tape ───────────────────────── */
section { padding: 26px 0 4px; }
.rule { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rule .ln { height: 6px; flex: 1; border-radius: 1px;
  background: repeating-linear-gradient(-45deg, var(--sign) 0 9px, var(--ink) 9px 18px); opacity: .9; }
.rule h2 { margin: 0; color: var(--ink); 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 and panels ─────────────────────────────────── */
.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(--sign); color: var(--ink); padding: 9px 14px; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .12);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 900; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; }
.card .chead.ink { background: var(--ink); color: #fff; }
.card .chead.ink .k { color: var(--sign); }
.card .chead .k { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--sign-sub); text-transform: uppercase; }
.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); }
.panel h2 { margin: 0 0 3px; font-size: 16px; font-weight: 900; letter-spacing: -.005em; }
.panel .sub { margin: 0 0 12px; color: var(--ink2); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.phead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }

/* ── 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; display: inline-block; }
.btn:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-go { background: var(--ink); color: var(--sign); border-color: var(--ink); font-weight: 900; letter-spacing: .06em; }
.btn-go:hover { background: #000; color: var(--sign); }
select, input[type="text"], input[type="search"], input[type="email"] { 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, .seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
label, .lab { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.seg { display: inline-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: 6px 9px; 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, .seg button[aria-pressed="true"] { background: var(--ink); color: var(--sign); border-color: var(--ink); }
.seg button:disabled { cursor: not-allowed; opacity: .45; text-decoration: line-through; text-decoration-thickness: 1px; }

/* filter strip: one row above everything it scopes */
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .08); }
.filters .f { display: flex; flex-direction: column; gap: 5px; }
.meta { font: 700 11px var(--mono-font); letter-spacing: .03em; color: var(--ink2); margin: 10px 2px 0; }

/* ── KPI tiles (the exit-panel numbers) ───────────────── */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ink); border-radius: 6px;
  padding: 12px 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); min-width: 0; }
.kpi .label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.kpi .value { font-size: 32px; font-weight: 900; letter-spacing: -.02em; margin: 3px 0 1px; }
.kpi .delta { font: 800 12px var(--mono-font); }
.kpi .foot { font-size: 11.5px; font-weight: 600; color: var(--ink2); margin-top: 3px; }
.delta.up { color: var(--up); } .delta.down { color: var(--down); } .delta.flat { color: var(--mut); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c7 { grid-column: span 7; } .c6 { grid-column: span 6; }
.c5 { grid-column: span 5; } .c4 { grid-column: span 4; }
@media (max-width: 980px) { .c8, .c7, .c6, .c5, .c4 { grid-column: span 12; } }
.loading { opacity: .5; transition: opacity .15s; }

/* ── charts (data colours only; hairline grid; tooltips) ── */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 600 10.5px var(--font); fill: var(--mut); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .xhair { stroke: var(--mut); stroke-width: 1; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; font-weight: 700; color: var(--ink2); margin: 0 0 8px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw-line { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.legend .sw-box { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .16); min-width: 150px; z-index: 5; display: none; }
.tip .t-head { color: var(--ink2); margin-bottom: 4px; font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.tip .row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tip .row .v { font: 800 12px var(--mono-font); min-width: 46px; }
.tip .row .k { width: 12px; height: 3px; border-radius: 2px; }
.tip .row .n { color: var(--ink2); font-weight: 600; }

/* ── tables ───────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.data th, table.data td { padding: 6px 9px; text-align: right; border-bottom: 1px solid var(--line2); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
table.data th { color: var(--mut); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  position: sticky; top: 0; background: var(--card); border-bottom: 2px solid var(--ink); }
table.data tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; color: var(--ink); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td { font-family: var(--mono-font); font-size: 12px; }
table.data td:first-child { font-family: var(--font); font-weight: 700; }
table.data td.pos { color: var(--up); } table.data td.neg { color: var(--down); }
table.data .key { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* ── state tile map ───────────────────────────────────── */
.tilemap { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.tilemap .st { aspect-ratio: 1; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font: 800 10.5px var(--mono-font); cursor: default; position: relative; }
.tilemap .st:hover, .tilemap .st:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.ramp { display: flex; align-items: center; gap: 6px; font: 700 11px var(--mono-font); color: var(--ink2); margin-top: 10px; flex-wrap: wrap; }
.ramp .bar { display: flex; height: 9px; border-radius: 2px; overflow: hidden; flex: 0 0 170px; border: 1px solid var(--line); }
.ramp .bar span { flex: 1; }

/* ── map explorer ─────────────────────────────────────── */
.explorer { display: grid; grid-template-columns: 290px 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } }
.ex-side { display: flex; flex-direction: column; gap: 12px; }
.ex-side .blk { display: flex; flex-direction: column; gap: 6px; }
.ex-map { position: relative; height: min(72vh, 680px); min-height: 420px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0, 0, 0, .08); background: #aebfcc; }
.ex-map .maplibregl-map { font-family: var(--font); }
.ex-legend { position: absolute; left: 10px; bottom: 10px; z-index: 3; background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); max-width: calc(100% - 20px); }
.ex-legend .t { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-bottom: 5px; }
.ex-legend .bar { display: flex; height: 10px; width: 240px; max-width: 100%; border-radius: 2px; overflow: hidden; border: 1px solid var(--line); }
.ex-legend .bar span { flex: 1; }
.ex-legend .ends { display: flex; justify-content: space-between; font: 700 10px var(--mono-font); color: var(--ink2); margin-top: 3px; }
.ex-probe { position: absolute; right: 10px; top: 10px; z-index: 3; background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  border-left: 4px solid var(--ink); border-radius: 6px; padding: 8px 11px; min-width: 190px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  font-size: 12px; display: none; }
.ex-probe .pn { font-weight: 900; font-size: 13px; }
.ex-probe .pv { font: 900 20px var(--mono-font); margin: 2px 0; }
.ex-probe .pd { font: 700 11px var(--mono-font); color: var(--ink2); }
.ex-status { font: 700 11px var(--mono-font); color: var(--ink2); }

.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(--ink); }
.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 i { width: 2px; height: 7px; background: var(--ink); display: block; }
.tl-ticks .tk span { font: 700 9px var(--mono-font); color: var(--ink2); white-space: nowrap; line-height: 1; margin-top: 3px; }
.tl-count { font: 900 13px var(--mono-font); color: var(--ink); }

/* ── 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(--ink); color: var(--sign); }
.badge-new { background: var(--shield-red); 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; }
.site-footer .net { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--sign); padding: 9px 14px; z-index: 200; font-weight: 800; }
.skip:focus { left: 0; }
.prose { max-width: 800px; min-width: 0; overflow-wrap: anywhere; }
.prose h1 { font-size: 30px; font-weight: 900; letter-spacing: -.015em; margin: 6px 0 16px; }
.prose h2 { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin: 34px 0 10px;
  padding-bottom: 6px; border-bottom: 3px solid var(--sign); display: inline-block; }
.prose h3 { font-size: 16px; font-weight: 900; margin: 22px 0 8px; }
.prose p, .prose li { font-size: 15px; line-height: 1.62; font-weight: 500; }
.prose blockquote { margin: 14px 0; padding: 10px 16px; border-left: 5px solid var(--sign); background: var(--card); border-radius: 0 6px 6px 0; }
.prose code, .prose pre { font: 13px/1.5 var(--mono-font); }
.prose code { background: var(--card); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }
.prose pre { background: var(--figure); color: #e6e2da; border-radius: 6px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { border: 0; background: none; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 12px 0; background: var(--card);
  display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line2); padding: 7px 9px; text-align: left; vertical-align: top; }
.prose th { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); border-bottom: 2px solid var(--ink); }
.prose a { color: var(--navy); font-weight: 700; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── small screens: the map first, and a utility bar that does not eat the screen ── */
@media (max-width: 900px) {
  .explorer > aside { order: 2; }
  .ex-map { height: 62vh; min-height: 360px; }
}
@media (max-width: 700px) {
  .util { position: static; }
  .util .mono { display: none; }
  .util .lnks { gap: 6px 12px; padding-bottom: 6px; }
}

/* ════════════════════════════════════════════════════════════════════
   v2: readability. The weather.football lessons: a hero band that states
   the answer in big numbers, section heads that say what a block is for,
   board tables with colour doing the first read, and charts sized to be read.
   ════════════════════════════════════════════════════════════════════ */
body { font-size: 15px; }

/* hero band: black road surface, yellow edge lines, the answer in chips */
.band { background: var(--ink); color: #f2efe8; border-bottom: 4px solid var(--sign); position: relative; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sign); }
.band .wrap, .band .wrap-wide { padding-top: 26px; padding-bottom: 24px; }
.band .bhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.band .bhead img { width: 58px; height: 58px; flex: none; }
.band h1 { margin: 0; font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.band h1 .yl { color: var(--sign); }
.band .lede { margin: 10px 0 0; font-size: clamp(15px, 1.9vw, 18px); font-weight: 600; color: #d8d4ca; max-width: 72ch; line-height: 1.45; }
.band .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.band .cta { background: var(--sign); color: var(--ink); font-weight: 900; font-size: 14px; letter-spacing: .02em;
  padding: 11px 18px; border-radius: 5px; border: 2px solid var(--sign); }
.band .cta.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.band .cta:hover { text-decoration: none; filter: brightness(1.08); }
.chips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 22px; }
.chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-top: 3px solid var(--sign);
  border-radius: 8px; padding: 12px 14px 11px; min-width: 0; }
.chip.up { border-top-color: #ef6a5f; } .chip.down { border-top-color: #5ea2ee; }
.chip .l { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b9b4a8; }
.chip .v { font: 800 30px var(--mono-font); letter-spacing: -.02em; margin: 4px 0 2px; color: #fff; line-height: 1.1; }
.chip.up .v { color: #ff8a80; } .chip.down .v { color: #8cc0ff; } .chip.hot .v { color: var(--sign); }
.chip .s { font-size: 12.5px; font-weight: 700; color: #cfcabf; }

/* section head: a yellow post and a plain-English subtitle */
.shead { border-left: 6px solid var(--sign); padding: 2px 0 2px 14px; margin: 34px 0 14px; }
.shead h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.shead p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; font-weight: 600; }
.shead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }

/* bigger panels, bigger type */
.panel { padding: 18px 20px; }
.panel h2 { font-size: 18px; }
.panel .sub { font-size: 13.5px; }
.kpi .value { font-size: 36px; }
.kpi .label { font-size: 11px; }
.kpi .delta { font-size: 13.5px; }
.kpi .foot { font-size: 12.5px; }
.legend { font-size: 13.5px; gap: 8px 18px; }
.chart text { font: 600 12.5px var(--font); }
.chart text.dl { font: 800 12.5px var(--mono-font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart text.dln { font: 700 11.5px var(--font); fill: var(--ink2); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.tip { font-size: 13px; }
.tip .row .v { font-size: 13.5px; }
.seg button { font-size: 12px; padding: 7px 11px; }
.filters { position: sticky; top: 37px; z-index: 40; }
@media (max-width: 700px) { .filters { position: static; } }
select { font-size: 13px; padding: 7px 10px; }

/* board tables: dark head, zebra, heat cells, inline bars, sortable */
table.board { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; background: var(--card); }
table.board thead th { background: var(--ink); color: #f2efe8; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 11px 12px; text-align: right; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.board thead th:first-child { text-align: left; border-top-left-radius: 8px; }
table.board thead th:last-child { border-top-right-radius: 8px; }
table.board thead th.sortable { cursor: pointer; user-select: none; }
table.board thead th.sortable:hover { color: var(--sign); }
table.board thead th[aria-sort="descending"]::after { content: " ▼"; color: var(--sign); }
table.board thead th[aria-sort="ascending"]::after { content: " ▲"; color: var(--sign); }
table.board thead th.grp { border-left: 2px solid #3a3833; }
table.board td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line2); white-space: nowrap;
  font: 700 14px var(--mono-font); font-variant-numeric: tabular-nums; }
table.board td.grp { border-left: 2px solid var(--line2); }
table.board td:first-child { text-align: left; font: 800 14px var(--font); }
table.board td .sub { display: block; font: 600 11.5px var(--font); color: var(--mut); }
table.board tbody tr:nth-child(even) td { background: #faf9f6; }
table.board tbody tr:hover td { background: #fff7dc; }
table.board tbody tr.sel td { background: #fff1c2; }
table.board tbody tr.clickable { cursor: pointer; }
table.board tbody tr.lvl td:first-child { padding-left: 22px; }
table.board tr.group td { background: var(--paper) !important; font: 800 11px var(--font); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink2); padding: 8px 12px; text-align: left; }
.board-wrap { border: 1px solid var(--line); border-radius: 9px; overflow: auto; box-shadow: 0 6px 22px rgba(0,0,0,.08); background: var(--card); }
.board-wrap.tall { max-height: 620px; }
.hc { border-radius: 4px; padding: 2px 7px; display: inline-block; min-width: 58px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 8px; border: 1.5px solid #161616; }
.ibar { display: inline-flex; align-items: center; gap: 8px; }
.ibar .trk { width: 90px; height: 8px; border-radius: 4px; background: var(--line2); position: relative; overflow: hidden; }
.ibar .trk span { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.pill { display: inline-block; font: 800 11px var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.pill.cold { background: #dbe9fb; color: #104281; } .pill.warm { background: #fbe0de; color: #8e2019; } .pill.near { background: #efedea; color: #4a463e; }

/* tabs for paging long tables (week 1 / week 2 / all) */
.tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.tabs button { font: 800 12.5px var(--font); letter-spacing: .02em; border: 0; background: transparent; color: var(--ink2);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--sign); }
.tbl-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.tbl-tools input[type="search"] { min-width: 220px; padding: 8px 12px; border-radius: 999px; font-size: 13px; }
@media (max-width: 700px) {
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chip { padding: 9px 10px; }
  .chip .v { font-size: 22px; }
  .chip .s { font-size: 11px; }
  .band h1 { font-size: 30px; }
  .band .bhead img { width: 44px; height: 44px; }
  .shead h2 { font-size: 19px; }
  table.board td, table.board td:first-child { font-size: 13px; padding: 8px 9px; }
}

/* ── v3: chart type sized to be read at a glance, in ink not grey ── */
.chart text { font: 700 14px var(--font); fill: var(--ink2); }
.chart text.dl { font: 800 15px var(--mono-font); fill: var(--ink); }
.chart text.dln { font: 700 13px var(--font); fill: var(--ink2); }
.chart .gridline { stroke: #dcd8cf; }
.legend { font-size: 15px; font-weight: 700; color: var(--ink); gap: 10px 22px; }
.legend .sw-line { width: 22px; height: 4px; }
.legend .sw-box { width: 13px; height: 13px; }
.tip { font-size: 14px; padding: 10px 12px; min-width: 190px; }
.tip .t-head { font-size: 12.5px; }
.tip .row { gap: 10px; line-height: 1.55; }
.tip .row .v { font-size: 15px; min-width: 52px; }
.tip .row .k { width: 16px; height: 4px; }
.tilemap .st { font-size: 12.5px; }
.ramp { font-size: 13px; }
.ex-legend .t { font-size: 12px; }
.ex-legend .ends { font-size: 12.5px; }
.ex-probe { font-size: 14px; }
.ex-probe .pn { font-size: 15px; }
.ex-probe .pv { font-size: 24px; }
.ex-probe .pd { font-size: 13px; }
.tl-ticks .tk span { font-size: 11px; }
@media (max-width: 700px) {
  .chart text { font-size: 12.5px; }
  .legend { font-size: 13.5px; }
}

/* ── degree-day explorer (Forecast Eagle viewer layout) ───────────── */
.xhead { background: var(--card); border-bottom: 1px solid var(--line); }
.xhead .wrap-wide { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.xhead img { width: 40px; height: 40px; }
.xhead h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
.xhead .xsub { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.xctl { margin-top: 14px; border-top: 4px solid var(--sign); display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.xrow { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: flex-start; }
.xgrp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.xgrp.grow { flex: 1 1 420px; }
.xnote { font-size: 11.5px; font-weight: 600; color: var(--mut); }
.bset { display: flex; flex-wrap: wrap; gap: 5px; }
.bset button { font: 700 12.5px var(--font); letter-spacing: .02em; background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 3px; padding: 7px 11px; cursor: pointer; }
.bset button:hover { border-color: var(--ink); }
.bset button[aria-pressed="true"] { background: var(--ink); color: var(--sign); border-color: var(--ink); }
.bset button:disabled { opacity: .4; cursor: not-allowed; }
.sectors { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; align-items: center; }
.sectors .sl { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--mut); text-transform: uppercase; }
.sectors .bset button { font-size: 12px; padding: 5px 9px; }
.runpick { display: flex; gap: 5px; align-items: center; }
.runpick select { min-width: 190px; }
.xmain { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 1100px) { .xmain { grid-template-columns: 1fr; } }
.xstage { position: relative; height: min(76vh, 760px); min-height: 460px; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0, 0, 0, .1); background: #aebfcc; }
.xstage .maplibregl-map { font-family: var(--font); }
.xcard { position: absolute; z-index: 3; background: rgba(22, 22, 22, .9); color: #fff; border-radius: 7px; padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); pointer-events: none; max-width: 60%; }
.xcard .t1 { font-size: 17px; font-weight: 900; letter-spacing: -.005em; }
.xcard .t2 { font-size: 12.5px; font-weight: 700; color: #cfcabf; margin-top: 2px; }
.xtitle { left: 12px; top: 12px; }
.xvalid { right: 12px; top: 12px; text-align: right; }
.xvalid .t1 { font: 800 20px var(--mono-font); color: var(--sign); }
.xstage .ex-probe { top: auto; bottom: 12px; right: 12px; }
.xstage .maplibregl-ctrl-top-left { top: 78px; }
.xkeys { font: 800 11px var(--font); letter-spacing: .08em; color: var(--ink2); margin: 8px 2px 0; }
.xlegend { display: grid; grid-template-columns: minmax(280px, 1.2fr) 1fr; gap: 20px; margin-top: 12px; align-items: center; }
@media (max-width: 800px) { .xlegend { grid-template-columns: 1fr; } }
.xl-bar .bar { display: flex; height: 16px; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.xl-bar .bar span { flex: 1; }
.xl-bar .ends { display: flex; justify-content: space-between; font: 800 13px var(--mono-font); margin-top: 4px; }
.xl-about p { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.xinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; margin-top: 12px; overflow: hidden; box-shadow: 0 6px 22px rgba(0, 0, 0, .06); }
.xinfo div { padding: 12px 16px; border-left: 1px solid var(--line2); display: flex; flex-direction: column; gap: 4px; }
.xinfo div:first-child { border-left: 0; }
.xinfo b { font: 800 15px var(--mono-font); }
.xpoint { margin-top: 14px; border-top: 4px solid var(--ink); }
.xdrawer { border-top: 4px solid var(--sign); display: flex; flex-direction: column; gap: 4px; position: sticky; top: 50px; }
.xd-h { font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line2); }
.xd-blk { display: flex; flex-direction: column; gap: 7px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.xd-blk:last-child { border-bottom: 0; }
.xd-blk input[type="range"] { accent-color: var(--ink); width: 100%; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: 0; text-transform: none; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--ink); }
/* v4: storage */
table.board td.pos { color: var(--up); font-weight: 800; } table.board td.neg { color: var(--down); font-weight: 800; }
.legend .sw { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
