:root {
  color-scheme: light;

  --bg: #f6f7f6;
  --band-alt: #eef1ec;
  --surface: #ffffff;
  --ink: #1b211d;
  --ink-soft: #4c534e;
  /* Darkened from #767d78 -- the original failed WCAG AA (4.5:1) for
     normal-size text against --bg (3.93:1 measured) and was used
     site-wide for footer text, sidebar labels, and category captions. */
  --muted: #6c726e;
  --line: #e3e7e2;
  --line-strong: #cdd4cc;
  /* Darkened from #2d7f72 -- the original was 4.45:1 against --bg,
     just under the 4.5:1 AA threshold (passed against white, but the
     .eyebrow label and prose links also sit on --bg). */
  --accent: #2c7d70;
  --accent-hover: #24665c;
  --accent-tint: #e8f2f0;
  --accent-ink: #ffffff;

  /* one accent per tier -- justified by the content's own 3-part structure,
     not decoration for its own sake */
  --tier-1: #2d7f72;   /* verified record */
  /* Darkened from #bd6a3e -- the original was 3.97:1 against white,
     under the 4.5:1 AA threshold for this bold-uppercase 13px label. */
  --tier-2: #a85e37;   /* in their own words */
  --tier-3: #7d5a8c;   /* self-reported */

  --map-ocean: #d7e7e3;
  --map-land-1: #cbdebd;
  --map-land-2: #bcd4a7;
  --map-land-3: #d3e3c6;
  --map-land-4: #c2d9b2;
  --map-border: #93af7c;
  --pin-neutral: #3a352c;
  --pin-rep: #b23b3b;
  --pin-dem: #3b6fb0;
  --pin-lib: #fed105;
  --pin-other: #7d5a8c;

  --shadow-1: 0 1px 2px rgba(27,33,29,0.05);
  --shadow-2: 0 10px 28px rgba(27,33,29,0.10);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;

  --text-xs: 0.8125rem; --text-sm: 0.9rem; --text-base: 1.0625rem;
  --text-md: 1.2rem; --text-lg: 1.45rem; --text-xl: 2rem;
  /* The old floor (2.35rem) was ABOVE what 4.6vw ever produces on a real
     phone (4.6vw is under 2.35rem for any viewport narrower than ~817px),
     so every phone rendered the same ~38px heading regardless of how
     narrow the screen actually was -- text wrapped tight against the
     side padding and felt cramped/zoomed-in rather than scaling down.
     A lower floor plus a steeper vw factor lets it genuinely shrink on
     narrow phones while still reaching the same 3.4rem cap on desktop. */
  --text-2xl: clamp(1.65rem, 8vw, 3.4rem);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-tint); color: var(--accent-hover); }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

/* Off-screen until focused (tab from page load) -- lets a keyboard/screen-
   reader user jump straight past the header nav to the real content
   instead of tabbing through every header link on every single page. */
.skip-link {
  position: absolute; top: -999px; left: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700; font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(var(--space-6), 4vw, var(--space-10)); }
/* The map page is a full-bleed app layout (the map itself spans the whole
   viewport, same as .map-topbar below), not a centered marketing page --
   using .wrap's max-width:1200px there left the header's "Disclosr"
   logo sitting far to the right of .map-topbar's "Map" heading on any
   screen wider than 1200px, since .wrap centers itself but .map-topbar
   doesn't. Same side padding, no centering, so both line up flush.
   Longhand left/right only, as a compound selector: .band-inner's own
   padding shorthand (below) sets all four sides, and a later same-
   specificity shorthand rule would silently win and zero these back out;
   pairing both classes here beats that on specificity instead of hoping
   source order saves it, and leaves top/bottom padding alone entirely. */
header.site .wrap-full.band-inner { padding-left: clamp(var(--space-6), 4vw, var(--space-10)); padding-right: clamp(var(--space-6), 4vw, var(--space-10)); }
/* Reserve room on the right so the fixed scroll-top button (44px + inset)
   never sits on top of body text on narrow viewports, where .wrap has no
   side gutter of its own to float in. */
