
:root {
  --bg: #ede7dd;
  --ink: #101615;
  --muted: rgba(16,22,21,.58);
  --line: rgba(16,22,21,.13);
  --dark: #131b19;
  --accent: #ef7a24;
  --gold: #ffd37d;
  --max: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
.site-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    linear-gradient(rgba(16,22,21,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,22,21,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .36;
}
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: rgba(19,27,25,.84); backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { color: white; text-decoration: none; font-weight: 850; letter-spacing: -.04em; font-size: 16px; }
.topnav { display: flex; gap: 28px; }
.topnav a { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 750; font-size: 14px; }
.menu-button {
  width: 34px; height: 34px; padding: 0; background: transparent; border: 0; cursor: pointer;
  display: inline-grid; gap: 5px; align-items: center; justify-items: start;
}
.menu-button span { width: 26px; height: 2px; background: white; display: block; }
.drawer {
  position: fixed; left: 0; top: 0; bottom: 0; width: 292px; z-index: 160;
  background: rgba(237,231,221,.98); border-right: 1px solid var(--line);
  transform: translateX(-102%); transition: transform .35s ease; padding: 26px; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-close { background: transparent; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); margin-bottom: 18px; }
.drawer-links { display: grid; gap: 14px; margin-top: 24px; }
.drawer-links a { text-decoration: none; color: var(--ink); font-weight: 750; font-size: 17px; }
.drawer-shade { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.drawer-shade.show { opacity: 1; pointer-events: auto; }
main { padding-top: 70px; }
.section { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 72px 0; border-top: 1px solid var(--line); }
.hero {
  position: relative; min-height: calc(100vh - 70px); width: 100%; border-top: 0; margin: 0; padding: 0;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: -6%; background: url('assets/hero-yosemite-fire.webp') center/cover no-repeat; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,22,21,.8) 0%, rgba(16,22,21,.28) 54%, rgba(16,22,21,.18) 100%);
}
.hero-inner {
  position: relative; z-index: 2; max-width: 980px; padding: 110px 0 0 56px; color: white;
}
.eyebrow { margin: 0 0 18px; letter-spacing: .16em; font-size: 12px; font-weight: 850; color: var(--gold); text-transform: uppercase; }
.hero h1 {
  margin: 0; font-size: clamp(54px, 9vw, 124px); line-height: .92; letter-spacing: -.075em; font-weight: 900;
}
.hero-actions { margin-top: 28px; display: flex; gap: 14px; }
.hero-actions a, .map-actions a, .map-actions button, .safety-links a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  text-decoration: none; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08);
  color: white; font-weight: 750; cursor: pointer;
}
.hero-time { position: absolute; z-index: 2; right: 30px; bottom: 30px; color: white; font-weight: 750; font-size: 14px; }
.section-head { display: grid; gap: 8px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 5vw, 68px); line-height: .96; letter-spacing: -.065em; font-weight: 900; }
.byline, .book-by, .book-subtitle { margin: 0; font-size: 15px; color: var(--muted); font-weight: 650; }
.article-layout, .split-grid, .impact-grid, .book-grid, .gobag-grid, .two-column { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.article-image img, .image-tile img, .image-band img, .impact-image img, .safety-item img, .gobag-photo img {
  width: 100%; display: block; object-fit: cover; border: 1px solid var(--line);
}
.article-image img { height: 740px; }
.image-tile img { height: 680px; }
.image-band img { height: 240px; margin-top: 20px; }
.impact-image img { height: 980px; }
.writing-area {
  min-height: 320px; width: 100%;
  background: repeating-linear-gradient(transparent 0 34px, rgba(16,22,21,.12) 34px 35px);
}
.writing-area.tall { min-height: 720px; }
.writing-area.small { min-height: 220px; }
.writing-area.blurb { min-height: 260px; max-width: 760px; }
.writing-area.intro-space { min-height: 160px; margin-bottom: 24px; }
.map-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.map-time { font-weight: 800; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.map-actions a, .map-actions button { color: var(--ink); border-color: var(--line); background: transparent; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter { border: 1px solid var(--line); background: transparent; padding: 10px 14px; color: var(--ink); font-weight: 750; cursor: pointer; }
.filter.active { background: var(--ink); color: white; }
.map-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 18px; align-items: start; }
.map-panel {
  position: relative; aspect-ratio: 1 / .78; min-height: 560px; border: 1px solid var(--line);
  overflow: hidden; background: #15211d; cursor: grab;
}
.map-panel:active { cursor: grabbing; }
.movable-map { position: absolute; inset: 0; transform-origin: center center; transition: transform .08s linear; }
.movable-map img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; pointer-events: none; }
.fire-dots { position: absolute; inset: 0; pointer-events: none; }
.fire-dot {
  position: absolute; transform: translate(-50%, -50%); border-radius: 999px; pointer-events: auto;
  background: #ef7a24; border: 1px solid #fff4dd; box-shadow: 0 0 10px rgba(239,122,36,.85);
  width: 8px; height: 8px;
}
.fire-dot.low { width: 5px; height: 5px; background: #ffd36d; }
.fire-dot.mid { width: 7px; height: 7px; background: #ff8a3d; }
.fire-dot.high { width: 10px; height: 10px; background: #f24828; }
.fire-popup {
  position: absolute; z-index: 40; min-width: 190px; max-width: 240px;
  padding: 12px; background: rgba(237,231,221,.96); border: 1px solid var(--line);
  color: var(--ink); font-size: 12px; display: none;
}
.fire-popup.show { display: block; }
.fire-popup h3 { margin: 0 0 8px; font-size: 14px; }
.fire-popup p { margin: 4px 0; }
.stats-panel { border: 1px solid var(--line); display: grid; grid-template-columns: 1fr; }
.stat-row { min-height: 166px; padding: 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.stat-row:last-child { border-bottom: 0; }
.stat-row span { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-row strong { font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 30; background: rgba(237,231,221,.92);
  border: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 12px;
}
.legend div { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; }
.legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.legend .low { background: #ffd36d; }
.legend .mid { background: #ff8a3d; }
.legend .high { background: #f24828; }
.split-grid { grid-template-columns: .86fr 1.14fr; }
.impact-grid { grid-template-columns: .7fr 1.3fr; }
.two-column { grid-template-columns: 1fr 1fr; }
.two-column.reverse { grid-template-columns: 1fr 1fr; }
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.safety-item img { height: 250px; }
.safety-item h3 { margin: 14px 0 0; font-size: 22px; letter-spacing: -.04em; }
.safety-links { margin-top: 20px; }
.safety-links a { color: var(--ink); border-color: var(--line); background: transparent; }
.book-grid { align-items: center; }
.book-link { display: block; width: min(320px, 100%); text-decoration: none; }
.book-outline {
  width: 100%; aspect-ratio: .72/1; border: 2px dashed rgba(16,22,21,.35); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.book-spine { position: absolute; left: 36px; top: 0; bottom: 0; border-left: 2px dashed rgba(16,22,21,.25); }
.book-question { font-size: 136px; color: rgba(239,122,36,.92); font-weight: 800; line-height: 1; }
.book-lines { position: absolute; left: 72px; right: 24px; bottom: 34px; display: grid; gap: 10px; }
.book-lines span { border-top: 2px dotted rgba(16,22,21,.35); }
.sources-list { display: flex; flex-wrap: wrap; gap: 14px; }
.sources-list a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); font-weight: 750; }
.footer-row { margin-top: 28px; }
.footer-row a { color: var(--ink); text-decoration: none; font-weight: 750; }
.subpage { padding-top: 70px; }
.pagebar { background: rgba(19,27,25,.92); }
.gobag-list { display: grid; gap: 12px; }
.gobag-list label { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.gobag-list input { width: 18px; height: 18px; accent-color: var(--ink); }
.reveal {
  opacity: 0; transform: translateY(44px); filter: blur(8px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.18,.8,.2,1), filter .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.parallax { transition: transform .1s linear; }
@media (max-width: 980px) {
  .topnav { display: none; }
  .section { width: calc(100% - 30px); padding: 52px 0; }
  .hero-inner { padding: 110px 18px 0 18px; }
  .hero-time { right: 18px; }
  .article-layout, .split-grid, .impact-grid, .book-grid, .gobag-grid, .map-layout, .safety-grid, .two-column, .two-column.reverse { grid-template-columns: 1fr; }
  .map-panel { min-height: 460px; }
  .article-image img, .image-tile img, .impact-image img { height: 480px; }
  .stats-panel { grid-template-columns: 1fr; }
  .stat-row { min-height: 120px; }
}


/* v10 map/dot fixes */
.fire-dot {
  box-sizing: border-box !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  line-height: 0 !important;
}
.fire-dot.low { width: 5px !important; height: 5px !important; }
.fire-dot.mid { width: 7px !important; height: 7px !important; }
.fire-dot.high { width: 10px !important; height: 10px !important; }
.book-grid { grid-template-columns: 1fr !important; }
.book-section .writing-area { display: none !important; }


/* v11 restored interactive map */
.leaflet-map { position:absolute; inset:0; }
.leaflet-container { background:#1a2421; font-family: Arial, Helvetica, sans-serif; }
.map-panel { min-height: 560px; }
.map-panel .legend { pointer-events:none; }
.leaflet-control-zoom a { color:#111 !important; }
.fire-map-popup h3 { margin:0 0 8px; font-size:14px; }
.fire-map-popup p { margin:4px 0; font-size:12px; line-height:1.35; }


/* v12 final order + dashboard typography polish */
.map-top,
.filters,
.stats-panel,
.map-actions,
.legend,
.fire-map-popup {
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif !important;
}

.map-time {
  font-size: 13px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  color: rgba(16,22,21,.68) !important;
}

.map-actions button,
.map-actions a,
.filter {
  font-size: 12px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  border-radius: 0 !important;
}

.stats-panel {
  background: rgba(237,231,221,.45);
}

.stat-row span {
  font-size: 11px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  font-weight: 850 !important;
}

.stat-row strong {
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -.055em !important;
}

.legend {
  border-radius: 0 !important;
  font-size: 11px !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

.fire-map-popup {
  border-radius: 0 !important;
}

.fire-map-popup h3 {
  font-size: 13px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.book-grid-inline {
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr) !important;
  align-items: start !important;
}

.book-link {
  cursor: default !important;
}

.book-blurb {
  min-height: 340px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.book-blurb h3 {
  margin: 0 0 18px;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

.writing-area.blurb-space {
  min-height: 260px;
  max-width: 760px;
}

.book-section .writing-area.small {
  display: none !important;
}

@media (max-width: 980px) {
  .book-grid-inline {
    grid-template-columns: 1fr !important;
  }
}

/* v13 content + clickable safety pages */
.content-block { font-size: 17px; line-height: 1.75; font-weight: 500; color: rgba(16,22,21,.88); }
.content-block p { margin: 0 0 1.25em; }
.article-text.content-block { background: transparent; border-top: 1px solid var(--line); padding-top: 20px; }
.safety-eyebrow { color: #f05a28 !important; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.click-note { margin: 6px 0 0; font-weight: 800; color: rgba(16,22,21,.72); letter-spacing: .02em; }
.clickable-safety-grid .safety-card-link { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); padding: 0 0 18px; background: rgba(255,255,255,.18); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.clickable-safety-grid .safety-card-link:hover { transform: translateY(-6px); border-color: rgba(239,122,36,.55); box-shadow: 0 20px 45px rgba(16,22,21,.13); }
.safety-card-link span { display: inline-flex; margin: 10px 18px 0; padding: 8px 12px; border: 1px solid rgba(16,22,21,.18); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.safety-card-link h3 { margin-left: 18px !important; margin-right: 18px !important; }
.detail-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.detail-grid img { width: 100%; height: 640px; object-fit: cover; display: block; border: 1px solid var(--line); }
.page-button { display: inline-flex; margin-top: 10px; padding: 12px 16px; border: 1px solid rgba(16,22,21,.22); color: var(--ink); text-decoration: none; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.sources-list { align-items: center; }
.sources-list .source-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid rgba(16,22,21,.2); border-bottom: 1px solid rgba(16,22,21,.2) !important; background: rgba(255,255,255,.2); text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; transition: background .2s ease, transform .2s ease; }
.sources-list .source-button:hover { background: rgba(239,122,36,.16); transform: translateY(-2px); }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } .detail-grid img { height: 420px; } }


/* v33 content-only additions; map CSS remains original v13 */
.good-fire-section .split-grid { align-items: center; }
.good-fire-section .article-text p { margin-bottom: 1em; }
.sources-section.final-section { padding-bottom: 24px; }


/* v36 text-only fix: no lined background + normal small text font */
#what-can-we-do .writing-area.no-lines,
.book-blurb .writing-area.blurb-space {
  background: transparent !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  color: rgba(16,22,21,.88) !important;
  min-height: auto !important;
}

#what-can-we-do .writing-area.no-lines p,
.book-blurb .writing-area.blurb-space p {
  margin: 0 0 1.05em !important;
}

.book-blurb .writing-area.blurb-space {
  max-width: 760px !important;
  padding-top: 0 !important;
}


/* v38 fix: show the blurb in the RIGHT-SIDE Blurb space, not inside the dotted book */
.book-blurb .writing-area.blurb-space {
  display: block !important;
  background: transparent !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  color: rgba(16,22,21,.88) !important;
  min-height: auto !important;
  max-width: 760px !important;
  padding-top: 0 !important;
}

.book-blurb .writing-area.blurb-space p {
  margin: 0 !important;
}


/* v39 book section fix: dotted book stays left, blurb paragraph goes in the right empty BLURB area */
.book-grid.book-grid-inline {
  display: grid !important;
  grid-template-columns: minmax(240px, 360px) minmax(420px, 1fr) !important;
  align-items: start !important;
  gap: clamp(42px, 7vw, 90px) !important;
}

.book-grid.book-grid-inline .book-link {
  display: block !important;
}

.book-grid.book-grid-inline .book-outline {
  position: relative !important;
  overflow: hidden !important;
}

.book-grid.book-grid-inline .book-outline .book-blurb-text,
.book-grid.book-grid-inline .book-outline .writing-area,
.book-grid.book-grid-inline .book-outline p,
.book-grid.book-grid-inline .book-outline h3 {
  display: none !important;
}

.book-blurb {
  display: block !important;
  align-self: start !important;
  padding-top: 22px !important;
}

.book-blurb h3 {
  display: block !important;
  margin: 0 0 18px !important;
}

.book-blurb .book-blurb-copy {
  display: block !important;
  max-width: 760px !important;
  margin: 0 !important;
  background: transparent !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  color: rgba(16,22,21,.88) !important;
}

.book-blurb .writing-area.blurb-space {
  display: none !important;
}

@media (max-width: 760px) {
  .book-grid.book-grid-inline {
    grid-template-columns: 1fr !important;
  }
}


/* v40 intro text alignment only: center intro paragraph text, not titles */
#intro .section-head > p:not(.eyebrow),
#intro .intro-copy,
#intro .intro-copy p,
#intro .split-text,
#intro .split-text p,
#intro .content-copy,
#intro .content-copy p {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#intro h1,
#intro h2,
#intro h3,
#intro .eyebrow {
  text-align: inherit;
}


/* v41 subpage back button fix: white back-to-website arrow */
.page-back-arrow,
.page-back-arrow:visited,
.page-back-arrow:hover,
.page-back-arrow:active {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.subpage-bar .page-back-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
}

/* v59 polished modern/luxury pass */
:root {
  --lux-bg: #0d0c0a;
  --lux-panel: rgba(24, 21, 17, 0.72);
  --lux-panel-strong: rgba(31, 27, 21, 0.88);
  --lux-border: rgba(232, 201, 151, 0.18);
  --lux-text: #f4efe6;
  --lux-muted: #c7b8a2;
  --lux-ember: #c96528;
  --lux-ember-deep: #8f2f18;
  --lux-gold: #caa76a;
  --lux-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
  background: var(--lux-bg);
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 101, 40, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 18%, rgba(202, 167, 106, 0.10), transparent 32rem),
    linear-gradient(180deg, #0d0c0a 0%, #17120e 42%, #0d0c0a 100%);
  color: var(--lux-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body, p, li {
  line-height: 1.72;
}

h1, h2, h3, .section-title, .hero-title {
  letter-spacing: -0.035em;
  font-weight: 760;
}

p, .muted, .section-subtitle {
  color: var(--lux-muted);
}

.navbar, .topbar, header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(232, 201, 151, 0.12);
}

.navbar a, nav a {
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.navbar a:hover, nav a:hover {
  color: var(--lux-gold);
  transform: translateY(-1px);
}

.hero, .hero-section, .home-hero {
  min-height: min(92vh, 940px);
}

.hero::after, .hero-section::after, .home-hero::after {
  background:
    linear-gradient(90deg, rgba(13, 12, 10, 0.84), rgba(13, 12, 10, 0.42) 54%, rgba(13, 12, 10, 0.68)),
    linear-gradient(180deg, rgba(13, 12, 10, 0.12), rgba(13, 12, 10, 0.72));
}

.hero-content, .hero-copy, .intro-copy {
  max-width: 920px;
}

.card, .info-card, .stat-card, .safety-card, .story-card, .section-card, .glass-card {
  background: var(--lux-panel);
  border: 1px solid var(--lux-border);
  box-shadow: var(--lux-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 24px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.card:hover, .info-card:hover, .stat-card:hover, .safety-card:hover, .story-card:hover, .section-card:hover, .glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 201, 151, 0.32);
  background: var(--lux-panel-strong);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.46);
}

button, .button, .btn, .cta, .source-button, .filter {
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

button:hover, .button:hover, .btn:hover, .cta:hover, .source-button:hover, .filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.filter {
  border: 1px solid rgba(232, 201, 151, 0.26);
  background: rgba(18, 15, 12, 0.72);
  color: var(--lux-text);
}

.filter.active {
  background: linear-gradient(135deg, var(--lux-ember), var(--lux-ember-deep));
  color: #fff7ec;
  border-color: rgba(255, 214, 148, 0.45);
}

section {
  scroll-margin-top: 90px;
}

#fireMap, .fire-map, .map-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(232, 201, 151, 0.20);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  background: #11100e;
}

.leaflet-container {
  background: #11100e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fire-map-popup {
  color: #241811;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fire-map-popup h3 {
  letter-spacing: -0.02em;
}

img, video {
  max-width: 100%;
}

.reveal, .fade-in, .scroll-reveal {
  transition: opacity 520ms ease, transform 520ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* v60 premium polish pass */
:root {
  --premium-ink: #f8f1e7;
  --premium-muted: #c8b9a4;
  --premium-soft: rgba(248, 241, 231, 0.70);
  --premium-line: rgba(218, 184, 123, 0.18);
  --premium-line-strong: rgba(218, 184, 123, 0.34);
  --premium-glass: rgba(20, 17, 13, 0.64);
  --premium-glass-strong: rgba(26, 22, 17, 0.82);
  --premium-ember: #c65a24;
  --premium-red: #a62a1a;
  --premium-blackfire: #130604;
  --premium-gold: #d2ae72;
  --premium-radius: 28px;
  --premium-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --premium-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
}

::selection {
  background: rgba(210, 174, 114, 0.35);
  color: #fffaf2;
}

body {
  background:
    radial-gradient(circle at 10% -10%, rgba(198, 90, 36, 0.20), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(210, 174, 114, 0.13), transparent 32rem),
    radial-gradient(circle at 48% 55%, rgba(166, 42, 26, 0.08), transparent 42rem),
    linear-gradient(180deg, #0b0a08 0%, #17110d 40%, #0c0b09 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), transparent 72%);
}

main, section {
  position: relative;
}

section {
  padding-top: clamp(72px, 8vw, 118px);
  padding-bottom: clamp(72px, 8vw, 118px);
}

.section-title, h2 {
  font-size: clamp(2.05rem, 4.6vw, 4.65rem);
  line-height: 0.98;
  text-wrap: balance;
}

.section-subtitle, .lead, .intro p {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  max-width: 72ch;
}

.hero-title, h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 9vw, 8.4rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-title span, h1 span {
  color: transparent;
  background: linear-gradient(135deg, #fff3df 0%, #d2ae72 42%, #c65a24 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-content, .hero-copy {
  transform: translateZ(0);
}

.hero-content p, .hero-copy p {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  color: rgba(248, 241, 231, 0.78);
}

.navbar, .topbar, header {
  background: rgba(8, 7, 6, 0.62);
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
}

.navbar.scrolled, header.scrolled, .topbar.scrolled {
  background: rgba(8, 7, 6, 0.86);
  border-bottom-color: rgba(210, 174, 114, 0.20);
}

nav a, .navbar a {
  font-size: 0.93rem;
  color: rgba(248, 241, 231, 0.78);
}

nav a:hover, .navbar a:hover {
  color: #fff4df;
}

.card, .info-card, .stat-card, .safety-card, .story-card, .section-card, .glass-card,
.source-card, .book-card, .feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--premium-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 42%),
    var(--premium-glass);
  border: 1px solid var(--premium-line);
  box-shadow: var(--premium-shadow-soft);
}

.card::before, .info-card::before, .stat-card::before, .safety-card::before, .story-card::before,
.section-card::before, .glass-card::before, .source-card::before, .book-card::before, .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 34%, rgba(210,174,114,0.06));
  opacity: 0;
  transition: opacity 280ms ease;
}

.card:hover::before, .info-card:hover::before, .stat-card:hover::before, .safety-card:hover::before,
.story-card:hover::before, .section-card:hover::before, .glass-card:hover::before, .source-card:hover::before,
.book-card:hover::before, .feature-card:hover::before {
  opacity: 1;
}

.stat-card strong, .stat-number, .metric, .number {
  color: #fff4df;
  font-variant-numeric: tabular-nums;
}

button, .button, .btn, .cta, .source-button, .filter {
  border: 1px solid rgba(210, 174, 114, 0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--premium-ink);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.cta, .btn-primary, .button-primary {
  background: linear-gradient(135deg, #c65a24, #8f2418);
  border-color: rgba(255, 210, 142, 0.35);
}

button:active, .button:active, .btn:active, .cta:active, .source-button:active, .filter:active {
  transform: translateY(0) scale(0.985);
}

.filter.active {
  box-shadow: 0 14px 38px rgba(198, 90, 36, 0.30);
}

#fireMap, .fire-map, .map-frame {
  border-radius: 32px;
  border: 1px solid rgba(210, 174, 114, 0.28);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255,255,255,0.035);
}

.leaflet-control-zoom a {
  background: rgba(16, 13, 10, 0.86) !important;
  color: #fff2dd !important;
  border-color: rgba(210,174,114,0.22) !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  border-radius: 18px;
  background: #fff8ee;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}

.page-back-arrow {
  background: rgba(10, 9, 7, 0.62);
  border: 1px solid rgba(210,174,114,0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms cubic-bezier(.2,.8,.2,1), transform 680ms cubic-bezier(.2,.8,.2,1);
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-title, h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .card, .info-card, .stat-card, .safety-card, .story-card, .section-card, .glass-card {
    border-radius: 22px;
  }

  #fireMap, .fire-map, .map-frame {
    border-radius: 22px;
  }

  button, .button, .btn, .cta, .source-button, .filter {
    min-height: 42px;
  }
}

/* v61 ashy grey fire-dust visual pass */
:root {
  --ash-bg: #2a2a27;
  --ash-panel: rgba(49, 48, 45, 0.68);
  --ash-panel-strong: rgba(61, 59, 55, 0.84);
  --ash-line: rgba(226, 214, 196, 0.17);
  --ash-line-strong: rgba(226, 214, 196, 0.31);
  --ash-text: #f1ece2;
  --ash-muted: #cbc2b4;
  --ash-ember: #d66a2b;
  --ash-red: #ba2f20;
  --ash-char: #1b0705;
}

body {
  background:
    radial-gradient(circle at 12% 6%, rgba(179, 170, 154, 0.20), transparent 30rem),
    radial-gradient(circle at 80% 12%, rgba(214, 106, 43, 0.13), transparent 34rem),
    radial-gradient(circle at 46% 42%, rgba(145, 142, 134, 0.24), transparent 42rem),
    linear-gradient(180deg, #2f2f2c 0%, #272724 34%, #36342f 68%, #242421 100%);
  color: var(--ash-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(236, 228, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 228, 213, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.045), transparent 18rem),
    radial-gradient(circle at 74% 44%, rgba(214,106,43,0.055), transparent 20rem);
  background-size: 58px 58px, 58px 58px, auto, auto;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.78), rgba(0,0,0,.45) 58%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 78%, rgba(208, 194, 170, 0.08), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,0.035), transparent 38%, rgba(0,0,0,0.13));
  mix-blend-mode: screen;
  opacity: 0.45;
}

.card, .info-card, .stat-card, .safety-card, .story-card, .section-card, .glass-card,
.source-card, .book-card, .feature-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 44%),
    var(--ash-panel);
  border-color: var(--ash-line);
  box-shadow: 0 24px 74px rgba(0,0,0,0.30);
}

.card:hover, .info-card:hover, .stat-card:hover, .safety-card:hover, .story-card:hover,
.section-card:hover, .glass-card:hover, .source-card:hover, .book-card:hover, .feature-card:hover {
  background: var(--ash-panel-strong);
  border-color: var(--ash-line-strong);
}

.navbar, .topbar, header {
  background: rgba(45, 44, 41, 0.72);
  border-bottom-color: rgba(226, 212, 186, 0.14);
}

.navbar.scrolled, header.scrolled, .topbar.scrolled {
  background: rgba(44, 43, 40, 0.90);
}

p, .muted, .section-subtitle {
  color: var(--ash-muted);
}

button, .button, .btn, .cta, .source-button, .filter {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border-color: rgba(226, 212, 186, 0.24);
}

.filter.active, .cta, .btn-primary, .button-primary {
  background: linear-gradient(135deg, var(--ash-ember), var(--ash-red));
}

#fireMap, .fire-map, .map-frame {
  background: #302f2b;
  border-color: rgba(226, 212, 186, 0.24);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.38),
    inset 0 0 0 1px rgba(255,255,255,0.045);
}

.leaflet-container {
  background: #302f2b;
}

.satellite-fire-canvas {
  image-rendering: auto;
}

/* v62 video sections + stronger ashy grey grids */
body {
  background:
    radial-gradient(circle at 12% 6%, rgba(191, 185, 174, 0.24), transparent 30rem),
    radial-gradient(circle at 82% 10%, rgba(214, 106, 43, 0.14), transparent 34rem),
    radial-gradient(circle at 48% 44%, rgba(159, 156, 147, 0.30), transparent 44rem),
    linear-gradient(180deg, #343431 0%, #2e2e2b 35%, #403e39 68%, #2a2a27 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(236, 228, 213, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 228, 213, 0.052) 1px, transparent 1px),
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.055), transparent 18rem),
    radial-gradient(circle at 74% 44%, rgba(214,106,43,0.07), transparent 20rem);
  background-size: 54px 54px, 54px 54px, auto, auto;
  opacity: 0.92;
}

.video-section {
  padding-top: clamp(72px, 8vw, 112px);
}

.video-feature-card,
.also-see-card,
.nitrogen-layout {
  border: 1px solid rgba(226, 214, 196, 0.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(54, 52, 48, 0.72);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  border-radius: 30px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
}

.video-copy h3 {
  font-size: clamp(1.65rem, 3.3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  color: #fff3e2;
}

.video-credit {
  color: rgba(244, 232, 210, 0.78);
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: -0.3rem;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 214, 196, 0.24);
  background: rgba(24, 23, 21, 0.82);
  box-shadow: 0 22px 64px rgba(0,0,0,0.34);
}

.drive-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.also-see-card {
  margin-top: clamp(32px, 5vw, 54px);
  padding: clamp(22px, 3.2vw, 36px);
}

.also-see-card h3 {
  margin: 0.25rem 0 0.8rem;
  color: #fff3e2;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.also-see-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.65rem;
  text-decoration: none;
}

.subpage-main {
  min-height: 100vh;
  padding: 0 clamp(18px, 4vw, 54px);
}

.nitrogen-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4.5vw, 54px);
}

.nitrogen-copy h1 {
  max-width: 11.5ch;
  font-size: clamp(2.6rem, 6.8vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  margin-bottom: 1rem;
}

.nitrogen-copy p {
  max-width: 62ch;
}

.nitrogen-video {
  min-height: 360px;
  aspect-ratio: 16 / 10;
}

@media (max-width: 860px) {
  .video-feature-card,
  .nitrogen-layout {
    grid-template-columns: 1fr;
  }

  .video-frame-wrap,
  .nitrogen-video {
    min-height: 240px;
  }

  .nitrogen-copy h1 {
    max-width: 14ch;
  }
}

/* v63 uploaded grey gradient + corrected fire dots */
:root {
  --uploaded-grey-top: #494949;
  --uploaded-grey-mid: #b3b3b3;
  --uploaded-grey-bottom: #e9e9e9;
  --dot-ring: rgba(255,255,255,0.88);
}

html {
  background: var(--uploaded-grey-bottom);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,0.08), transparent 28rem),
    radial-gradient(circle at 78% 24%, rgba(214,106,43,0.12), transparent 34rem),
    linear-gradient(180deg,
      var(--uploaded-grey-top) 0%,
      #4e4e4d 18%,
      var(--uploaded-grey-mid) 52%,
      #d7d7d7 78%,
      var(--uploaded-grey-bottom) 100%);
  color: #f4f0e8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.58) 38%, transparent 63%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(20,20,20,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,0.11) 1px, transparent 1px),
    radial-gradient(circle at 60% 72%, rgba(255,255,255,0.22), transparent 25rem);
  background-size: 52px 52px, 52px 52px, auto;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.82) 100%);
  opacity: 0.92;
}

.card, .info-card, .stat-card, .safety-card, .story-card, .section-card, .glass-card,
.source-card, .book-card, .feature-card, .video-feature-card, .also-see-card, .nitrogen-layout {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(48,48,46,0.72);
  border-color: rgba(255,255,255,0.20);
}

#fire-tech .section-head h2,
#sources .section-head h2,
#sources .eyebrow {
  color: #2a2927;
}

#sources .source-button,
#sources .also-see-button {
  color: #2c2b29;
  background: rgba(255,255,255,0.62);
  border-color: rgba(40,40,40,0.18);
}

#sources .source-button:hover,
#sources .also-see-button:hover {
  background: rgba(255,255,255,0.84);
}

.also-see-card {
  color: #f7f1e6;
}

.also-see-card h3 {
  max-width: 850px;
}

.created-by {
  color: rgba(255,244,226,0.82);
  font-size: 0.92rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  margin-top: -0.2rem;
}

.video-section .eyebrow {
  color: rgba(255,244,226,0.72);
}

.nitrogen-page {
  color: #f4f0e8;
}

.nitrogen-animation-card {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  background:
    linear-gradient(180deg, rgba(49,64,70,0.92), rgba(112,119,111,0.88) 48%, rgba(44,74,74,0.95) 49%, rgba(22,44,52,0.98));
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}

.animation-sky,
.animation-land,
.animation-water {
  position: absolute;
  left: 0;
  right: 0;
}

.animation-sky {
  top: 0;
  height: 34%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14), transparent 12rem);
}

