/* HiveWatch Utah
   Chrome adapted from the Prepare Utah visual language (serif headings,
   sticky header, emergency strip, cards), set in a dark night palette:
   deep blue-black ground, warm cream type, honey accents. Prepare Utah
   and FaultLine Utah stay light; HiveWatch is the night-shift sibling.

   Every color lives in :root below. Print switches back to a light
   palette at the bottom of this file.
*/

:root {
  /* ground */
  --bg: #0E1418;
  --bg-2: #131B21;
  --card: #18222A;
  --card-2: #1F2B34;
  --header: #111A20;
  --footer: #0A0F12;
  --line: #2A3842;
  --line-strong: #3B4C58;

  /* type */
  --ink: #E9E2D4;
  --ink-soft: #C9D0D5;
  --muted: #9EAAB3;
  --head: #F4E8D0;

  /* accents */
  --link: #8FBCE6;
  --link-hover: #F0C566;
  --gold: #E2AE48;
  --gold-bright: #F0C566;
  --gold-soft: #2C2413;
  --gold-ink: #18130A;
  --sage: #93B68B;
  --sage-soft: #18261D;
  --blue: #1C3450;
  --blue-soft: #15222F;
  --rock: #E58F60;

  /* EPA's official AQI colors. AirNow's data guidelines ask sites to use
     them unchanged, so they don't follow the dark palette. */
  --aqi-good: #00E400;
  --aqi-moderate: #FFFF00;
  --aqi-usg: #FF7E00;
  --aqi-unhealthy: #FF0000;
  --aqi-very-unhealthy: #8F3F97;
  --aqi-hazardous: #7E0023;

  /* pollen calendar: one honey hue, dim to bright (validated as an
     ordinal ramp against --card) */
  --pollen-1: #735824;
  --pollen-2: #AE832E;
  --pollen-3: #F0C566;

  /* hero night sky and ridges */
  --sky-top: #172A3F;
  --ridge-far: #22384E;
  --ridge-near: #18293A;
  --ridge-base: #40241A;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .28);
  --shadow-lift: 0 12px 28px rgba(0, 0, 0, .45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--head); margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin: .35em 0; }
::selection { background: var(--gold); color: var(--gold-ink); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 8px; color: var(--gold-ink); }
#main:focus { outline: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.measure { max-width: 40rem; }
.bio { margin-top: 16px; }
.follow { margin-top: 1.75rem; }
.follow-sm { margin-top: 16px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.2em; flex: none; }
.js-only { display: none; }
.js .js-only { display: block; }

