:root {
  --font: Inter, system-ui, sans-serif;
  --display: Fraunces, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ink: #041018;
  --paper: #efe6d6;
  --sheet: #f7f1e6;
  --text: #102033;
  --muted: #4a5d6e;
  --border: #d4c8b4;
  --card: #fffdf8;
  --blue: #0274c7;
  --cyan: #2ec8e8;
  --teal: #0f9b8e;
  --gold: #c9a227;
  --r: 8px;
  --r-lg: 14px;
  --howto: #1d4ed8;
  --dist: #0c4a6e;
  --gap: #7a7f87;
  --ref: #57534e;
  --time: #0369a1;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --t20: #92400e;
  --t10: #57534e;
  --t5: #0369a1;
  --t0: #0274c7;
  --tplus: #a16207;
  --c1: #e11d48;
  --c2: #7c3aed;
  --c3: #ea580c;
  --c4: #0d9488;
  --c5: #2563eb;
  --measure: min(1200px, calc(100% - 48px));
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 var(--font); }
body { min-height: 100vh; display: flex; flex-direction: column; }
body.map-mode { height: 100vh; overflow: hidden; background: #041018; }
body.map-mode .nv-foot { display: none; }
body.map-mode .crumb { display: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.86em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.nv-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 18px;
  align-items: center;
  padding: 10px 22px;
  background: #fffdf8;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px;
  background: #fff; border-radius: 50%;
}
.author-logo { display: block; object-fit: contain; background: #fff; border-radius: 50%; }
.author-logo-lg { width: 168px; height: 168px; }
.author-logo-md { width: 112px; height: 112px; }
.author-logo-sm { width: 72px; height: 72px; }
.author-byline, .author-hero, .foot-author {
  display: flex; gap: 16px; align-items: center;
}
.author-hero { margin: 0 0 18px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); }
.author-name { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #0b2540; }
.author-role { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.author-field { margin: 2px 0 8px; font-size: 15px; font-weight: 700; color: #0274c7; }
.author-credit { margin: 0; font-size: 14px; }
.author-legal { max-width: 46rem; }
.author-legal h2 { margin-top: 22px; }
.nv-foot { padding: 16px 22px 22px; border-top: 1px solid var(--border); background: #fffdf8; font-size: 13px; color: var(--muted); }
.foot-author { align-items: flex-start; max-width: var(--measure); margin: 0 auto; }
.foot-logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; background: #fff; border-radius: 50%; }
.foot-copy p { margin: 0 0 4px; }
.mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(145deg, #0274c7, #0f9b8e);
  color: #fff; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--display); font-size: 15px; font-weight: 600; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-toggle { display: none; border: 1px solid var(--border); background: var(--card); border-radius: var(--r); padding: 8px 12px; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.nav-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.nav-more { position: relative; }
.nav-more summary {
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 650;
  padding: 7px 10px; border-radius: 999px; color: var(--muted);
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more[open] summary, .nav-more.on summary { background: #efe6d6; color: var(--text); }
.nav-more-list {
  position: absolute; right: 0; top: calc(100% + 4px);
  min-width: 200px; padding: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  display: flex; flex-direction: column; z-index: 70;
}
.nav-more-list a { display: block; border-radius: 8px; }
.nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; padding-right: 10px; border-right: 1px solid var(--border); }
.nav-group:last-child { border-right: 0; padding-right: 0; }
.nav-lab {
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8a8070; margin-right: 4px; white-space: nowrap;
}
.mainnav a {
  color: var(--text); font-size: 13px; font-weight: 650; padding: 7px 10px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
.mainnav a:hover { background: #efe6d6; text-decoration: none; }
.mainnav a.on { background: var(--ink); color: #fffdf8; }
.mainnav a[data-nav="maps"] { background: #e8f8fc; color: #0c4a6e; }
.mainnav a[data-nav="maps"].on { background: var(--cyan); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search {
  min-width: 240px; border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 14px; background: #fff;
}
.crumb { padding: 8px 22px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--sheet); }
.crumb-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb .here { color: var(--text); font-weight: 650; }
.page-canvas { flex: 1; width: var(--measure); max-width: 100%; min-width: 0; margin: 0 auto; padding: 28px 0 72px; overflow-x: hidden; }
.read-back {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
}
.read-back-btn {
  font: inherit; font-size: 14px; font-weight: 650;
  border: 1px solid var(--border); background: var(--sheet);
  color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.read-back-btn:hover { border-color: var(--ink); }
.read-back-up { font-size: 13px; font-weight: 650; color: var(--muted); }
.read-back-up:hover { color: var(--ink); }
body.map-mode .read-back { margin-bottom: 12px; }
body.map-mode .read-back-btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
body.map-mode .read-back-up { color: #9ec9d8; }
body.page-home .crumb { display: none; }
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: #6b4e0e; margin: 0 0 10px;
}
.page-howto .eyebrow { color: var(--howto); }
.page-districts .eyebrow, .page-district .eyebrow { color: var(--dist); }
h1 { font-family: var(--display); font-size: 44px; line-height: 1.08; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-size: 30px; line-height: 1.15; font-weight: 600; margin: 36px 0 12px; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; margin: 20px 0 8px; }
h4 { font-size: 16px; line-height: 1.35; font-weight: 700; margin: 16px 0 8px; }
.lead, .orient { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 40em; }
.onpage {
  display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; margin: 20px 0 28px;
  padding: 4px 0; border-bottom: 1px solid var(--border);
}
.onpage a {
  flex: 0 0 auto; font-size: 13px; font-weight: 650; color: var(--muted);
  padding: 8px 10px; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.onpage a:hover, .onpage a.on { color: var(--text); border-bottom-color: var(--gold); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.btn {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  background: var(--card); color: var(--text); border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-weight: 650; text-decoration: none;
}
.btn:hover { background: #efe6d6; text-decoration: none; }
.btn.primary { background: var(--ink); color: #fffdf8; border-color: var(--ink); }
.btn.primary:hover { background: #0b2433; }
.btn.ghost { background: transparent; }
.btn[disabled], .btn.off { color: #9aa0a6; pointer-events: none; }
.sec { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 8px; }
.na-note, .mute { color: var(--muted); font-size: 14px; line-height: 1.45; }
.limit { color: var(--gap); }
.caption { font-size: 12px; line-height: 1.4; color: var(--muted); }
.scope-trail { margin: 0 0 10px; }
.scope-trail a { color: var(--cyan, #0e7490); text-decoration: none; font-weight: 600; }
.scope-trail a:hover { text-decoration: underline; }
.scope-trail .here { color: var(--text); font-weight: 700; }
.ev-chain { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 18px; margin: 14px 0; }
.ev-chain p { margin: 6px 0; }
.ev-chain .kicker { display: inline-block; min-width: 7.5em; }
.grade-A { color: var(--ok); border-color: #b7d7c2; }
.grade-B { color: var(--time); }
.grade-C { color: var(--warn); }
.grade-D { color: var(--gap); }
.map-mode .hud .chip { font-size: 12px; padding: 3px 8px; }
.card, .see-block, .ev-block, .named-gap, .trace {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; margin: 12px 0;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.04);
}
.see-block p, .ev-block p { margin: 8px 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry-list a.card { display: block; color: inherit; text-decoration: none; }
.entry-list a.card:hover { outline: 2px solid var(--cyan); }
.limit-card {
  border-left: 4px solid var(--gold);
  max-width: min(46em, 100%);
  overflow: visible;
}
.limit-card p {
  margin: 0 0 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.limit-card p:last-child { margin-bottom: 0; }
body.page-howto h1 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 10px; }
body.page-howto h2 { font-size: 22px; margin: 20px 0 8px; }
body.page-howto h3 { font-size: 16px; margin: 8px 0 6px; }
body.page-howto .orient { font-size: 16px; line-height: 1.42; }
body.page-howto .page-canvas { padding: 18px 0 56px; }
body.page-howto .actions { margin: 12px 0; }
body.page-howto .card { padding: 12px 14px; margin: 8px 0; }
body.page-howto .onpage { flex-wrap: wrap; overflow: visible; margin: 10px 0 14px; }
body.page-howto .howto-sheet { max-width: 100%; min-width: 0; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip {
  display: inline-block; border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; font-weight: 650; margin: 0 6px 6px 0; background: var(--card); color: var(--text);
  text-decoration: none;
}
.chip:hover { text-decoration: none; outline: 2px solid var(--cyan); }
.badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.badge-live { color: var(--ok); border-color: #b7d7c2; }
.badge-partial { color: var(--warn); }
.badge-na, .badge-geo { color: var(--gap); }
.badge-slot { color: var(--time); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-weight: 650; background: var(--sheet); }
.stale { color: var(--t20); }
.time-row { display: flex; flex-wrap: wrap; gap: 8px; }
.time-row button {
  flex: 1; min-width: 120px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px; text-align: left;
}
.time-row button.on { outline: 2px solid var(--t0); background: #e8f2fb; }
.time-row button.scen.on { outline-color: var(--tplus); }
.time-row button.off { color: #9aa0a6; }
.time-row span { font-family: var(--mono); font-size: 12px; }
.mix-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #e5e7eb; }
.mix-c { background: #3a8f4e; }
.mix-w { background: #075985; }
.mix-t { background: #2a9d8f; }
.mix-key { list-style: none; padding: 0; display: flex; gap: 16px; font-size: 14px; }
.mix-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.follow, .steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step-pill, .follow button {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 8px 12px; font-size: 14px; font-weight: 600;
}
.step-pill.on, .follow button.on { outline: 2px solid var(--cyan); }
.footnav { display: flex; justify-content: space-between; margin-top: 32px; }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.domain-card { border-left: 4px solid var(--blue); }
.search-panel {
  position: absolute; right: 24px; top: 64px; width: min(420px, calc(100% - 32px));
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  max-height: 60vh; overflow: auto; z-index: 50; padding: 8px;
}
.search-panel a { display: block; padding: 8px; border-radius: var(--r); color: inherit; }
.search-panel a:hover { background: #efe6d6; text-decoration: none; }

.hero {
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(46, 200, 232, 0.35), transparent 55%),
    radial-gradient(900px 400px at 10% 110%, rgba(201, 162, 39, 0.22), transparent 50%),
    linear-gradient(165deg, #031018 0%, #0a2740 52%, #08363c 100%);
  color: #f7f1e6;
  padding: 56px max(24px, calc(50% - 600px)) 48px;
  margin: 0 0 8px;
}
.hero .eyebrow { color: var(--cyan); }
.hero h1 { color: #fffdf8; font-size: clamp(36px, 5vw, 58px); max-width: 14em; }
.hero .orient { color: #c5d8e4; font-size: 19px; }
.hero .btn.primary { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.hero .btn { border-color: rgba(255,255,255,.22); background: transparent; color: #fffdf8; }
.hero .btn:hover { background: rgba(255,255,255,.08); }
.hero-connected {
  display: block;
  background: #f4efe6;
  color: var(--ink);
  padding: 20px max(20px, calc(50% - 640px)) 18px;
}
.hero-figure {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(4,16,24,.12);
  border: 1px solid var(--border);
}
.hero-art { position: relative; }
.hero-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  border-radius: 14px;
}
.hero-hotspot:hover, .hero-hotspot:focus {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
  background: rgba(14, 165, 233, 0.16);
  color: transparent;
}
.hero-hot-tour { left: 2.6%; top: 46.8%; width: 22.4%; height: 8.8%; border-radius: 999px; }
.hero-hot-direct { left: 2.6%; top: 56.6%; width: 19.4%; height: 5.6%; border-radius: 999px; }
.hero-hot-map { left: 58.2%; top: 67.4%; width: 8.8%; height: 14.2%; }
.hero-hot-entity { left: 67.4%; top: 67.4%; width: 8.8%; height: 14.2%; }
.hero-hot-evidence { left: 76.6%; top: 67.4%; width: 8.8%; height: 14.2%; }
.hero-hot-source { left: 85.8%; top: 67.4%; width: 9.2%; height: 14.2%; }
.hero-hot-t1 { left: 1.6%; top: 87.4%; width: 11.4%; height: 11.2%; }
.hero-hot-t2 { left: 13.4%; top: 87.4%; width: 11.4%; height: 11.2%; }
.hero-hot-t3 { left: 25.2%; top: 87.4%; width: 11.4%; height: 11.2%; }
.hero-hot-t4 { left: 37.0%; top: 87.4%; width: 11.4%; height: 11.2%; }
.hero-hot-t5 { left: 48.8%; top: 87.4%; width: 11.4%; height: 11.2%; }
.hero-hot-t6 { left: 60.6%; top: 87.4%; width: 11.4%; height: 11.2%; }
.hero-hot-t7 { left: 72.4%; top: 87.4%; width: 11.4%; height: 11.2%; }
.hero-hot-t8 { left: 84.2%; top: 87.4%; width: 14.0%; height: 11.2%; }
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  border: 0;
  border-radius: 0;
}
.hero-cta-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.hero-purpose { max-width: 46em; margin: 0 0 8px; color: var(--ink); font-size: 16px; line-height: 1.42; }
.hero-connected .btn.primary { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.hero-connected .btn { border-color: var(--border); background: #fff; color: var(--ink); }
.hero-connected .btn:hover { background: #efe6d6; }
.hero-connected .hero-stats b { color: var(--ink); }
.hero-connected .hero-stats span { color: var(--muted); }
.hero-connected .hero-stats div { border-top-color: var(--gold); }
.hero-connected h1,
.hero-connected h2,
.hero-connected .hero-copy { color: var(--ink); }
.hero-connected .eyebrow { color: #0e4a62; }
.hero-connected .orient,
.hero-connected .lead,
.hero-connected .hero-purpose { color: var(--text); }
.hero-connected .caption,
.hero-connected .kicker { color: var(--muted); }
.hero-connected .chain-strip li {
  background: #dbeaf0;
  color: #0b3a4a;
}
.chain-strip {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
  margin: 10px 0 4px; padding: 0;
}
.chain-strip li {
  font-size: 11px; font-weight: 650; letter-spacing: 0.02em;
  background: rgba(255,255,255,.1); color: #d7eaf3;
  padding: 5px 10px; border-radius: 999px;
}
body.page-home .hero { padding: 28px max(24px, calc(50% - 600px)) 22px; margin-bottom: 0; }
body.page-home .hero h1 { font-size: clamp(26px, 3.8vw, 38px); max-width: 16em; margin-bottom: 8px; }
body.page-home .hero .orient { font-size: 15px; line-height: 1.4; }
body.page-home .hero-stats { margin-top: 14px; gap: 8px; }
body.page-home .hero-stats b { font-size: 22px; }
body.page-home h2 { font-size: 22px; margin: 18px 0 8px; }
body.page-home h3 { font-size: 16px; margin: 8px 0 6px; }
body.page-home .lead, body.page-home .orient { font-size: 15px; line-height: 1.42; }
body.page-home .story-sheet { padding-top: 8px; }
body.page-home .story-sheet p { font-size: 14.5px; line-height: 1.45; }
body.page-home .story-block { padding: 12px 14px; margin: 8px 0 12px; }
body.page-home .cluster-tile { min-height: 132px; padding: 12px; }
body.page-home .onpage { margin: 8px 0 12px; }
body.page-home .onpage a { font-size: 12px; padding: 6px 8px; }
body.page-home .actions { margin: 12px 0; }
.tour-panel {
  margin: 0 0 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.tour-panel img, .tour-shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
body.tour-capture .nv-top,
body.tour-capture .crumb,
body.tour-capture .nv-foot,
body.tour-capture .map-chrome,
body.tour-capture .float-rail,
body.tour-capture .search-panel {
  display: none !important;
}
body.tour-capture .map-stage {
  height: 100vh;
}
.tour-panel figcaption { padding: 12px 16px 16px; font-size: 15px; line-height: 1.45; }
.tour-dots { display: flex; gap: 8px; margin: 8px 0 16px; }
.tour-dot {
  width: 32px; height: 32px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 750;
  border: 1px solid var(--border); color: inherit; text-decoration: none; background: var(--card);
}
.tour-dot.on { background: var(--ink); color: #fffdf8; border-color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 36px; max-width: 720px;
}
.hero-stats div {
  border-top: 2px solid var(--gold); padding-top: 10px;
}
.hero-stats b { display: block; font-family: var(--display); font-size: 32px; color: #fff; }
.hero-stats span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #9ec9d8; }
.sheet { width: var(--measure); margin: 0 auto; padding: 28px 0 0; }
.cluster-stage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 8px 0 28px; }
.cluster-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px; padding: 18px; border-radius: 16px; color: #fff; text-decoration: none;
  box-shadow: 0 16px 40px rgba(4,16,24,.18);
}
.cluster-tile:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.05); }
.cluster-tile h3 { color: #fff; margin: 8px 0; font-family: var(--display); font-weight: 600; }
.cluster-tile p { margin: 0; font-size: 13px; line-height: 1.4; opacity: 0.92; }
.cluster-tile .kicker { color: rgba(255,255,255,.8); }
.ct-C1 { background: linear-gradient(160deg, #9f1239, #e11d48); }
.ct-C2 { background: linear-gradient(160deg, #5b21b6, #7c3aed); }
.ct-C3 { background: linear-gradient(160deg, #9a3412, #ea580c); }
.ct-C4 { background: linear-gradient(160deg, #115e59, #14b8a6); }
.ct-C5 { background: linear-gradient(160deg, #1e3a8a, #3b82f6); }
.ct-C6 { background: linear-gradient(160deg, #7c2d12, #c9a08a); }
.ct-C7 { background: linear-gradient(160deg, #3f6212, #9bb0a4); }
.ct-C8 { background: linear-gradient(160deg, #713f12, #b5b59a); }
.ct-C9 { background: linear-gradient(160deg, #4c1d95, #a8a0c4); }
.cluster-stage-nine { grid-template-columns: repeat(3, 1fr); }
.figrow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.wb-stage {
  margin: 18px 0 28px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(14, 116, 144, 0.28);
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.92), rgba(255, 255, 255, 0.96)),
    radial-gradient(120% 80% at 0% 0%, rgba(14, 165, 233, 0.18), transparent 55%);
  box-shadow: 0 18px 40px rgba(4, 16, 24, 0.08);
}
.wb-stage .kicker {
  color: #0e7490;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.wb-stage h2 {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  color: #0c4a6e;
}
.wb-stage .orient { font-size: 16px; max-width: 58rem; }
.wb-figrow .wb-tile {
  border-top: 4px solid #0891b2;
  background: rgba(255, 255, 255, 0.88);
  min-height: 128px;
}
.wb-figrow .wb-tile b {
  font-size: clamp(26px, 2.6vw, 34px);
  color: #0c4a6e;
  font-variant-numeric: tabular-nums;
}
.wb-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.wb-stage-inline {
  padding: 16px 18px;
  margin: 8px 0 16px;
}
.wb-stage-inline h2 { font-size: 26px; }
tr.wb-row td {
  background: rgba(224, 242, 254, 0.55);
}
.wb-compact {
  margin: 12px 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(14, 116, 144, 0.22);
  background: rgba(224, 242, 254, 0.35);
}
.wb-compact .kicker { color: #0e7490; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.concl-jump { margin: 8px 0 20px; flex-wrap: wrap; }
.concl-cluster {
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.node-host-gw {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}
.node-wb-dist { margin: 0.85rem 0 1.1rem; }
.node-wb-dist .account-strip { margin-top: 0.45rem; }
.concl-head { padding: 14px 16px; border-radius: 14px; color: #fff; margin-bottom: 12px; }
.concl-head h2 { margin: 4px 0; color: #fff; font-family: var(--display); }
.concl-head .kicker { color: rgba(255,255,255,.82); }
.concl-head .third { margin: 0; opacity: 0.92; }
.ct-bar-C1 { background: linear-gradient(160deg, #9f1239, #e11d48); }
.ct-bar-C2 { background: linear-gradient(160deg, #5b21b6, #7c3aed); }
.ct-bar-C3 { background: linear-gradient(160deg, #9a3412, #ea580c); }
.ct-bar-C4 { background: linear-gradient(160deg, #115e59, #14b8a6); }
.ct-bar-C5 { background: linear-gradient(160deg, #1e3a8a, #3b82f6); }
.ct-bar-C6 { background: linear-gradient(160deg, #7c2d12, #c9a08a); }
.ct-bar-C7 { background: linear-gradient(160deg, #3f6212, #9bb0a4); }
.ct-bar-C8 { background: linear-gradient(160deg, #713f12, #b5b59a); }
.ct-bar-C9 { background: linear-gradient(160deg, #4c1d95, #a8a0c4); }
.concl-wb { margin: 10px 0; }
.stress-line { color: #7f1d1d; }
.stage-table tr.stage-oe td { background: rgba(254, 202, 202, 0.65); }
.stage-table tr.stage-high td { background: rgba(254, 215, 170, 0.55); }
.stage-table tr.stage-semi td { background: rgba(254, 249, 195, 0.45); }
.account-strip .stage-oe b, .account-strip .stage-high b { color: #9f1239; }
.node-stack { display: grid; gap: 12px; margin: 10px 0 8px; }
.node-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
}
.node-card h4 { margin: 4px 0 8px; font-family: var(--display); }
.concl-unjoined { margin: 18px 0 28px; }
@media (max-width: 980px) {
  .figrow, .wb-figrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cluster-stage-nine { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .figrow, .wb-figrow, .cluster-stage-nine { grid-template-columns: 1fr; }
}

.map-stage {
  flex: 1;
  min-height: 0;
  height: calc(100vh - 72px);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #041018;
}
.map-canvas {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  position: relative;
  height: auto;
}
#atlas-map { height: 100%; min-height: 0; }
#atlas-map.leaflet-container { width: 100%; height: 100%; min-height: 0; background: #041018; }
#up-district-map { height: 68vh; min-height: 420px; width: 100%; background: #f3efe6; border-radius: 12px; }
.up-map-note { margin-top: 12px; }
.up-theme { margin: 0 0 12px 8px; font: inherit; padding: 6px 8px; }
.up-themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.up-themes button {
  position: relative;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px 6px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.up-themes button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--chip, #7a8a78);
  box-shadow: 0 0 0 1px rgba(4, 16, 24, 0.25);
}
.up-themes button.on {
  background: var(--chip, #3f4a3c);
  color: #fff;
  border-color: var(--chip, #3f4a3c);
}
.up-themes button.on::before { background: #fff; }
.up-themes button[data-theme="territory"] { --chip: #8aa37a; }
.up-themes button[data-theme="GW-008"] { --chip: #0f766e; }
.up-themes button[data-theme="GW-009"] { --chip: #b45309; }
.up-themes button[data-theme="GW-2025-SOE"] { --chip: #9a3412; }
.up-themes button[data-theme="CL-001"] { --chip: #1d4ed8; }
.up-themes button[data-theme="side:nis-2022-23"] { --chip: #3f6212; }
.up-themes button[data-theme="side:gwra-2024-stage"] { --chip: #7c2d12; }
.up-themes button[data-theme="GW-2025-SOE"]::before,
.up-themes button[data-theme="side:gwra-2024-stage"]::before { border-radius: 1px; transform: rotate(45deg); }
.up-themes button[data-theme="CL-001"]::before { border-radius: 2px; }
.up-rivers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
}
.up-rivers::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #24586c;
}
.leaflet-container { font: inherit; }
.leaflet-control-attribution {
  background: rgba(4,16,24,.55) !important; color: #c5d8e4 !important; border: 0;
}
.leaflet-control-attribution a { color: var(--cyan) !important; }
.leaflet-tile-pane { filter: brightness(0.58) saturate(0.42) contrast(1.04); }
.atlas-lab span {
  color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(4,16,24,.9), 0 1px 0 #041018;
  white-space: nowrap;
}
.lab-river span { color: #bff7ff; font-size: 12px; }
.lab-canal span { color: #fde68a; font-size: 12px; }
.lab-must span { font-size: 13px; color: #fff; }
.lab-pollute span { color: #fecaca; font-size: 13px; background: #991b1b; padding: 1px 6px; border-radius: 6px; text-shadow: none; }
.lab-dist span { color: #ffe9a8; }
.float-rail {
  position: relative;
  top: auto; right: auto; bottom: auto;
  flex: 0 0 252px;
  width: 252px;
  height: auto;
  z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: auto;
  padding: 10px 10px 10px 8px;
  background: #071820;
  border-left: 1px solid rgba(255,255,255,.08);
  overflow: auto;
}
.float-card {
  position: relative; top: auto; right: auto; width: auto;
  max-height: none; overflow: auto;
  background: rgba(4,16,24,.82); color: #f7f1e6;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px;
  backdrop-filter: blur(14px); border-top: 3px solid var(--cyan);
  pointer-events: auto;
}
#hud { flex: 0 1 auto; max-height: 42%; }
#map-key { flex: 1 1 auto; min-height: 132px; border-top-color: var(--chip, #94a3b8); }
.key-row { display: flex; gap: 8px; align-items: flex-start; margin: 7px 0; }
.key-row strong, .key-row small { display: block; }
.key-row small { color: #9ec9d8; font-size: 11px; font-weight: 400; margin-top: 1px; }
.key-sw { width: 14px; height: 10px; margin-top: 4px; border-radius: 2px; flex: 0 0 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.key-sw.line { height: 3px; margin-top: 8px; border-radius: 2px; }
.key-sw.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; margin-top: 4px; }
.key-sw.square { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 10px; }
.key-sw.diamond { width: 10px; height: 10px; flex: 0 0 10px; transform: rotate(45deg); margin: 6px 2px 0; }
.key-sw.triangle {
  width: 0; height: 0; background: transparent !important;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 11px solid #ea580c;
  box-shadow: none; flex: 0 0 12px;
}
.key-sw.patch { height: 12px; border-radius: 3px; }
.float-card p { margin: 6px 0; font-size: 13px; line-height: 1.35; }
.float-card a { color: var(--cyan); }
.float-card h1 { color: #fffdf8; font-size: 22px; margin: 2px 0 6px; }
.map-hud-more { margin: 8px 0 0; }
.map-hud-more summary { cursor: pointer; font-size: 12px; font-weight: 650; color: #9ec9d8; }
.float-card .eyebrow { color: var(--cyan); }
.float-card .caption, .float-card .na-note { color: #9ec9d8; }
.hud-k { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #7dd3fc; margin: 10px 0 2px; font-weight: 700; }
#hud .map-id { color: #fffdf8; font-weight: 650; }
.map-toolbar { position: relative; bottom: auto; left: auto; z-index: auto; display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.map-chrome {
  position: relative;
  top: auto; left: auto; right: auto;
  z-index: 2;
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  pointer-events: auto;
  padding: 10px 8px;
  background: #071820;
  border-right: 1px solid rgba(255,255,255,.08);
  overflow: auto;
}
.map-chrome .map-back { flex: 0 0 auto; }
.map-chrome .map-themes { flex: 0 0 auto; }
.map-chrome .map-places { flex: 0 0 auto; }
.map-chrome .map-toolbar { flex: 0 0 auto; }
.map-back {
  align-self: flex-start;
  width: 40px; height: 40px; padding: 0;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(4,16,24,.88); color: #fff;
  font-size: 20px; line-height: 1; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.map-back:hover { border-color: var(--cyan); color: var(--cyan); }
.map-themes, .map-places { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.map-chrome .map-themes {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  overflow: visible;
  padding-bottom: 0;
}
.theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-width: 100%;
}
.map-chrome .map-places {
  max-width: 100%;
  flex-wrap: wrap;
}
.map-themes a {
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
  background: rgba(4,16,24,.78); color: #f7f1e6; text-decoration: none; font-size: 11px; font-weight: 700;
  padding: 4px 8px 4px 20px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip, #7ef0ff) 45%, rgba(255,255,255,.12));
  backdrop-filter: blur(10px);
}
.map-themes a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--chip, #7ef0ff);
  box-shadow: 0 0 0 1px rgba(4,16,24,.4);
}
.map-themes a:hover { text-decoration: none; border-color: var(--chip, var(--cyan)); }
.map-themes a.on {
  background: var(--chip, var(--cyan));
  color: #041018;
  border-color: var(--chip, var(--cyan));
}
.map-themes a[href$="/rivers"] { --chip: #7ef0ff; }
.map-themes a[href*="catchments"] { --chip: #64748b; }
.map-themes a[href$="/surface"] { --chip: #155e75; }
.map-themes a[href*="lakes"] { --chip: #0284c7; }
.map-themes a[href$="/tanks"] { --chip: #4d7c0f; }
.map-themes a[href*="wetlands"] { --chip: #f472b6; }
.map-themes a[href*="storage"] { --chip: #1e3a8a; }
.map-themes a[href*="waterspread"] { --chip: #fdba74; }
.map-themes a[href*="cwcres"] { --chip: #1e3a8a; }
.map-themes a[href$="/dams"] { --chip: #111827; }
.map-themes a[href*="aquifers"] { --chip: #115e59; }
.map-themes a[href$="/wells"] { --chip: #ea580c; }
.map-themes a[href$="/gw"] { --chip: #f59e0b; }
.map-themes a[href$="/canals"] { --chip: #eab308; }
.map-themes a[href*="canalline"] { --chip: #eab308; }
.map-themes a[href*="commands"] { --chip: #7c3aed; }
.map-themes a[href$="/rain"] { --chip: #3b82f6; }
.map-themes a[href*="telemetry"] { --chip: #ea580c; }
.map-themes a[href$="/gwlevel"] { --chip: #f59e0b; }
.map-themes a[href*="rainmanual"] { --chip: #c026d3; }
.map-themes a[href$="/levels"] { --chip: #fef08a; }
.map-themes a[href*="clusters"] { --chip: #7c3aed; }
.map-themes a[href$="/recharge"] { --chip: #115e59; }
.map-themes a[href$="/extraction"] { --chip: #ea580c; }
.map-themes a[href$="/irrigated"] { --chip: #4d7c0f; }
.map-themes a[href$="/stage24"] { --chip: #fef08a; }
.map-themes a[href$="/extraction"]::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.map-themes a[href$="/stage24"]::before { border-radius: 1px; transform: rotate(45deg); }
.map-themes a[href$="/extraction"].on,
.map-themes a[href$="/recharge"].on { color: #f7f1e6; }
.map-places button.chip { font: inherit; cursor: pointer; }
.map-places .node-lab { flex-basis: 100%; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #9ec9d8; margin-top: 6px; }
.float-panel .layer-line { display: flex; gap: 8px; align-items: center; color: #f7f1e6; font-size: 13px; font-weight: 650; }
.float-panel .layer-line::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: #7ef0ff; }
.float-card table { width: 100%; font-size: 11px; border-collapse: collapse; }
.float-card th, .float-card td { border-bottom: 1px solid rgba(255,255,255,.12); padding: 3px 4px; text-align: left; vertical-align: top; }
.float-card details { margin-top: 10px; }
.float-card summary { cursor: pointer; font-weight: 650; color: #9ec9d8; }
.map-themes a[href$="/surface"].on,
.map-themes a[href*="lakes"].on,
.map-themes a[href$="/tanks"].on,
.map-themes a[href*="storage"].on,
.map-themes a[href*="cwcres"].on,
.map-themes a[href$="/dams"].on,
.map-themes a[href*="aquifers"].on,
.map-themes a[href$="/wells"].on,
.map-themes a[href*="commands"].on,
.map-themes a[href*="telemetry"].on,
.map-themes a[href*="rainmanual"].on,
.map-themes a[href*="catchments"].on { color: #f7f1e6; }
.map-themes a[href*="rainmanual"]::before { border-radius: 2px; }
.stn-icon { background: transparent !important; border: none !important; }
.leaflet-tooltip.map-stn-label {
  background: rgba(4, 16, 24, 0.88);
  color: #ffedd5;
  border: 1px solid #ea580c;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 650;
  box-shadow: none;
}
.leaflet-tooltip.map-stn-label::before { border-right-color: #ea580c; }
.map-themes a[href$="/levels"]::before,
.map-themes a[href$="/stage24"]::before { width: 9px; height: 9px; margin-top: -5px; border-radius: 1px; transform: rotate(45deg); }
.map-themes a[href$="/rivers"]::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px #7ef0ff;
}
.map-themes a[href$="/rivers"].on::before { box-shadow: inset 0 0 0 2px #041018; }
.map-themes a[href$="/gw"]::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px #f59e0b;
}
.map-themes a[href$="/gw"].on::before { box-shadow: inset 0 0 0 2px #041018; }
.map-themes a[href$="/dams"]::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; background: #111827; box-shadow: 0 0 0 1px #fef08a; }
.map-themes a[href$="/wells"]::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.map-themes a[href*="wetlands"]::before { box-shadow: 0 0 0 2px #9d174d; }
.map-places .chip { background: rgba(4,16,24,.78); color: #f7f1e6; border-color: rgba(255,255,255,.12); box-shadow: none; }
.map-places .chip.on { background: #fff; color: var(--ink); }
.map-dd { font-size: 12px; font-weight: 650; color: #f7f1e6; background: rgba(4,16,24,.78); padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); width: 100%; }
.map-dd select { font: inherit; border: 0; background: transparent; max-width: 100%; width: 100%; color: #f7f1e6; }
.map-lens { display: none; }
.map-toolbar button, .map-toolbar a.map-time-link, .float-panel {
  background: rgba(4,16,24,.78); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 12px; color: #f7f1e6;
}
.map-toolbar a.map-time-link { font-size: 13px; font-weight: 650; text-decoration: none; color: #f7f1e6; }
.float-panel {
  position: absolute; top: auto; bottom: 72px; left: 12px; z-index: 1190;
  max-width: 280px; max-height: min(46vh, 420px); overflow: auto;
}
.map-legend { display: none !important; }
.map-legend .leg-note { color: #9ec9d8; font-size: 12px; line-height: 1.35; margin: 8px 0 0; }
.leg-row { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.leg-row strong, .leg-row small { display: block; }
.leg-row small { color: #9ec9d8; font-size: 11px; font-weight: 400; margin-top: 1px; }
.leg-sw { width: 14px; height: 8px; margin-top: 5px; border-radius: 2px; background: #7ef0ff; flex: 0 0 14px; }
.leg-sw.leg-pollute { background: #dc2626; }
.leg-rivpoly { background: #155e75; }
.lab-rivpoly span { color: #5eead4; font-size: 11px; }
.leg-rainstn { background: #ea580c; border-radius: 8px; }
.leg-rainman { background: #c026d3; }
.leg-rwlstn { background: #fef08a; transform: rotate(45deg); }
.lab-cmd span { color: #ddd6fe; font-size: 11px; }
.lab-rainstn span { color: #fdba74; font-size: 11px; }
.lab-rainman span { color: #f0abfc; font-size: 11px; }
.lab-rwlstn span { color: #fef08a; font-size: 11px; }
body.map-mode .nv-top {
  background: rgba(4,16,24,.78); border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px); color: #f7f1e6;
}
body.map-mode .brand, body.map-mode .brand-sub, body.map-mode .mainnav a { color: #e8f4ff; }
body.map-mode .mainnav a.on { background: var(--cyan); color: var(--ink); }
body.map-mode .nav-group { border-color: rgba(255,255,255,.12); }
body.map-mode .nav-more summary { color: #9ec9d8; }
body.map-mode .nav-more[open] summary, body.map-mode .nav-more.on summary { background: rgba(255,255,255,.12); color: #fff; }
body.map-mode .nav-more-list { background: rgba(4,16,24,.95); border-color: rgba(255,255,255,.12); }
body.map-mode .search { background: rgba(255,255,255,.1); color: #fff; border-color: transparent; }
body.map-mode .search::placeholder { color: #9ec9d8; }
body.map-mode .page-canvas { display: none; }
body.map-mode #layout-map { display: flex !important; visibility: visible; flex: 1 1 auto; min-height: 0; }
body:not(.map-mode) #layout-map { display: none !important; }

.atlas-fold { margin: 16px 0; }
.atlas-fold summary { cursor: pointer; font-weight: 650; }
.net-list { padding-left: 18px; }
.syn-banner { border: 2px dashed #f43f5e; background: #fff1f2; color: #9f1239; border-radius: var(--r-lg); padding: 14px 16px; margin: 10px 0 16px; }
.syn-banner strong { letter-spacing: 0.08em; font-size: 12px; }
.syn-demo .syn-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.syn-demo .syn-bar i { display: block; width: 100%; background: #f43f5e; border-radius: 3px 3px 0 0; }
.syn-demo .syn-bar b { font-size: 10px; margin-top: 4px; }
.map-chain { font-weight: 650; letter-spacing: 0.02em; }
.period-bands .band-gap { border-style: dashed; }
.obs-badge { display: inline-block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 550; padding: 3px 8px; margin: 0 8px 8px 0; border: 1px solid var(--border); border-radius: 6px; background: var(--sheet); }
.year-gap-row { display: flex; gap: 4px; align-items: flex-end; height: 76px; margin: 8px 0; }
.year-gap-row .year-cell { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.year-gap-row .year-cell i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--cyan); min-height: 6px; }
.year-gap-row .year-cell.off i { background: transparent; border: 1px dashed var(--border); }
.year-gap-row .year-cell.gap2020 i { background: transparent; border: 2px dashed var(--gap); }
.year-gap-row .year-cell b { font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 650; }
@media (max-width: 800px) {
  .period-bands { grid-template-columns: 1fr; }
}
.figtile { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.figtile b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--ink); }
.figtile span { display: block; color: var(--text); font-size: 14px; font-weight: 650; margin-top: 6px; }
.figtile small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.4; }
.figtile.empty b { color: var(--muted); font-size: 22px; }
.ctx-well, .gap-well {
  padding: 16px 18px; border-radius: 12px; margin: 12px 0;
}
.ctx-well { background: #f3eee3; border-left: 4px solid var(--gold); }
.gap-well { background: #f7f1e6; border: 1px dashed var(--border); }
.ctx-well h3, .gap-well h3 { margin: 4px 0 8px; font-size: 18px; }

.urban-issue {
  background: #fffdf8;
  border: 1px solid var(--border);
  border-left: 6px solid var(--warn);
  border-radius: 12px;
  padding: 18px 20px 8px;
  margin: 16px 0 22px;
}
.urban-issue h2 { margin: 4px 0 10px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.urban-issue > p { font-size: 17px; line-height: 1.5; max-width: 42em; }
.urban-issue .caption { max-width: 42em; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 28px; }
.dir-card {
  display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--border);
  border-top: 4px solid var(--blue); border-radius: 14px; padding: 14px 16px; color: inherit; text-decoration: none;
  min-height: 118px;
}
.dir-card:hover { text-decoration: none; outline: 2px solid var(--cyan); }
.dir-card em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.35; }
.instrument-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.instrument, a.domain-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; color: inherit; text-decoration: none;
}
.instrument:hover, a.domain-card:hover { outline: 2px solid var(--cyan); text-decoration: none; }
.instrument .go { color: var(--blue); font-size: 13px; font-weight: 650; }
.slot-list { display: grid; gap: 6px; }
.slot-row { display: block; padding: 8px 10px; background: var(--card); border-radius: 8px; color: inherit; }
.account-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}
.account-strip > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.account-strip b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.account-strip span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.disconnect p { margin: 8px 0 16px; }
.scen-note { color: var(--tplus); font-weight: 650; }
.wayfind {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 8px 0 28px;
}
.wayfind a {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-top: 4px solid var(--cyan); border-radius: var(--r-lg);
  padding: 16px 16px; color: inherit; text-decoration: none;
}
.wayfind a:hover { outline: 2px solid var(--cyan); text-decoration: none; }
.wayfind b { display: block; font-size: 15px; }
.wayfind span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.btn.book-pdf { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn.book-pdf:hover { filter: brightness(0.96); }
.synth-card { border-top: 4px solid var(--gold) !important; }
.hero .btn.book-pdf { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.book-map { font-size: 14px; }
.book-map td:first-child { white-space: nowrap; font-weight: 650; }

.story-sheet h2 { scroll-margin-top: 72px; }
.story-block {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; margin: 16px 0 22px;
}
.cycle-eq {
  display: block; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #0c4a6e; font-weight: 800; margin: 0 0 18px;
}
.cycle-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0;
}
.cycle-col {
  border-radius: var(--r-lg); padding: 18px 20px; border: 1px solid var(--border);
}
.cycle-col.natural { background: #e8f4fc; border-color: #9ec9d8; }
.cycle-col.human { background: #ecf7f2; border-color: #8dcfb8; }
.cycle-col h2 { margin-top: 0; font-size: 22px; }
.cycle-chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px;
  margin: 18px 0 28px;
}
.cycle-step {
  background: var(--ink); color: #fffdf8; border-radius: 999px;
  padding: 8px 12px; font-size: 12px; font-weight: 750; letter-spacing: 0.04em;
}
.cycle-arrow { color: var(--muted); font-weight: 700; }
.page-cycle .eyebrow { color: #0f766e; }
.cycle-figure {
  margin: 12px 0 18px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 36px rgba(4,16,24,.1);
}
.cycle-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  border: 0;
}
.pollute-board { margin: 12px 0 22px; }
.pollute-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pollute-chip {
  display: inline-block; padding: 6px 10px; border-radius: 999px;
  background: #f4e8ee; color: #6b2d4a; font-size: 13px; font-weight: 700;
  text-decoration: none; border: 1px solid #e4c4d2;
}
.pollute-chip:hover { background: #ead0db; text-decoration: none; }
.read-keys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; margin: 8px 0 18px; }
.read-key { display: flex; gap: 10px; align-items: flex-start; }
.read-sw {
  width: 22px; height: 10px; margin-top: 6px; border-radius: 2px;
  flex: 0 0 22px; box-shadow: inset 0 0 0 1px rgba(4,16,24,.25);
}
.read-key small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
@media (max-width: 720px) { .read-keys { grid-template-columns: 1fr; } }
body.map-mode .pollute-chip { background: rgba(255,255,255,.1); color: #f9d5e5; border-color: rgba(255,255,255,.2); }
@media (max-width: 1100px) {
  .cluster-stage { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-connected { display: block; }
  .hero-photo { max-height: none; }
}
@media (max-width: 980px) {
  .nv-top { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-block; }
  .mainnav { display: none; grid-column: 1 / -1; }
  .mainnav.open { display: flex; }
  .nav-more-list { position: static; min-width: 0; }
  .page-canvas, .sheet { width: calc(100% - 32px); padding-top: 24px; }
  h1 { font-size: 30px; }
  .grid-2, .grid-3, .figrow, .wayfind, .cycle-split { grid-template-columns: 1fr; }
  .nav-lab { width: 100%; margin: 8px 0 0; }
  .top-right { grid-column: 1 / -1; }
  .author-hero, .foot-author { flex-wrap: wrap; }
  .cluster-stage { grid-template-columns: 1fr; }
  .map-chrome { right: auto; max-width: 220px; }
  .float-rail {
    top: auto; bottom: auto; left: auto; right: auto; width: 220px; flex: 0 0 220px;
    max-height: none; flex-direction: column;
  }
  #hud, #map-key { max-height: 34vh; min-height: 0; }
  .float-panel { bottom: calc(34vh + 56px); max-width: none; right: 12px; }
}
.mainnav a.nav-wafb {
  background: #ecfdf3;
  color: #14532d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mainnav a.nav-wafb.on { background: #14532d; color: #f7fee7; }
.mainnav a.nav-agri {
  background: #f4f0e4;
  color: #3f6212;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mainnav a.nav-agri.on { background: #3f6212; color: #f7fee7; }
.nav-ico { font-size: 15px; line-height: 1; }
.wafb-sheet { max-width: 46rem; }
.bridge-page { max-width: 46rem; }
.bridge-page h1 { font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(32px, 4.2vw, 46px); }
.bridge-page .subtitle { font-size: 18px; color: var(--muted); margin: 0 0 18px; font-family: var(--display); font-style: italic; }
.author-note {
  margin: 0 0 22px;
  padding: 22px 24px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 28px rgba(4,16,24,.06);
}
.author-note-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0b5d6b;
}
.author-note-lead {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  color: #0b2540;
  margin: 0 0 16px;
}
.author-note p { margin: 0 0 14px; font-size: 16px; }
.civic-story { max-width: 42rem; }
.civic-story h1 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(30px, 4.4vw, 46px);
}
.civic-story .subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
  font-family: var(--display);
  font-style: italic;
}
.civic-story h2 { margin: 28px 0 10px; font-size: 1.35rem; line-height: 1.25; }
.civic-story > section p { font-size: 17px; line-height: 1.55; }
.civic-refuses { list-style: none; margin: 16px 0 8px; padding: 0; }
.civic-refuses li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 16px 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid #0b5d6b;
  border-radius: var(--r);
}
.civic-n {
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #0b5d6b;
}
.civic-refuses p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.bridge-page .sec { margin: 22px 0 8px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: #0b5d6b; }
.bridge-flow {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 4px solid #0b5d6b;
  background: #e9f3f4;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.bridge-flow-main { border-left-color: #166534; background: #ecfdf3; }
.bridge-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0 20px; }
.bridge-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--sheet);
  overflow: hidden;
}
.bridge-card[open] { background: var(--card); box-shadow: 0 5px 18px rgba(4,16,24,.08); }
.bridge-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px 38px 1fr 26px;
  gap: 10px;
  align-items: center;
  padding: 16px 17px;
}
.bridge-card summary::-webkit-details-marker { display: none; }
.bridge-icon { font-size: 22px; }
.bridge-num { font-size: 11px; letter-spacing: 0.08em; color: #0b5d6b; font-weight: 800; }
.bridge-card summary b { display: block; font-size: 14px; letter-spacing: 0.04em; }
.bridge-card summary small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.bridge-chev { font-size: 20px; color: #0b5d6b; text-align: right; }
.bridge-card[open] .bridge-chev { transform: rotate(45deg); }
.bridge-body { padding: 0 18px 18px 72px; font-size: 14px; }
.bridge-body p { margin: 10px 0; }
.bridge-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.actions-page { max-width: 46rem; }
.actions-page h1 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(28px, 4vw, 42px);
}
.actions-page .subtitle {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: italic;
}
.actions-page .sec {
  margin: 22px 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1e3a5f;
}
.wia-clocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 22px;
}
.wia-clocks a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px 14px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.wia-clocks a:hover, .wia-clocks a:focus {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 2px rgba(30,58,95,.18);
  outline: none;
}
.wia-clocks b { display: block; font-size: 13px; line-height: 1.25; }
.wia-clocks span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.35; }
.wia-sec {
  margin: 28px 0;
  padding: 18px 20px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid #1e3a5f;
  border-radius: var(--r);
}
.wia-sec .wia-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #1e3a5f; margin: 0 0 6px;
}
.wia-sec h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; }
.wia-sec .ask { color: var(--muted); font-size: 14px; margin: 0 0 10px; font-style: italic; }
.wia-close {
  margin: 36px 0 16px;
  padding: 22px 22px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid #166534;
  border-radius: var(--r);
}
.wia-close h2 { margin: 0 0 10px; }
@media (max-width: 800px) {
  .wia-clocks { grid-template-columns: 1fr 1fr; }
}
.action-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 8px; }
.action-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--sheet);
  overflow: hidden;
}
.action-card[open] { background: var(--card); box-shadow: 0 4px 14px rgba(4,16,24,.07); }
.action-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 72px 1fr 26px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
}
.action-card summary::-webkit-details-marker { display: none; }
.action-id {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #1e3a5f;
  font-weight: 800;
  font-family: var(--mono, "IBM Plex Mono", monospace);
}
.action-card summary b { display: block; font-size: 14px; line-height: 1.3; }
.action-card summary small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.action-card[open] .bridge-chev { transform: rotate(45deg); }
.action-body { padding: 0 16px 16px 16px; font-size: 14px; }
.action-body p { margin: 8px 0; }
body.page-actions .page-canvas { padding-bottom: 56px; }
@media (max-width: 800px) {
  .bridge-grid { grid-template-columns: 1fr; }
  .bridge-body { padding-left: 18px; }
  .action-card summary { grid-template-columns: 64px 1fr 22px; padding: 12px; }
}
.wafb-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #166534; margin: 0 0 6px;
}
.wafb-sec {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid #166534;
  border-radius: var(--r);
}
.wafb-sec .lead { font-size: 1.05rem; }
.wafb-locked-end p { margin: 0 0 10px; }
.wafb-proofs { margin-top: 12px; }


/* Batch 13: evidence cards sit outside the app canvas; keep them out of full-screen map mode. */
body.map-mode #mh-rainfall-2022,
body.map-mode #mh-basin-resource-availability,
body.map-mode #mh-mpcb-wqi-may-2026,
body.map-mode #jjm-rural-tap-coverage { display: none !important; }

/* Evidence cards are direct body children; remove them from the full-screen map flex stack. */
body.map-mode > aside,
body.map-mode > section { display: none !important; }

