/* Texas COG Evangelism Dashboard (board app). Layout: Main/Zoomed/ChurchPanel/CityPanel/Style.dc.html
   (approved 2026-11-17). Look since 2026-11-23: "Big Bend Night with Mission Control charts" (BigBendCharts.dc.html,
   owner's choice): night navy, brass churches, glass panels, Barlow Condensed headings, Barlow text, IBM Plex Mono
   numbers and labels, flat-filled charts with faint grid lines. Every size is "mockup px" × --u: the mockups are the board at half size
   (1920 × 1080), so --u is 2 CSS px on a 3840-wide board viewport, 1 on a 1920-wide one, and smaller
   in a desktop window. Smallest text 20 mockup px (≈ 40 px on the 4K board), touch targets ≥ 64.
   No :hover styles anywhere (touch only); :active gives press feedback. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: block; src: url("vendor/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: block; src: url("vendor/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: block; src: url("vendor/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: block; src: url("vendor/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: block; src: url("vendor/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: block; src: url("vendor/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: block; src: url("vendor/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: block; src: url("vendor/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --u: min(calc(100vw / 1920), calc(100vh / 1080));
  /* Big Bend Night palette. --muted keeps WCAG AA (4.6:1) even on glass over a white map area (A21). */
  --bg: #090e1c; --land: #121a33; --panel: #0f152a; --card: #161c31; --line: rgba(160,176,230,0.12); --edge: #36426b;
  --glass-edge: rgba(160,176,230,0.18); --raised: #18203b;
  --text: #e8ecf7; --text2: #c9d1e8; --muted: #9aa6c8; --church: #d6b26a; --church-light: #f4e7c6;
  --up: #8fdda8; --down: #f5b07a;
  --f-head: "Barlow Condensed", Barlow, system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --strip: calc(56 * var(--u)); --banner: 0px; --gap: calc(24 * var(--u));
  --panel-w: calc(820 * var(--u)); --radius: calc(18 * var(--u));
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: Barlow, system-ui, sans-serif; font-size: calc(24 * var(--u));
  overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.sample { --banner: calc(48 * var(--u)); }
button { font: inherit; color: inherit; cursor: default; touch-action: manipulation; }

#sample-banner { position: absolute; top: 0; left: 0; right: 0; height: var(--banner); display: flex; align-items: center;
  justify-content: center; background: #b00020; color: #fff; font-weight: 800; letter-spacing: .1em;
  font-size: calc(26 * var(--u)); z-index: 30; }
#map { position: absolute; top: var(--banner); left: 0; right: 0; bottom: var(--strip); touch-action: none; }
#empty { position: absolute; inset: var(--banner) 0 var(--strip) 0; display: flex; align-items: center; justify-content: center;
  font-size: calc(36 * var(--u)); color: var(--text2); background: var(--bg); z-index: 2; }

/* Header and controls */
/* Title card: the org logo (60 mockup px tall) with the dashboard title and hint beside it. */
#hdr { position: absolute; left: var(--gap); top: calc(var(--banner) + var(--gap)); z-index: 5;
  display: flex; flex-direction: row; align-items: center; gap: calc(18 * var(--u)); pointer-events: none;
  padding: calc(14 * var(--u)) calc(24 * var(--u)) calc(14 * var(--u)) calc(18 * var(--u)); border-radius: calc(16 * var(--u));
  background: var(--panel); border: 1px solid var(--glass-edge); }
#hdr .logo { display: block; height: calc(60 * var(--u)); width: auto; flex: none; -webkit-user-drag: none; }
#hdr .hdr-text { display: flex; flex-direction: column; gap: calc(2 * var(--u)); padding-left: calc(18 * var(--u));
  border-left: 1px solid var(--glass-edge); }
#hdr .title { pointer-events: auto; font-family: var(--f-head); font-size: calc(32 * var(--u));
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05; }
#hdr .subtitle { font-size: calc(20 * var(--u)); color: var(--muted); }
#ctl { position: absolute; right: calc(40 * var(--u)); top: calc(var(--banner) + var(--gap)); z-index: 5;
  display: flex; flex-direction: column; align-items: flex-end; gap: calc(12 * var(--u)); transition: right 200ms ease-out; }
body[data-panel="city"] #ctl { right: calc(var(--panel-w) + var(--gap) + 32 * var(--u)); }
body[data-panel="church"] #ctl { right: calc(var(--panel-w) + var(--gap) + 32 * var(--u)); }
body[data-panel="opportunity"] #ctl { right: calc(var(--panel-w) + var(--gap) + 32 * var(--u)); }
body[data-panel="picker"] #ctl { right: calc(720 * var(--u) + var(--gap) + 32 * var(--u)); }
.pill { height: calc(64 * var(--u)); padding: 0 calc(28 * var(--u)); border-radius: calc(32 * var(--u));
  border: 1px solid var(--glass-edge); background: var(--panel); font-size: calc(24 * var(--u)); font-weight: 600; }
.round { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: 50%; border: 1px solid var(--glass-edge);
  background: var(--panel); font-size: calc(34 * var(--u)); font-weight: 500; line-height: 1; padding: 0; }
.pill:active, .round:active, .pick:active { background: #222b4d; }
.place-link:active { background: rgba(127,166,245,0.24); }

/* Legend (bottom left) */
#legend { position: absolute; left: calc(40 * var(--u)); bottom: calc(var(--strip) + 32 * var(--u)); z-index: 5;
  display: flex; flex-direction: column; gap: calc(14 * var(--u)); background: var(--panel);
  border: 1px solid var(--glass-edge); border-radius: calc(16 * var(--u)); padding: calc(20 * var(--u)) calc(24 * var(--u)); pointer-events: none;
  /* Owner, 2026-11-22: a quarter smaller on the 86-inch board (switches 48 mockup px tall, text 18). */
  transform: scale(0.75); transform-origin: left bottom; }