.animation-land {
  top: 34%;
  height: 22%;
  background: linear-gradient(180deg, #8a7b5e, #5f553e);
}

.animation-water {
  bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, #1f787c, #123944);
}

.n-dot, .rain, .runoff-dot, .algae, .oxygen, .fish, .plant {
  position: absolute;
  display: block;
}

.n-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.54);
  color: #fff9ea;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(214,106,43,0.72);
  animation: nitrogenFloat 5.5s ease-in-out infinite;
}

.n1 { left: 12%; top: 22%; }
.n2 { left: 43%; top: 12%; animation-delay: -1.8s; }
.n3 { right: 18%; top: 26%; animation-delay: -3s; }

.rain {
  width: 2px;
  height: 48px;
  background: rgba(230,244,255,0.58);
  transform: rotate(12deg);
  animation: rainFall 2.8s linear infinite;
}

.r1 { left: 25%; top: 48%; }
.r2 { left: 52%; top: 35%; animation-delay: -0.9s; }
.r3 { right: 25%; top: 44%; animation-delay: -1.6s; }

.farm-field {
  position: absolute;
  left: 6%;
  bottom: 0;
  width: 44%;
  height: 100%;
}

.plant {
  bottom: 14px;
  width: 10px;
  height: 46px;
  background: #335c2f;
  border-radius: 8px 8px 0 0;
}