@media (max-width: 640px) {
  .prose, .coming-soon { padding-right: 68px; }
}
.band { width: 100%; }
.band + .band { border-top: 1px solid var(--line); }
.band-inner { padding: var(--space-16) 0; }

/* ================= Header ================= */
header.site { border-bottom: 1px solid var(--line); }
header.site .band-inner { padding: var(--space-6) 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.logo {
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  font-weight: 700; font-size: var(--text-md); letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink); line-height: 1;
}
nav.top-links { display: flex; gap: var(--space-8); font-size: var(--text-sm); }
nav.top-links a {
  text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid transparent;
  /* Real vertical padding, not just a 2px underline gap -- the old rule
     rendered a ~26px-tall tap target, well under the ~44px thumb-target
     guideline (this is the shared header on every page). */
  padding: var(--space-2) 0; transition: color 150ms ease, border-color 150ms ease;
}
nav.top-links a:hover { color: var(--ink); border-color: var(--accent); }
nav.top-links a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* Hidden on desktop; the header has no mobile fallback below this without
   it -- nav.top-links just ran off the right edge of the row on any
   screen too narrow to fit the logo + all 3 links on one line. */
.menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); cursor: pointer; flex-shrink: 0;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle:hover { background: var(--band-alt); }
.menu-toggle:active { background: var(--line-strong); }

@media (max-width: 640px) {
  .menu-toggle { display: inline-flex; }
  nav.top-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1); padding: var(--space-2) clamp(var(--space-6), 4vw, var(--space-10)) var(--space-4);
  }
  nav.top-links.is-open { display: flex; }
  nav.top-links a { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  nav.top-links a:last-child { border-bottom: none; }
  .header-row { position: relative; }
}

/* ================= Hero (landing page only) ================= */
.hero.band-inner {
  padding: var(--space-20) 0 var(--space-16);
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--space-16); align-items: center;
}
@media (max-width: 900px) {
  .hero.band-inner { grid-template-columns: 1fr; padding: var(--space-12) 0 var(--space-10); gap: var(--space-10); }
}
.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 var(--space-4);
}
h1 {
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif; font-weight: 700;
  font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -0.015em;
  margin: 0 0 var(--space-5); text-wrap: balance; color: var(--ink);
}
.hero-sub { font-size: var(--text-md); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; margin: 0 0 var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 600px) {
  /* At this width the 3 hero buttons wrap to "two, then one". Centering
     the whole row (not just relying on auto-margins on the wrapped lone
     item, which depends on subtler multi-line flex behavior) centers
     each wrapped line as a group -- the pair on line 1 stays a centered
     pair, and the lone third button centers under them on line 2. */
  .hero-actions { justify-content: center; }
}
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

.account-message {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  font-size: var(--text-sm); margin-bottom: var(--space-4);
}
.account-message.is-success { background: var(--accent-tint); color: var(--accent-hover); }
.account-message.is-error { background: #fbe9e7; color: var(--tier-2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: inherit; border-color: var(--line-strong); }

/* ================= Simple sub-page hero (centered, per layout feedback) ================= */
.page-hero.band-inner { padding: var(--space-16) 0 var(--space-12); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.page-hero .hero-sub { margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* ================= Map card ================= */
.map-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-2);
}
.map-card svg { display: block; width: 100%; height: auto; border-radius: var(--radius-md); background: var(--map-ocean); }
.map-caption {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  padding: var(--space-3) var(--space-2) var(--space-1); font-size: var(--text-xs); color: var(--muted);
}
.legend { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.neutral { background: var(--pin-neutral); }
.dot.rep { background: var(--pin-rep); }
.dot.dem { background: var(--pin-dem); }
.dot.lib { background: var(--pin-lib); }
.dot.other { background: var(--pin-other); }

/* ================= Section heads ================= */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6);
  margin-bottom: var(--space-10); flex-wrap: wrap;
}
.section-head h2 {
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif; font-size: var(--text-xl);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 0;
}
.section-head p { color: var(--muted); font-size: var(--text-sm); margin: 0; max-width: 40ch; }

