/* Forecast dBZ — the document pages.
 *
 * This is weather.city's highway-signage system, shared unchanged with Forecast
 * Eagle so the three sites read as one network: MUTCD guide-sign green #04663d,
 * motorist-services blue #0a5ca8, warm paper ground #e6e2da, and Overpass — the
 * open, metric-compatible cut of FHWA Highway Gothic, which is the actual
 * Interstate signage face.
 *
 * Forecast Eagle's own note within that system is the Interstate route shield.
 * Forecast dBZ's is **the reflectivity scale itself** — the green-yellow-red
 * ramp every American has been reading off a television since childhood. It is
 * already a piece of signage: a legend, meant to be read at a glance, with hard
 * class edges and no ambiguity about which end is worse. So the site's mark is
 * its own colour bar, and the highway motif and the radar identity end up being
 * one thing rather than two competing ones.
 *
 * The document is light paper throughout. Radar sits in a dark inset panel, the
 * same way weather.city frames its national outlook figures and for the same
 * reason: reflectivity needs a dark ground, the surrounding page does not.
 *
 * The viewer at /radar has its own stylesheet (forecastdbz.css). That page is an
 * instrument, not a document — full-bleed, no scroll, theme-following chrome —
 * and trying to serve both from one file would compromise each.
 */

:root {
  --paper: #e6e2da;
  --card: #ffffff;
  --ink: #161616;
  --ink2: #4a463e;
  --sign: #04663d;
  --sign-dk: #013d26;
  --sign-tx: #ffffff;
  --sign-sub: #bdebcf;
  --blue: #0a5ca8;
  --navy: #103e7e;
  --blue-sub: #cfe2f6;
  --line: #c9c5bc;
  --line2: #e4e1d9;
  --mut: #8a867c;
  --shield-red: #c0331a;
  --amber: #f2ac14;

  /* Dark inset, for radar imagery */
  --figure: #0a0e14;
  --figure-line: #223142;

  --font: 'Overpass', Helvetica, Arial, sans-serif;
  --mono-font: 'Overpass Mono', ui-monospace, monospace;
  --maxw: 1080px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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: 4px 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; }
/* On a phone the site descriptor is the first thing to go: it is the least
   useful string in the bar and it is what pushes the links onto a second row. */
@media (max-width: 560px) { .util .mono { display: none; } }
.util .lnks { display: flex; gap: 15px; 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); }

/* ── 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;
}

/* The site's mark: a reflectivity scale, built as a piece of signage.
   Values are the ones people quote — 20 is rain, 40 is heavy, 60 is a core. */
.dbzmark {
  border: 2.5px solid #fff; border-radius: 6px; padding: 5px 8px 6px;
  text-align: center; line-height: 1; flex: none; display: inline-block;
  min-width: 96px;
}
.dbzmark .a { font-size: 8px; font-weight: 700; letter-spacing: .16em; color: var(--sign-sub); }
.dbzmark .bar {
  display: block; height: 9px; margin: 4px 0 3px; border-radius: 2px;
  background: linear-gradient(90deg, #1e8fc8 0%, #189248 22%, #20c42c 40%,
              #faf03c 56%, #f7b028 68%, #e62828 80%, #f03cf0 92%, #9628be 100%);
}
.dbzmark .c { font-size: 8px; font-weight: 700; letter-spacing: .1em; color: var(--sign-sub);
  display: flex; justify-content: space-between; font-family: var(--mono-font); }

/* Exit-style chips */
.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, .1); border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 5px; padding: 8px 13px; font-family: inherit; font-weight: 700;
  font-size: 12px; letter-spacing: .03em; cursor: pointer; color: #fff;
  /* 44 px of touch target on a phone even though the chip looks smaller */
  min-height: 38px; display: inline-flex; align-items: center;
}
.mm:hover { background: #fff; color: var(--sign); text-decoration: none; }
.mm.go { background: #fff; color: var(--sign); font-weight: 900; }

/* ── 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(--sign) 0 18px, transparent 18px 34px);
}
.rule h2 {
  margin: 0; color: var(--sign); 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; }
@media (max-width: 620px) { .rule .sub { display: none; } }

/* ── 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(--sign); 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 .k { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--sign-sub); }
.card .chead.blue .k { color: var(--blue-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; }
/* A product card carries its own scale, because "what does this one look like"
   is the question the card exists to answer. */
.card .swatch { display: block; height: 7px; }

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

/* The dark inset that radar imagery sits in — the one place the paper ground
   gives way, because reflectivity is unreadable on paper and always was. */
.figure {
  background: var(--figure); border: 1px solid var(--figure-line); border-radius: 8px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.figure img { display: block; width: 100%; height: auto; }
.figure .cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 13px; border-top: 1px solid var(--figure-line);
  color: #9fb0c2; font-size: 11px; font-weight: 700; flex-wrap: wrap;
}
.figure .cap b { color: #e9eef5; font-weight: 900; }

/* ── prose ────────────────────────────────────────────── */
.prose { max-width: 66ch; }
.prose p { color: var(--ink2); font-size: 14.5px; line-height: 1.62; font-weight: 500; }
.prose h3 { margin: 26px 0 6px; font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.prose ul { color: var(--ink2); font-size: 14.5px; line-height: 1.62; padding-left: 20px; }
.prose li { margin: 5px 0; }
.prose a { color: var(--navy); font-weight: 800; }
.prose strong { color: var(--ink); }
.prose code {
  font-family: var(--mono-font); font-size: 12.5px; background: #efece5;
  border: 1px solid var(--line2); border-radius: 3px; padding: 1px 5px;
}

table.data { border-collapse: collapse; width: 100%; font-size: 13px; }
table.data th, table.data td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line2);
  font-weight: 600; color: var(--ink2);
}
table.data th {
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mut); border-bottom: 2px solid var(--line);
}
table.data td b { color: var(--ink); font-weight: 900; }
/* A table is the one thing on these pages allowed its own scrollbar: shrinking
   a units column to fit a phone makes it unreadable rather than compact. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 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(--sign); color: #fff; }
.badge-new { background: var(--shield-red); color: #fff; }
.badge-soon { background: #efece5; color: var(--mut); border: 1px solid var(--line); }
.mile { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.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 .row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

.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) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
