:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --header-bg: #d65f22;
  --header-rule: #ffffff;

  /* Type */
  --ink: #151515;
  --ink-secondary: #2b2b2b;
  --ink-muted: #6a6a6a;

  /* Borders */
  --border: #e8e2dc;
  --border-strong: #b7afa3;

  /* Brand */
  --brand: #d65f22;
  --brand-hover: #b74714;
  --brand-light: #f4b28f;
  --brand-soft: #fff5ef;
  --accent: #d65f22;
  --accent-light: #fff1e8;

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.14);

  /* Geometry */
  --radius: 0;
  --radius-lg: 0;
  --max-w: 1180px;
  --header-h: clamp(124px, 12vw, 242px);
  --hero-image-aspect: 1500 / 923;
}

@font-face {
  font-family: "WPCNA Impact";
  src: url("../fonts/impact-subset.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "WPCNA Franklin Heavy";
  src: url("../fonts/franklin-gothic-heavy-subset.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.has-modal-open {
  overflow: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, ul, dl { margin: 0 0 1rem; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: "Inter Tight", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h1 { font-size: clamp(2.35rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.38rem); }

.page-hero:not(.contact-page-hero) h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.3rem);
}

.section-header h2 {
  font-size: clamp(1.95rem, 3.65vw, 3.05rem);
}

.wrap {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
}

.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;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 1rem; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.22);
}

.header-inner {
  width: 100%;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0;
}

.site-brand {
  text-decoration: none;
  color: #fff;
}

.site-brand:hover,
.site-brand:focus {
  color: #fff;
  text-decoration: none;
}

.site-brand-stack {
  flex: 0 0 21.6875vw;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 1.75vw, 2.25rem);
  border-right: clamp(6px, 0.5625vw, 12px) solid var(--header-rule);
}

.brand-lockup {
  display: grid;
  gap: 0.02rem;
  color: #fff;
  font-family: "WPCNA Impact", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 24pt;
  font-weight: 400;
  text-transform: none;
  line-height: 1.2;
  letter-spacing: 0;
}

.nav-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.95rem 1rem;
  color: #fff;
  /* Use Arial Black first (matches the hero): the WPCNA Franklin Heavy subset
     has a malformed, over-tall "J" glyph that renders clipped in "Join the CNA". */
  font-family: "Arial Black", "Franklin Gothic Heavy", "Franklin Gothic Demi", sans-serif;
  font-size: 14pt;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.site-nav a:hover {
  background: transparent !important;
  color: #fff;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: transparent !important;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
}

.site-nav.is-open {
  display: block;
}

.site-nav::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 1.15rem;
  width: 18px;
  height: 18px;
  background: var(--surface);
  border-left: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  transform: rotate(45deg);
}

.site-nav li:last-child a {
  border-bottom: 0;
}

.nav-toggle {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.9);
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #fff;
}

.nav-toggle:hover,
.nav-toggle.is-open {
  background: #fff;
  border-color: #fff;
  color: var(--brand);
}

.nav-toggle-lines {
  display: grid;
  gap: 0.34rem;
}

.nav-toggle-lines span {
  display: block;
  width: 1.7rem;
  height: 3px;
  background: currentColor;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.nav-toggle.is-open .nav-toggle-lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-toggle {
  display: inline-flex;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--ink);
  text-decoration: none;
}

.btn-block { width: 100%; }