/* ================= Tiers ================= */
.tier-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .tier-list { grid-template-columns: 1fr; }
  .tier-list .tier { border-right: none !important; padding-left: 0 !important; }
}
.tier { padding: var(--space-8) var(--space-8) var(--space-8) 0; border-bottom: 1px solid var(--line); border-top: 3px solid var(--tier-color); }
.tier-list .tier:not(:first-child) { padding-left: var(--space-8); }
.tier-list .tier:not(:last-child) { border-right: 1px solid var(--line); }
.tier-tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tier-color); margin: var(--space-5) 0 var(--space-3); }
.tier h3 { font-family: "Bricolage Grotesque", "Public Sans", sans-serif; font-size: var(--text-lg); font-weight: 700; line-height: 1.25; margin: 0 0 var(--space-2); letter-spacing: -0.005em; }
.tier p { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; max-width: 34ch; }

/* ================= Categories ================= */
.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
@media (max-width: 720px) { .cat-row { grid-template-columns: repeat(2, 1fr); } }
.cat {
  display: flex; align-items: center; gap: var(--space-3); text-decoration: none;
  padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.cat:hover, .cat:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.cat:active { transform: translateY(0) scale(0.98); }
.cat:hover .badge, .cat:focus-visible .badge { background: var(--accent); transform: scale(1.1); }
.cat .badge {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--pin-neutral);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background-color 150ms ease, transform 150ms ease;
}
.cat .badge svg { width: 22px; height: 22px; display: block; }
.cat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-name { font-size: var(--text-sm); font-weight: 600; color: var(--ink); white-space: nowrap; }
.cat-note { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= Stance note ================= */
.stance-note { display: flex; align-items: flex-start; gap: var(--space-4); background: var(--band-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.stance-note .swatches { display: flex; gap: var(--space-2); flex-shrink: 0; margin-top: 3px; }
.stance-note .swatch { width: 14px; height: 14px; border-radius: 50%; }
.stance-note p { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--ink-soft); max-width: 64ch; }
.stance-note p:last-child { margin-bottom: 0; }
.stance-note strong { color: var(--ink); }

/* ================= Prose (About / Methodology / Privacy / Terms / Contact) ================= */
/* Centered as a block (per layout feedback) -- text itself stays left-aligned
   inside, since centered long-form paragraphs are hard to read. */
.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 {
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif; font-weight: 700;
  font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.01em;
  margin: var(--space-12) 0 var(--space-4);
}
.prose h2:first-child { margin-top: 0; }
.prose .tier-tag { margin: var(--space-12) 0 0; }
.prose .tier-tag:first-child { margin-top: 0; }
.prose .tier-tag + h2 { margin-top: var(--space-2); }
.prose h3 {
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif; font-weight: 700;
  font-size: var(--text-lg); line-height: 1.3; margin: var(--space-8) 0 var(--space-3);
}
.prose p { margin: 0 0 var(--space-5); color: var(--ink-soft); }
.prose p.lead { font-size: var(--text-md); color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 var(--space-5); padding-left: 1.25em; color: var(--ink-soft); }
.prose li { margin-bottom: var(--space-2); }
.prose strong { color: var(--ink); }
/* :not(.btn) -- otherwise this (higher-specificity: class+element) silently
   overrides .btn-primary's white text with this same accent color as its
   background, making the button's own text invisible until hover. */
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--accent-hover); }

.callout {
  background: var(--band-alt); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-6); margin: 0 0 var(--space-8);
}
.callout p:last-child { margin-bottom: 0; }
.callout.callout-accent { border-left: 3px solid var(--accent); }

.status-note {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--accent-tint); color: var(--accent-hover);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em;
  padding: var(--space-2) var(--space-4); border-radius: 999px; margin-bottom: var(--space-8);
}