.lg { display: flex; align-items: center; gap: calc(14 * var(--u)); font-size: calc(24 * var(--u)); font-weight: 600; }
.lg.muted { color: var(--text2); }
.lg svg { width: calc(32 * var(--u)); height: calc(32 * var(--u)); flex: none; }
.lg-pin { height: calc(40 * var(--u)) !important; }
.lg-revit { width: calc(36 * var(--u)) !important; height: calc(40 * var(--u)) !important; }
.lg-pin path { fill: var(--church); } .lg-pin circle { fill: var(--bg); }
.lg-bubble circle { fill: rgba(214,178,106,0.18); stroke: var(--church); stroke-width: 3; }
.lg-dot circle { fill: var(--muted); }
.lg-cdp circle { fill: none; stroke: var(--muted); stroke-width: 3; }
.it { font-style: italic; }

/* Bottom strip: "Data updated …" left, notices centre, map credits right (always visible) */
/* Status bar (BigBendCharts.dc.html): mono, uppercase, letter-spaced. Left: connection state, "Data updated …" with
   the population source, churches on the map; centre: notices; right: map credits (always visible). */
#strip { position: absolute; left: 0; right: 0; bottom: 0; height: var(--strip); z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: calc(24 * var(--u)); padding: 0 calc(32 * var(--u)); background: #070b16;
  border-top: 1px solid var(--line); font-family: var(--f-mono); font-weight: 500; font-size: calc(20 * var(--u));
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* The credits never shorten (always visible); when space is short the population source after "Data updated …"
   is cut with an ellipsis first. */
#strip .st-left { display: flex; align-items: center; gap: calc(24 * var(--u)); min-width: 0; flex: 1 1 auto; }
#strip .st-left > * { flex: none; }
#strip .st-left > .asof { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#strip strong { color: var(--text2); font-weight: 500; }
.st-online.on { color: var(--up); } .st-online.off { color: var(--down); }
#notice { flex: none; }
#strip .credits { flex: none; }
#notice { background: #8a2b00; color: #fff; padding: calc(4 * var(--u)) calc(16 * var(--u)); border-radius: calc(20 * var(--u));
  font-size: calc(20 * var(--u)); font-weight: 600; letter-spacing: 0.04em; }
#notice.info { background: #2a4a8f; }

/* Panels slide in from the right; the map stays primary on the left. */
/* A floating card (BigBendCharts.dc.html): inset from the edges, rounded, a 1 px light edge and a soft shadow. */
#panel { position: absolute; right: var(--gap); top: calc(var(--banner) + var(--gap)); bottom: calc(var(--strip) + var(--gap));
  width: calc(720 * var(--u)); z-index: 10; overflow: hidden;
  background: var(--panel); border: 1px solid var(--glass-edge); border-radius: var(--radius); box-shadow: 0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(0,0,0,0.45);
  transform: translateX(calc(100% + var(--gap) + 8px)); transition: transform 200ms ease-out;
  will-change: transform; display: flex; flex-direction: column; }
#panel[data-kind="city"], #panel[data-kind="church"], #panel[data-kind="opportunity"] { width: var(--panel-w); }
#panel.open { transform: translateX(0); }
.panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(26 * var(--u));
  padding: calc(40 * var(--u)) calc(48 * var(--u)) calc(28 * var(--u)); }
.panel-body.church { gap: calc(32 * var(--u)); padding-top: calc(44 * var(--u)); }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: calc(24 * var(--u)); }
.p-titles { display: flex; flex-direction: column; gap: calc(8 * var(--u)); min-width: 0; }
.p-title { margin: 0; font-family: var(--f-head); font-size: calc(56 * var(--u)); font-weight: 700; line-height: 1.05;
  overflow-wrap: anywhere; }
.church .p-title { font-size: calc(52 * var(--u)); line-height: 1.1; }
.p-sub { font-size: calc(26 * var(--u)); color: var(--text2); }
.church .p-sub { font-size: calc(28 * var(--u)); }
.p-sub.tappable span { border-bottom: 2px dotted var(--edge); }
.p-county-list { font-size: calc(22 * var(--u)); color: var(--muted); margin-top: calc(-16 * var(--u)); line-height: 1.4; }
.p-close { flex: none; width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: 50%; border: 1px solid rgba(160,176,230,0.25);
  background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; padding: 0; }
.p-close svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; }
.card { display: flex; flex-direction: column; gap: calc(14 * var(--u)); background: var(--card); border: 1px solid var(--line);
  border-radius: calc(14 * var(--u)); padding: calc(26 * var(--u)) calc(30 * var(--u)); }