.plant::before, .plant::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 12px;
  background: #5ea057;
  border-radius: 50%;
  top: 12px;
}

.plant::before { left: -18px; transform: rotate(-24deg); }
.plant::after { right: -18px; transform: rotate(24deg); }

.p1 { left: 16%; }
.p2 { left: 38%; height: 58px; }
.p3 { left: 62%; }

.fertilizer {
  position: absolute;
  right: 12%;
  bottom: 18px;
  color: rgba(255,255,255,0.78);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runoff-stream {
  position: absolute;
  left: 42%;
  bottom: -12px;
  width: 34%;
  height: 52px;
  border-radius: 999px;
  background: rgba(119,178,194,0.50);
  transform: rotate(7deg);
}

.runoff-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d66a2b;
  animation: runoffMove 3.6s linear infinite;
}

.rd1 { left: 8%; top: 14px; }
.rd2 { left: 20%; top: 28px; animation-delay: -1s; }
.rd3 { left: 32%; top: 22px; animation-delay: -2s; }

.algae {
  width: 42px;
  height: 18px;
  border-radius: 50%;
  background: rgba(107,191,83,0.72);
  filter: blur(0.2px);
  animation: algaeBloom 4.6s ease-in-out infinite;
}

.a1 { left: 18%; top: 24%; }
.a2 { left: 42%; top: 18%; animation-delay: -1.4s; }
.a3 { right: 18%; top: 30%; animation-delay: -2.4s; }