/* --- emergency strip & header --- */
.strip {
  background: var(--blue);
  color: #DCE4EB;
  font-size: .92rem;
  text-align: center;
  padding: 8px 14px;
}
.strip p { margin: 0; }
.strip strong { color: #fff; }
.strip a { color: var(--gold-bright); font-weight: 700; }
.strip a:hover { color: #fff; }

.site-header {
  background: var(--header);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--head); padding: 8px 0; }
.brand:hover { color: var(--head); }
.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.brand .logo .icon { width: 26px; height: 26px; }
.brand b { font-family: var(--serif); font-size: 1.28rem; display: block; line-height: 1.1; }
.brand small {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.brand small .long { display: none; }
@media (min-width: 600px) { .brand small .long { display: inline; } }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: .95rem;
  color: var(--head);
  cursor: pointer;
  min-height: 44px;
}
.js .nav-toggle { display: inline-flex; }

.site-nav { flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 12px; }
.site-nav a {
  display: flex;
  align-items: center;
  padding: 12px 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.js .site-nav { display: none; }
.js .site-nav.open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: calc(100dvh - 64px);
  overflow: auto;
}
.js .site-nav.open ul { padding: 8px 18px 14px; }

@media (min-width: 880px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-header .wrap { flex-wrap: nowrap; }
  .site-nav,
  .js .site-nav,
  .js .site-nav.open {
    display: block;
    position: static;
    flex-basis: auto;
    box-shadow: none;
    border: 0;
    background: none;
    max-height: none;
    overflow: visible;
  }
  .site-nav ul,
  .js .site-nav.open ul {
    display: flex;
    gap: 2px;
    padding: 0;
    align-items: center;
  }
  .site-nav a {
    border: 0;
    padding: 8px 12px;
    border-radius: 999px;
    min-height: 44px;
  }
  .site-nav a:hover { background: var(--card-2); color: var(--head); }
  .site-nav a[aria-current="page"] { background: var(--card-2); color: var(--gold-bright); }
}

/* --- buttons & hero --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--gold-ink);
  font: 600 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--gold-ink); }
.btn.secondary { background: transparent; color: var(--gold-bright); }
.btn.secondary:hover { background: var(--gold-soft); color: var(--gold-bright); }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--bg) 82%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 36px; padding-bottom: 12px; }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 22em;
  margin-bottom: .6em;
}
.eyebrow, .hero .eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--rock);
  margin: 0 0 10px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
}
.trust li { margin: 0; }
.hero-art { height: 112px; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art .ridge-far { fill: var(--ridge-far); }
.hero-art .ridge-near { fill: var(--ridge-near); }
.hero-art .ridge-base { fill: var(--ridge-base); }
.hero-art .hive-moon { fill: var(--gold); }
.hero-art .glow-in { stop-color: var(--gold); stop-opacity: .3; }
.hero-art .glow-out { stop-color: var(--gold); stop-opacity: 0; }
@media (min-width: 880px) {
  .hero .wrap { padding-top: 64px; }
  .hero-art { height: 156px; }
}

.page-hero {
  padding: 32px 0 8px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.page-hero + .block { padding-top: 12px; }
.page-hero .lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 36rem; }

/* --- sections, cards, notes --- */
section.block { padding: 36px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid.paths { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card > h2 { font-size: 1.35rem; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
a.card:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
a.card h3 { color: var(--head); }
.path-num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.path-go { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--link); }
a.card:hover .path-go { color: var(--gold-bright); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin: 0 0 18px; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font: 700 1.05rem var(--serif);
  display: grid;
  place-items: center;
}

.note {
  background: var(--blue-soft);
  border-left: 4px solid var(--link);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
}
.note > :last-child { margin-bottom: 0; }
.note.warm { background: var(--gold-soft); border-left-color: var(--gold); }
.note.sage { background: var(--sage-soft); border-left-color: var(--sage); }
.note h2 { font-size: 1.28rem; margin-bottom: .35em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.url { display: block; margin-top: 2px; font-family: var(--mono); font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }

.desk {
  margin: 0 0 8px;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--gold);
}
.desk p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--head);
}

/* hive status */
.status-line {
  margin: 0;
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  font-size: 1.05rem;
}
.status-line[data-level="quiet"] {
  background: var(--sage-soft);
  border-color: transparent;
  border-left: 4px solid var(--sage);
}
.status-line[data-level="watch"] {
  background: var(--gold-soft);
  border-color: transparent;
  border-left: 4px solid var(--gold);
}
.status-meta { margin: 10px 0 0; }

/* county & door lists */
.link-list { list-style: none; padding: 0; margin: 12px 0 0; }
.link-list li { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.link-list a { font-weight: 700; }
.flag {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--gold-soft);
  border-radius: 10px;
  color: var(--ink);
  font-size: .95rem;
}

.rules { list-style: none; padding: 0; margin: 0; }
.rules li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 8px;
}
.rules strong { color: var(--head); }

.door.is-suggested {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(147, 182, 139, .3);
}
.doors { display: grid; gap: 12px; }

