:root {
  color-scheme: light;
  --harbor: #12263F;
  --harbor-light: #1D3A5F;
  --white: #FFFFFF;
  --cream: #FFF8EE;
  --brick: #B5342C;
  --brick-link: #9F2E28;
  --sky-light: #9BD4F6;
  --gold: #F2B134;
  --sky: #4FA3D9;
  --ink: #1A2433;
  --muted: #5E6B7D;
  --light-muted: #CCD9ED;
  --line: #E4D8CC;
  --dark-line: #496584;
  --tint: #F4EAE1;
  --map-muted: #879CB7;
  --radius: 1.25rem;
  --shadow: 0 12px 30px rgb(16 38 55 / 7%);
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
}

main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; }

a {
  color: var(--brick-link);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  inset: 0 auto auto 1rem;
  padding: 0.65rem 1rem;
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  background: var(--harbor);
  border-bottom: 1px solid var(--dark-line);
}

.header-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.25rem;
  padding-block: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 0.95rem;
  aspect-ratio: 1;
  border: 2px solid var(--sky-light);
  border-radius: 50% 50% 50% 16%;
  background: radial-gradient(circle, var(--gold) 23%, transparent 28%);
  transform: rotate(-45deg);
}

.site-nav,
.neighborhood-menu ul,
.section-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.site-nav a,
.site-nav summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border-radius: 0.55rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav summary:hover,
.neighborhood-menu[open] summary {
  background: var(--harbor-light);
}

.neighborhood-menu { position: relative; }
.neighborhood-menu summary { gap: 0.45rem; cursor: pointer; list-style: none; }
.neighborhood-menu summary::-webkit-details-marker { display: none; }
.neighborhood-menu summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border: solid var(--sky-light);
  border-width: 0 2px 2px 0;
  transform: translateY(-0.12rem) rotate(45deg);
}

.neighborhood-menu ul {
  position: absolute;
  inset-inline-start: 0;
  min-width: max-content;
  margin-top: 0.25rem;
  padding: 0.4rem;
  border: 1px solid var(--dark-line);
  border-radius: 0.8rem;
  background: var(--harbor);
  box-shadow: var(--shadow);
}

.hero {
  padding-block: clamp(2.75rem, 8vw, 6.5rem);
  background: radial-gradient(ellipse at 90% 10%, var(--harbor-light), transparent 55%), var(--harbor);
  color: var(--white);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 7vw, 6.1rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero h1 span { color: var(--white); }

.hero p {
  max-width: 53ch;
  margin-top: 1.15rem;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--brick);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}

.hero-button:hover, .hero-button:focus-visible { background: var(--gold); color: var(--ink); }

.guide-hero { padding-bottom: clamp(3.5rem, 8vw, 6.75rem); }
.guide-hero h1 { max-width: none; }

.neighborhood-list { padding-block: clamp(2.25rem, 6vw, 4.75rem); }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.neighborhood-card,
.key-stat,
.data-section,
.section-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.neighborhood-card {
  display: block;
  min-width: 0;
  padding: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.neighborhood-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgb(16 38 55 / 12%);
}

a.neighborhood-card {
  border-color: var(--brick);
  background: linear-gradient(145deg, var(--tint), var(--white) 78%);
}

a.neighborhood-card:hover { border-color: var(--brick); }
a.neighborhood-card:hover h3 { text-decoration: underline; }

.neighborhood-card h3 {
  margin-top: 0.9rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.035em;
}

.neighborhood-card h3 + p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  background: #F9E8C8;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 750;
}

.live-status { background: var(--tint); color: var(--brick-link); }
.live-status::before {
  content: "";
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 50%;
  background: currentColor;
}

.key-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.85rem;
  margin-top: -1.75rem;
}

.key-stats[hidden] { display: none; }

.key-stat {
  min-width: 0;
  padding: 1rem 1.1rem;
  border-color: var(--dark-line);
  border-top: 3px solid var(--sky);
  background: var(--harbor-light);
  color: var(--white);
}