.oxygen {
  color: rgba(221,248,255,0.82);
  font-weight: 800;
  animation: oxygenFade 5s ease-in-out infinite;
}

.o1 { left: 28%; bottom: 28%; }
.o2 { right: 32%; bottom: 36%; animation-delay: -1.8s; }

.fish {
  width: 46px;
  height: 20px;
  background: rgba(255,231,182,0.72);
  border-radius: 50% 58% 58% 50%;
  animation: fishSwim 6.5s ease-in-out infinite;
}

.fish::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 4px;
  border-left: 16px solid rgba(255,231,182,0.72);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.fish1 { left: 12%; bottom: 20%; }
.fish2 { right: 18%; bottom: 16%; animation-delay: -2.2s; }

.oxygen-warning {
  position: absolute;
  right: 7%;
  bottom: 10%;
  color: rgba(255,235,210,0.76);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

@keyframes nitrogenFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes rainFall {
  0% { transform: translateY(-18px) rotate(12deg); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(88px) rotate(12deg); opacity: 0; }
}

@keyframes runoffMove {
  0% { transform: translateX(0); opacity: 0.25; }
  20% { opacity: 1; }
  100% { transform: translateX(220px); opacity: 0; }
}

@keyframes algaeBloom {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.55); opacity: 0.92; }
}

@keyframes oxygenFade {
  0%, 100% { opacity: 0.9; transform: translateY(0); }
  55% { opacity: 0.18; transform: translateY(18px); }
}

@keyframes fishSwim {
  0%, 100% { transform: translateX(0) rotate(0deg); opacity: 0.9; }
  55% { transform: translateX(34px) rotate(9deg); opacity: 0.38; }
}

@media (max-width: 860px) {
  #fire-tech .section-head h2,
  #sources .section-head h2,
  #sources .eyebrow {
    color: #f4f0e8;
  }

  .nitrogen-animation-card {
    min-height: 380px;
  }
}

/* v64 white graph-paper ash wallpaper + burnt corners */
:root {
  --paper-bg: #f7f7f4;
  --paper-ink: #24231f;
  --paper-muted: #55514a;
  --paper-grid-dark: rgba(28, 28, 26, 0.105);
  --paper-grid-light: rgba(255, 255, 255, 0.42);
  --burn-brown: rgba(94, 45, 20, 0.42);
  --burn-dark: rgba(24, 13, 9, 0.34);
  --ember: rgba(214, 106, 43, 0.42);
}

html {
  background: var(--paper-bg);
}

body {
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 17% 18%, rgba(58, 58, 54, 0.12), transparent 18rem),
    radial-gradient(circle at 78% 32%, rgba(86, 78, 68, 0.10), transparent 19rem),
    radial-gradient(circle at 35% 72%, rgba(27, 27, 25, 0.08), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f1f1ee 42%, #fafafa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(var(--paper-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid-dark) 1px, transparent 1px),
    linear-gradient(var(--paper-grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid-light) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px, 168px 168px, 168px 168px;
  opacity: 0.92;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 0% 0%, var(--burn-dark) 0%, var(--burn-brown) 11%, var(--ember) 12%, transparent 22%),
    radial-gradient(ellipse at 100% 0%, var(--burn-dark) 0%, var(--burn-brown) 10%, var(--ember) 11%, transparent 21%),
    radial-gradient(ellipse at 0% 100%, rgba(37,22,15,0.22) 0%, rgba(111,62,28,0.22) 10%, rgba(214,106,43,0.20) 12%, transparent 24%),
    radial-gradient(ellipse at 100% 100%, rgba(37,22,15,0.20) 0%, rgba(111,62,28,0.20) 10%, rgba(214,106,43,0.18) 12%, transparent 24%),
    radial-gradient(circle at 24% 38%, rgba(65,65,61,0.115), transparent 12rem),
    radial-gradient(circle at 68% 64%, rgba(42,42,39,0.10), transparent 15rem),
    radial-gradient(circle at 84% 20%, rgba(112,91,72,0.10), transparent 10rem);
  mix-blend-mode: multiply;
  opacity: 0.92;
}

main section:not(#home),
.sources-section,
.video-section {
  color: var(--paper-ink);
}

main section:not(#home) h2,
main section:not(#home) h3,
.sources-section h2,
.sources-section h3,
.video-section h2,
.video-section h3 {
  color: #201f1c;
}

main section:not(#home) p,
.section-subtitle,
.muted,
.sources-section p,
.video-section p {
  color: var(--paper-muted);
}

.hero, #home {
  color: #fff7ed;
}

.hero p, #home p {
  color: rgba(255, 244, 231, 0.84);
}

.navbar, .topbar, header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(38, 38, 34, 0.10);
  box-shadow: 0 10px 30px rgba(25, 25, 22, 0.08);
}

.navbar a, nav a {
  color: #302f2b;
}

.card, .info-card, .stat-card, .safety-card, .story-card, .section-card, .glass-card,
.source-card, .book-card, .feature-card, .video-feature-card, .also-see-card, .nitrogen-layout {
  color: var(--paper-ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246,246,242,0.70)),
    rgba(255,255,255,0.72);
  border-color: rgba(39, 39, 35, 0.12);
  box-shadow: 0 18px 54px rgba(50, 50, 45, 0.14);
}

.card:hover, .info-card:hover, .stat-card:hover, .safety-card:hover, .story-card:hover,
.section-card:hover, .glass-card:hover, .source-card:hover, .book-card:hover, .feature-card:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(248,248,244,0.78)),
    rgba(255,255,255,0.78);
  border-color: rgba(39, 39, 35, 0.18);
}

button, .button, .btn, .cta, .source-button, .filter, .also-see-button {
  color: #2d2b27;
  background: rgba(255,255,255,0.78);
  border-color: rgba(36, 35, 31, 0.16);
}

.filter.active, .cta, .btn-primary, .button-primary {
  color: #fff7ed;
  background: linear-gradient(135deg, #d66a2b, #ba2f20);
  border-color: rgba(91, 47, 24, 0.28);
}

#fireMap, .fire-map, .map-frame {
  background: #efefeb;
  border-color: rgba(44, 42, 37, 0.18);
  box-shadow: 0 22px 64px rgba(46, 44, 39, 0.18);
}

.leaflet-container {
  background: #efefeb;
}

.video-feature-card {
  color: var(--paper-ink);
}

.video-copy h3,
.also-see-card h3,
.nitrogen-copy h1 {
  color: #201f1c;
}