/* ================= Verification ladder list (Add your business) ================= */
.ladder { border-top: 1px solid var(--line); margin: 0 0 var(--space-8); }
.ladder-item { padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.ladder-tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--space-2); }
.ladder-item h3 { margin: 0 0 var(--space-2) !important; }
.ladder-item p { margin: 0; }

/* ================= Map app (full interactive map page) ================= */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
body.map-body { overflow: hidden; }
/* .map-app used to be a direct child of the flex body above (header,
   .map-app) and relied on that to get its flex:1 height. Adding a real
   <main> landmark around the page content put it between them --
   without main also joining the flex chain, it just sizes to its
   content (the topbar's height) and the map itself collapses to 0. */
body.map-body #main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.map-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.map-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) clamp(var(--space-6), 4vw, var(--space-10));
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.map-topbar h1 { font-size: var(--text-lg); margin: 0; flex-shrink: 0; }
.topbar-controls { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; justify-content: flex-end; }
/* Always visible -- this is the only way to reopen the panel once the inner
   "Hide panel" button collapses it, so it can never be hidden itself. */
.map-topbar .sidebar-toggle-btn { display: inline-flex; flex-shrink: 0; }

.quick-filters {
  display: flex; align-items: center; gap: var(--space-1); background: var(--band-alt);
  padding: var(--space-1); border-radius: 999px; border: 1px solid var(--line);
}
.quick-filter-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  /* 0.4 measured at 2.41:1 against --band-alt -- under the 3:1 WCAG
     non-text-contrast minimum for UI icons, and this is the default
     (inactive) state of every quick-filter button on page load. */
  opacity: 0.55;
  transition: opacity 150ms ease, background-color 150ms ease;
}
.quick-filter-btn svg { width: 16px; height: 16px; fill: var(--ink); }
.quick-filter-btn:hover { opacity: 0.85; }
.quick-filter-btn:active { opacity: 1; transform: scale(0.92); }
.quick-filter-btn.is-active { opacity: 1; background: var(--pin-neutral); }
.quick-filter-btn.is-active svg { fill: #fff; }
#quickStanceBtn svg circle { fill: var(--ink); }
#quickStanceBtn.is-active { background: var(--accent); }
#quickStanceBtn.is-active svg circle:first-child { fill: var(--pin-rep); }
#quickStanceBtn.is-active svg circle:last-child { fill: var(--pin-dem); }
.quick-filters-divider { width: 1px; height: 20px; background: var(--line-strong); margin: 0 var(--space-1); }
@media (max-width: 760px) { .quick-filters { display: none; } }

.map-stage { flex: 1; display: flex; min-height: 0; position: relative; }
.map-main {
  flex: 1; position: relative; overflow: hidden; background: var(--map-ocean); cursor: grab;
}
.map-main:active { cursor: grabbing; }
#leafletMap { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* Leaflet's own container background (leaflet.css default: solid grey)
   sits on top of .map-main's background and would otherwise be what
   shows through the clipped-away area outside the US shape -- this is
   a plain color, not a shape, so it's not a second boundary that has
   to line up with the first one. */
#leafletMap.leaflet-container { background: var(--map-ocean); }

/* Leaflet's own attribution control, restyled to match the site instead of
   its stock dark box. */
.leaflet-control-attribution {
  background: rgba(255,255,255,0.85) !important; font-family: "Public Sans", sans-serif !important;
  font-size: 10px !important; color: var(--muted) !important;
}
.leaflet-control-attribution a { color: var(--ink-soft) !important; }

/* Business pins are drawn via Leaflet's own L.Canvas renderer (see
   IconMarker in assets/map.js) -- a shared canvas Leaflet itself creates,
   sizes, and z-indexes correctly as part of its normal layer system, so
   there's no separate pin-layer CSS needed here. */

.map-zoom-controls {
  position: absolute; top: var(--space-4); left: var(--space-4); z-index: 10;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-1);
}
.map-zoom-controls button {
  width: 36px; height: 36px; border: none; background: var(--surface); color: var(--ink);
  font-size: 1.1rem; cursor: pointer; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.map-zoom-controls button:last-child { border-bottom: none; font-size: 0.7rem; font-weight: 700; }
.map-zoom-controls button:hover { background: var(--band-alt); }
.map-zoom-controls button:active { background: var(--line-strong); }

.map-sidebar {
  width: clamp(260px, 26vw, 360px); flex-shrink: 0; border-left: 1px solid var(--line);
  background: var(--surface); overflow: hidden; transition: width 220ms ease, border-color 220ms ease;
}
.map-sidebar.is-collapsed { width: 0; border-color: transparent; }
.sidebar-inner { width: clamp(260px, 26vw, 360px); height: 100%; overflow-y: auto; padding: var(--space-6); }
@media (max-width: 860px) {
  .map-sidebar { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px); box-shadow: var(--shadow-2); z-index: 20; }
  .map-sidebar.is-collapsed { width: 0; }
  .sidebar-inner { width: min(86vw, 360px); }
}