.stat-label { color: var(--white); font-weight: 650; }
.stat-value {
  margin-block: 0.15rem 0.45rem;
  color: var(--gold);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.stat-source,
.section-sources,
.figure-source {
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.key-stat .stat-source { color: var(--light-muted); }
.key-stat a { color: var(--sky-light); }

.guide-layout {
  display: grid;
  align-items: start;
  gap: 1rem;
  padding-block: 1.5rem clamp(2.25rem, 6vw, 4.75rem);
}

.section-nav {
  position: sticky;
  z-index: 3;
  top: 0.5rem;
  border-color: var(--dark-line);
  background: var(--harbor);
  color: var(--white);
  min-width: 0;
  padding: 0.65rem 0.75rem;
}

.section-nav h2 { margin: 0.2rem 0.25rem; font-size: 0.95rem; letter-spacing: 0; }

.section-nav ul {
  display: flex;
  overflow-x: auto;
  padding: 0.2rem;
}

.section-nav li { flex: 0 0 auto; }

.section-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  border-radius: 0.55rem;
  color: var(--sky-light);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible { background: var(--harbor-light); color: var(--gold); }

.guide-layout:has(#overview:target) .section-nav a[href="#overview"],
.guide-layout:has(#housing:target) .section-nav a[href="#housing"],
.guide-layout:has(#people:target) .section-nav a[href="#people"],
.guide-layout:has(#schools:target) .section-nav a[href="#schools"],
.guide-layout:has(#getting-around:target) .section-nav a[href="#getting-around"],
.guide-layout:has(#groceries-daily-life:target) .section-nav a[href="#groceries-daily-life"],
.guide-layout:has(#whats-changing:target) .section-nav a[href="#whats-changing"] {
  background: var(--harbor-light);
  box-shadow: inset 2px 0 var(--sky);
  color: var(--gold);
}
.section-nav a:focus-visible { outline-offset: -3px; }

.guide-sections {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.data-section {
  min-width: 0;
  padding: clamp(1.15rem, 4vw, 2.2rem);
  scroll-margin-top: 7rem;
}

.data-section:target { border-color: var(--brick); }

.data-section h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.data-section h2 svg {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0.52rem;
  border-radius: 0.8rem;
  background: #DDEFFB;
  color: var(--harbor-light);
}

.section-content > p { margin-top: 0.8rem; color: var(--muted); }
.data-list { margin-block: 0.85rem; }

.data-list > div {
  padding-block: 0.58rem;
  border-bottom: 1px solid var(--line);
}

.data-list dt { font-weight: 700; }
.data-list dd { margin-inline-start: 0; }
.data-list ul {
  margin-block: 0.25rem 0.5rem;
  padding-inline-start: 1.25rem;
}

.figure-source {
  display: inline-block;
  margin-inline-start: 0.25rem;
  color: var(--muted);
}

.section-sources {
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
}

.section-sources summary,
.section-disclosure summary {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--tint);
  color: var(--brick-link);
  cursor: pointer;
  font-weight: 700;
}

.section-sources[open] { width: 100%; }

.section-sources ul {
  display: grid;
  gap: 0.6rem;
  margin: 0.65rem 0 0;
  padding-inline-start: 1.2rem;
}

.section-sources li p { margin-top: 0.1rem; }

.section-content a,
.data-list dt,
.data-list dd,
.section-disclosure summary { overflow-wrap: anywhere; }

.daily-life-group {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.daily-life-group h3 { font-size: 1.2rem; }
.daily-life-group > p { margin-top: 0.45rem; }
.daily-life-group .data-list { margin: 0.4rem 0 0; }

.section-disclosure { margin-top: 0.65rem; }
.section-disclosure[open] summary { margin-bottom: 0.65rem; }
.section-disclosure > p { color: var(--muted); }

.about-content {
  margin-block: 2rem 3rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.about-content p { max-width: 65ch; }
.about-content p + p { margin-top: 1rem; }
.site-footer { padding-block: 1.2rem; background: var(--harbor); }
.site-footer a { color: var(--white); font-weight: 750; }

@media (min-width: 44rem) {
  .wrap { width: min(100% - 3rem, 72rem); }
  .key-stat { padding: 1.15rem 1.25rem; }
}

@media (min-width: 55rem) {
  .guide-layout { grid-template-columns: 13rem minmax(0, 1fr); gap: 1.4rem; }
  .section-nav { top: 1rem; padding: 0.9rem; }
  .section-nav ul { display: grid; overflow: visible; }
  .data-section { scroll-margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .neighborhood-card { transition: none; }
  .neighborhood-card:hover { transform: none; }
}

.map-hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.map-hero h1 { max-width: 20ch; }
.map-section { padding-top: clamp(2rem, 6vw, 3.5rem); }
.map-section > p { margin-top: 0.6rem; color: var(--muted); }

.home-map-panel,
.neighborhood-map-card {
  margin-top: 1rem;
  padding: clamp(0.8rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-map-panel {
  background: var(--harbor);
  border-color: var(--dark-line);
  color: var(--white);
}

.home-map-panel svg {
  display: block;
  width: 100%;
  height: clamp(19rem, 60vw, 36rem);
  border-radius: 0.8rem;
  background: var(--harbor);
}

.home-map-panel [hidden],
.neighborhood-map [hidden] { display: none; }

.map-area {
  fill: var(--map-muted);
  stroke: var(--harbor);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 140ms ease, opacity 450ms ease;
}

.map-area.map-live { fill: var(--brick); stroke: var(--white); }
.map-area:hover,
.map-area:focus,
.map-area.map-selected {
  fill: var(--gold);
  stroke: var(--harbor);
  stroke-width: 2.5;
  outline: none;
}
.map-area.map-live:hover,
.map-area.map-live:focus,
.map-area.map-live.map-selected { fill: var(--gold); stroke: var(--white); }
.map-opening .map-area:not(.map-destination) { pointer-events: none; }

.map-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-height: 3.25rem;
  margin-top: 0.65rem;
  padding-inline: 0.65rem;
}

.map-selection { font-weight: 700; }
.map-explore,
.school-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--brick);
  border-radius: 0.65rem;
  background: var(--brick);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.map-source { color: var(--muted); font-size: 0.875rem; }
.directory-grid { list-style: none; padding: 0; }
.directory-grid > li { min-width: 0; }
.directory-grid > li > .neighborhood-card { height: 100%; }
.neighborhood-map { padding-top: 1.15rem; }
.neighborhood-map-card { margin-top: 0; }
.neighborhood-map-card > p { margin-top: 0.5rem; }

.school-map-canvas {
  isolation: isolate;
  height: clamp(16rem, 42vw, 23rem);
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--harbor);
}

.school-pin {
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brick-link);
  box-shadow: 0 0 0 1px var(--harbor);
}

.school-pin-public {
  background: #175da8;
}

.school-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.school-map-legend label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.school-map-legend .school-pin {
  width: 0.875rem;
  height: 0.875rem;
}

.private-schools {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 7rem;
}

.private-schools > p { margin-top: 0.55rem; color: var(--muted); }
.school-filters { display: grid; gap: 0.65rem; margin-block: 1rem; }
.school-filters label { display: grid; gap: 0.2rem; font-weight: 650; }
.school-filters input,
.school-filters select {
  min-width: 0;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--muted);
  border-radius: 0.55rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.private-school-results { list-style: none; margin: 0.6rem 0 1rem; padding: 0; }
.private-school-results li { padding-block: 0.65rem; border-bottom: 1px solid var(--line); }
.private-school-results h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.private-school-results li p { color: var(--muted); }
.private-school-results dl { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0.45rem 0 0; }
.private-school-results dt { font-size: 0.875rem; font-weight: 650; }
.private-school-results dd { margin: 0; }
.school-more[hidden] { display: none; }
.school-note { margin-top: 0.75rem; font-size: 0.875rem; }

@media (min-width: 44rem) {
  .school-filters { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 55rem) {
  .private-schools { scroll-margin-top: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation-duration: 180ms; }
  ::view-transition-new(root) { animation-duration: 230ms; }
  .map-leaving { opacity: 0; transition: opacity 120ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  .map-area { transition: none; }
}

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation-duration: 0s; }
}

.map-summary {
  flex: 1 0 100%;
  order: 1;
  max-width: 70ch;
  color: var(--light-muted);
}

.neighborhood-intro { margin-top: 1.15rem; }

.neighborhood-intro > div {
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--sky);
  border-radius: var(--radius);
  background: #FFF7E8;
}

.neighborhood-intro h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.neighborhood-intro p { max-width: 68ch; margin-top: 0.5rem; }
.neighborhood-intro section { margin-block-start: 1.15rem; }
.neighborhood-intro h3 { font-size: 1.05rem; }
.neighborhood-intro .section-sources { margin-block-start: 1rem; }



.about-content section { margin-top: 1.5rem; }
.about-content section h2 { margin-bottom: 0.35rem; font-size: 1.25rem; }
.footer-layout { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }


.site-header :focus-visible,
.site-footer :focus-visible,
.section-nav :focus-visible,
.home-map-panel :focus-visible,
.key-stat :focus-visible { outline-color: var(--gold); }

.hero-button:focus-visible { outline-color: var(--ink); }
.hero .hero-button:focus-visible { outline-color: var(--gold); }

.map-explore:hover,
.map-explore:focus-visible,
.school-more:hover,
.school-more:focus-visible,
.section-sources summary:hover,
.section-disclosure summary:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Map and guide artwork */
.hero h1,
.map-section h2,
.data-section h2,
.neighborhood-intro h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.map-section > h2,
.map-section > p {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.home-map-panel {
  position: relative;
  border-radius: 0;
  padding: clamp(0.75rem, 3vw, 2rem);
  background-color: var(--harbor);
}

.home-map-panel svg {
  height: clamp(24rem, 64vw, 45rem);
  background:
    linear-gradient(90deg, rgb(155 212 246 / 8%) 1px, transparent 1px),
    linear-gradient(rgb(155 212 246 / 8%) 1px, transparent 1px),
    radial-gradient(ellipse at 64% 40%, #315873, var(--harbor) 64%);
  background-size: 24px 24px, 24px 24px, auto;
  filter: drop-shadow(0 4px 8px rgb(0 0 0 / 22%));
}

.map-area,
.map-neighborhood {
  transform-box: fill-box;
  transform-origin: center;
}

.map-neighborhood { transition: filter 200ms ease, opacity 450ms ease; }
.map-area { transition: fill 160ms ease, transform 160ms ease; }
.map-area.map-live { filter: drop-shadow(0 0 2px var(--gold)); }
.map-area.map-live:hover,
.map-area.map-live:focus-visible { transform: translateY(-1px); }

.map-label {
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: var(--ink);
  font-size: 2.8px;
  font-weight: 750;
  font-variant: small-caps;
  letter-spacing: 0.075em;
  stroke: rgb(255 248 238 / 72%);
  stroke-width: 0.32px;
  paint-order: stroke;
}

.map-live + .map-label {
  fill: var(--white);
  stroke: var(--harbor);
  stroke-width: 0.5px;
}
.map-live:is(:hover, :focus, .map-selected, .map-destination) + .map-label {
  fill: var(--ink);
  stroke: var(--cream);
}
.map-live-dot { pointer-events: none; fill: var(--gold); stroke: var(--harbor); stroke-width: 0.5px; }

.home-map-panel .map-info {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--dark-line);
  border-radius: 0.85rem;
  background: var(--harbor-light);
  box-shadow: 0 12px 25px rgb(0 0 0 / 22%);
}

.map-info.map-info-live { border-inline-start: 3px solid var(--gold); }

.guide-hero { position: relative; isolation: isolate; overflow: hidden; }
.guide-hero > .wrap { position: relative; z-index: 1; }
.guide-backdrop { position: absolute; inset: 0; z-index: -1; }
.guide-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #0B1D3A 0%, rgb(11 29 58 / 91%) 28%, rgb(11 29 58 / 68%) 68%, rgb(11 29 58 / 30%));
}

.guide-illustration,
.guide-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-credit {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 0.45rem;
  margin: 0;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: var(--harbor);
  font-size: 0.8rem;
}

#overview {
  border-inline-start: 4px solid var(--brick);
  background: linear-gradient(125deg, var(--cream), var(--white));
}

#housing .data-list,
#people .data-list { font-variant-numeric: tabular-nums; }

#people .data-list > div:first-child {
  padding: 0.85rem;
  border: 0;
  border-inline-start: 3px solid var(--brick);
  background: var(--tint);
}

#people .data-list > div:first-child dd {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 750;
}

#getting-around { border-top: 3px solid var(--sky); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 53rem) {
  .home-map-panel .map-info {
    position: absolute;
    z-index: 1;
    inset-inline-end: clamp(1.5rem, 4vw, 4rem);
    inset-block-end: 2.25rem;
    width: min(28%, 22rem);
  }

  #housing .data-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
  }

  #groceries-daily-life .section-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  #groceries-daily-life .section-content > :is(p, details, section:last-of-type) { grid-column: 1 / -1; }
}

@media (max-width: 36rem) {
  .map-label { display: none; }
  .map-live + .map-label { display: block; font-size: 4px; }
  .guide-backdrop::after { background: rgb(11 29 58 / 78%); }
}

@media (prefers-reduced-motion: no-preference) {
  .map-drawn .map-neighborhood { animation: map-draw 540ms var(--map-delay, 0ms) both; }
  .map-live-dot { animation: map-pulse 2s ease-in-out 2; }
  .map-opening .map-neighborhood:not(:has(.map-destination)) { opacity: 0.12; filter: blur(0.8px); }
  .map-opening .map-destination { fill: var(--gold); }
  .map-opening .map-neighborhood { animation: none; }
  .map-arrival .guide-backdrop { animation: harbor-reveal 460ms ease-out both; }
  .map-arrival .guide-hero > .wrap { animation: harbor-title 330ms 65ms ease-out both; }
  .map-arrival .neighborhood-intro { animation: harbor-panel 330ms 145ms ease-out both; }
  .map-arrival .key-stats { animation: harbor-title 300ms 120ms ease-out both; }

  @keyframes map-draw { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
  @keyframes map-pulse { 50% { opacity: .63; filter: drop-shadow(0 0 4px var(--gold)); } }
  @keyframes harbor-reveal { from { opacity: .28; transform: scale(1.025); } to { opacity: 1; transform: scale(1.065); } }
  @keyframes harbor-title { from { opacity: .65; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes harbor-panel { from { opacity: .65; transform: translateX(-9px); } to { opacity: 1; transform: translateX(0); } }
}

@media (prefers-reduced-motion: reduce) {
  .map-neighborhood,
  .map-area { transition: none; }
  .map-area.map-live:hover,
  .map-area.map-live:focus-visible { transform: none; }
}

/* West Roxbury school directory */
#schools .school-panel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#schools .school-panel-controls button {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--brick);
  border-radius: 0.6rem;
  background: var(--white);
  color: var(--brick-link);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#schools .school-panel-controls button[aria-pressed="true"] {
  background: var(--brick);
  color: var(--white);
}

#schools .school-panel {
  margin-top: 1.4rem;
  scroll-margin-top: 7rem;
}

#schools .school-panel + .school-panel {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

#schools .school-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.7rem;
}

#schools .school-cards li {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

#schools .private-school-results h4 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

#schools .school-list-disclosure { margin-block: 1rem; }
#schools .school-list-disclosure summary { min-height: 44px; }

/* The photo stays in a separate viewport layer as the guide scrolls. */
.page-backdrop { display: none; }

.has-page-backdrop {
  isolation: isolate;
  background: var(--harbor);
}

.has-page-backdrop .page-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgb(18 38 63 / 65%);
}

.has-page-backdrop .guide-hero {
  background: transparent;
  min-height: clamp(17rem, 47vh, 32rem);
}

.has-page-backdrop .guide-backdrop { display: none; }

.has-page-backdrop :is(.data-section, .neighborhood-intro > div, .neighborhood-map-card) {
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%);
}

.has-page-backdrop .data-section:not(#overview) { background: var(--white); }

.page-photo-credit {
  width: 100%;
  color: var(--light-muted);
  font-size: 0.875rem;
}