.video-credit,
.created-by,
.video-section .eyebrow,
.also-see-card .eyebrow,
.nitrogen-copy .eyebrow {
  color: #6e5a46;
}

.site-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #141312;
}

.drive-video {
  display: none;
}

.nitrogen-animation-card {
  background:
    linear-gradient(180deg, #d8e5ec 0%, #c8d3c1 40%, #287d80 41%, #103944 100%);
}

.page-back-arrow {
  color: #2b2925;
  background: rgba(255,255,255,0.74);
  border-color: rgba(41, 39, 35, 0.18);
}

@media (max-width: 860px) {
  main section:not(#home) h2,
  #fire-tech .section-head h2,
  #sources .section-head h2,
  #sources .eyebrow {
    color: #201f1c;
  }
}

/* v65 full-home hero + real local nitrogen video */
html, body {
  margin: 0;
  padding: 0;
}

#home, .hero, .hero-section, .home-hero {
  min-height: 100vh !important;
  height: 100vh;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body > .site-grid,
.site-grid {
  top: 0;
}

.navbar, .topbar, header {
  position: fixed;
  top: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

.navbar.scrolled, header.scrolled, .topbar.scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(38, 38, 34, 0.10) !important;
  box-shadow: 0 10px 30px rgba(25, 25, 22, 0.08) !important;
}

#home .navbar a, #home nav a {
  color: #fff7ed;
}

.site-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #141312;
}

.nitrogen-video {
  min-height: 420px;
  aspect-ratio: 16 / 9;
  background: #141312;
}

.drive-video {
  display: none !important;
}

/* v66 no top strip + local nitrogen video + red fire dots */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  padding-top: 0 !important;
}

#home,
.hero,
.hero-section,
.home-hero,
section#home {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

#home::before,
.hero::before,
.hero-section::before,
.home-hero::before {
  top: 0 !important;
}

.hero-bg {
  top: 0 !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  background: url('assets/hero-yosemite-fire.webp') center/cover no-repeat !important;
}

.navbar, .topbar, header, .site-header, .nav {
  top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.navbar.scrolled, header.scrolled, .topbar.scrolled, .site-header.scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(38, 38, 34, 0.10) !important;
  box-shadow: 0 10px 30px rgba(25, 25, 22, 0.08) !important;
}

.site-grid {
  top: 0 !important;
}

.site-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #141312;
}

.nitrogen-video {
  min-height: 420px;
  aspect-ratio: 16 / 9;
  background: #141312;
}

.drive-video {
  display: none !important;
}



/* v67 final finish: graph-paper ash background + cleaner stats + fixed buttons */
:root {
  --grid-paper: #f8f8f4;
  --grid-line-major: rgba(88, 92, 96, 0.16);
  --grid-line-minor: rgba(88, 92, 96, 0.08);
  --ash-smear: rgba(54, 54, 51, 0.14);
  --ash-deep: rgba(25, 25, 23, 0.18);
  --ember: rgba(191, 72, 28, 0.32);
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(28rem 18rem at 10% 14%, rgba(66, 66, 62, 0.10), transparent 60%),
    radial-gradient(24rem 16rem at 82% 24%, rgba(46, 46, 43, 0.08), transparent 62%),
    radial-gradient(20rem 14rem at 24% 70%, rgba(48, 47, 43, 0.10), transparent 60%),
    radial-gradient(16rem 12rem at 88% 84%, rgba(191, 92, 36, 0.06), transparent 68%),
    linear-gradient(90deg, transparent 0 95%, rgba(122, 72, 32, 0.06) 98%, rgba(238, 114, 28, 0.10) 100%),
    var(--grid-paper) !important;
  color: #23221f;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-minor) 1px, transparent 1px),
    radial-gradient(30rem 12rem at 12% 11%, var(--ash-smear), transparent 60%),
    radial-gradient(26rem 10rem at 78% 34%, var(--ash-smear), transparent 58%),
    radial-gradient(32rem 11rem at 42% 88%, var(--ash-smear), transparent 60%),
    radial-gradient(18rem 8rem at 94% 96%, rgba(90,53,30,0.28), transparent 52%),
    radial-gradient(8rem 5rem at 96% 97%, rgba(238,121,42,0.16), transparent 46%),
    radial-gradient(6rem 4rem at 3% 4%, rgba(90,53,30,0.20), transparent 42%);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px,
    auto,
    auto,
    auto,
    auto,
    auto,
    auto;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 100% 100%, 100% 100%, 0 0;
  opacity: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 0 97%, rgba(79, 46, 25, 0.24) 100%),
    radial-gradient(12rem 5rem at 96% 97%, rgba(255, 138, 57, 0.18), transparent 52%);
  mix-blend-mode: multiply;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.topbar.scrolled, header.scrolled, .navbar.scrolled {
  background: rgba(249, 248, 244, 0.88) !important;
  border-bottom: 1px solid rgba(40, 39, 35, 0.10) !important;
  box-shadow: 0 10px 28px rgba(42, 40, 35, 0.10) !important;
}

#home, .hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero .brand, .hero .topnav a, .brand, .topnav a { color: #fff8ef; }
.topbar.scrolled .brand, .topbar.scrolled .topnav a { color: #2b2925; }

.section,
.article-text,
.stats-panel,
.page-text,
.nitrogen-layout,
.video-feature-card,
.also-see-card,
.clickable-safety-grid .safety-card-link,
.sources-list .source-button,
.content-block,
.image-tile,
.map-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stats-panel {
  background: rgba(255,255,255,0.70) !important;
  border: 1px solid rgba(38,38,34,0.12) !important;
  border-radius: 18px;
  padding: 16px 16px 10px;
  gap: 6px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(40,39,35,0.08);
}

.stat-row:last-of-type { border-bottom: 0; }
.stat-row span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5a5651; font-weight: 800; }
.stat-row strong {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #1f1d1a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.stat-note {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #6b655f;
}