.link-arrow {
  color: var(--brand);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.link-arrow:hover { text-decoration: underline; }

/* ─── Tag / Badge ─── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand);
}

.tag-muted {
  background: var(--bg-alt);
  color: var(--ink-secondary);
}

.eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Section ─── */
.section {
  padding: clamp(4rem, 7.5vw, 7rem) 0;
}

.section-alt {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.6rem);
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.section-header p {
  max-width: 40rem;
  color: var(--ink-secondary);
}

.section-compact { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }

.section-rule {
  border-top: 1px solid var(--border);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 5.75rem 0 4.5rem;
  background:
    linear-gradient(90deg, rgba(14, 25, 40, 0.82) 0%, rgba(14, 25, 40, 0.7) 38%, rgba(14, 25, 40, 0.38) 62%, rgba(14, 25, 40, 0.2) 100%);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
  max-width: 13ch;
}

.hero .eyebrow {
  color: rgba(255,255,255,0.7);
}

.hero p:not(.eyebrow) {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 36rem;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 1rem !important;
  color: rgba(255,255,255,0.72) !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-actions-centered {
  justify-content: center;
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.hero .btn-primary:hover {
  background: var(--brand-hover);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

.hero-stats strong {
  font-size: 1.1rem;
  color: #fff;
}

.hero-home .wrap {
  position: relative;
}

.image-hero {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--hero-image-aspect);
  height: auto;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg);
}

.image-hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-hero-label {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.15rem);
  bottom: clamp(1.9rem, 5.4vw, 4.1rem);
  z-index: 2;
  width: fit-content;
  max-width: calc(50% - clamp(1.5rem, 4vw, 3.15rem));
  margin: 0;
  padding: clamp(0.5rem, 0.8vw, 0.7rem) clamp(0.65rem, 1vw, 0.9rem);
  box-sizing: border-box;
  background: var(--brand);
  color: #fff;
  font-family: "Arial Black", "WPCNA Franklin Heavy", "Franklin Gothic Heavy", "Franklin Gothic Demi", sans-serif;
  font-size: clamp(21pt, 1.75vw, 24pt);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.image-hero-label span {
  display: block;
}

@media (min-width: 1200px) {
  .image-hero-neighborhoods .image-hero-label,
  .image-hero-events .image-hero-label,
  .image-hero-posting .image-hero-label,
  .image-hero-agendas .image-hero-label,
  .image-hero-handbook .image-hero-label,
  .image-hero-about .image-hero-label {
    padding: clamp(0.85rem, 1.36vw, 1.19rem) clamp(1.1rem, 1.7vw, 1.53rem);
    font-size: clamp(35.7pt, 2.98vw, 40.8pt);
  }
}

.image-hero-home .image-hero-label {
  --home-hero-label-right: 3.4375vw;
  right: calc(var(--home-hero-label-right) + 1.25rem);
  bottom: 6.375vw;
  width: max-content;
  min-height: 0;
  max-width: min(37vw, calc(100% - var(--home-hero-label-right) - 3.25rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.48rem, 0.82vw, 0.9rem) clamp(0.6rem, 0.9vw, 0.95rem);
  font-family: "WPCNA Franklin Heavy", "Franklin Gothic Heavy", "Franklin Gothic Demi", "Arial Black", sans-serif;
  font-size: clamp(20pt, 1.55vw, 30pt);
  line-height: 1.1;
  text-align: center;
}

.image-hero-home .home-label-desktop-lines {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.image-hero-home .home-label-desktop-lines span {
  white-space: nowrap;
}

.image-hero-home .home-label-mobile-copy {
  display: none;
}

.image-hero-home img {
  object-position: center center;
  filter: brightness(1.08) contrast(0.92) saturate(0.9);
}

.image-hero-events img {
  object-position: center center;
}

.image-hero-agendas img {
  object-position: center center;
}

.image-hero-posting img {
  object-position: center 44%;
}

.image-hero-handbook img {
  object-position: 20% 45%;
}

.image-hero-about img {
  object-position: center 45%;
}

.image-hero-neighborhoods {
  min-height: 0;
}

.image-hero-home {
  min-height: 0;
}

.image-hero-neighborhoods img {
  object-position: center 38%;
}

.neighborhood-detail-hero {
  position: relative;
  aspect-ratio: var(--hero-image-aspect);
  min-height: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
}

.neighborhood-detail-hero-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.neighborhood-detail-hero-placeholder-media {
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.neighborhood-hero-creditbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem max(1rem, calc((100vw - var(--max-w)) / 2));
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.neighborhood-profile-section {
  padding-top: clamp(2.25rem, 5vw, 4rem);
}

.neighborhood-profile-copy {
  max-width: 48rem;
  margin-top: 1.5rem;
}

.neighborhood-profile-copy > p {
  color: var(--ink-secondary);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.image-hero-placeholder {
  min-height: clamp(18rem, 42vw, 30rem);
  background:
    linear-gradient(135deg, rgba(180, 77, 27, 0.88), rgba(180, 77, 27, 0.88)) right bottom / 36% 52% no-repeat,
    linear-gradient(90deg, #111 0 10%, transparent 10% 15%, #111 15% 16%, transparent 16%),
    linear-gradient(180deg, #f5f5f5 0%, #fff 100%);
}

.home-gallery-section {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.home-gallery-header {
  margin-bottom: 1.25rem;
}

.home-photo-carousel {
  width: 100%;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.home-photo-stage {
  position: relative;
  min-height: clamp(24rem, 48vw, 42rem);
  overflow: hidden;
  background: var(--ink);
}

.home-photo-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  filter: saturate(0.96);
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.home-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-photo-credit {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: min(34rem, calc(100% - 1.5rem));
  padding: 0.25rem 0.4rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-secondary);
  font-size: 0.62rem;
  line-height: 1.35;
  opacity: 0.72;
}

.home-photo-credit a,
.home-photo-credit span {
  color: inherit;
  text-decoration: none;
}

.home-photo-credit a:hover {
  text-decoration: underline;
  opacity: 1;
}

.home-photo-slide.is-active {
  opacity: 1;
  filter: none;
}

.home-photo-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.home-photo-status {
  min-width: 4.5rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
}

.represented-neighborhoods-section {
  padding-bottom: clamp(2rem, 3.5vw, 3.25rem);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.represented-neighborhoods-section + .section-rule {
  padding-top: clamp(2rem, 3.5vw, 3.25rem);
}

.represented-neighborhoods-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.represented-map-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.represented-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #fff;
}

.represented-map-frame img {
  width: 100%;
  height: auto;
}

.represented-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.represented-map-svg [data-map-region] {
  cursor: pointer;
}

.represented-map-svg [data-map-region]:focus {
  outline: none;
  box-shadow: none;
}

.represented-map-svg [data-map-region]:focus-visible {
  outline: none;
  box-shadow: none;
}

.represented-map-svg :is(path, polygon) {
  fill: transparent;
  stroke: #1c1c1c;
  stroke-width: 2.2;
  transition: fill 0.18s ease, stroke 0.18s ease, filter 0.18s ease;
}

.represented-map-svg [data-map-region]:hover,
.represented-map-svg [data-map-region]:focus,
.represented-map-svg [data-map-region].is-current,
.represented-map-svg [data-map-region].is-active {
  fill: rgba(180, 77, 27, 0.3);
  filter: drop-shadow(0 0 8px rgba(180, 77, 27, 0.28));
}

.represented-map-caption {
  margin-top: 0.55rem;
  color: var(--ink-secondary);
  font-size: 0.93rem;
}

.represented-neighborhoods-intro {
  margin-bottom: 1rem;
}

.represented-neighborhoods-intro h3 {
  max-width: 34rem;
  margin: 0;
  padding-left: 0.04em;
  color: var(--ink);
  font-family: "Inter Tight", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: clamp(1.18rem, 1.55vw, 1.45rem);
  font-weight: 740;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
  overflow: visible;
}

.represented-neighborhoods-intro h3 span {
  display: block;
}

.represented-neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.represented-neighborhood-card {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 5.5rem;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.represented-neighborhood-card:hover,
.represented-neighborhood-card:focus-visible,
.represented-neighborhood-card.is-current,
.represented-neighborhood-card.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.represented-neighborhood-card-thumb {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--brand-soft);
}

.represented-neighborhood-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.represented-placeholder-thumb,
.map-tile-placeholder,
.represented-modal-placeholder,
.page-hero-placeholder-figure,
.neighborhood-card-placeholder {
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.represented-placeholder-thumb span {
  padding: 0.4rem;
}

.represented-placeholder-thumb {
  background: #fbf3ee;
  color: rgba(180, 77, 27, 0.66);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.represented-placeholder-thumb span {
  opacity: 0.76;
}

.represented-neighborhood-card strong {
  display: block;
  padding-right: 0.85rem;
  font-size: 1rem;
  letter-spacing: 0.012em;
  line-height: 1.2;
}

.represented-neighborhood-card-link {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.represented-neighborhood-card-copy {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.represented-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(21, 21, 21, 0.62);
  backdrop-filter: blur(8px);
}

.represented-modal-shell {
  display: grid;
  align-content: start;
  gap: 1rem;
  width: min(100%, 960px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(21, 21, 21, 0.32);
}

.represented-modal-close {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.2rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.represented-modal-close:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.represented-modal-panel {
  display: none;
  margin: 0;
}

.represented-modal-panel.is-active {
  display: block;
}

.represented-modal-layout {
  display: grid;
  gap: 1.5rem;
}

.represented-modal-layout-media {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.represented-modal-figure {
  margin: 0;
  overflow: hidden;
  background: var(--brand-light);
}

.represented-modal-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.represented-modal-placeholder {
  aspect-ratio: 4 / 3;
}

.represented-modal-copy h2 {
  margin-bottom: 0.5rem;
}

.represented-modal-copy {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.represented-modal-copy p {
  color: var(--ink-secondary);
  margin: 0;
}

.represented-modal-copy p:last-child {
  margin-bottom: 0;
}

.represented-modal-links {
  display: grid;
  gap: 0.4rem;
}

.association-block {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--brand-soft);
}

.association-block-compact {
  margin-top: 0.35rem;
}

.association-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.association-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.012em;
}

.association-block h2 span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.association-block h3 span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.association-block ul {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.association-block li {
  color: var(--ink-secondary);
  line-height: 1.45;
}

.association-block a {
  display: block;
  width: fit-content;
  margin-top: 0.1rem;
  font-weight: 800;
}

.represented-modal-teaser {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.represented-modal-note {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.65rem;
  background: var(--accent-light);
  color: var(--brand) !important;
  font-size: 0.84rem;
  font-weight: 700;
}

.represented-modal-map {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.represented-modal-map .eyebrow {
  margin-bottom: 0;
}

.represented-modal-map-frame {
  position: relative;
  width: min(100%, 320px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 18, 32, 0.08);
}

.represented-modal-map-frame img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

.represented-modal-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.represented-modal-map-polygon {
  fill: rgba(180, 77, 27, 0.12);
  stroke: rgba(180, 77, 27, 1);
  stroke-width: 3.2px;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(180, 77, 27, 0.22));
}

.represented-modal-map-polygon-halo {
  fill: transparent;
  stroke: rgba(255,255,255,0.98);
  stroke-width: 7px;
  filter: none;
}

.represented-modal-map-caption {
  max-width: 320px;
  font-size: 0.9rem;
  color: var(--ink-muted) !important;
}

.represented-modal-map-unavailable {
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.represented-modal-map-unavailable p {
  color: var(--ink-muted);
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--ink-secondary); max-width: 40rem; }

.page-hero-resource {
  border-top: 5px solid var(--brand);
}

.page-hero-resource .wrap {
  display: grid;
  gap: 0.35rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.back-link:hover { color: var(--brand); }
.back-link::before { content: "\2190"; }

.page-hero-media {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.page-hero-media > div:first-child {
  max-width: 46rem;
}

.page-hero-figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--hero-image-aspect);
  box-shadow: var(--shadow-md);
}

.page-hero-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.page-hero-placeholder-figure {
  aspect-ratio: var(--hero-image-aspect);
  min-height: 0;
  box-shadow: none;
}

.page-hero-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.page-hero-neighborhood {
  padding-bottom: 0;
}

.neighborhood-hero-bleed {
  width: 100%;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  aspect-ratio: var(--hero-image-aspect);
  border-top: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  box-shadow: none;
}

.neighborhood-hero-bleed img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.neighborhood-hero-bleed .page-hero-credit {
  margin-top: 0;
  padding: 0.55rem max(1rem, calc((100vw - var(--max-w)) / 2));
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.neighborhood-hero-placeholder {
  aspect-ratio: var(--hero-image-aspect);
  min-height: 0;
  box-shadow: none;
}

/* ─── Card grid ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* ─── Event card ─── */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.event-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.event-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem;
}

.event-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.event-card-body h3 {
  margin-bottom: 0.25rem;
  line-height: 1.25;
  font-size: clamp(1.22rem, 1.95vw, 1.55rem);
}

.event-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.event-card-body h3 a:hover { text-decoration: underline; }

.events-upcoming-section {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.events-upcoming-section .section-header {
  padding-top: 0;
  border-top: 0;
}

.event-card-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 0.4rem;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}

.event-card-summary {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.event-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* ─── Resource card ─── */
.resource-card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
}

.resource-card h3 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.25rem, 2.05vw, 1.58rem);
}
.resource-card p { font-size: 0.9rem; color: var(--ink-secondary); }

/* ─── Neighborhood card ─── */
.neighborhood-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.neighborhood-card:hover {
  border-color: var(--brand);
}

.neighborhood-card {
  overflow: hidden;
}

.neighborhood-card a,
.neighborhood-card-static {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.neighborhood-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-light);
}

.neighborhood-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.neighborhood-card-placeholder {
  border-bottom: 1px solid var(--border);
}

.neighborhood-card:hover .neighborhood-card-img img {
  transform: scale(1.04);
}

.neighborhood-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.neighborhood-card-body-simple {
  flex: 0;
  padding: 1rem;
}

.neighborhood-card-body-simple h3 {
  margin-bottom: 0;
}

.neighborhood-card-group {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.neighborhood-card h3 {
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.9vw, 1.5rem);
  letter-spacing: 0.012em;
}

.neighborhood-card-teaser {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  flex: 1;
}

.neighborhood-card-cta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

.neighborhood-card-cta-muted {
  color: var(--ink-muted);
}

/* ─── Carousel ─── */
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.carousel-controls {
  display: flex;
  gap: 0.4rem;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-size: 0.85rem;
  transition: background 0.15s;
}

.carousel-btn:hover { background: var(--bg-alt); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track > * {
  scroll-snap-align: start;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
}

/* ─── Filter bar ─── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 160px;
}

.filter-bar label > span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.filter-bar input,
.filter-bar select {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.filter-bar .btn {
  align-self: flex-end;
}

/* ─── Detail layout ─── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.detail-main h2 { margin-top: 0.5rem; }

.detail-image {
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
}

.detail-image img {
  width: 100%;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.detail-organizer {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-main p {
  color: var(--ink-secondary);
  line-height: 1.7;
}

.detail-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.detail-links h3 { margin-bottom: 0.5rem; }

.detail-resource-links {
  margin-top: 1rem;
}

.detail-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-links li + li { margin-top: 0.4rem; }

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border: 1px solid var(--border);
  background: var(--surface);
}

.sidebar-card .eyebrow { margin-bottom: 1rem; }

.sidebar-card-spaced {
  margin-top: 1.5rem;
}

.resource-action-stack {
  margin-top: 0.9rem;
}

.resource-card-action {
  margin-top: 0.9rem;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 20%, transparent);
  outline-offset: 1px;
  border-color: var(--brand);
}

.form-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-status-success {
  background: #eaf7ed;
  color: #1a6b2a;
  border: 1px solid #b8e0c0;
}

.form-status-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #f5c6c6;
}

.char-hint {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}

.field-help {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-section {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--brand-soft) 28%, var(--surface));
}

.form-section legend {
  padding: 0 0.42rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid-span {
  grid-column: 1 / -1;
}

.choice-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.choice-grid-inline {
  grid-template-columns: repeat(2, minmax(5.5rem, 1fr));
  max-width: 16rem;
}

.choice-grid label,
.checkbox-grid label,
.form-confirmation label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.64);
  color: var(--ink-secondary);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.choice-grid input,
.checkbox-grid input,
.form-confirmation input {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.form-confirmation {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  background: var(--brand-soft);
}

.form-confirmation label {
  align-items: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.form-confirmation input {
  margin-top: 0.2rem;
}

.form-example {
  padding: 0.6rem 0.7rem;
  border-left: 3px solid color-mix(in srgb, var(--brand) 55%, var(--border));
  background: rgba(255,255,255,0.7);
}

.sidebar-card dl {
  margin: 0 0 1.5rem;
}

.sidebar-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.sidebar-card dt {
  color: var(--ink-muted);
  font-weight: 500;
}

.sidebar-card dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
  font-weight: 500;
}

.sidebar-secondary {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--brand-soft);
}

.sidebar-secondary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-secondary li + li { margin-top: 0.35rem; }

/* ─── About ─── */
.about-page-hero {
  background: var(--surface);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 3rem;
  align-items: center;
}

.about-hero-copy {
  max-width: 48rem;
}

.about-hero-copy p,
.about-section-header p,
.about-card p,
.about-site-help p,
.about-governance p,
.about-contact-copy p {
  color: var(--ink-secondary);
  line-height: 1.65;
}

.about-hero-copy .about-lead {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.55vw, 1.26rem);
  line-height: 1.55;
}

.about-page-section {
  padding-top: 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
}

.about-copy {
  max-width: 48rem;
}

.about-copy p,
.about-copy li {
  color: var(--ink-secondary);
  line-height: 1.68;
}

.about-copy h2:not(:first-child) {
  margin-top: 2.25rem;
}

.about-copy h2,
.about-section-header h2,
.about-mission h2,
.about-site-help h2,
.about-governance h2,
.posting-form-card h2,
.detail-main h2 {
  font-size: clamp(1.95rem, 3.2vw, 3.05rem);
}

.about-copy h3,
.about-card h3,
.sidebar-card h3,
.detail-main h3 {
  font-size: clamp(1.28rem, 2vw, 1.58rem);
}

.handbook-content {
  max-width: 52rem;
}

.about-story {
  display: grid;
  gap: 3.25rem;
}

.about-mission {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.about-mission h2 {
  margin-bottom: 0.85rem;
}

.about-mission blockquote {
  margin: 0;
}

.about-mission blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.65;
}

.about-attribution {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.about-story-block {
  min-width: 0;
}

.about-section-header {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.about-card-grid {
  display: grid;
  gap: 1.25rem;
}

.about-card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  background: var(--surface);
}

.about-card h3 {
  margin-bottom: 0.45rem;
}

.about-site-help {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  background: var(--surface);
}

.about-site-help-copy {
  max-width: 40rem;
}

.about-list-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.about-resource-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-resource-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.about-resource-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.46rem;
  height: 0.46rem;
  background: var(--accent);
}

.about-governance {
  max-width: 52rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

.about-contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  background: var(--brand-soft);
}

.about-contact-copy {
  max-width: 32rem;
}

.about-contact-card {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-contact-card .contact-form {
  margin-top: 0;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.plain-list li + li {
  margin-top: 0.5rem;
}

.posting-page {
  display: grid;
  gap: 2rem;
}

.posting-listing-section {
  padding-top: clamp(1rem, 2vw, 1.6rem);
}

.posting-listing-count {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(0.9rem, 1.8vw, 1.25rem);
}

.posting-listing-section .archive-count {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.posting-intro,
.posting-include {
  max-width: 52rem;
}

.posting-intro p,
.posting-include p,
.posting-form-card p {
  color: var(--ink-secondary);
  line-height: 1.65;
}

.posting-grid {
  margin-top: 0;
}

.posting-grid .plain-list {
  list-style: disc;
  padding-left: 1.15rem;
}

.posting-grid .plain-list li {
  color: var(--ink-secondary);
  line-height: 1.5;
}

.posting-form-card {
  max-width: 46rem;
}

.posting-form-card h2 {
  margin-bottom: 0.5rem;
}

.posting-form-card .form-note {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.form-honeypot {
  display: none;
}

.contact-page {
  max-width: 48rem;
}

.contact-page-hero {
  padding: clamp(2.25rem, 4vw, 3.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 0;
}

.contact-page-hero .wrap {
  text-align: center;
}

.contact-page-hero p {
  margin-left: auto;
  margin-right: auto;
}

.contact-page-section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.contact-page-form {
  margin-top: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  background: var(--surface);
}

.ask-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}

.ask-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.ask-intro {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ask-intro p,
.ask-helper,
.ask-meta,
.ask-answer p,
.ask-guidelines,
.ask-guidelines li {
  color: var(--ink-secondary);
}

.ask-form {
  display: grid;
  gap: 1rem;
}

.ask-form textarea {
  min-height: 10rem;
}

.ask-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ask-meta,
.ask-helper {
  font-size: 0.92rem;
}

.ask-status,
.ask-error,
.ask-config {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.ask-status {
  background: var(--brand-light);
  color: var(--ink);
}

.ask-error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.ask-config {
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  color: var(--ink-secondary);
}

.ask-results {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.ask-results-header {
  margin-bottom: 1rem;
}

.ask-answer {
  display: grid;
  gap: 0.85rem;
}

.ask-answer p:last-child {
  margin-bottom: 0;
}

.ask-sources {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.ask-sources h3 {
  margin-bottom: 0.75rem;
}

.ask-source-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ask-source-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.ask-source-list a {
  font-weight: 600;
}

.ask-source-list span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-transform: capitalize;
}

.ask-sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.starter-list {
  display: grid;
  gap: 0.75rem;
}

.starter-btn {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.starter-btn:hover {
  background: var(--bg-alt);
  border-color: var(--border-strong);
}

.starter-btn:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.carousel-btn:focus-visible,
.represented-neighborhood-card:focus-visible,
.represented-modal-close:focus-visible,
.archive-panel summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 70%, white);
  outline-offset: 2px;
}

.starter-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ask-guidelines {
  padding-left: 1.1rem;
  margin: 0;
}

.ask-guidelines li + li {
  margin-top: 0.55rem;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.neighborhood-map-figure {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.neighborhood-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.neighborhood-map-caption {
  text-align: center;
}

.neighborhood-map-spotlight {
  margin-top: 2.5rem;
}

/* ─── Spotlight / CTA block ─── */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.spotlight p { color: var(--ink-secondary); }

.spotlight-card {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ─── Interactive neighborhood map ─── */
.neighborhood-map-section {
  padding: clamp(1.45rem, 2.6vw, 2.1rem) 0 clamp(2.75rem, 4vw, 4.75rem);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.neighborhood-map-heading {
  max-width: 42rem;
  margin-bottom: clamp(1.25rem, 2.4vw, 1.9rem);
}

.neighborhood-map-heading .eyebrow {
  margin-bottom: 0.5rem;
}

.neighborhood-map-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Inter Tight", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.neighborhood-map-heading p:last-child {
  max-width: 34rem;
  margin: 0.5rem 0 0;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.45;
}

.interactive-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(1.35rem, 2.8vw, 2.25rem);
  align-items: start;
}

.interactive-map-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.interactive-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
}

.interactive-map-frame img {
  width: 100%;
  height: auto;
}

.interactive-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.interactive-map-svg a,
.interactive-map-svg [role="img"][tabindex] {
  cursor: pointer;
}

.interactive-map-svg a:focus,
.interactive-map-svg [role="img"][tabindex]:focus {
  outline: none;
  box-shadow: none;
}

.interactive-map-svg a:focus-visible,
.interactive-map-svg [role="img"][tabindex]:focus-visible {
  outline: none;
  box-shadow: none;
}

.interactive-map-svg :is(path, polygon) {
  fill: transparent;
  stroke: #1c1c1c;
  stroke-width: 2.2;
  transition: fill 0.18s ease, stroke 0.18s ease, filter 0.18s ease;
}

.interactive-map-svg a:hover :is(path, polygon),
.interactive-map-svg a:focus :is(path, polygon),
.interactive-map-svg a.is-active :is(path, polygon),
.interactive-map-svg [role="img"][tabindex]:hover :is(path, polygon),
.interactive-map-svg [role="img"][tabindex]:focus :is(path, polygon),
.interactive-map-svg [role="img"][tabindex].is-active :is(path, polygon) {
  fill: rgba(180, 77, 27, 0.28);
  filter: drop-shadow(0 0 6px rgba(180, 77, 27, 0.22));
}

.interactive-map-caption {
  margin-top: 0.9rem;
  color: var(--ink-secondary);
  font-size: 0.93rem;
}

.interactive-map-sidebar-intro {
  margin-bottom: 1.15rem;
}

.neighborhood-list-title {
  margin: 0;
  color: var(--ink);
  font-family: "Inter Tight", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
  overflow: visible;
}

.map-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.map-tile {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.map-tile:hover,
.map-tile:focus-visible,
.map-tile:focus-within,
.map-tile.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.map-tile a,
.map-tile-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.map-tile-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-light);
}

.map-tile-placeholder {
  background: #fbf3ee;
  color: rgba(180, 77, 27, 0.68);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.map-tile-placeholder span {
  padding: 0.5rem 0.65rem;
  opacity: 0.76;
}

.map-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-tile-body {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.12rem;
}

.map-tile-body-simple {
  gap: 0.28rem;
}

.map-tile-group {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.map-tile-body strong {
  font-size: 1.08rem;
  font-weight: 690;
  letter-spacing: 0.012em;
  line-height: 1.22;
}

.map-tile-link-label {
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  line-height: 1.1;
  text-transform: uppercase;
}

.map-tile-body .map-tile-status {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.neighborhood-guide-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.neighborhood-guide-cta .link-arrow {
  color: var(--brand);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* ─── Neighborhood directory ─── */
.neighborhood-directory-section {
  padding-top: clamp(3rem, 5vw, 4.75rem);
}

.neighborhood-directory-header {
  margin-bottom: clamp(1.4rem, 2.6vw, 2.1rem);
}

.neighborhood-directory-header p {
  max-width: 36rem;
}

.neighborhood-directory-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ─── Neighborhood group ─── */
.neighborhood-group + .neighborhood-group {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.neighborhood-group-intro {
  margin-bottom: 1.5rem;
}

.neighborhood-group-intro h2 { margin-bottom: 0.25rem; }
.neighborhood-group-intro p { color: var(--ink-secondary); max-width: 40rem; }

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* ─── Archive panel ─── */
.archive-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.archive-panel summary::-webkit-details-marker { display: none; }

.archive-panel summary span:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.archive-panel summary .eyebrow { margin-bottom: 0; }

.archive-count {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.archive-panel[open] summary {
  margin-bottom: 1.5rem;
}

.archive-intro {
  color: var(--ink-secondary);
  margin-bottom: 1.5rem;
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px solid var(--border);
  background: var(--brand-soft);
}

.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--ink-secondary); }

.empty-inline { padding: 2rem 1rem; }

.empty-state[hidden],
.empty-inline[hidden] {
  display: none !important;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
  border-top: 5px solid var(--brand);
}

.footer-inner {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}

.site-footer p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
}
.site-footer a:hover { color: #fff; }

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li { margin-top: 0.35rem; }
.site-footer li { font-size: 0.88rem; }

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .detail-grid,
  .about-grid,
  .about-hero-grid,
  .about-card-grid-three,
  .about-site-help,
  .about-contact-section,
  .ask-shell { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-media { grid-template-columns: 1fr; }
  .page-hero-figure img {
    height: 100%;
    min-height: 0;
  }
  .neighborhood-hero-bleed img {
    height: 100%;
    min-height: 0;
  }
  .neighborhood-hero-placeholder {
    min-height: 0;
  }
  .interactive-map-layout { grid-template-columns: 1fr; }
  .interactive-map-panel { position: static; }
  .represented-neighborhoods-layout { grid-template-columns: 1fr; }
  .represented-map-panel { position: static; }
  .represented-modal-layout-media { grid-template-columns: 1fr; }
  .form-grid-2,
  .form-grid-3,
  .choice-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid-inline {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    flex: 1 1 auto;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav .nav-list {
    display: flex;
    justify-content: space-evenly;
    gap: 0;
    align-items: center;
    height: var(--header-h);
    width: 100%;
  }

  .site-nav li {
    flex: 1 1 0;
    min-width: 0;
  }

  .site-nav::before {
    display: none;
  }

  .site-nav a {
    border-bottom: 0;
    display: flex;
    min-height: var(--header-h);
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
    color: #fff;
    font-size: 14pt;
    line-height: 1.08;
    text-align: center;
  }

  .site-nav a:hover {
    background: transparent !important;
    color: #fff;
  }

  .site-nav a[aria-current="page"] {
    background: transparent !important;
    color: #fff;
  }
}

@media (max-width: 1199px) {
  :root {
    --header-h: 120px;
    --mobile-nav-inset: clamp(1rem, 3vw, 1.75rem);
  }

  .header-inner {
    height: auto;
    min-height: var(--header-h);
    padding: 0.9rem var(--mobile-nav-inset) 0.9rem 0;
    gap: 1rem;
  }

  .site-brand-stack {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 4.5rem - var(--mobile-nav-inset));
    min-height: var(--header-h);
    border-right: 0;
  }

  .brand-lockup {
    font-size: clamp(1.55rem, 7.35vw, 24pt);
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    top: calc(100% - 1px);
    right: var(--mobile-nav-inset);
    left: auto;
    width: min(360px, calc(100vw - (var(--mobile-nav-inset) * 2)));
    padding: 0;
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
  }

  .site-nav.is-open { display: block; }

  .nav-list {
    display: grid;
    gap: 0;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-size: 17pt;
    letter-spacing: 0;
  }

  .site-nav a:hover {
    background: transparent !important;
    color: var(--ink);
  }

  .site-nav a[aria-current="page"] {
    background: transparent !important;
    color: var(--ink);
  }

  .image-hero {
    min-height: 0;
  }

  .image-hero-label {
    right: clamp(0.65rem, 2vw, 1rem);
    bottom: 0.85rem;
    max-width: min(58vw, 20rem);
    padding: 0.48rem 0.6rem;
    font-size: clamp(1.32rem, 5.2vw, 1.9rem);
    line-height: 1.06;
    overflow-wrap: normal;
    word-break: normal;
  }

  .image-hero-home .image-hero-label {
    right: clamp(0.75rem, 2.25vw, 1.1rem);
    left: auto;
    bottom: 1rem;
    width: min(68vw, 23rem);
    max-width: calc(100% - 2rem);
    min-height: 0;
    padding: 0.48rem 0.58rem;
    font-size: clamp(0.72rem, 2.75vw, 0.98rem);
    line-height: 1.16;
    transform: none;
  }

  .image-hero-handbook .image-hero-label {
    max-width: min(54vw, 15rem);
    padding-right: 0.46rem;
    text-wrap: auto;
  }

  .image-hero-home .image-hero-label span {
    white-space: normal;
  }

  .image-hero-home .home-label-desktop-lines {
    display: none;
  }

  .image-hero-home .home-label-mobile-copy {
    display: block;
  }

  .neighborhood-detail-hero {
    min-height: 0;
  }

  .map-tile-grid { grid-template-columns: 1fr 1fr; }
  .home-photo-stage { aspect-ratio: 4 / 3; }
  .home-photo-slide { inset: 0; }
  .represented-neighborhood-grid { grid-template-columns: 1fr; }
  .represented-modal-shell {
    width: min(100%, 720px);
    padding: 1rem;
  }

  .about-page-hero {
    padding: 2rem 0;
  }

  .about-story {
    gap: 2.25rem;
  }

  .about-mission,
  .about-site-help,
  .about-contact-section {
    padding: 1.25rem;
  }

  .about-governance {
    padding-left: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .card-grid { grid-template-columns: 1fr; }
  .neighborhood-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar label { min-width: 100%; }
  .map-tile-grid { grid-template-columns: 1fr; }
  .image-hero {
    min-height: 0;
  }

  .image-hero-label {
    right: 0.7rem;
    bottom: 0.72rem;
    max-width: min(56vw, 15.5rem);
    padding: 0.4rem 0.52rem;
    font-size: clamp(1.12rem, 5.15vw, 1.55rem);
    line-height: 1.06;
  }

  .image-hero-home .image-hero-label {
    right: 0.7rem;
    left: auto;
    bottom: 1rem;
    width: min(65vw, 20rem);
    max-width: calc(100% - 1.4rem);
    padding: 0.42rem 0.5rem;
    font-size: clamp(0.66rem, 2.65vw, 0.84rem);
    line-height: 1.16;
    transform: none;
  }

  .form-section {
    padding: 0.9rem;
  }

  .image-hero-handbook .image-hero-label {
    max-width: min(56vw, 14.5rem);
    padding-right: 0.42rem;
    text-wrap: auto;
  }

  .image-hero-home .home-label-desktop-lines {
    display: none;
  }

  .image-hero-home .home-label-mobile-copy {
    display: block;
  }

  .neighborhood-detail-hero {
    min-height: 0;
  }

  .home-photo-carousel { padding: 0; }
  .home-photo-slide { inset: 0; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .home-photo-toolbar {
    gap: 0.55rem;
    justify-content: space-between;
  }
  .represented-modal-backdrop { padding: 0.5rem; }
  .represented-modal-shell {
    max-height: calc(100vh - 1rem);
  }
}

.map-figure {
  position: relative;
  overflow: hidden;
}

.map-outline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-outline-path {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: fill 0.18s ease, stroke 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.map-outline-path.is-active {
  fill: rgba(180, 77, 27, 0.08);
  stroke: var(--brand);
  stroke-width: 4;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(180, 77, 27, 0.5));
  animation: map-outline-pulse 2s ease-in-out infinite;
}

@keyframes map-outline-pulse {
  0%, 100% {
    stroke-width: 4;
    filter: drop-shadow(0 0 4px rgba(180, 77, 27, 0.35));
  }
  50% {
    stroke-width: 6;
    filter: drop-shadow(0 0 8px rgba(180, 77, 27, 0.58));
  }
}

/* "View on map" link on neighborhood pages */
.detail-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--accent, #2a5fcf);
  text-decoration: none;
}
.detail-map-link:hover { text-decoration: underline; }
.detail-map-link::before {
  content: "📍";
  font-size: 1rem;
}

/* Mini-map with highlight on neighborhood detail pages */
.detail-minimap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
}
.detail-minimap h3 { margin-bottom: 0.75rem; }
.minimap-frame {
  position: relative;
  display: block;
  max-width: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 2px 14px rgba(12,18,32,0.06);
  background: #f2f4f8;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.minimap-frame:hover {
  box-shadow: 0 4px 22px rgba(12,18,32,0.12);
  transform: translateY(-1px);
}
.minimap-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.minimap-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 540px;
}

/* Mini-map SVG polygon overlay */
.minimap-frame { position: relative; }
.minimap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.minimap-polygon {
  fill: rgba(180, 77, 27, 0.08);
  stroke: var(--brand);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(180, 77, 27, 0.45));
}

/* Neighborhood directory — alphabetical name list (no images/links) */
.neighborhood-name-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.neighborhood-name-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}