/* route questions */
.tree fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.tree legend {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--head);
  padding: 0;
  margin-bottom: 10px;
}
.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span.box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 52px;
  padding: 13px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  cursor: pointer;
}
.choice span.box:hover { border-color: var(--muted); }
.choice span.box b { display: block; font-weight: 700; }
.choice span.box small { display: block; color: var(--muted); font-size: .88rem; font-weight: 450; }
.choice span.box::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}
.choice input:checked + span.box { border-color: var(--link); background: var(--blue-soft); }
.choice input:checked + span.box::before {
  border-color: var(--link);
  background: var(--link);
  box-shadow: inset 0 0 0 3px var(--blue-soft);
}
.choice input:focus-visible + span.box { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.route-result {
  position: sticky;
  top: 72px;
  z-index: 30;
  margin-bottom: 18px;
  padding-bottom: 10px;
  background: var(--card);
}
.route-reset { display: none; margin-top: 12px; }
.js .route-reset { display: inline-flex; }
#route-outcome { margin-top: 0; }

/* know table */
.cell-label { display: none; }
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption {
  text-align: left;
  font-weight: 700;
  color: var(--head);
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: 14px 14px 8px;
}
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
thead th { background: var(--card-2); color: var(--head); }
tbody th a { font-weight: 700; }
/* Phones: each row becomes a small labeled stack. Kept after the base
   rules above so it wins the cascade. */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  table, caption, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  th, td { border: 0; padding: 2px 0; }
  th + td, td + th { margin-top: 8px; }
  /* The pollen calendar stays a grid on phones and scrolls if it must. */
  table.cal { display: table; width: 100%; }
  table.cal caption { display: table-caption; }
  table.cal thead { display: table-header-group; }
  table.cal tbody { display: table-row-group; }
  table.cal tr { display: table-row; padding: 0; border: 0; }
  table.cal th, table.cal td { display: table-cell; width: auto; }
  table.cal tbody th { padding: 8px 6px 8px 10px; }
  table.cal td + th, table.cal th + td { margin-top: 0; }
  table.cal td { border-bottom: 1px solid var(--line); }
  .cell-label {
    display: block;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    /* Not uppercase: it would turn "µg/m³" into "MG/M³". */
    color: var(--rock);
  }
}

.essay p:last-child { margin-bottom: 0; }
.split { display: grid; gap: 16px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }

/* --- sources & dates --- */
.src {
  display: inline-block;
  margin-left: 2px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  vertical-align: .1em;
}
.src:hover { color: var(--link-hover); border-color: var(--link-hover); }
.checked { margin: 24px 0 0; font-size: .85rem; color: var(--muted); }

.grid.four { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }

details.more {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  margin: 12px 0;
}
details.more > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--head);
  min-height: 44px;
}
details.more > summary:hover { color: var(--gold-bright); }
.more-body { padding: 0 16px 14px; }
.more-body > :last-child { margin-bottom: 0; }

/* --- AQI colors --- */
.aqi-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
  background: var(--muted);
  white-space: nowrap;
}
[data-cat="good"] { --cat: var(--aqi-good); }
[data-cat="moderate"] { --cat: var(--aqi-moderate); }
[data-cat="usg"] { --cat: var(--aqi-usg); }
[data-cat="unhealthy"] { --cat: var(--aqi-unhealthy); }
[data-cat="very-unhealthy"] { --cat: var(--aqi-very-unhealthy); }
[data-cat="hazardous"] { --cat: var(--aqi-hazardous); }
.aqi-chip[data-cat] { background: var(--cat); }
/* White text on the two dark colors, plus a light edge so they show on the dark page. */
.aqi-chip[data-cat="very-unhealthy"],
.aqi-chip[data-cat="hazardous"] { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 420px) { .aqi-chip { white-space: normal; } }

.card.level { border-left: 6px solid var(--cat, var(--line-strong)); }
.card.level h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.range { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); }
.levels { display: grid; gap: 12px; }

/* --- pollen calendar --- */
.table-wrap.cal-wrap { overflow-x: auto; }
table.cal { table-layout: fixed; min-width: 330px; font-size: .85rem; }
table.cal caption { font-family: var(--sans); font-size: .92rem; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }
table.cal th, table.cal td { padding: 0; border-bottom: 1px solid var(--line); }
table.cal thead th {
  padding: 6px 0;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}
table.cal thead th:first-child { text-align: left; padding-left: 12px; }
/* Fixed layout takes column widths from the header row, so size the label column there. */
table.cal th:first-child { width: 30%; }
table.cal thead abbr { text-decoration: none; }
table.cal tbody th {
  padding: 8px 8px 8px 12px;
  font-weight: 600;
  color: var(--ink);
  vertical-align: middle;
}
table.cal td { height: 32px; border-left: 2px solid var(--card); background: transparent; }
table.cal td[data-lvl="1"] { background: var(--pollen-1); }
table.cal td[data-lvl="2"] { background: var(--pollen-2); }
table.cal td[data-lvl="3"] { background: var(--pollen-3); }
@media (min-width: 700px) { table.cal th:first-child { width: 20%; } }
.cal-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.cal-key li { display: flex; align-items: center; gap: 8px; margin: 0; }
.cal-key li::before { content: ""; width: 22px; height: 14px; border-radius: 4px; background: var(--line); }
.cal-key li[data-lvl="1"]::before { background: var(--pollen-1); }
.cal-key li[data-lvl="2"]::before { background: var(--pollen-2); }
.cal-key li[data-lvl="3"]::before { background: var(--pollen-3); }