.eyebrow { margin: 0; font-family: var(--f-mono); font-size: calc(20 * var(--u)); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pop-row { display: flex; align-items: baseline; gap: calc(18 * var(--u)); }
.pop-value { font-family: var(--f-mono); font-size: calc(64 * var(--u)); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.badge { font-size: calc(22 * var(--u)); color: var(--text2); border: 1px solid var(--edge); border-radius: calc(8 * var(--u)); padding: calc(2 * var(--u)) calc(10 * var(--u)); }
.meta { font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--muted); }
.pep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(20 * var(--u)); }
.pep { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.pep-pct { font-family: var(--f-mono); font-size: calc(32 * var(--u)); font-weight: 600; }
.pep-amt { font-size: calc(22 * var(--u)); color: var(--text); line-height: 1.35; }
.pep-period { font-size: calc(20 * var(--u)); color: var(--muted); line-height: 1.35; }
.county-src { font-size: calc(20 * var(--u)); color: var(--muted); margin-top: calc(4 * var(--u)); }
.pep-label { font-size: calc(22 * var(--u)); color: var(--text2); }
.marker { font-size: 0.6em; font-weight: 500; color: var(--muted); }
.na { font-size: calc(24 * var(--u)); color: var(--text2); line-height: 1.4; }
.greyed { color: #6c7699 !important; }
.caution { color: #e8c37a; }
.reliability { align-self: flex-start; font-size: calc(20 * var(--u)); padding: calc(2 * var(--u)) calc(10 * var(--u)); border-radius: calc(6 * var(--u));
  background: rgba(232,195,122,0.14); color: #e8c37a; }
.reliability.greyed { background: rgba(160,176,230,0.08); }

/* County figure (DEC-035): the last row of the indicator list, set off by a top rule like the rows above */
.county-mig, .county-cong { display: flex; flex-direction: column; gap: calc(2 * var(--u));
  padding: calc(14 * var(--u)) 0 calc(10 * var(--u)); border-top: 1px solid var(--edge); }
.cm-label { font-size: calc(20 * var(--u)); font-weight: 600; color: var(--text2); }
.cm-county { font-weight: 500; color: var(--muted); }
.cm-value { font-size: calc(24 * var(--u)); font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: calc(6 * var(--u)); }
.cm-value .reliability { margin-left: calc(8 * var(--u)); font-weight: 500; }
.cm-value.na { font-size: calc(22 * var(--u)); font-weight: 500; color: var(--text2); }
.cm-value.caution { color: #e8c37a; }
.cm-meta, .cm-detail { font-size: calc(20 * var(--u)); color: var(--muted); line-height: 1.35; }
/* County congregations (DEC-037): one line per group, name left, count right */
.cc-groups { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(24 * var(--u)); row-gap: calc(2 * var(--u)); }
.cc-group { display: flex; justify-content: space-between; gap: calc(10 * var(--u)); font-size: calc(20 * var(--u)); color: var(--text2); }
.cc-count { font-weight: 700; color: var(--text); }
.cc-count.na { font-weight: 500; color: var(--muted); }

/* Community indicators: scrollable list (one finger scrolls it; the rest of the page never scrolls) */
.indicators { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.ind-head { display: flex; justify-content: space-between; align-items: baseline; }
.scroll-hint { font-size: calc(20 * var(--u)); color: var(--muted); }
.ind-sub { font-size: calc(20 * var(--u)); color: var(--muted); }
.ind-wrap { position: relative; flex: 1; min-height: 0; }
.ind-list { height: 100%; overflow-y: auto; padding-right: calc(8 * var(--u)); touch-action: pan-y; overscroll-behavior: contain; }
.fade { position: absolute; left: 0; right: 0; bottom: 0; height: calc(56 * var(--u)); background: linear-gradient(rgba(15,21,42,0), var(--panel)); pointer-events: none; }
.ind-wrap.at-end .fade { display: none; }
.ind { display: flex; flex-direction: column; gap: calc(4 * var(--u)); border-bottom: 1px solid var(--line); padding: calc(14 * var(--u)) 0;
  min-height: calc(64 * var(--u)); }
.ind-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(20 * var(--u)); align-items: baseline; }
.ind-label { font-size: calc(26 * var(--u)); font-weight: 600; }
.ind-value { font-family: var(--f-mono); font-size: calc(28 * var(--u)); font-weight: 600; text-align: right; }
.ind-value.na { font-family: Barlow, system-ui, sans-serif; font-size: calc(22 * var(--u)); font-weight: 500; color: var(--text2); }
.ind-value.caution { color: #e8c37a; }
.moe { font-family: Barlow, system-ui, sans-serif; font-size: calc(20 * var(--u)); font-weight: 500; color: var(--muted); }
.ind-change { font-size: calc(20 * var(--u)); color: var(--muted); }
.ind-change.increase { color: var(--up); } .ind-change.decrease { color: var(--down); }
.ind-meta { font-size: calc(20 * var(--u)); color: var(--muted); }
.ind-detail { font-size: calc(20 * var(--u)); color: var(--text2); line-height: 1.45; padding-top: calc(6 * var(--u));
  display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.p-footer { font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--muted); padding: calc(12 * var(--u)) 0 0; }
.p-footer:last-child { padding-bottom: calc(24 * var(--u)); }

/* Church panel */
.chip { display: inline-flex; align-self: flex-start; align-items: center; gap: calc(10 * var(--u)); font-family: var(--f-mono); font-size: calc(20 * var(--u));
  font-weight: 500; letter-spacing: 0.06em; color: var(--church); border: 1px solid rgba(214,178,106,0.55); border-radius: 999px; padding: calc(5 * var(--u)) calc(16 * var(--u)); }
.chip svg { width: calc(16 * var(--u)); height: calc(20 * var(--u)); fill: var(--church); }
.church-status .status { font-size: calc(32 * var(--u)); font-weight: 600; line-height: 1.25; }
.church-status .status-note { font-size: calc(22 * var(--u)); line-height: 1.45; color: var(--text2); }
.place-link { display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--u)); min-height: calc(80 * var(--u));
  text-align: left; background: rgba(127,166,245,0.12); border: 1px solid rgba(127,166,245,0.3); border-radius: calc(14 * var(--u));
  padding: calc(22 * var(--u)) calc(28 * var(--u)); font-size: calc(26 * var(--u)); font-weight: 600; }
.place-link svg { flex: none; width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: none; stroke: var(--text); stroke-width: 2.5; }
.p-sources { margin-top: auto; display: flex; flex-direction: column; gap: calc(8 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--muted); }
.pick-list { flex: 1; min-height: 0; overflow-y: auto; touch-action: pan-y; display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.pick { min-height: calc(80 * var(--u)); text-align: left; padding: calc(16 * var(--u)) calc(24 * var(--u)); border-radius: calc(14 * var(--u));
  border: 2px solid var(--church); background: var(--card); font-size: calc(26 * var(--u)); font-weight: 600; }
.panel-body.picker .pick { border-color: rgba(214,178,106,0.7); }

/* Maintenance view (hidden; opened by a deliberate gesture) */
#maint { position: absolute; left: calc(40 * var(--u)); top: calc(var(--banner) + 140 * var(--u)); width: calc(1100 * var(--u));
  bottom: calc(var(--strip) + 24 * var(--u)); z-index: 40; background: var(--panel); border: 1px solid var(--edge);
  border-radius: var(--radius); padding: calc(28 * var(--u)); display: flex; flex-direction: column; gap: calc(16 * var(--u));
  font-size: calc(20 * var(--u)); -webkit-user-select: text; user-select: text; }
.m-head { display: flex; justify-content: space-between; align-items: center; }
.m-head h2 { margin: 0; font-size: calc(32 * var(--u)); }
.m-status { color: var(--text2); line-height: 1.5; overflow-wrap: anywhere; }
.m-row { display: flex; align-items: center; gap: calc(14 * var(--u)); flex-wrap: wrap; }
#token-input { height: calc(64 * var(--u)); width: calc(460 * var(--u)); font-size: calc(22 * var(--u)); padding: 0 calc(14 * var(--u));
  background: var(--bg); color: var(--text); border: 1px solid var(--edge); border-radius: calc(10 * var(--u)); touch-action: manipulation; }
.m-log { flex: 1; min-height: 0; overflow: auto; margin: 0; padding-left: calc(36 * var(--u)); font: calc(18 * var(--u)) ui-monospace, monospace;
  color: var(--text2); white-space: pre-wrap; touch-action: pan-y; }
.m-log li.warn { color: #f0a35e; }

/* MapLibre: no default controls are used; keep its canvas from taking browser gestures. */
.maplibregl-canvas { outline: none; }

/* Back to the simple view (detailed city view) */
.back-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: calc(8 * var(--u)); height: calc(64 * var(--u));
  padding: 0 calc(22 * var(--u)) 0 calc(14 * var(--u)); border-radius: calc(32 * var(--u)); border: 1px solid rgba(160,176,230,0.25);
  background: rgba(255,255,255,0.04); font-size: calc(22 * var(--u)); font-weight: 600; margin-right: calc(16 * var(--u)); flex: none; }
.back-btn svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: none; stroke: var(--text); stroke-width: 2.5; }
.p-head { align-items: flex-start; }
/* Back to the church card that opened this panel: its own row, a long name is cut with an ellipsis */
.back-btn.origin-back { max-width: 100%; margin-right: 0; min-height: calc(64 * var(--u)); }
.back-btn.origin-back span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Simple city view (CitySimple.dc.html; DEC-031) */
.panel-body.simple { gap: calc(10 * var(--u)); padding: calc(22 * var(--u)) calc(32 * var(--u)) calc(20 * var(--u)); }
.simple .p-title { font-size: calc(52 * var(--u)); }
.simple .p-titles { gap: calc(4 * var(--u)); }
.simple-pop { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.pop-value.big { font-size: calc(60 * var(--u)); }
.pop-unit { font-size: calc(26 * var(--u)); color: var(--text2); }
.simple-change { font-size: calc(25 * var(--u)); font-weight: 600; }
.simple-change .muted { font-weight: 400; color: var(--muted); }
/* Bar + six tiles (2 columns x 3 rows) scroll together when they do not fit; More detail stays put.
   Sized to fit without scrolling at 1920 x 1080 (owner 2026-11-22); smallest text 20 mockup px. The
   "Scroll for more" hint is a row of its own under the scroll area (never over tile text) and only
   shows while there is more below. */
.simple-wrap { position: relative; flex: 1; min-height: 0; }
.simple-scroll { height: 100%; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: calc(8 * var(--u)); padding-right: calc(6 * var(--u)); }
.simple-wrap.at-end .fade { display: none; }
.simple-hint { flex: none; align-self: flex-end; margin-top: calc(-10 * var(--u)); line-height: 1.2; pointer-events: none; }
.simple-hint[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--u)); flex: none; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: calc(14 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u));
  display: flex; flex-direction: column; gap: calc(3 * var(--u)); }