.legend {
  background: rgba(250,249,245,0.84) !important;
  border-color: rgba(38,38,34,0.12) !important;
}
.legend .low { background: #d92d20 !important; }
.legend .mid { background: #760b0b !important; }
.legend .high { background: #140000 !important; }

.page-back-arrow,
.source-button,
.filter,
.hero-actions a,
.also-see-button {
  border-radius: 999px !important;
}

.nitrogen-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.nitrogen-nav .also-see-button,
.nitrogen-copy .also-see-button {
  min-width: 96px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: visible;
}

.nitrogen-page .video-frame-wrap {
  background: #11100f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.site-video {
  background: #11100f;
  object-fit: contain !important;
}

.fire-map-popup h3 { margin: 0 0 8px; font-size: 16px; }
.fire-map-popup p { margin: 4px 0; font-size: 13px; line-height: 1.45; }

@media (max-width: 800px) {
  .nitrogen-nav { width: 100%; }
  .nitrogen-nav .also-see-button { flex: 1 1 120px; }
}


/* v68 education-section additions */
.map-methodology { margin: -6px 0 18px; padding: 18px 20px; border: 1px solid rgba(38, 38, 34, 0.12); border-radius: 18px; background: rgba(255,255,255,0.72); color: #24231f; box-shadow: 0 10px 30px rgba(45, 43, 38, 0.08); }
.map-methodology h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.map-methodology p { margin: 0; color: #504c45; line-height: 1.55; }
.soil-section .image-tile img, .water-section .image-tile img, .aqi-section .image-tile img { width: 100%; height: min(620px, 64vw); min-height: 320px; object-fit: cover; border-radius: 18px; }
.aqi-scale { display: grid; gap: 8px; margin-top: 18px; }
.aqi-band { display: grid; grid-template-columns: 90px 1fr; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 14px; color: #191715; font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.aqi-band strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.aqi-band span { line-height: 1.2; }
.aqi-band.good { background: #68c55b; }
.aqi-band.moderate { background: #f0d84f; }
.aqi-band.sensitive { background: #f3a23a; }
.aqi-band.unhealthy { background: #e55343; color: #fff; }
.aqi-band.very { background: #9d5bb5; color: #fff; }
.aqi-band.hazardous { background: #681c32; color: #fff; }
.video-accessibility { margin: 18px 0 0; }
.video-accessibility .source-button, .transcript-page .source-button { width: fit-content; max-width: 100%; min-height: 42px; padding: 0 18px; white-space: normal; text-align: center; }
.topnav { flex-wrap: wrap; row-gap: 8px; }
.topnav a, .drawer-links a, .filter, .map-actions button, .hero-actions a, .source-button, .also-see-button { min-height: 44px; }
.drawer-links a:focus-visible, .topnav a:focus-visible, button:focus-visible, a:focus-visible, .filter:focus-visible { outline: 3px solid rgba(239, 122, 36, 0.85); outline-offset: 3px; }
.hero h1, .hero .eyebrow, .hero-time, .hero-actions a, .brand, .topnav a { text-shadow: 0 2px 16px rgba(0,0,0,0.74); }
.hero-overlay { background: linear-gradient(90deg, rgba(7,9,8,.88) 0%, rgba(7,9,8,.48) 54%, rgba(7,9,8,.34) 100%) !important; }
@media (max-width: 900px) { .topnav { display: none; } .map-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .map-actions button { width: 100%; min-height: 46px; } .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter { width: 100%; min-height: 46px; } .map-methodology { margin-top: 4px; } .aqi-band { grid-template-columns: 78px 1fr; font-size: 12px; } .aqi-band strong { font-size: 16px; } }
@media (max-width: 600px) { .hero-inner { padding-left: 18px !important; padding-right: 18px !important; } .map-actions, .filters { grid-template-columns: 1fr; } .map-panel { min-height: 430px !important; aspect-ratio: auto !important; height: 65vh; } .stats-panel { border-radius: 18px; } .soil-section .image-tile img, .water-section .image-tile img, .aqi-section .image-tile img { height: auto; min-height: 260px; } .nitrogen-nav .also-see-button { min-width: 110px; } }


/* v69 fixes: single AQI dashboard, no top bar, visible graph-paper ash background, cleaner image flow */
.site-grid { display: none !important; }
html, body { background: #efefeb !important; }
body {
  background:
    radial-gradient(38rem 16rem at 11% 10%, rgba(40,40,38,0.16), transparent 58%),
    radial-gradient(28rem 13rem at 82% 25%, rgba(58,58,54,0.12), transparent 60%),
    radial-gradient(30rem 14rem at 36% 83%, rgba(44,43,41,0.13), transparent 62%),
    radial-gradient(16rem 7rem at 92% 96%, rgba(113,63,35,0.18), transparent 55%),
    #efefeb !important;
}
body::before {
  z-index: -1 !important;
  opacity: 1 !important;
  background-image:
    linear-gradient(to right, rgba(92,96,100,0.20) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(92,96,100,0.20) 1px, transparent 1px),
    linear-gradient(to right, rgba(92,96,100,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(92,96,100,0.10) 1px, transparent 1px),
    radial-gradient(34rem 10rem at 10% 12%, rgba(54,54,51,0.18), transparent 56%),
    radial-gradient(30rem 10rem at 76% 35%, rgba(54,54,51,0.15), transparent 54%),
    radial-gradient(36rem 12rem at 48% 88%, rgba(54,54,51,0.18), transparent 58%),
    radial-gradient(11rem 5rem at 95% 97%, rgba(142,78,38,0.16), transparent 50%);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, auto, auto, auto, auto !important;
}
body::after { opacity: .9; }
main { padding-top: 0 !important; }
.topbar {
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  padding: 0 !important;
  width: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.brand, .topnav { display: none !important; }
.menu-button {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(17,16,14,0.42) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  justify-items: center !important;
  align-content: center !important;
}
.menu-button span { width: 22px !important; height: 2.5px !important; background: #fff8ef !important; }
.topbar.scrolled .menu-button { background: rgba(247,246,242,0.92) !important; }
.topbar.scrolled .menu-button span { background: #24231f !important; }
.hero-time, #dateStamp { display: none !important; }
.hero-inner { max-width: 760px; padding-top: 18vh !important; padding-left: 56px !important; }
.section,
.map-methodology,
.stats-panel,
.map-panel,
.sources-list .source-button,
.clickable-safety-grid .safety-card-link,
.also-see-card,
.video-feature-card {
  background: transparent !important;
  box-shadow: none !important;
}
.section { border-top: 0 !important; }
.content-block,
.article-text,
.article-text.content-block {
  background: transparent !important;
  border-top: 1px solid rgba(33,33,31,0.10) !important;
  padding-top: 20px;
}
.article-layout, .split-grid, .impact-grid, .book-grid, .gobag-grid, .two-column, .map-layout, .aqi-layout {
  align-items: stretch !important;
}
.article-image, .impact-image, .image-tile, .writing-stack, .impact-writing, .article-column { height: 100%; }
.article-image, .impact-image, .image-tile { display: flex; }
.article-image img, .impact-image img, .image-tile img, .impact-under-photo {
  height: 100% !important;
  min-height: 420px;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(25,23,20,0.12);
}
.image-band { display: flex; }
.image-band img { width: 100%; min-height: 240px; border-radius: 22px; box-shadow: 0 10px 26px rgba(25,23,20,0.12); }
.writing-stack, .impact-writing { display: flex; flex-direction: column; gap: 24px; }
.impact-under-photo { width: 100%; object-fit: cover; margin-top: 0 !important; }
.goodfire-preview-grid .image-tile img,
.soil-section .image-tile img,
.water-section .image-tile img { min-height: 540px; }
.map-layout { grid-template-columns: minmax(0,1fr) 280px !important; gap: 24px !important; }
.map-panel {
  border: 1px solid rgba(38,38,34,0.12) !important;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(250,249,245,0.35) !important;
}
.stats-panel {
  border: 1px solid rgba(38,38,34,0.12) !important;
  border-radius: 22px !important;
  padding: 18px 18px 12px !important;
  background: rgba(250,249,245,0.50) !important;
}
.map-methodology {
  background: rgba(250,249,245,0.52) !important;
  border: 1px solid rgba(38,38,34,0.12) !important;
  border-radius: 20px;
}
.aqi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.aqi-dashboard {
  border: 1px solid rgba(38,38,34,0.12);
  border-radius: 26px;
  background: rgba(250,249,245,0.46);
  padding: 28px 24px 24px;
  box-shadow: 0 12px 28px rgba(30,28,24,0.08);
}
.aqi-gauge {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 2 / 1.12;
  margin: 0 auto 18px;
  overflow: hidden;
}
.aqi-gauge-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background: conic-gradient(from 180deg,
    #69c45b 0deg 30deg,
    #e7d34b 30deg 60deg,
    #f0a238 60deg 90deg,
    #ea513d 90deg 120deg,
    #9c5cb8 120deg 150deg,
    #6e1731 150deg 180deg,
    transparent 180deg 360deg);
}
.aqi-gauge-hole {
  position: absolute;
  left: 50%;
  bottom: -1%;
  transform: translateX(-50%);
  width: 72%;
  height: 72%;
  border-radius: 999px 999px 0 0;
  background: rgba(250,249,245,0.98);
}
.aqi-needle {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 32%;
  height: 8px;
  background: linear-gradient(90deg, #191919, #313131);
  border-radius: 999px;
  transform-origin: left center;
  transform: rotate(-17deg);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.aqi-cap {
  position: absolute;
  left: 50%;
  bottom: calc(12% - 10px);
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4d4d4d, #191919 72%);
}
.aqi-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.aqi-pill {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.aqi-pill strong { font-size: 1.3rem; line-height: 1; }
.aqi-pill span { font-size: .96rem; line-height: 1.2; }
.aqi-pill.good { background:#69c45b; color:#111; }
.aqi-pill.moderate { background:#e7d34b; color:#111; }
.aqi-pill.sensitive { background:#f0a238; color:#111; }
.aqi-pill.unhealthy { background:#ea513d; color:#fff; }
.aqi-pill.very { background:#9c5cb8; color:#fff; }
.aqi-pill.hazardous { background:#6e1731; color:#fff; }
.aqi-scale, .aqi-band, .aqi-section .image-tile { display: none !important; }
@media (max-width: 1100px) {
  .map-layout, .aqi-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .hero-inner { padding-left: 22px !important; }
  .article-image img, .impact-image img, .image-tile img, .impact-under-photo { min-height: 320px; }
  .goodfire-preview-grid .image-tile img,
  .soil-section .image-tile img,
  .water-section .image-tile img { min-height: 320px; }
}
@media (max-width: 600px) {
  .topbar { top: 12px !important; left: 12px !important; }
  .menu-button { width: 50px !important; height: 50px !important; }
  .hero-inner { padding-top: 16vh !important; padding-left: 18px !important; padding-right: 18px !important; }
  .aqi-legend-grid { grid-template-columns: 1fr; }
  .article-image img, .impact-image img, .image-tile img, .impact-under-photo { min-height: 260px; }
}


/* v70 final: visible grey graph-paper ash background + complete AQI location gauge */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #d9d9d3 !important;
  background-image:
    radial-gradient(42rem 16rem at 11% 9%, rgba(38,38,36,0.24), transparent 58%),
    radial-gradient(35rem 14rem at 82% 24%, rgba(42,42,39,0.20), transparent 60%),
    radial-gradient(40rem 13rem at 44% 78%, rgba(44,44,41,0.22), transparent 62%),
    radial-gradient(22rem 8rem at 93% 94%, rgba(90,60,45,0.18), transparent 55%),
    linear-gradient(to right, rgba(82,86,90,0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(82,86,90,0.25) 1px, transparent 1px),
    linear-gradient(to right, rgba(82,86,90,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(82,86,90,0.12) 1px, transparent 1px) !important;
  background-size:
    auto,
    auto,
    auto,
    auto,
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px !important;
  background-attachment: fixed !important;
  overflow-x: hidden;
}

body::before,
body::after {
  content: none !important;
}

.site-grid {
  display: none !important;
}

main {
  padding-top: 0 !important;
  background: transparent !important;
}

.section {
  background: transparent !important;
  border-top: 0 !important;
}

.topbar {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 300 !important;
}

.brand,
.topnav,
.hero-time,
#dateStamp {
  display: none !important;
}

.menu-button {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(12, 11, 10, 0.50) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid !important;
  align-content: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

.menu-button span {
  width: 24px !important;
  height: 2.5px !important;
  background: #fff8ef !important;
  border-radius: 4px;
}

#home,
.hero,
section#home {
  min-height: 100vh !important;
  min-height: 100svh !important;
  height: 100vh !important;
  height: 100svh !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-bg {
  inset: 0 !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
}

.hero-inner {
  padding-top: 18vh !important;
  padding-left: 56px !important;
  padding-right: 24px !important;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(6,8,7,.88) 0%, rgba(6,8,7,.48) 54%, rgba(6,8,7,.30) 100%) !important;
}

.content-block,
.article-text,
.article-text.content-block,
.map-methodology,
.stats-panel,
.video-feature-card,
.also-see-card,
.clickable-safety-grid .safety-card-link {
  background: rgba(216,216,210,0.38) !important;
  border: 1px solid rgba(38,38,34,0.12) !important;
  border-radius: 22px;
  padding: 22px;
  box-shadow: none !important;
}

.article-text.content-block {
  border-top: 1px solid rgba(38,38,34,0.12) !important;
}

.content-block,
.article-text.content-block,
.article-text.content-block p,
.article-text p {
  font-size: 17px !important;
  line-height: 1.72 !important;
  color: #34312d !important;
}

.article-layout,
.split-grid,
.impact-grid,
.book-grid,
.gobag-grid,
.two-column,
.aqi-layout {
  align-items: stretch !important;
  gap: 28px !important;
}

.image-tile,
.article-image,
.impact-image {
  display: flex !important;
  min-height: 100%;
}

.article-image img,
.image-tile img,
.impact-image img,
.image-band img,
.impact-under-photo {
  border-radius: 22px !important;
  border: 1px solid rgba(38,38,34,0.14) !important;
  box-shadow: 0 14px 32px rgba(26,24,22,0.13) !important;
  object-fit: cover !important;
}

.article-image img,
.image-tile img,
.impact-image img {
  height: 100% !important;
  min-height: 430px !important;
}

.goodfire-preview-grid .image-tile img,
.soil-section .image-tile img,
.water-section .image-tile img {
  min-height: 560px !important;
}

.aqi-location-layout {
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr) !important;
}

.aqi-dashboard {
  position: relative;
  background: rgba(216,216,210,0.42) !important;
  border: 1px solid rgba(38,38,34,0.14) !important;
  border-radius: 28px !important;
  padding: 28px !important;
  box-shadow: none !important;
  overflow: hidden;
}

.aqi-location-label {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 5;
  color: #111 !important;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  background: rgba(239,239,234,0.72);
  border: 1px solid rgba(20,20,18,0.12);
  border-radius: 999px;
  padding: 8px 12px;
}

.aqi-gauge {
  width: 100%;
  margin: 16px auto 16px;
  aspect-ratio: 640 / 370;
  overflow: visible !important;
}

.aqi-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.aqi-arc {
  fill: none;
  stroke-width: 86;
  stroke-linecap: butt;
}

.aqi-green { stroke: #68c55b; }
.aqi-yellow { stroke: #ead849; }
.aqi-orange { stroke: #f1a437; }
.aqi-red { stroke: #ed5141; }
.aqi-purple { stroke: #9e5abc; }
.aqi-maroon { stroke: #711733; }

.aqi-inner-mask {
  fill: rgba(235,235,229,0.96);
}

.aqi-needle-svg {
  stroke: #151515;
  stroke-width: 11;
  stroke-linecap: round;
  transform-origin: 320px 320px;
  transform: rotate(0deg);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.20));
  transition: transform 680ms cubic-bezier(.2,.8,.2,1);
}

.aqi-cap-svg {
  fill: url(#none);
  fill: #181818;
  stroke: #2c2c2c;
  stroke-width: 5;
}

.aqi-value {
  text-anchor: middle;
  font-weight: 900;
  font-size: 52px;
  fill: #111;
}

.aqi-category {
  text-anchor: middle;
  font-weight: 850;
  font-size: 20px;
  fill: #3b3834;
}

.aqi-legend-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.aqi-pill {
  display: grid !important;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
}

.aqi-pill strong {
  font-size: 1.25rem;
  line-height: 1;
}

.aqi-pill span {
  font-size: .95rem;
  line-height: 1.16;
}

.aqi-pill.good { background:#68c55b; color:#111; }
.aqi-pill.moderate { background:#ead849; color:#111; }
.aqi-pill.sensitive { background:#f1a437; color:#111; }
.aqi-pill.unhealthy { background:#ed5141; color:#fff; }
.aqi-pill.very { background:#9e5abc; color:#fff; }
.aqi-pill.hazardous { background:#711733; color:#fff; }

.aqi-controls {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.aqi-city-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #312e29;
}

.aqi-city-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}

.aqi-city-row input,
.aqi-city-row button,
#aqiLocationButton {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(33,33,30,0.18);
  font: inherit;
  font-weight: 800;
}

.aqi-city-row input {
  padding: 0 16px;
  background: rgba(239,239,234,0.82);
  color: #111;
}

.aqi-city-row button,
#aqiLocationButton {
  padding: 0 18px;
  cursor: pointer;
  background: #191815;
  color: #fff8ef;
}

.aqi-status {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #504b45 !important;
}

.aqi-scale,
.aqi-band,
.aqi-section .image-tile {
  display: none !important;
}

.map-layout {
  grid-template-columns: minmax(0, 1fr) 280px !important;
}

@media (max-width: 1100px) {
  .aqi-location-layout,
  .map-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .hero-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .aqi-dashboard {
    padding: 18px !important;
  }
  .aqi-location-label {
    position: static;
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
  }
  .aqi-legend-grid,
  .aqi-city-row {
    grid-template-columns: 1fr;
  }
  .article-image img,
  .image-tile img,
  .impact-image img,
  .goodfire-preview-grid .image-tile img,
  .soil-section .image-tile img,
  .water-section .image-tile img {
    min-height: 280px !important;
  }
}


/* v71 AQI accuracy + stronger graph-paper ash background */
html, body {
  background-color: #d7d6cf !important;
  margin: 0 !important;
  padding: 0 !important;
}
body {
  background-image:
    radial-gradient(40rem 18rem at 14% 11%, rgba(65, 66, 69, 0.18), transparent 62%),
    radial-gradient(32rem 14rem at 84% 20%, rgba(47, 49, 52, 0.14), transparent 58%),
    radial-gradient(34rem 12rem at 50% 76%, rgba(59, 60, 63, 0.16), transparent 60%),
    radial-gradient(10rem 6rem at 73% 66%, rgba(30, 28, 26, 0.11), transparent 60%),
    linear-gradient(to right, rgba(86, 89, 94, 0.24) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(86, 89, 94, 0.24) 1px, transparent 1px),
    linear-gradient(to right, rgba(86, 89, 94, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(86, 89, 94, 0.11) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px !important;
  background-attachment: fixed !important;
}
body::before,
body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
body::before {
  opacity: .70 !important;
  background-image:
    radial-gradient(16rem 5rem at 12% 16%, rgba(43, 45, 48, .17), transparent 70%),
    radial-gradient(18rem 6rem at 87% 34%, rgba(37, 38, 41, .14), transparent 72%),
    radial-gradient(20rem 6rem at 41% 86%, rgba(51, 52, 55, .16), transparent 70%),
    radial-gradient(8rem 3rem at 77% 91%, rgba(88, 62, 49, .14), transparent 70%);
  filter: blur(3px);
}
body::after {
  opacity: .10 !important;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.26) 0 1px, transparent 1.6px);
  background-size: 9px 9px;
}

main,
.section,
.site-wrap,
.site-grid,
.page-shell,
.shell,
.content-wrap,
.content,
.page {
  background: transparent !important;
}

.content-block,
.article-text,
.article-text.content-block,
.map-methodology,
.stats-panel,
.video-feature-card,
.also-see-card,
.clickable-safety-grid .safety-card-link,
.legend,
.map-actions,
.aqi-dashboard {
  background: rgba(245, 244, 239, 0.72) !important;
  border: 1px solid rgba(43, 43, 39, 0.12) !important;
  box-shadow: 0 14px 28px rgba(42, 40, 36, 0.08) !important;
}

.aqi-dashboard {
  position: relative;
  padding: 24px !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.aqi-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(to right, rgba(70,72,75,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(70,72,75,.16) 1px, transparent 1px);
  background-size: 32px 32px;
}
.aqi-location-label {
  position: absolute;
  right: 18px;
  top: 16px;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(22,22,20,.12) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  color: #111 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}
.aqi-gauge {
  margin-top: 18px !important;
}
.aqi-svg {
  overflow: visible;
}
.aqi-arc {
  fill: none;
  stroke-width: 88;
  stroke-linecap: butt;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.08));
}
.aqi-green { stroke: url(#aqiGreenGrad) !important; }
.aqi-yellow { stroke: url(#aqiYellowGrad) !important; }
.aqi-orange { stroke: url(#aqiOrangeGrad) !important; }
.aqi-red { stroke: url(#aqiRedGrad) !important; }
.aqi-purple { stroke: url(#aqiPurpleGrad) !important; }
.aqi-maroon { stroke: url(#aqiMaroonGrad) !important; }
.aqi-inner-mask {
  fill: rgba(238, 237, 232, 0.95) !important;
}
.aqi-needle-svg {
  stroke: #111216 !important;
  stroke-width: 12 !important;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.14));
}
.aqi-cap-svg {
  fill: #191a1d !important;
  stroke: #35363a !important;
  stroke-width: 5 !important;
}
.aqi-value {
  fill: #101113 !important;
  font-size: 56px !important;
  font-weight: 900 !important;
}
.aqi-category {
  fill: #383634 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}
.aqi-legend-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px !important;
  margin-top: 8px !important;
}
.aqi-pill {
  border-radius: 8px !important;
  padding: 14px 16px !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}
.aqi-pill strong {
  font-size: 1.18rem !important;
}
.aqi-pill span {
  font-size: .95rem !important;
}
.aqi-controls {
  display: grid !important;
  gap: 10px;
  margin-top: 14px !important;
}
.aqi-city-label {
  color: #24231f !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.aqi-city-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}
.aqi-city-row input,
.aqi-city-row button,
#aqiLocationButton {
  border-radius: 8px !important;
  min-height: 46px !important;
  font: inherit !important;
  font-weight: 800 !important;
}
.aqi-city-row input {
  background: rgba(255,255,255,.86) !important;
  color: #111 !important;
  border: 1px solid rgba(24,24,22,.16) !important;
  padding: 0 14px !important;
}
.aqi-city-row button,
#aqiLocationButton {
  background: #141416 !important;
  color: #fff !important;
  border: 1px solid rgba(24,24,22,.18) !important;
  padding: 0 16px !important;
}
.aqi-status {
  color: #4b4843 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

@media (max-width: 900px) {
  .aqi-location-layout {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 700px) {
  .aqi-legend-grid,
  .aqi-city-row {
    grid-template-columns: 1fr !important;
  }
  .aqi-location-label {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}


/* v72 final cleanup: no text boxes, light graph paper, no fake AQI values */
html, body {
  background-color: #f7f7f3 !important;
  background-image:
    radial-gradient(34rem 12rem at 12% 14%, rgba(88,88,84,0.075), transparent 62%),
    radial-gradient(30rem 12rem at 82% 22%, rgba(82,82,78,0.065), transparent 60%),
    radial-gradient(34rem 10rem at 46% 82%, rgba(92,92,86,0.07), transparent 64%),
    linear-gradient(to right, rgba(84,88,92,0.105) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(84,88,92,0.105) 1px, transparent 1px),
    linear-gradient(to right, rgba(84,88,92,0.052) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(84,88,92,0.052) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px !important;
  background-attachment: fixed !important;
}
body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  opacity: .42 !important;
  filter: blur(4px);
  background:
    radial-gradient(19rem 5rem at 18% 18%, rgba(60,60,58,0.10), transparent 72%),
    radial-gradient(16rem 4rem at 78% 36%, rgba(55,55,53,0.08), transparent 70%),
    radial-gradient(22rem 5rem at 40% 88%, rgba(64,64,61,0.09), transparent 72%) !important;
}
body::after { content: none !important; }
main, .section { background: transparent !important; }
.article-text, .content-block, .article-text.content-block, .content-block p, .article-text p {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.article-text.content-block, .content-block { padding: 0 !important; }
.article-text p, .content-block p {
  font-size: 17px !important;
  line-height: 1.72 !important;
  color: #3a3732 !important;
}
.aqi-dashboard {
  border-radius: 10px !important;
  background: rgba(250,250,246,0.58) !important;
  border: 1px solid rgba(34,34,31,0.12) !important;
}
.aqi-location-label, .aqi-pill, .aqi-city-row input, .aqi-city-row button, #aqiLocationButton, .aqi-station-choice {
  border-radius: 6px !important;
}
.aqi-station-choices {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.aqi-station-choice {
  min-height: 42px;
  border: 1px solid rgba(34,34,31,0.14);
  background: rgba(255,255,255,0.72);
  color: #171614;
  text-align: left;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.aqi-station-choice small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 650;
  color: #56514a;
}
.aqi-status { color: #56514e !important; }


/* v73 static AQI diagram */
.aqi-static-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 2.25rem;
  align-items: start;
}

.aqi-diagram-card {
  padding: 1rem 1rem 1.25rem;
  border: 1px solid rgba(45,45,42,0.12);
  background: rgba(255,255,255,0.35);
}

.aqi-static-svg {
  width: 100%;
  height: auto;
  display: block;
}

.aqi-needle-svg.static {
  transform: none !important;
}

.aqi-legend-grid.static-grid {
  margin-top: .5rem;
}

.aqi-pill {
  align-items: flex-start;
}

.aqi-pill small {
  display: block;
  margin-top: .4rem;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .aqi-static-layout {
    grid-template-columns: 1fr;
  }
}


/* v74 final polish: fire dots visible, no scroll blur, clean AQI bubbles */
html, body {
  background-color: #f8f8f4 !important;
  background-image:
    radial-gradient(34rem 12rem at 12% 14%, rgba(85,85,80,0.07), transparent 62%),
    radial-gradient(30rem 12rem at 82% 22%, rgba(85,85,80,0.06), transparent 60%),
    radial-gradient(34rem 10rem at 46% 82%, rgba(85,85,80,0.065), transparent 64%),
    linear-gradient(to right, rgba(88,92,96,0.105) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88,92,96,0.105) 1px, transparent 1px),
    linear-gradient(to right, rgba(88,92,96,0.052) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88,92,96,0.052) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px !important;
  background-attachment: scroll !important;
}
body::before, body::after, .site-grid {
  display: none !important;
  content: none !important;
}
* {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
main, .section {
  background: transparent !important;
}
.content-block, .article-text, .article-text.content-block, .article-text p, .content-block p {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  filter: none !important;
}
.article-text.content-block, .content-block {
  padding: 0 !important;
}
.article-text p, .content-block p {
  font-size: 17px !important;
  line-height: 1.72 !important;
  color: #393631 !important;
}
.article-layout, .split-grid, .impact-grid, .book-grid, .gobag-grid, .two-column, .goodfire-preview-grid {
  display: grid !important;
  align-items: stretch !important;
  gap: clamp(1.4rem, 3vw, 2.5rem) !important;
}
.article-layout, .split-grid, .impact-grid, .book-grid, .two-column, .goodfire-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.article-image, .image-tile, .impact-image {
  display: flex !important;
}
.article-image img, .image-tile img, .impact-image img, .impact-under-photo, .image-band img {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
  border: 1px solid rgba(36,35,32,0.12) !important;
  box-shadow: 0 10px 26px rgba(28,26,23,0.12) !important;
  filter: none !important;
}
.goodfire-preview-grid .image-tile img,
.soil-section .image-tile img,
.water-section .image-tile img {
  min-height: 500px !important;
}
.map-panel, #fireMap, .leaflet-container, .leaflet-pane, .leaflet-map-pane {
  filter: none !important;
}
.leaflet-interactive {
  filter: none !important;
}
.aqi-diagram-card, .aqi-dashboard, .aqi-static-svg, .aqi-gauge {
  display: none !important;
}
.aqi-bubbles-only {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.aqi-bubble {
  min-height: 150px;
  padding: 20px;
  border-radius: 18px;
  color: #151412;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 24px rgba(34,32,28,0.10);
}
.aqi-bubble strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.04em;
}
.aqi-bubble span {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.aqi-bubble p {
  margin: 0;
  font-size: .96rem !important;
  line-height: 1.45 !important;
  color: inherit !important;
}
.aqi-bubble.good { background: #68c55b; }
.aqi-bubble.moderate { background: #ead849; }
.aqi-bubble.sensitive { background: #f2a336; }
.aqi-bubble.unhealthy { background: #ed5141; color: #fff; }
.aqi-bubble.very { background: #9e5abc; color: #fff; }
.aqi-bubble.hazardous { background: #711733; color: #fff; }
.reveal, .reveal.show, .reveal-block, .reveal-block.show {
  filter: none !important;
}
@media (max-width: 960px) {
  .article-layout, .split-grid, .impact-grid, .book-grid, .two-column, .goodfire-preview-grid {
    grid-template-columns: 1fr !important;
  }
  .aqi-bubbles-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-image img, .image-tile img, .impact-image img, .impact-under-photo, .image-band img,
  .goodfire-preview-grid .image-tile img, .soil-section .image-tile img, .water-section .image-tile img {
    min-height: 300px !important;
    height: auto !important;
  }
}
@media (max-width: 600px) {
  .aqi-bubbles-only {
    grid-template-columns: 1fr;
  }
}


/* v75 smoother scrolling + AQI explanation text */
html {
  scroll-behavior: auto !important;
}

body {
  background-attachment: scroll !important;
}

.parallax,
.hero-bg {
  transform: none !important;
  will-change: auto !important;
}

.reveal,
.reveal.visible,
.reveal.show,
.reveal-block,
.reveal-block.show {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

* {
  scroll-snap-type: none !important;
}

.aqi-explainer-text {
  max-width: 980px;
  margin-bottom: 24px;
}

.aqi-explainer-text p {
  font-size: 17px !important;
  line-height: 1.72 !important;
  color: #393631 !important;
}


/* v76 map dots fixed: no white rings, no blur, NASA-style active fire points */
.satellite-fire-canvas {
  display: none !important;
}

.leaflet-interactive {
  filter: none !important;
  stroke-linejoin: round;
}

.fire-map-popup {
  max-width: 280px;
}

.legend .low { background: #e34b36 !important; }
.legend .mid { background: #b32020 !important; }
.legend .high { background: #6d0d0d !important; }

.fire-dot.low { background: #e34b36 !important; border-color: transparent !important; box-shadow: none !important; }
.fire-dot.mid { background: #b32020 !important; border-color: transparent !important; box-shadow: none !important; }
.fire-dot.high { background: #6d0d0d !important; border-color: transparent !important; box-shadow: none !important; }

#fireMap,
.map-panel,
.leaflet-container,
.leaflet-pane,
.leaflet-overlay-pane,
.leaflet-marker-pane,
.leaflet-map-pane {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* v77 worldwide dot coverage: calm red dots, no rings */
.leaflet-interactive {
  stroke-width: 0 !important;
  stroke: transparent !important;
}

.legend .low { background: #e45a45 !important; }
.legend .mid { background: #c2372f !important; }
.legend .high { background: #8f1f1b !important; }

.fire-dot,
.fire-dot.low,
.fire-dot.mid,
.fire-dot.high {
  border: 0 !important;
  box-shadow: none !important;
}

/* v78 dense world dots */
.leaflet-interactive {
  stroke-width: 0 !important;
  stroke: transparent !important;
}

.satellite-fire-canvas {
  display: none !important;
}

.legend .low { background: #e45a45 !important; }
.legend .mid { background: #c2372f !important; }
.legend .high { background: #8f1f1b !important; }


/* v79 smaller balanced dots */
.leaflet-interactive {
  stroke-width: 0 !important;
  stroke: transparent !important;
}
.legend .low { background: #e66b56 !important; }
.legend .mid { background: #cc493b !important; }
.legend .high { background: #9d2c24 !important; }
.fire-dot, .fire-dot.low, .fire-dot.mid, .fire-dot.high {
  border: 0 !important;
  box-shadow: none !important;
}


/* v81 official data only: smaller dots, no fake balanced layer */
.leaflet-interactive {
  stroke-width: 0 !important;
  stroke: transparent !important;
}

.fire-dot,
.fire-dot.low,
.fire-dot.mid,
.fire-dot.high {
  border: 0 !important;
  box-shadow: none !important;
}

.legend .low { background: #e45a45 !important; }
.legend .mid { background: #c2372f !important; }
.legend .high { background: #8f1f1b !important; }

.map-methodology p {
  font-size: 0.95rem;
  line-height: 1.55;
}


/* v82 faster fire-dot appearance */
.leaflet-interactive,
.leaflet-overlay-pane svg,
.leaflet-overlay-pane canvas {
  transition: none !important;
  animation: none !important;
}


/* v83: more official FIRMS dots, faster static draw */
.leaflet-interactive {
  transition: none !important;
  animation: none !important;
}


/* v84: dense official VIIRS grid, no slow dot animation */
.leaflet-interactive {
  transition: none !important;
  animation: none !important;
  stroke-width: 0 !important;
  stroke: transparent !important;
}


/* v85: live-refreshing official fire dots */
.leaflet-interactive {
  transition: none !important;
  animation: none !important;
}

.live-fire-refresh-pulse {
  filter: saturate(1.08);
  transition: filter 0.35s ease;
}

.map-live-note {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4c3a32;
}


/* v86: instant canvas fire dots + zoom-responsive clickable dots */
.satellite-fire-canvas {
  display: block !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
  pointer-events: none !important;
  z-index: 460 !important;
}

.leaflet-overlay-pane canvas,
.leaflet-interactive {
  transition: none !important;
  animation: none !important;
}

.leaflet-tile-pane,
.leaflet-overlay-pane {
  pointer-events: auto;
}

.leaflet-container {
  cursor: grab;
}


/* v87: instant first paint, no dot pop-in animation */
.satellite-fire-canvas {
  display: block !important;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}
.leaflet-interactive,
.leaflet-overlay-pane canvas {
  transition: none !important;
  animation: none !important;
}