/* --- Today panel (home page) --- */
.today-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.today-meta { margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.today-alerts { list-style: none; padding: 0; margin: 0 0 16px; }
.today-alerts li {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--rock);
  background: var(--gold-soft);
}
.stale {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
}
.counties { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .counties { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .counties.core { grid-template-columns: repeat(4, 1fr); } }
.county {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--cat, var(--line-strong));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.county h3 { margin-bottom: 8px; font-size: 1.15rem; }
.county .now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; }
.aqi-num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--head); }
.now-meta { margin: 0 0 10px; font-size: .82rem; color: var(--muted); }
.county.is-old .aqi-num,
.county.is-old .now .aqi-chip { opacity: .55; }
.days { margin: 0 0 10px; padding: 0; }
.days div { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.days dt { color: var(--muted); font-weight: 600; }
.days dd { margin: 0; }
.dot {
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: .02em;
}
/* Only a dot with its own level takes a color; --cat would otherwise
   inherit from the card and claim a level the text calls unknown. */
.dot[data-cat] { background: var(--cat); }
.source-line { margin: 0 0 10px; font-size: .82rem; color: var(--gold-bright); }
.burn { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); font-size: .9rem; }
.county .note-line { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.nearby { margin-top: 16px; }

/* --- footer --- */
.site-footer {
  background: var(--footer);
  color: #C3CCD2;
  border-top: 1px solid var(--line);
  padding: 34px 0 28px;
  margin-top: 12px;
  font-size: .95rem;
}
.site-footer a { color: var(--gold-bright); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { color: var(--head); font-size: 1.15rem; }
.site-footer .cols { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4em 0; }
.site-footer .disclaimer {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .03);
}
.site-footer .disclaimer p:last-child { margin-bottom: 0; }
.site-footer .fine { margin: 18px 0 0; font-size: .82rem; color: #8F9CA6; }

[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card { transition: none; }
  a.card:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn, .card, .note, .status-line, .county, .aqi-chip, .src { border: 1px solid ButtonText; }
  table.cal td[data-lvl="1"], table.cal td[data-lvl="2"], table.cal td[data-lvl="3"] { forced-color-adjust: none; }
}

/* Paper is light. Swap the palette back so printed pages stay legible. */
@media print {
  :root {
    --bg: #fff; --bg-2: #fff; --card: #fff; --card-2: #f2f2f2; --header: #fff; --footer: #fff;
    --line: #bbb; --line-strong: #999;
    --ink: #000; --ink-soft: #222; --muted: #444; --head: #000;
    --link: #000; --gold-soft: #fff; --sage-soft: #fff; --blue-soft: #fff; --rock: #444;
    --gold: #999; --sage: #666;
  }
  html { color-scheme: light; }
  .nav-toggle, .site-nav, .hero-art, .route-reset, .no-print { display: none !important; }
  .site-header { position: static; }
  .strip { background: #fff; color: #000; border-bottom: 1px solid #999; }
  .strip strong, .strip a { color: #000; }
  .hero, .page-hero { background: none; }
  .site-footer { color: #000; border-top: 1px solid #999; }
  .site-footer a, .site-footer .fine { color: #000; }
  .card, .door, .rules li, .table-wrap { box-shadow: none; break-inside: avoid; }
  .steps li::before { background: #fff; border: 1px solid #000; color: #000; }
  .county, .card.level { box-shadow: none; break-inside: avoid; }
  .burn { background: #fff; border: 1px solid #999; }
  .src { color: #000; border-color: #999; }
  .aqi-chip, .dot, table.cal td, .cal-key li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; }
}
