:root {
  --ink: #1d2433;
  --ink-2: #4a5263;
  --ink-3: #7b8292;
  --paper: #fbf8f2;
  --card: #ffffff;
  --line: #e6e0d4;
  --harbor: #1f4e6b;
  --harbor-2: #2f6f94;
  --sand: #efe6d4;
  --accent: #d2562b;
  --east: #d2562b;
  --sw: #2f6f94;
  --ok: #3a8a5a;
  --warn: #e0a21b;
  --bad: #c43c2f;
  --radius: 12px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--harbor-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.tag { display: inline-block; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.tag.live { background: #dcefe3; color: #1f5c38; }
.proto { background: #fff4d6; border-bottom: 1px solid #f0dca0; font-size: .85rem; text-align: center; padding: 6px 12px; color: #6b5313; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 1000; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; overflow-x: auto; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a.link { color: var(--ink-2); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a.link.on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

/* home */
.hero { padding: 72px 0 48px; }
.hero p.lede { font-size: 1.25rem; max-width: 760px; color: var(--ink-2); }
.timeline-story { list-style: none; padding: 0; margin: 24px 0; border-left: 3px solid var(--line); }
.timeline-story li { position: relative; padding: 0 0 22px 24px; }
.timeline-story li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--harbor-2); }
.timeline-story li.fire::before { border-color: var(--accent); }
.timeline-story .when { font-weight: 600; font-size: .9rem; color: var(--ink-3); }
.timeline-story .src { font-size: .8rem; color: var(--ink-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--harbor-2); }
.card.dim { opacity: .6; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 24px 0 48px; }
.why div { border-top: 3px solid var(--harbor); padding-top: 12px; }
section { padding: 32px 0; }

/* air page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
#map { height: 460px; border-radius: 8px; }
.scale { position: relative; height: 460px; }
.scale svg { width: 100%; height: 100%; overflow: visible; }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.readout .r { border-radius: 8px; padding: 10px 12px; background: var(--paper); }
.readout .lbl { font-size: .8rem; color: var(--ink-2); }
.readout .val { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.readout .sub { font-size: .8rem; color: var(--ink-3); }
.tl { margin-top: 16px; user-select: none; }
.tl-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tl-controls button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; height: 34px; min-width: 34px; cursor: pointer; font: inherit; }
.tl-date { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-left: 8px; }
#tl-svg { width: 100%; height: 74px; display: block; cursor: pointer; }
.callout { border-left: 4px solid var(--harbor); background: var(--card); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; }
.callout.warn { border-left-color: var(--warn); }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.toggle button { border: 0; background: var(--card); padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.toggle button.on { background: var(--ink); color: #fff; }
.toggle button:disabled { color: var(--ink-3); cursor: not-allowed; }
.chartbox { position: relative; height: 320px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin: 6px 0; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 6px; }
.mon-label { background: none; border: none; }
.mon-label div { font: 600 12px var(--sans); color: var(--ink); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
footer { border-top: 1px solid var(--line); padding: 24px 0 48px; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .mapgrid { grid-template-columns: 1fr; }
  .scale { height: 120px; }
  #map { height: 360px; }
}
.lang-btn { margin-left: auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.lang-btn:hover { border-color: var(--harbor-2); }
.src-list { display: grid; gap: 12px; margin: 16px 0 32px; }
.src { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.src .meta { font-size: .85rem; color: var(--ink-3); }
.src .used { font-size: .92rem; margin: 6px 0; }
.src .links { font-size: .85rem; display: flex; gap: 14px; flex-wrap: wrap; }
.status { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.status.public { background: #dcefe3; color: #1f5c38; }
.status.verify { background: #fff1cf; color: #6b5313; }
.status.draft { background: #f8dcd6; color: #7a2a1d; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.tbl th, table.tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { background: var(--sand); font-weight: 600; }
table.tbl code { font-size: .85rem; }
.tblwrap { overflow-x: auto; margin: 12px 0 32px; }
ol.steps li, ul.gaps li { margin-bottom: 8px; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.dl a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; }
.dl a:hover { border-color: var(--harbor-2); }
.dl b { color: var(--harbor-2); }
.cite { font-size: .8rem; color: var(--ink-3); }
.cite a { color: var(--ink-3); }
.nav .wrap { overflow: visible; }
.navlinks { display: flex; gap: 24px; overflow-x: auto; flex: 1; min-width: 0; align-items: center; height: 100%; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.lang-btn { flex-shrink: 0; }

/* ===== Theme: steel blue + sage paper, Archivo (v2) ===== */
:root {
  --ink: #343734; --ink-2: #5a5e5a; --ink-3: #868a84;
  --paper: #EFF1E8; --card: #FAFBF6; --line: #D9DDD0; --mist: #DEE6E9;
  --steel: #70A1BD; --steel-deep: #3F6F8C; --harbor: #3F6F8C; --harbor-2: #4F86A6; --sand: #DEE6E9;
  --accent: #E2531F; --east: #E2531F; --sw: #4F86A6; --enf: #4B4FA0;
  --radius: 16px;
  --serif: "Archivo", system-ui, sans-serif; --sans: "Archivo", system-ui, sans-serif;
}
body { font-stretch: 100%; letter-spacing: .005em; }
a { color: var(--steel-deep); text-underline-offset: 3px; }
h1, h2, h3, .brand, .bignum, .val, .tl-date { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; }
h1 { line-height: 1.02; }
h2 { line-height: 1.08; }
h3 { font-weight: 700; font-stretch: 112%; }
.proto { background: var(--accent); color: #fff; border: 0; letter-spacing: .03em; font-weight: 700; font-size: .95rem; padding: 9px 12px; }
.nav { background: var(--paper); border-bottom: 1px solid var(--line); transition: background .6s, color .6s; }
.brand { font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; }
.nav a.link { color: var(--ink-2); font-weight: 500; }
.nav a.link.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--steel); }
.lang-btn { background: transparent; border-color: var(--ink); color: var(--ink); font-weight: 600; }
.tag { background: var(--mist); color: var(--ink); font-weight: 600; }
.tag.live { background: var(--ink); color: var(--paper); }
.hero { background: var(--steel); color: var(--paper); }
.hero .tag { background: rgba(239,241,232,.2); color: var(--paper); }
.hero p.lede, .hero .muted { color: rgba(239,241,232,.92); }
.hero h1 { color: var(--paper); }
.hero + section { padding-top: 32px !important; }
.card, .panel, .src, .dl a, table.tbl, .callout { background: var(--card); border-color: var(--line); border-radius: var(--radius); }
.card { border: 0; box-shadow: 0 1px 0 rgba(52,55,52,.06); }
a.card:hover { border-color: transparent; box-shadow: 0 0 0 2px var(--steel); }
.why div { border-top-color: var(--steel); }
.chip { background: var(--card); border-color: var(--line); font-weight: 500; }
.chip.on { background: var(--ink); border-color: var(--ink); }
.toggle button.on { background: var(--ink); }
.readout .r { background: var(--mist); border-radius: 12px; }
.callout { border-left-color: var(--steel); border-radius: 0 12px 12px 0; }
table.tbl th { background: var(--mist); }
footer { background: var(--ink); color: rgba(239,241,232,.8); border: 0; }
footer a { color: var(--paper); }
.hero { padding-bottom: 56px !important; }
/* nav: use the full window width so links don't need sideways scrolling */
.nav .wrap { max-width: none; padding: 0 28px; gap: 28px; }
.brand { font-stretch: 112%; font-size: .9rem; flex-shrink: 0; }
.navlinks { gap: 22px; }
.nav a.link { font-size: .92rem; }
.nav a.link.on { font-weight: 600; }
@media (max-width: 1100px) { .navlinks { gap: 16px; } .nav a.link { font-size: .86rem; } .nav .wrap { gap: 18px; padding: 0 18px; } }
@media (max-width: 1100px) { .navlinks { gap: 13px; } .nav a.link { font-size: .82rem; } .brand { font-size: .8rem; } .lang-btn { padding: 4px 11px; font-size: .8rem; } }
/* headings: regular-width Archivo 700 (toned down from Expanded 800) */
h1, h2, h3, .brand, .bignum, .val, .tl-date { font-stretch: 100%; font-weight: 700; letter-spacing: -.005em; }
h3 { font-weight: 600; }
/* page banners: deeper steel blue so light text is easy to read */
.hero { background: #3F6F8C; }
.hero h1 { text-wrap: balance; }
.chip-legend { margin: -10px 0 16px; display: flex; align-items: center; gap: 6px; }
.chip-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.coming { font-size: .92rem; margin: -40px 0 56px; display: flex; gap: 8px; align-items: flex-start; }
.coming i { font-size: 18px; color: var(--steel-deep); flex-shrink: 0; margin-top: 3px; }
.cards { margin-bottom: 56px; }

/* ===== review-draft cues ===== */
/* "Air right now": a light-blue pill with a wind icon, set apart from the text tabs */
.nav a.link.now-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--mist); color: var(--harbor); padding: 6px 12px 6px 10px; border-radius: 999px; font-weight: 600; border-bottom: 0; line-height: 1; }
.nav a.link.now-pill:hover { background: #cfdbe0; }
.nav a.link.now-pill.on { background: var(--harbor); color: var(--paper); padding-bottom: 6px; border-bottom: 0; }
.nav a.link.now-pill svg { flex: none; }
body.tl-mode .nav a.link.now-pill { background: rgba(239,241,232,.16); color: var(--paper); }
.nav a.link.draft { color: var(--ink-3); opacity: .45; font-weight: 400; }
.nav a.link.draft .dr { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-left: 5px; vertical-align: 2px; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; line-height: 1.5; }
.nav a.link.draft.on { opacity: .85; border-bottom-color: var(--accent); }
body.tl-mode .nav a.link.draft { color: rgba(239,241,232,.5); }
.hero .tag.draft { background: var(--accent); color: #fff; }
.draft-note { margin-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.draft-note a { color: var(--paper); font-weight: 600; }
/* air page: more room between the headline and the explainer, and a plain-language line above the map */
.hero h1 { margin-bottom: 0; }
.hero p.lede { margin-top: 28px; }
.air-h2 { margin: 6px 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.air-h2 .metal { color: #fff; background: var(--accent); padding: .05em .4em .1em; border-radius: 8px; }
@media (max-width: 1100px) { .nav a.link.draft .dr { display: none; } }

/* air sampling panel: one screen at 100% zoom. Map with the timeline right under it; color scale with the two readings beneath it on the right. */
#map { height: clamp(320px, calc(100vh - 425px), 540px); }
.mapgrid { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.side { display: flex; flex-direction: column; gap: 10px; }
.scale { flex: 1 1 0; height: auto; min-height: 220px; overflow: hidden; }
.scale svg { position: absolute; inset: 0; }
.readout { grid-template-columns: 1fr; gap: 8px; margin-top: 0; }
.readout .r { padding: 8px 12px; }
.readout .val { font-size: 1.25rem; line-height: 1.2; }
.readout .lbl, .readout .sub { font-size: .76rem; line-height: 1.35; }
.tl { margin-top: 10px; }
#tl-svg { height: 96px; }
.tl-date { font-size: 1.5rem; }
.chips { margin: 6px 0 6px; }
.chip-legend { margin-bottom: 8px; }
@media (max-width: 800px) { .mapgrid { grid-template-columns: 1fr; } #map { height: 360px; } .scale { flex: none; height: 120px; min-height: 0; } .readout { grid-template-columns: 1fr 1fr; } }
/* Phones: drop the brand title so the section tabs get the full width; the tab row scrolls sideways and fades at the edge. */
@media (max-width: 760px) {
  .nav .wrap { gap: 10px; padding: 0 0 0 16px; height: 52px; }
  .nav .brand { display: none; }
  .navlinks { gap: 18px; padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .nav a.link { font-size: .9rem; }
  .lang-btn { margin-right: 16px; }
}
/* Page heroes: same gradient and soft bubble as the "explore" cards on the home page. Ground gets its earth tone. */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 88% 20%, rgba(255,255,255,.14), transparent 60%), linear-gradient(110deg, #163a52 0%, var(--harbor) 30%, var(--harbor-2) 68%, #5a95b8 100%); }
.hero::after { content: ""; position: absolute; right: -140px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
body[data-page="ground"] .hero { background: radial-gradient(900px 600px at 88% 20%, rgba(255,255,255,.14), transparent 60%), linear-gradient(110deg, #52300f 0%, #7a4a1e 30%, #b0702f 68%, #cf9553 100%); }
@media (max-width: 760px) { .hero::after { width: 380px; height: 380px; right: -120px; bottom: -200px; } }
/* Phone type scale and spacing for every page */
@media (max-width: 760px) {
  html, body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 24px 0; }
  .hero { padding: 32px 0 30px !important; }
  .hero h1 { font-size: 1.85rem; line-height: 1.1; }
  .hero p.lede { font-size: 1rem; margin-top: 12px; }
  .hero .tag { font-size: .68rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  footer { padding: 20px 0 36px; font-size: .8rem; }
}
@media (max-width: 760px) {
  /* Air page controls */
  .tl-controls { flex-wrap: wrap; gap: 6px; }
  .tl-date { font-size: 1.1rem; margin-left: 4px; white-space: nowrap; }
  #tl-n { white-space: nowrap; font-size: .8rem; }
  .mon-label div { font-size: 11px; }
  .chips { gap: 6px; }
  .chip { padding: 5px 11px; font-size: .85rem; }
  .air-h2 { font-size: 1.15rem; }
  /* Sources page: project-internal file paths are desktop-only */
  .local-copy { display: none; }
  .src h3 .tag { display: inline-block; margin-top: 4px; }
}
@media (max-width: 760px) {
  .src h3 .tag { white-space: nowrap; }
  .scale text { font-size: 10px !important; }
  .leaflet-control-layers-expanded { padding: 4px 8px; font-size: .8rem; }
}
@media (max-width: 760px) { .src .status { white-space: nowrap; display: inline-block; vertical-align: middle; } }
/* Phone nav: a home icon stands in for the hidden brand title */
.home-btn { display: none; }
@media (max-width: 760px) {
  .home-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; color: var(--ink); background: var(--mist); text-decoration: none; font-size: 20px; }
  body[data-page="home"] .home-btn { background: var(--ink); color: var(--paper); }
  body.tl-mode .home-btn { background: rgba(239,241,232,.16); color: var(--paper); }
  .nav .wrap { gap: 12px; }
}
/* Map credit: required by the Esri and OpenStreetMap licences, kept as a tiny translucent label with no Leaflet branding */
/* Leaflet 1.9 blends tiles with plus-lighter, which adds up the anti-aliased edges of neighbouring tiles whenever the map
   sits on a fractional pixel and draws a bright grid one tile apart. Plain blending, plus snapMapBox() in shell.js, avoids it. */
.leaflet-container img.leaflet-tile { mix-blend-mode: normal; }
.leaflet-container .leaflet-control-attribution { font-size: 9px; line-height: 1.2; padding: 1px 5px; background: rgba(255,255,255,.55); color: rgba(29,36,51,.65); border-radius: 4px 0 0 0; }
.leaflet-container .leaflet-control-attribution a { color: inherit; text-decoration: none; }
/* Phones: a little air above and below each block of words */
@media (max-width: 760px) {
  section { padding: 30px 0; }
  .hero + section { padding-top: 30px !important; }
  .hero { padding: 36px 0 36px !important; }
  .hero h1 { margin: 10px 0 0; }
  .hero p.lede { margin-top: 16px; line-height: 1.55; }
  .muted.small { margin-bottom: 10px; }
  .chips { gap: 8px; margin: 10px 0 14px; }
  .chip-legend { margin: 0 0 22px; line-height: 1.4; }
  .air-h2 { margin: 18px 0 16px; line-height: 1.3; }
  .panel { padding: 14px; margin-bottom: 18px; }
  .callout { padding: 16px 18px; margin: 22px 0; line-height: 1.55; }
  .tl-controls { margin: 14px 0 10px; }
  .readout { margin-top: 14px; gap: 10px; }
  .readout .r { padding: 12px 14px; }
  h2 { margin: 0 0 .6em; }
  .src { padding: 18px 16px; }
  .src + .src { margin-top: 14px; }
  p { margin: .6em 0; }
}
/* Air page: the same air around the metal picker, legend and heading on every screen size */
.hero + section { padding-top: 36px !important; }
.muted.small { margin-bottom: 12px; }
.chips { gap: 10px; margin: 12px 0 16px; }
.chip-legend { margin: 0 0 26px; line-height: 1.4; }
.air-h2 { margin: 22px 0 20px; line-height: 1.3; }
/* Home button on every screen size: left of the site name on desktop */
.home-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; color: var(--ink); background: var(--mist); text-decoration: none; }
.home-btn:hover { background: var(--ink); color: var(--paper); }
.home-btn svg { width: 18px; height: 18px; }
body[data-page="home"] .home-btn { background: var(--ink); color: var(--paper); }
body.tl-mode .home-btn { background: rgba(239,241,232,.16); color: var(--paper); }
.nav .wrap { gap: 20px; }
@media (max-width: 760px) { .home-btn { width: 36px; height: 36px; border-radius: 10px; } .home-btn svg { width: 20px; height: 20px; } }
/* Map controls stay beneath the sticky nav when the page scrolls */
.leaflet-top, .leaflet-bottom { z-index: 800; }
@media (max-width: 760px) { .scale { height: 136px; } }
.mode-note { max-width: 420px; line-height: 1.4; }
.toggle button:disabled { opacity: .45; }
.toggle[hidden] { display: none; }

/* Who we are: a dated history list and a few cards */
.hist { list-style: none; margin: 18px 0 8px; padding: 0; max-width: 820px; }
.hist li { display: grid; grid-template-columns: 8.5em 1fr; gap: 0 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.hist li:last-child { border-bottom: 1px solid var(--line); }
.hist-when { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--steel-deep); }
.hist-body p { margin: 0 0 6px; }
/* About: one circle, four dots (the four groups); the detail panel shows the hovered / tapped group */
.ring-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 12px 0 8px; }
.ring { width: 100%; height: auto; display: block; }
.ring-line { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-center { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 20px; fill: var(--ink); text-anchor: middle; }
.ring-since { font-size: 13px; fill: var(--ink-3); text-anchor: middle; }
.ring-dot { cursor: pointer; outline: none; }
.ring-dot .halo { fill: var(--sand); opacity: 0; transition: opacity .2s, r .2s; }
.ring-dot.on .halo, .ring-dot:hover .halo, .ring-dot:focus-visible .halo { opacity: 1; }
.ring-dot .dot { stroke: var(--card); stroke-width: 3; transition: r .2s; }
.ring-dot.on .dot { r: 19; }
.ring-lbl { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 17px; fill: var(--ink-2); }
.ring-dot.on .ring-lbl { fill: var(--ink); }
.ring-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-height: 180px; }
.ring-detail h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.ring-detail p { margin: 0 0 8px; }
.rd-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
@media (max-width: 760px) { .ring-wrap { grid-template-columns: 1fr; gap: 8px; } .ring-lbl { font-size: 19px; } .ring-center { font-size: 22px; } .ring-since { font-size: 15px; } .ring-detail { min-height: 0; } }
/* About: how it works (agreement bar, meeting rhythm, working groups, ground rules) and what comes next (road) */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.how-card h3 { margin: 0 0 14px; }
.how-card p { margin: 14px 0 8px; }
.how-sub { margin: 36px 0 4px; }
.agr-track { position: relative; height: 14px; border-radius: 999px; background: var(--sand); margin: 26px 0 8px; }
.agr-fill { height: 100%; border-radius: 999px; background: var(--harbor-2); }
.agr-now { position: absolute; top: -6px; width: 4px; height: 26px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.agr-now span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .8rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.agr-ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-3); }
.agr-year { font-weight: 700; color: var(--ink); }
.mtgs { display: flex; justify-content: space-between; position: relative; margin: 8px 0 0; gap: 4px; }
.mtgs::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: var(--line); }
.mtg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.mdot { width: 28px; height: 28px; border-radius: 50%; background: var(--harbor-2); color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; border: 3px solid var(--card); box-sizing: content-box; }
.mtg.next .mdot { background: var(--card); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.mlab { font-size: .78rem; text-align: center; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.mlab small { color: var(--ink-3); }
.mtg.next .mlab small { color: var(--accent); font-weight: 700; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 12px 0 8px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.g-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--mist, var(--sand)); color: var(--harbor); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.group h4 { margin: 4px 0 0; font-size: 1.1rem; }
.group p { margin: 0; }
.g-q { font-weight: 600; color: var(--ink); }
.g-lead { margin-top: auto; padding-top: 6px; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 980px; gap: 10px; margin: 12px 0 6px; }
.rule { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: .95rem; }
.rule i { font-size: 22px; color: var(--harbor); flex: none; margin-top: 1px; }
.road { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.road::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; background: var(--line); }
.road li { position: relative; padding-top: 26px; }
.r-dot { position: absolute; top: 1px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--harbor-2); box-sizing: border-box; }
.road li.now .r-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(210,86,43,.2); }
.r-when { font-size: .8rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.r-h { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.1rem; margin: 2px 0 4px; }
.open-box { margin-top: 28px; }
.open-box ul { margin: 6px 0 8px; padding-left: 20px; }
@media (max-width: 760px) {
  .road { grid-template-columns: 1fr; gap: 0; }
  .road::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .road li { padding: 0 0 18px 30px; }
  .r-dot { top: 2px; }
  .mlab { font-size: .7rem; }
}
.nf-links a { color: var(--paper); font-weight: 600; margin: 0 2px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 8px; }
.who-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.who-card h3 { margin: 0 0 6px; }
.who-card p { margin: 0 0 8px; }
.cite-draft { color: var(--ink-2); border-bottom: 1px dotted var(--ink-3); }
@media (max-width: 600px) { .hist li { grid-template-columns: 1fr; gap: 4px; } }

/* Links inside the blue page banner: white and underlined so they read on the gradient */
.hero a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.hero a:hover { color: var(--paper); text-decoration-color: var(--accent); }

/* Data & sources: plain source lists and a collapsed technical section */
.srcs { list-style: none; margin: 8px 0 24px; padding: 0; max-width: 820px; }
.srcs li { padding: 10px 0; border-top: 1px solid var(--line); }
.srcs li:last-child { border-bottom: 1px solid var(--line); }
.srcs a, .srcs b { font-weight: 600; }
details.more { margin-top: 28px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-width: 820px; }
details.more summary { cursor: pointer; font-weight: 600; }
details.more[open] summary { margin-bottom: 12px; }

/* A soft glow to pick out the people the Collaborative is for */
.glow { padding: 0 .3em; margin: 0 -.1em; border-radius: 8px; background: rgba(255,200,87,.3); box-shadow: 0 0 14px 3px rgba(255,200,87,.5); font-weight: 600; }


/* Current air quality page */
.now-big { border-radius: var(--radius); padding: 28px 28px 24px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; }
.now-big-pre { font-size: 1.1rem; opacity: .92; }
.now-big-word { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; display: flex; align-items: center; gap: 16px; }
.now-big-word .face { font-size: .8em; }
.now-big-say { font-size: 1.35rem; font-weight: 600; line-height: 1.35; max-width: 760px; }
.now-big-where { font-size: .9rem; opacity: .85; margin-top: 8px; }
#nowmap { height: 440px; border-radius: 8px; }
.now-mk { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font: 800 18px "Archivo", sans-serif; transform: translate(-50%, -50%); position: absolute; left: 0; top: 0; }
.now-mk-lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, 28px); font: 600 12px var(--sans); color: var(--ink); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.now-mons { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: .95rem; }
.now-mon .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.now-key { display: grid; gap: 8px; }
.now-key-row { display: grid; grid-template-columns: 28px 150px 1fr auto; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.now-key-row .swatch { width: 28px; height: 28px; border-radius: 8px; }
.now-key-row .word { font-weight: 700; }
.now-foot p { margin: 6px 0; }
@media (max-width: 760px) {
  .now-big { padding: 22px 18px 18px; }
  .now-big-say { font-size: 1.15rem; }
  #nowmap { height: 340px; }
  .now-key-row { grid-template-columns: 24px 1fr; gap: 6px 12px; }
  .now-key-row .say { grid-column: 2; }
  .now-key-row .range { grid-column: 2; }
}