.tile-label { font-size: calc(21 * var(--u)); line-height: 1.15; color: var(--text2); }
.tile-value { font-family: var(--f-mono); font-size: calc(34 * var(--u)); font-weight: 600; line-height: 1; }
.tile-change { font-size: calc(20 * var(--u)); line-height: 1.15; color: var(--muted); }
.tile-change.increase { color: var(--up); } .tile-change.decrease { color: var(--down); }
.tile-note { font-size: calc(20 * var(--u)); line-height: 1.15; color: var(--muted); }
.simple-src { margin-top: calc(-2 * var(--u)); flex: none; line-height: 1.2; }
.simple .more-btn { height: calc(64 * var(--u)); }

/* "Who lives here" bar. Each group keeps one colour on every place (owner palette 2026-11-22: blue,
   teal, lavender, gold, pink), and every colour has its own CIELAB lightness, about 6-7 L* apart, so
   the bar reads without hue: gold 80.5 > teal 72.5 > pink 66 > lavender 60 > blue 54 > dark teal 47 >
   dark lavender 41 > dark pink 35 (the three dark shades are for groups that rarely reach 10%).
   "Other groups" is grey with stripes. The legend repeats
   each name and share, so colour is never the only cue. Segments are separated by a gap. */
.who { display: flex; flex-direction: column; gap: calc(6 * var(--u)); flex: none; }
.who-bar { display: flex; gap: calc(3 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(8 * var(--u)); overflow: hidden; }
.who-seg { flex-basis: 0; min-width: calc(4 * var(--u)); }
.who-legend { display: flex; flex-wrap: wrap; column-gap: calc(14 * var(--u)); row-gap: calc(6 * var(--u)); font-size: calc(20 * var(--u)); }
.who-item { display: inline-flex; align-items: center; gap: calc(5 * var(--u)); }
.who-sw { flex: none; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: calc(4 * var(--u)); border: 1px solid rgba(255,255,255,0.35); }
.who-name { color: var(--text2); }
.who-short { font-weight: 700; color: var(--text); }
.who-item .reliability { font-size: calc(20 * var(--u)); align-self: center; }
.who-detail { font-size: calc(20 * var(--u)); color: var(--muted); line-height: 1.4; }
.who-rel { color: #e8c37a; }
.who-src { font-size: calc(20 * var(--u)); line-height: 1.2; }
.seg-re_hispanic_pct { background: #F2C064; }    /* gold #EBBA5E lifted to L* 80.5 */
.seg-re_nh_black_pct { background: #64C0C3; }      /* teal #67C3C6 at L* 72.5 */
.seg-re_nh_two_plus_pct { background: #E08797; }   /* pink, as given (L* 66) */
.seg-re_nh_asian_pct { background: #9186D8; }      /* lavender #A89CF0 darkened to L* 60 */
.seg-re_nh_white_pct { background: #4A81D4; }      /* blue #6E9FF5 darkened to L* 54 */
.seg-re_nh_aian_pct { background: #0A7C7F; }       /* dark teal, L* 47 */
.seg-re_nh_nhpi_pct { background: #5E57A4; }       /* dark lavender, L* 41 */
.seg-re_nh_other_pct { background: #88384A; }      /* dark pink, L* 35 */
.seg-other { background: repeating-linear-gradient(135deg, #a3abb3 0 calc(5 * var(--u)), #5f6973 calc(5 * var(--u)) calc(10 * var(--u))); }
.more-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: calc(12 * var(--u)); height: calc(72 * var(--u));
  border-radius: calc(14 * var(--u)); background: rgba(127,166,245,0.12); border: 1px solid rgba(127,166,245,0.3); font-size: calc(26 * var(--u)); font-weight: 600; }
.more-btn svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: none; stroke: var(--text); stroke-width: 2.5; }

/* Church card v2 (ChurchCard2.dc.html; DEC-030) */
.panel-body.church { overflow-y: auto; touch-action: pan-y; gap: calc(22 * var(--u)); }
.sample-strip { margin: calc(-44 * var(--u)) calc(-48 * var(--u)) 0; background: #b3261e; color: #fff; text-align: center;
  font-size: calc(22 * var(--u)); font-weight: 800; letter-spacing: 3px; padding: calc(10 * var(--u)) 0; }
.panel-body.church.with-photo { padding-top: 0; }
.with-photo .sample-strip { margin-top: 0; }
.photo-slot { position: relative; margin: 0 calc(-48 * var(--u)); height: calc(250 * var(--u)); background: var(--raised); border-bottom: 1px solid var(--line); flex: none; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot .p-close { position: absolute; top: calc(20 * var(--u)); right: calc(20 * var(--u)); background: rgba(15,21,42,0.9); }
.card-titles { gap: calc(6 * var(--u)); }
.church .p-title { font-size: calc(48 * var(--u)); }
.pastors { font-size: calc(24 * var(--u)); }
.pastors strong { font-weight: 600; }
/* The church card's numbers (owner's reference image and follow-ups, 2026-11-22; DEC-038). Spacing scale 4/8/12/16/24
   mockup px; type scale 18 (labels, marks) / 20 (meta) / 22 (badges) / 52 (numbers); tabular figures. One caption line,
   then attendance and giving as cards: the label over [number + badge, its month or note] beside a 24-month area chart
   (attendance blue, giving gold) with a dashed trend line, a faint divider where the last 12 months start and three
   date marks under it; then the members card (number, badge, basis, period; no chart). A gap where a month is not
   reported. */
:root { --att: #7fa6f5; --giv: #d6b26a; --s1: calc(4 * var(--u)); --s2: calc(8 * var(--u)); --s3: calc(12 * var(--u));
  --s4: calc(16 * var(--u)); --s6: calc(24 * var(--u)); }
.panel-body.church.with-numbers { gap: var(--s4); }   /* no :has(): the board's browser version is unconfirmed */
.with-numbers .photo-slot { height: calc(200 * var(--u)); }
.numbers-caption { margin-bottom: calc(-1 * var(--s1)); }
.cnums { display: flex; flex-direction: column; gap: var(--s3); }
.cnum { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); background: rgba(255,255,255,0.035);
  border: 1px solid var(--line); border-radius: calc(14 * var(--u)); }
.cnum-label { font-family: var(--f-mono); font-size: calc(18 * var(--u)); font-weight: 500; letter-spacing: 0.14em; color: var(--muted); }
.cnum-row { display: flex; align-items: flex-start; gap: var(--s4); }
.cnum-left { flex: none; width: calc(236 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.cnum.compact .cnum-left { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--s4); row-gap: var(--s1); }
.cnum-top { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.cnum.compact .cnum-top { flex-direction: row; align-items: center; gap: var(--s3); }
.cnum-value { font-family: var(--f-mono); font-size: calc(46 * var(--u)); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.cnum.compact .cnum-value { font-size: calc(38 * var(--u)); }
.cnum-badge { display: inline-flex; align-items: center; height: calc(36 * var(--u)); padding: 0 calc(14 * var(--u));
  border-radius: 999px; font-family: var(--f-mono); font-size: calc(20 * var(--u)); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: var(--text2); background: rgba(160,176,230,0.12); }
.cnum-badge.up { color: var(--up); background: rgba(110,200,140,0.16); }
.cnum-badge.down { color: var(--down); background: rgba(240,150,90,0.16); }
.cnum-month, .cnum-note, .cnum-basis, .cnum-period { font-size: calc(18 * var(--u)); line-height: 1.3; color: var(--muted); }
.cnum-na { font-size: calc(24 * var(--u)); color: var(--muted); }    /* "Not yet reported" (DEC-036) */
.cnum-chartbox { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.cnum-chart { width: 100%; height: calc(92 * var(--u)); display: block; overflow: visible; }
.cnum-chart.attendance { color: var(--att); } .cnum-chart.giving { color: var(--giv); }
/* Mission Control chart style: faint horizontal grid lines, a SOLID flat fill under the line (no gradient), a dotted
   divider where the last 12 months start, the dashed trend line in light ink, a dot on the latest point. Strokes are
   screen px (non-scaling), so they are sized with --u. */
.cnum-area { fill: currentColor; fill-opacity: 0.16; stroke: none; }
.cnum-grid { stroke: #18213d; stroke-width: calc(1 * var(--u)); vector-effect: non-scaling-stroke; }
.cnum-stroke { fill: none; stroke: currentColor; stroke-width: calc(2.2 * var(--u)); stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cnum-trend { stroke: var(--text); stroke-width: calc(1.4 * var(--u)); stroke-dasharray: calc(4 * var(--u)) calc(4 * var(--u)); opacity: 0.55; vector-effect: non-scaling-stroke; }
.cnum-divider { stroke: #4a5785; stroke-width: calc(1.2 * var(--u)); stroke-dasharray: calc(2 * var(--u)) calc(3 * var(--u)); vector-effect: non-scaling-stroke; }
.cnum-marks { position: relative; height: calc(22 * var(--u)); font-family: var(--f-mono); font-size: calc(16 * var(--u)); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cnum-marks.two-rows { height: calc(44 * var(--u)); }
.cnum-mark { position: absolute; top: 0; line-height: calc(22 * var(--u)); }
.cnum-mark.start { left: 0; }
.cnum-mark.split { transform: translateX(-50%); }
.cnum-mark.latest { transform: translateX(-100%); color: var(--text2); }
.cnum-mark.latest.row2 { top: calc(22 * var(--u)); }
.cnum-dot { fill: currentColor; } .cnum-dot.latest { stroke: none; }
.numbers-footer, .numbers-status { line-height: 1.35; }
.website { display: flex; align-items: center; gap: calc(22 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.qr { flex: none; width: calc(116 * var(--u)); height: calc(116 * var(--u)); background: #fff; border-radius: calc(10 * var(--u)); padding: calc(6 * var(--u)); }
.web-prompt { font-size: calc(24 * var(--u)); font-weight: 600; color: var(--text); }
.web-url { font-size: calc(20 * var(--u)); color: var(--muted); overflow-wrap: anywhere; }
.sample-note { font-size: calc(20 * var(--u)); color: var(--down); margin-top: calc(6 * var(--u)); }
.sample-strip + .photo-slot { margin-top: calc(-22 * var(--u)); }
.tile-change.caution { color: #e8c37a; }
.chip.sample { color: #ffb4ab; border-color: #ffb4ab; }
.chip.sample svg { fill: #ffb4ab; }

/* Opportunity areas (DEC-033). Planting: blue hollow dashed hexagon; revitalization (owner's option A,
   2026-11-28): the flagged church's own pin in coral with a dark ▼ badge (its shape differs from a plain pin by
   the badge; coral is used for nothing else). Met / Not met / Not available differ by
   icon and word, not colour alone; no ▲/▼ here. */
:root { --planting: #7fa6f5; --revit: #f08a5d; }
/* Legend layer rows (owner, 2026-11-22): the row names the layer; on the right a phone-style switch sized
   to the text (track 34 px tall, as tall as the label's capitals plus room; the 64 px row stays the touch target)
   (track and knob, no word) shows whether the layer is on. On: the track fills in the layer's colour and
   the knob sits right; off: a dark track, knob left, and the row is dimmed. 64 px tall touch target. */
.lg-row { min-height: calc(64 * var(--u)); }
.lg-row .lg-text { flex: 1 1 auto; }
.lg-pill { pointer-events: auto; flex: none; position: relative; margin-left: calc(18 * var(--u));
  width: calc(68 * var(--u)); height: calc(64 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer; }
.lg-pill::before { content: ""; position: absolute; left: 0; right: 0; top: calc(15 * var(--u)); bottom: calc(15 * var(--u));
  border-radius: calc(17 * var(--u)); background: #263055; box-shadow: inset 0 0 0 2px var(--edge); transition: background 0.18s; }
.lg-pill .knob { position: absolute; top: calc(18 * var(--u)); left: calc(3 * var(--u)); width: calc(28 * var(--u)); height: calc(28 * var(--u));
  border-radius: 50%; background: #c9d1e8; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); transition: transform 0.18s; }
.lg-pill[aria-checked="true"] .knob { background: #f4f1e8; }
.lg-pill[aria-checked="true"] .knob { transform: translateX(calc(34 * var(--u))); }
.lg-pill.churches[aria-checked="true"]::before { background: var(--church); box-shadow: none; }
.lg-pill.planting[aria-checked="true"]::before { background: var(--planting); box-shadow: none; }
.lg-pill.revitalization[aria-checked="true"]::before { background: var(--revit); box-shadow: none; }
.lg-pill:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: calc(32 * var(--u)); }
@media (prefers-reduced-motion: reduce) { .lg-pill::before, .lg-pill .knob { transition: none; } }
.lg.off > svg, .lg.off > .lg-text, .lg.off > span:not(.lg-pill) { opacity: 0.5; }
.lg-hex path { fill: none; stroke: var(--planting); stroke-width: 3; stroke-dasharray: 5 3; }
/* New-growth census tracts (DEC-039; EdgeZone mockup): mint hatched square beside the hexagon, on the card's chip
   and in the card's headline. */
:root { --edge-mint: #5fd3c2; }
.lg svg.lg-edge { width: calc(24 * var(--u)); height: calc(24 * var(--u)); margin-left: calc(-4 * var(--u)); }
.lg-edge[hidden] { display: none; }
.lg-edge rect, .opp-icon.edge rect { fill: rgba(95,211,194,0.2); stroke: var(--edge-mint); stroke-width: 2.5; }
.lg-edge path, .opp-icon.edge path { fill: none; stroke: rgba(95,211,194,0.75); stroke-width: 1.5; }
.chip.opp.planting.edge { color: var(--edge-mint); border-color: var(--edge-mint); }
.opportunity.edge .opp-framing { border-left-color: var(--edge-mint); }
.opportunity.edge .opp-chip.met { border-color: rgba(95,211,194,0.6); background: rgba(95,211,194,0.14); }
.opportunity.edge .opp-chip.met .opp-mark { background: var(--edge-mint); }
.opp-headline { gap: calc(6 * var(--u)); padding: calc(18 * var(--u)) calc(22 * var(--u)); flex: none; }
.opp-hl-label { font-family: var(--f-mono); font-size: calc(16 * var(--u)); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); }
.opp-hl-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: calc(14 * var(--u)); }
.opp-hl-value { font-family: var(--f-mono); font-weight: 600; font-size: calc(56 * var(--u)); line-height: 1.05; color: var(--text); }
.opp-hl-detail { font-family: var(--f-mono); font-size: calc(20 * var(--u)); color: var(--text2); }
.opp-hl-period { font-size: calc(18 * var(--u)); color: var(--muted); }
.lg-revit .pin, .opp-icon.revitalization .pin { fill: var(--revit); stroke: #090e1c; stroke-width: 2; }
.lg-revit .hole, .lg-revit .badge, .opp-icon.revitalization .hole, .opp-icon.revitalization .badge { fill: #090e1c; }
.lg-revit .badge, .opp-icon.revitalization .badge { stroke: var(--revit); stroke-width: 2; }
.lg-revit .tri, .opp-icon.revitalization path.tri { fill: var(--revit); stroke: none; }
.chip.opp.planting { color: var(--planting); border-color: var(--planting); }
.chip.opp.revitalization { color: var(--revit); border-color: var(--revit); }
.chip.opp svg, .opp-link svg.opp-icon { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: none; stroke-width: 3; }
.opp-icon.planting path { stroke: var(--planting); stroke-dasharray: 5 3; }
.opp-link svg.opp-icon { flex: none; }
/* The opportunity card (owner, 2026-11-23): name, class/county line, the framing line, one chip per indicator
   (✓ met / ✗ not met / – not available: a mark AND a style, never colour alone; the result word is the chip's
   accessible name), the model and review status, the place button; the rest in "Why this place?" (closed). */
.panel-body.opportunity { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; gap: calc(20 * var(--u)); }
.opportunity .p-title { font-size: calc(52 * var(--u)); line-height: 1.05; }
.opp-framing { font-size: calc(26 * var(--u)); font-weight: 600; line-height: 1.3; color: var(--text); padding-left: calc(16 * var(--u));
  border-left: calc(4 * var(--u)) solid var(--planting); }
.opportunity.revitalization .opp-framing { border-left-color: var(--revit); }
.opp-chips { display: flex; flex-wrap: wrap; gap: calc(12 * var(--u)); }
.opp-chip { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); min-height: calc(52 * var(--u)); padding: 0 calc(20 * var(--u)) 0 calc(14 * var(--u));
  border-radius: 999px; font-size: calc(24 * var(--u)); font-weight: 600; border: 2px solid var(--edge); background: rgba(255,255,255,0.035); }
.opp-mark { font-family: var(--f-mono); font-weight: 600; font-size: calc(24 * var(--u)); width: calc(28 * var(--u)); height: calc(28 * var(--u));
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.opp-chip.met { border-color: rgba(127,166,245,0.75); background: rgba(127,166,245,0.14); color: var(--text); }
.opp-chip.met .opp-mark { background: var(--planting); color: #0b1020; }
.opportunity.revitalization .opp-chip.met { border-color: rgba(240,138,93,0.75); background: rgba(240,138,93,0.12); }
.opportunity.revitalization .opp-chip.met .opp-mark { background: var(--revit); }
.opp-chip.not_met { color: var(--text2); }
.opp-chip.not_met .opp-mark { color: var(--text2); border: 1px solid var(--edge); }
.opp-chip.not_available { color: var(--muted); border-style: dashed; background: none; }
.opp-chip.not_available .opp-mark { color: var(--muted); }
.opp-model { margin-top: calc(-4 * var(--u)); }
.opp-why-box { margin-top: auto; }
.opp-why-box .details-btn { font-family: var(--f-head); font-size: calc(28 * var(--u)); font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.opp-why-box .details-inner { gap: calc(14 * var(--u)); font-size: calc(22 * var(--u)); color: var(--text2); }
.opp-why-box.open .details-inner { padding-bottom: calc(16 * var(--u)); }
.opp-rule-all { font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--muted); }
.opp-facts { display: flex; flex-direction: column; gap: calc(6 * var(--u)); font-size: calc(24 * var(--u)); color: var(--text2); }
.opp-facts > :first-child { font-weight: 700; color: var(--text); }
.opp-ind { gap: calc(8 * var(--u)); padding: calc(20 * var(--u)) calc(24 * var(--u)); flex: none; }
.opp-ind-top { display: flex; justify-content: space-between; align-items: center; gap: calc(16 * var(--u)); }
.opp-ind-label { font-size: calc(28 * var(--u)); font-weight: 700; }
.opp-rule { font-size: calc(22 * var(--u)); color: var(--text2); }
.opp-line { font-size: calc(22 * var(--u)); line-height: 1.4; }
.opp-test, .opp-src { font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--muted); }
.opp-note { font-size: calc(22 * var(--u)); line-height: 1.45; color: var(--text2); border-left: 3px solid var(--edge); padding-left: calc(16 * var(--u)); }
.opp-result { flex: none; display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(22 * var(--u)); font-weight: 700;
  border-radius: calc(18 * var(--u)); padding: calc(4 * var(--u)) calc(14 * var(--u)); border: 2px solid var(--edge); }
.opp-result svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.opp-result.met { color: var(--text); border-color: var(--text2); background: rgba(160,176,230,0.10); }
.opp-result.not_met { color: var(--text2); border-style: solid; }
.opp-result.not_available { color: var(--muted); border-style: dashed; }
.opp-ind.not_available { opacity: 0.85; }
.yoy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
.yoy-cell { border: 1px solid var(--line); border-radius: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); background: var(--card);
  display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.yoy-m, .yoy-b, .yoy-w { font-size: calc(20 * var(--u)); color: var(--muted); }
.yoy-v { font-family: var(--f-mono); font-size: calc(24 * var(--u)); font-weight: 600; }
.yoy-cell.lower { border-color: var(--revit); } .yoy-cell.lower .yoy-w { color: var(--text); font-weight: 700; }
.yrs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(8 * var(--u)); }
.yr { border-top: 2px solid var(--edge); padding-top: calc(6 * var(--u)); }
.yr-p { font-size: calc(20 * var(--u)); color: var(--muted); } .yr-v { font-family: var(--f-mono); font-size: calc(24 * var(--u)); font-weight: 600; }


/* "Details and sources" (owner, 2026-11-22): one disclosure at the bottom of a panel, closed by default; a 64 px button;
   a short height animation (grid rows 0fr → 1fr), none with prefers-reduced-motion. */
.details { margin-top: auto; border-top: 1px solid rgba(160,176,230,0.14); flex: none; }
.details-btn { width: 100%; min-height: calc(64 * var(--u)); display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: 0 var(--s1); background: none; border: 0; font-size: calc(22 * var(--u)); font-weight: 500; color: var(--muted); }
.details-btn svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform 200ms ease-out; }
.details.open .details-btn svg { transform: rotate(-90deg); }
.details-region { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms ease-out; }
.details.open .details-region { grid-template-rows: 1fr; }
.details-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: var(--s2);
  font-size: calc(20 * var(--u)); line-height: 1.4; color: var(--muted); }
.details.open .details-inner { padding-bottom: var(--s2); }
.details-inner .pastors { color: var(--text2); }
@media (prefers-reduced-motion: reduce) {
  .details-region, .details-btn svg { transition: none; }
}

/* Frosted glass (owner, 2026-11-22; Big Bend Night colours 2026-11-23): side panels and floating map controls are
   translucent with a blur behind them, so the map shows through. Only with body.glass (config.json "glass": true and
   a browser that supports backdrop-filter); otherwise the solid panels above. rgba(15,21,42,0.84) with a 1 px
   rgba(160,176,230,0.18) edge: the muted text keeps WCAG AA (4.6:1) even over a white map area (checked in the e2e).
   MUST be measured on the CreateBoard's entry-level GPU (docs/APP.md); switch off with "glass": false. */
body.glass #panel { background: rgba(15,21,42,0.84); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--glass-edge); box-shadow: 0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(0,0,0,0.45); }
body.glass #hdr, body.glass #legend, body.glass .pill, body.glass .round {
  background: rgba(15,21,42,0.84); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--glass-edge); box-shadow: 0 calc(12 * var(--u)) calc(32 * var(--u)) rgba(0,0,0,0.35); }
body.glass .pill:active, body.glass .round:active { background: rgba(34,43,77,0.92); }
body.glass .p-close { background: rgba(255,255,255,0.04); }
body.glass .card, body.glass .cnum, body.glass .tile { background: rgba(255,255,255,0.035); }