.sidebar-section { margin-bottom: var(--space-6); }
.sidebar-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--space-3); display: block;
}
.sidebar-label .muted { text-transform: none; font-weight: 400; letter-spacing: normal; }
.search-input {
  width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-family: inherit; color: var(--ink);
  background: var(--bg);
}
.search-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.search-field { position: relative; }
.location-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2); list-style: none; margin: 0; padding: var(--space-1); display: none;
  max-height: 240px; overflow-y: auto;
}
.location-suggestions.is-visible { display: block; }
.location-suggestion {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm);
  font-family: inherit; color: var(--ink);
}
.location-suggestion:hover, .location-suggestion:focus-visible { background: var(--bg); }
.filter-row {
  display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm);
  padding: var(--space-2) 0; cursor: pointer; color: var(--ink);
}
.filter-row input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.business-list { list-style: none; margin: 0; padding: 0; }
.business-item {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.business-item:last-child { border-bottom: none; }
.business-item .badge {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--pin-neutral);
  display: flex; align-items: center; justify-content: center;
}
.business-item .badge svg { width: 17px; height: 17px; display: block; }
.business-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.business-item-name { font-size: var(--text-sm); font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-item-type { font-size: var(--text-xs); color: var(--muted); }
.business-item.is-hidden { display: none; }
.business-item-more { color: var(--muted); font-size: var(--text-xs); font-style: italic; cursor: default; }
.business-empty { font-size: var(--text-sm); color: var(--muted); padding: var(--space-4) 0; display: none; }
.business-empty.is-visible { display: block; }
.business-empty a { color: var(--accent); }

/* ================= Business popup (Leaflet popup, restyled) =================
   Wide enough for a real profile -- name/address, an About paragraph, a row
   of real social links, and a stance section that always shows its own
   sourcing (self-stated vs. reported elsewhere with a link), since showing
   a stance with no way to check where it came from is exactly the kind of
   unverifiable claim this whole project exists to avoid. */
.leaflet-popup-content-wrapper { border-radius: var(--radius-md) !important; box-shadow: var(--shadow-2) !important; }
.leaflet-popup-content { margin: var(--space-4) !important; width: 320px !important; max-width: 78vw; }
.detail-name { font-family: "Bricolage Grotesque", "Public Sans", sans-serif; font-size: var(--text-md); margin: 0 0 var(--space-1); }
.detail-type { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--space-3); }
.detail-address { font-size: var(--text-xs); color: var(--muted); margin: 0 0 var(--space-3); }
.detail-desc { font-size: var(--text-sm); color: var(--ink-soft); margin: 0 0 var(--space-4); }

.detail-section-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: var(--space-4) 0 var(--space-2);
}
.detail-section-label:first-child { margin-top: 0; }

.detail-social { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.detail-social a {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill, 999px);
  padding: 5px var(--space-3); text-decoration: none;
}
.detail-social a:hover { border-color: var(--accent); color: var(--accent); }
.detail-social svg { width: 13px; height: 13px; flex-shrink: 0; }

.detail-links { display: flex; flex-direction: column; gap: var(--space-2); }
.detail-link { font-size: var(--text-sm); color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.detail-link:hover { color: var(--accent-hover); }

.stance-block { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-3); }
.stance-badge { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--text-sm); }
.stance-badge .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.stance-source { font-size: var(--text-xs); color: var(--muted); margin: var(--space-2) 0 0; line-height: 1.5; }
.stance-source strong { color: var(--ink-soft); font-weight: 700; }
.stance-source a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.stance-none { font-size: var(--text-xs); color: var(--muted); font-style: italic; }

/* ================= States grid (Browse by state) ================= */
.state-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .state-grid { grid-template-columns: repeat(2, 1fr); } }
.state-cat {
  display: block; text-align: center; text-decoration: none; font-size: var(--text-sm); font-weight: 600; color: var(--ink);
  padding: var(--space-4) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface); transition: border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease, color 150ms ease;
}
.state-cat:hover, .state-cat:focus-visible { border-color: var(--accent); color: var(--accent-hover); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.state-cat:active { transform: translateY(0) scale(0.98); }

/* ================= Search page ================= */
.search-page-form {
  display: flex; align-items: stretch; gap: var(--space-3); max-width: 720px; margin: 0 auto var(--space-6);
}
.search-page-input {
  flex: 1; padding: var(--space-5) var(--space-6); border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); font-size: var(--text-lg); font-family: inherit; color: var(--ink);
  background: var(--surface); min-width: 0;
}
.search-page-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-page-submit {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 64px; aspect-ratio: 1 / 1; padding: 0; border-radius: var(--radius-md);
}
.search-page-submit svg { width: 26px; height: 26px; }
.search-page-note { text-align: center; color: var(--muted); font-size: var(--text-sm); max-width: 52ch; margin: 0 auto; }
.search-page-note a { color: var(--accent); }
@media (max-width: 560px) {
  .search-page-form { max-width: 420px; }
  .search-page-input { font-size: var(--text-md); }
}

/* ================= Account & business forms ================= */
.auth-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8);
  max-width: 760px; margin: 0 auto; align-items: start;
}
.auth-col {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); padding: var(--space-6);
}
.auth-col h2 { margin-top: 0; }
.auth-col .hero-sub { margin-top: var(--space-4); margin-bottom: 0; }
@media (max-width: 720px) {
  .auth-columns { grid-template-columns: 1fr; gap: var(--space-6); max-width: 420px; }
}

.stacked-form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.form-field label { font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="password"],
.form-field input[type="tel"], .form-field input[type="url"], .form-field input[type="number"],
.form-field select, .form-field textarea {
  padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); font-size: var(--text-base); font-family: inherit;
  color: var(--ink); background: var(--surface); width: 100%;
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 4.5em; }
.checkbox-list, .radio-list {
  display: flex; flex-direction: column; gap: var(--space-2); margin: 0; width: 100%;
}
.checkbox-list label, .radio-list label {
  display: flex; align-items: center; gap: var(--space-2); font-weight: 500; color: var(--ink);
}
.form-group { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.form-group > p.form-group-label { margin: 0; font-weight: 600; font-size: var(--text-sm); color: var(--ink); }

/* ================= Coming-soon pages ================= */
.coming-soon {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8); text-align: center;
}
.coming-soon .status-note { margin-bottom: var(--space-5); }
.coming-soon p { max-width: 52ch; margin: 0 auto var(--space-6); color: var(--ink-soft); }

/* ================= Footer ================= */
footer.site .band-inner {
  padding: var(--space-8) 0 var(--space-12); display: flex; justify-content: space-between;
  align-items: center; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--muted);
}
footer.site nav { display: flex; gap: var(--space-6); }
footer.site a { text-decoration: none; color: var(--muted); transition: color 150ms ease; }
footer.site a:hover { color: var(--ink); }

/* ================= Scroll-to-top ================= */
.scroll-top {
  position: fixed; right: var(--space-6); bottom: var(--space-6);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background-color 150ms ease;
  z-index: 40;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-hover); }
.scroll-top svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .scroll-top { transition: opacity 200ms ease; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
