/*
 * Blueprint presentation layer.
 * Architectural spacing, chalk, ultramarine and measured linework frame the
 * civic tools. Functional layouts keep their original semantics.
 * Decoration is scoped to the home page and never sits
 * over a form control. No content depends on animation to become available.
 */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --container: 1536px;
  --gutter: 56px;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-outlier: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 500;
  --tracking-display: -.045em;
  --color-paper: #fbfcff;
  --color-paper-2: #edf2fb;
  --color-paper-3: #e2eaf8;
  --color-ink: #15264c;
  --color-ink-2: #354563;
  --color-muted: #57647c;
  --color-rule: #bfcce2;
  --color-rule-2: #dce4f1;
  --color-accent: #183cbb;
  --color-accent-ink: #ffffff;
  --color-accent-soft: #dce8ff;
  --color-accent-soft-ink: #183575;
  --color-focus: #124ac8;
  --color-control-edge: #7485a5;
  --color-error: #b02e35;
  --color-success: #246546;
  --bp-raised: #fff;
  --bp-band: #122655;
  --bp-band-control: #22386a;
  --bp-band-edge: #8da4d3;
  --bp-blue: #183cbb;
  --bp-blue-hover: #102b8d;
  --bp-map-desk: #f5f6f8;
  --bp-place-selected: #163c93;
  --radius-card: 0;
  --radius-input: 0;
  --text-display: clamp(2.6rem, 5vw, 4.8rem);
  --text-section: clamp(2rem, 3.4vw, 3.4rem);
  --text-title: 1.35rem;
  --text-lead: 1.125rem;
}

/* Keep printed civic documents in the light palette. */
@media screen {
  :root[data-color-mode="dark"] {
    color-scheme: dark;
    --color-paper: #1c1e22;
    --color-paper-2: #24272d;
    --color-paper-3: #2d323b;
    --color-ink: #edf1ff;
    --color-ink-2: #c8d3eb;
    --color-muted: #acb8cf;
    --color-rule: #495262;
    --color-rule-2: #353d4b;
    --color-accent: #b6b7ff;
    --color-accent-soft: #303760;
    --color-accent-soft-ink: #e2e6ff;
    --color-focus: #abbcff;
    --color-control-edge: #7786a2;
    --color-error: #ffa7af;
    --color-success: #9cdbb5;
    --bp-raised: #17191e;
    --bp-band: #12151d;
    --bp-band-control: #242a37;
    --bp-band-edge: #7786a2;
    --bp-blue: #2648c8;
    --bp-blue-hover: #3155dc;
    --bp-map-desk: #22252b;
    --bp-place-selected: #c6cdff;
  }
}

body {
  background: var(--color-paper);
}

h1, h2, h3 {
  font-weight: 500;
}

/* Architectural type stays compact without letting a descender touch the
 * following block or a section rule. */
h1, h2 {
  line-height: 1.12;
}

p, li {
  line-height: 1.65;
}

a, button {
  touch-action: manipulation;
}

a {
  text-underline-offset: .24em;
}

.demo-strip {
  background: var(--bp-band);
  border: 0;
  color: #fff;
}

.demo-strip-inner {
  min-height: 52px;
  gap: 8px 24px;
  font-size: .875rem;
}

.demo-strip .demo-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: #fff;
  line-height: 1.45;
}

.demo-identity span {
  color: #dce7ff;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}

.demo-actions a,
.demo-actions .bp-motion {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  white-space: nowrap;
}

.demo-actions :is(a, button, select):focus-visible {
  outline: 2px solid #dce7ff;
  outline-offset: 2px;
}

.bp-motion {
  padding: 0;
  border: 0;
  background: none;
  font-size: .875rem;
}

.demo-actions .bp-motion:disabled {
  color: #dce7ff;
  opacity: 1;
}

.demo-actions .bp-motion:not(:disabled):hover {
  text-decoration: underline;
  text-underline-offset: .24em;
}

select.color-mode-control {
  width: auto;
  min-width: 76px;
  min-height: 44px;
  padding: 6px 9px;
  font-size: .875rem;
  cursor: pointer;
}

.demo-actions select.color-mode-control {
  color-scheme: dark;
  background: var(--bp-band-control);
  border-color: var(--bp-band-edge);
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 10;
}

.masthead {
  min-height: 100px;
  gap: 32px;
}

.wordmark {
  position: relative;
  padding-left: 44px;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -.055em;
}

.wordmark::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 0;
  width: 28px;
  border: 1px solid var(--color-accent);
  background: linear-gradient(90deg, transparent 48%, var(--color-accent) 48%, var(--color-accent) 52%, transparent 52%),
    linear-gradient(transparent 48%, var(--color-accent) 48%, var(--color-accent) 52%, transparent 52%);
}

.wordmark-prefix {
  font-size: .875rem;
  margin-bottom: 4px;
  letter-spacing: 0;
}

.desktop-nav {
  gap: 28px;
}

.desktop-nav a, .view-switch {
  font-size: .875rem;
}

.desktop-nav a {
  font-weight: 500;
}

.view-switch {
  min-height: 44px;
  justify-content: center;
  line-height: 1.4;
}

.view-switch-action {
  font-size: .875rem;
}

.mobile-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 0;
}

.mobile-menu nav {
  max-width: calc(100vw - var(--gutter) * 2);
}

.mobile-menu nav a {
  min-height: 44px;
}

.page-head {
  padding-top: 56px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-ink);
}

.page-head h1 {
  max-width: 22ch;
}

.page-head .lead {
  margin-top: 20px;
}

.breadcrumbs {
  align-items: center;
  padding-top: 32px;
  margin-bottom: -24px;
}

.btn {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 0;
  font-weight: 500;
  font-size: .875rem;
}

.btn-primary {
  background: var(--bp-blue);
  color: #fff;
  border: 1px solid var(--bp-blue);
}

.btn-primary:hover {
  background: var(--bp-blue-hover);
  border-color: var(--bp-blue-hover);
}

.btn-quiet {
  border: 1px solid var(--color-control-edge);
  background: transparent;
  color: var(--color-ink);
}

.text-link {
  font-weight: 500;
}

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  min-height: 48px;
  border-radius: 0;
  background: var(--bp-raised);
  padding: 12px 16px;
  font-size: 1rem;
}

label, legend {
  font-size: .875rem;
  font-weight: 500;
}

.filters {
  padding: 24px;
  border: 1px solid var(--color-rule);
  background: var(--color-paper-2);
}

.filters .field:first-child {
  flex-basis: 260px;
}

.filters .field {
  flex-basis: 176px;
}

.tag {
  border-radius: 0;
  border: 1px solid var(--color-rule);
  background: var(--color-paper-2);
  color: var(--color-ink);
  padding: 4px 8px;
  font-size: .875rem;
}

.status-line {
  padding-block: 8px 20px;
  font-family: var(--font-outlier);
  font-size: .875rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--color-rule);
  border-bottom: 0;
  border-right: 0;
}

.service-link,
.service-link:not(:nth-child(3n + 1)) {
  min-height: 236px;
  padding: 28px;
  gap: 16px;
  border-right: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}

.service-number {
  display: none;
}

.service-link h2, .service-link h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.service-link p,
.service-link span:not(.service-number) {
  font-size: 1rem;
  line-height: 1.6;
}

.service-link span:not(.service-number) {
  margin-top: auto;
  font-size: .875rem;
  color: var(--color-accent);
}

.service-link:hover {
  background: var(--color-paper-2);
}

.detail-layout {
  gap: 64px;
}

.detail-aside, .notice, .walkthrough, .choice {
  border-radius: 0;
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
}

.detail-aside {
  padding: 28px;
}

.detail-aside .btn {
  width: 100%;
}

.prose h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.prose p + h2 {
  margin-top: 36px;
}

.prose p, .prose li {
  font-size: 1rem;
}

.record-row {
  gap: 32px;
  padding-block: 28px;
}

.record-row h2, .record-row h3 {
  font-size: 1.45rem;
  font-weight: 500;
}

.record-row > div:first-child > p {
  font-size: 1rem;
}

.record-meta {
  font-size: .875rem;
  gap: 12px;
}

.record-row > .record-meta {
  max-width: 190px;
}

.record-row .toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.staff-tabs {
  padding-bottom: 16px;
  gap: 28px;
}

.staff-toolbar {
  padding-block: 32px;
}

.editor-grid {
  gap: 48px;
}

.editor-grid .detail-aside {
  padding: 28px;
}

.editor-grid label {
  font-weight: 500;
}

.editor-grid textarea {
  min-height: 160px;
}

.form-grid {
  gap: 24px;
}

.choice {
  padding: 32px;
}

.choice h2 {
  font-size: 2.5rem;
}

.choice ul {
  margin-block: 24px;
}

.choice .tag {
  background: var(--bp-raised);
}

.confirmation {
  border-radius: 0;
}

.bp-home h1, .bp-home h2 {
  text-wrap: initial;
}

.bp-kicker {
  font-size: .875rem;
  font-family: var(--font-outlier);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.bp-hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 48px;
  padding-top: 48px;
  align-items: stretch;
}

.bp-hero-copy {
  padding: clamp(12px, 2vw, 32px) 0;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bp-hero h1 {
  max-width: none;
  font-size: clamp(3.8rem, 6.6vw, 6.4rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  padding-bottom: .08em;
}

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

.bp-hero .lead {
  margin-top: 32px;
  max-width: 37ch;
  line-height: 1.65;
  font-size: 1.125rem;
}

.bp-hero-search {
  display: block;
  width: min(100%, 34rem);
  margin: 28px 0 0;
}
.bp-hero-search label { display: block; margin-bottom: 8px; }
.bp-hero-search .search-input-row { display: flex; flex-wrap: nowrap; gap: 0; }
.bp-hero-search input { flex: 1 1 0; min-width: 0; }
.bp-hero-search .btn { flex: 0 0 auto; }
.bp-hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.bp-hero-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: .9375rem; }

.bp-hero-photo {
  min-width: 0;
  position: relative;
  min-height: 504px;
  margin: 0;
  background: var(--color-paper-2);
  overflow: hidden;
}

.bp-hero-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 50%;
}

.bp-hero-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  background: var(--bp-blue);
  color: #fff;
  font-family: var(--font-outlier);
  font-size: .8125rem;
}

.bp-home .section {
  margin-top: clamp(48px, 5.6vw, 80px);
}

.bp-home .section-head {
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 32px;
}

.bp-home .section-head h2 {
  max-width: none;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.12;
}

.bp-home .section-head .bp-kicker {
  margin-bottom: 16px;
}

.bp-home .section-head > a {
  font-size: .9375rem;
  flex-shrink: 0;
}

.bp-services .service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-services .service-link {
  min-height: 272px;
}

/* Four-column titles share a two-line slot so the description baselines match.
 * The category already sits at the bottom through the shared flex layout. */
.bp-services .service-link h3 {
  min-height: 2.4em;
}

/* An architectural sheet with two ways to choose a place: touch the pin or
 * use the text directory. Keeping the input native supplies arrow-key movement,
 * checked-state announcements and a usable directory at high zoom. */
.bp-city-story { margin-top: clamp(44px, 5.6vw, 80px); }
.bp-city-story-head {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end; gap: 24px 64px; margin-bottom: 24px;
}
.bp-city-story-head .bp-kicker { margin-bottom: 8px; }
.bp-city-story-head h2 { max-width: none; font-size: clamp(2.15rem, 3.6vw, 3.65rem); }
.bp-city-story-head > p { max-width: 40ch; color: var(--color-ink-2); }
.bp-atlas {
  min-inline-size: 0; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  border: 1px solid var(--color-rule); background: var(--bp-map-desk);
}
.bp-city-plan {
  position: relative; align-self: center; min-width: 0; width: 100%;
  aspect-ratio: 8 / 5; isolation: isolate; overflow: hidden;
  background: #f6f3ec;
}
.bp-plan-sheet { position: absolute; inset: 0; }
.bp-plan-sheet img { display: block; width: 100%; height: 100%; object-fit: fill; }
.bp-atlas:has(#bp-place-hall:checked) { --focus: var(--place-hall); }
.bp-atlas:has(#bp-place-green:checked) { --focus: var(--place-green); }
.bp-atlas:has(#bp-place-depot:checked) { --focus: var(--place-depot); }

.bp-map-pin {
  position: absolute;
  transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 48px; height: 48px; margin: 0; cursor: pointer; touch-action: manipulation;
}
.bp-map-pin span, .bp-place-key {
  display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 50%;
  font: 500 1rem/1 var(--font-outlier); color: #162f58;
  background: #fff; border: 1px solid #132d66;
}
.bp-map-pin span { outline: 2px solid #fff9ed; }
.bp-map-pin:hover span { background: #d8ecff; }
.bp-place-key {
  color: var(--color-ink);
  background: var(--bp-raised);
  border-color: var(--color-control-edge);
}
.bp-map-desk { min-width: 0; background: var(--bp-map-desk); color: var(--color-ink); }
.bp-place-list { border-bottom: 1px solid var(--color-rule); padding: 0 24px; }
.bp-place-option {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 8px 0; margin: 0; color: var(--color-ink-2);
  font-size: 1.05rem; cursor: pointer;
}
.bp-place-option + .bp-place-option { border-top: 1px solid var(--color-rule); }
.bp-place-option:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: -2px; }
.bp-place-option:has(input:checked) { font-weight: 700; color: var(--bp-place-selected); }
.bp-place-option:hover { color: var(--color-accent); }
.bp-place-option:has(input:checked) .bp-place-key { background: var(--bp-blue); border-color: var(--bp-blue); color: #fff; }
.bp-option-arrow { margin-left: auto; opacity: 0; }
.bp-place-option:has(input:checked) .bp-option-arrow { opacity: 1; }

.bp-atlas:has(#bp-place-hall:checked) .bp-pin-hall span,
.bp-atlas:has(#bp-place-green:checked) .bp-pin-green span,
.bp-atlas:has(#bp-place-depot:checked) .bp-pin-depot span {
  background: #183ea5; color: #fff; border-color: #fff;
  outline: 2px solid #fff; outline-offset: 2px;
}
.bp-place-notes { padding: 24px; }
.bp-place-note h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
.bp-place-note p { margin-top: 10px; color: var(--color-ink-2); }
.bp-place-note > div { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 12px; }
.bp-place-note a { display: inline-flex; align-items: center; min-height: 36px; color: var(--color-accent); }
/* All three notes reserve a single grid cell at the tallest note's size. A
 * selection cannot move the map or the page below it. Visibility also removes
 * the inactive links from focus order and the accessibility tree. */
.bp-atlas:has(input:checked) .bp-place-notes { display: grid; }
.bp-atlas:has(input:checked) .bp-place-note { grid-area: 1 / 1; visibility: hidden; }
.bp-atlas:has(#bp-place-hall:checked) #bp-info-hall,
.bp-atlas:has(#bp-place-green:checked) #bp-info-green,
.bp-atlas:has(#bp-place-depot:checked) #bp-info-depot { visibility: visible; }

.bp-community {
  margin-top: clamp(48px, 5.6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.bp-life-photo {
  margin: 0;
  min-width: 0;
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.bp-life-photo img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.bp-life-photo figcaption {
  position: absolute;
  inset: auto auto 24px 24px;
  padding: 12px 16px;
  background: var(--color-paper);
  font-family: var(--font-outlier);
  color: var(--color-ink);
  font-size: .8125rem;
}

.bp-community-copy {
  padding: 48px 40px;
  background: var(--color-paper-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.bp-community-copy .bp-kicker {
  font-family: var(--font-body);
}

.bp-community-copy h2 {
  font-size: clamp(2.2rem, 3.7vw, 3.5rem);
  line-height: 1.12;
  max-width: none;
}

.bp-community-copy > p:not(.bp-kicker) {
  margin-top: 24px;
  max-width: 34ch;
}

.bp-community-copy > a {
  margin-top: 24px;
}

.bp-noticeboard {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.bp-news .news-grid {
  grid-template-columns: 1fr;
  gap: 36px;
}

.bp-news .news-item {
  padding-top: 24px;
}

.bp-news .news-item h3 {
  max-width: 24ch;
  font-size: 1.8rem;
  line-height: 1.25;
}

.bp-news .news-item h3 a {
  font-weight: 500;
}

.bp-news .news-item time {
  font-family: var(--font-outlier);
  font-size: .875rem;
}

.news-item > p {
  font-size: 1rem;
  line-height: 1.6;
}

.bp-meeting {
  padding: 40px;
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.bp-meeting .bp-kicker {
  margin: 0;
  font-family: var(--font-body);
}

.bp-meeting h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.12;
}

.bp-meeting .bp-meeting-date {
  margin-top: 8px;
  font-family: var(--font-outlier);
  font-size: 1.125rem;
  color: var(--color-accent);
}

.bp-meeting > a:last-child {
  font-size: .9375rem;
}

.bp-disclosure {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--color-rule);
  max-width: 80ch;
  color: var(--color-muted);
  font-size: .875rem;
}

.site-footer {
  background: var(--bp-band);
  color: #fff;
  padding-top: 64px;
  border: 0;
}

.site-footer p, .site-footer a, .site-footer h2 {
  color: #e7eeff;
}

.site-footer .wordmark {
  font-size: 3rem;
  color: #fff;
  padding-left: 0;
}

.site-footer .wordmark::before {
  display: none;
}

.footer-identity p {
  margin-top: 20px;
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 48px;
  gap: 40px;
}

.footer-grid h2 {
  font-family: var(--font-outlier);
  font-size: .875rem;
  letter-spacing: 0;
  font-weight: 400;
  margin-bottom: 20px;
}

.footer-grid > div > a:not(.wordmark) {
  font-size: .9375rem;
  font-weight: 400;
  padding-block: 4px;
}

.site-footer a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.footer-base {
  border-color: #52638a;
  font-size: .875rem;
}

.review-main {
  padding-bottom: 80px;
}

.review-context, .review-quality {
  font-size: 1rem;
}

.review-file-panel {
  border-radius: 0;
  background: var(--color-paper-2);
}

.review-file-list a[aria-current="page"] {
  color: #fff;
  background: var(--bp-blue);
}

.source-frame {
  border-radius: 0;
}

/* The record reader follows the same drawing-sheet margin as the atlas. */
.detail-layout .document-body {
  padding: clamp(20px, 3.2vw, 44px); background: var(--bp-raised);
  border: 1px solid var(--color-rule); border-inline-start: 3px solid var(--color-accent);
  font-size: 1rem;
}
.detail-layout .prose > h2:first-child { padding-top: 0; }

@media (max-width: 1150px) {
  :root { --gutter: 40px; }
  .desktop-nav { gap: 20px; }
  .masthead { gap: 24px; }
  .bp-hero { gap: 32px; }
  .bp-hero h1 { font-size: 6.4vw; }
  .bp-hero-photo { min-height: 480px; }
  .bp-services .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-services .service-link { min-height: 232px; }
  .bp-services .service-link h3 { min-height: 2.4em; }
  .bp-community-copy { padding: 40px 32px; }
  .bp-community-copy h2 { font-size: 3.7vw; }
  .bp-noticeboard { gap: 32px; }
  .bp-meeting { padding: 32px; }
  .editor-grid { gap: 32px; }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .masthead { min-height: 88px; }
  .desktop-nav { display: none; }
  .view-switch { margin-left: auto; }
  .mobile-menu { display: block; }
  .bp-hero { gap: 28px; }
  .bp-hero-copy { padding-block: 8px 28px; }
  .bp-hero h1 { font-size: 7vw; }
  .bp-hero-photo { min-height: 440px; }
  .bp-hero .lead { font-size: 1rem; }
  .bp-home .section { margin-top: 72px; }
  .bp-community { margin-top: 80px; grid-template-columns: 1fr 1fr; }
  .bp-community-copy { padding: 32px 28px; }
  .bp-community-copy h2 { font-size: 4.1vw; }
  .bp-life-photo { min-height: 320px; }
  .bp-noticeboard { grid-template-columns: 1fr 1fr; }
  .bp-home .section-head h2 { font-size: 2.65rem; }
  .bp-home .section-head { align-items: flex-start; gap: 24px; }
  .bp-news .section-head > a { flex-basis: 100%; }
  .bp-meeting { padding: 28px; align-self: start; }
  .bp-news .news-item h3 { font-size: 1.65rem; }
  .detail-layout, .editor-grid { gap: 32px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { padding: 20px; }
  .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .bp-atlas { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); }
  .bp-city-story-head { gap: 24px; }
  .bp-place-list, .bp-place-notes { padding-inline: 16px; }
}
@media (max-width: 720px) {
  .bp-atlas, .bp-city-story-head { grid-template-columns: minmax(0, 1fr); }
  .bp-city-story-head { gap: 12px; }
  .bp-place-list, .bp-place-notes { padding-inline: 20px; }
  .bp-place-option { min-height: 52px; }
  .bp-place-notes { padding-block: 20px; }
}

@media (max-width: 650px) {
  :root {
    --gutter: 24px;
    --text-display: 2.6rem;
    --text-section: 2rem;
  }
  .demo-strip-inner { flex-wrap: wrap; gap: 0 24px; padding-block: 8px 4px; }
  .masthead { min-height: 88px; gap: 20px; }
  .wordmark { font-size: 1.75rem; padding-left: 36px; }
  .wordmark::before { width: 24px; inset-block: 2px; }
  .wordmark-prefix { font-size: .75rem; }
  .mobile-menu summary { min-height: 44px; padding: 10px 14px; font-size: .875rem; }
  .mobile-menu nav { right: 0; min-width: 220px; padding: 16px; }
  .mobile-menu nav a { min-height: 44px; font-size: .9375rem; }
  .bp-hero { display: flex; flex-direction: column; gap: 32px; padding-top: 36px; }
  .bp-hero-copy { padding: 0; }
  .bp-kicker { margin-bottom: 24px; font-size: .8125rem; }
  .bp-hero h1 { font-size: clamp(3.4rem, 14.8vw, 5rem); line-height: 1.08; }
  .bp-hero .lead { margin-top: 24px; font-size: 1rem; max-width: 37ch; }
  .bp-hero-photo { min-height: 0; aspect-ratio: 1.35; width: 100%; }
  .bp-hero-photo figcaption { padding: 12px 20px; font-size: .75rem; gap: 4px; }
  .bp-hero-photo figcaption span:last-child { display: none; }
  .bp-home .section { margin-top: 64px; }
  .bp-home .section-head { margin-bottom: 28px; gap: 24px; }
  .bp-home .section-head h2 { font-size: 2.45rem; }
  .bp-home .section-head .bp-kicker { margin-bottom: 16px; }
  .bp-home .section-head > a { flex-basis: 100%; font-size: .875rem; }
  .bp-services .service-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-link, .service-link:not(:nth-child(3n + 1)) { min-height: 212px; padding: 24px; gap: 16px; }
  .bp-services .service-link { min-height: 216px; }
  .bp-services .service-link h3 { min-height: 0; }
  .service-link h2, .service-link h3 { font-size: 1.6rem; }
  .bp-community { margin-top: 72px; grid-template-columns: 1fr; }
  .bp-life-photo { min-height: 0; aspect-ratio: 1.65; }
  .bp-life-photo figcaption { inset: auto auto 20px 20px; padding: 8px 12px; font-size: .75rem; }
  .bp-community-copy { padding: 36px 28px; }
  .bp-community-copy h2 { font-size: 2.6rem; }
  .bp-community-copy .bp-kicker { max-width: 24ch; }
  .bp-noticeboard { grid-template-columns: 1fr; gap: 40px; }
  .bp-news .news-grid { gap: 32px; }
  .bp-news .news-item h3 { font-size: 1.65rem; }
  .bp-meeting { padding: 32px 28px; gap: 24px; }
  .bp-meeting h2 { font-size: 2.6rem; }
  .bp-disclosure { margin-top: 56px; font-size: .8125rem; }
  .page-head { padding-top: 36px; padding-bottom: 24px; margin-bottom: 28px; flex-wrap: wrap; }
  .page-head h1 { font-size: 2.6rem; }
  .page-head .lead { font-size: 1rem; margin-top: 20px; }
  .breadcrumbs { padding-top: 24px; margin-bottom: -16px; }
  .filters { gap: 20px 16px; padding: 20px; }
  .filters .field { flex: 1 1 calc(50% - 8px); }
  .filters .field:first-child { flex-basis: 100%; }
  .filters .btn { flex: 1 1 auto; padding-inline: 16px; }
  .filters .field select { padding-left: 12px; }
  .detail-layout, .editor-grid { display: flex; flex-direction: column; gap: 32px; }
  .detail-layout > *, .editor-grid > * { width: 100%; }
  .detail-aside, .editor-grid .detail-aside { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-actions { flex-wrap: wrap; gap: 12px; }
  .form-actions .btn { flex: 1 1 auto; }
  .record-row { align-items: flex-start; gap: 20px; padding-block: 24px; }
  .record-row h2, .record-row h3 { font-size: 1.35rem; }
  /* A compact metadata row uses the available phone width; a leftover narrow
   * desktop column would split the date and download label into tiny stacks. */
  .record-row > .record-meta { max-width: none; flex-basis: 100%; flex-direction: row; align-items: center; text-align: left; gap: 8px 16px; }
  .record-row .record-meta { font-size: .8125rem; }
  .record-row .toolbar { flex-direction: column; align-items: stretch; }
  .record-row .toolbar .btn { min-height: 40px; padding: 8px 12px; font-size: .8125rem; }
  .choice-grid { grid-template-columns: 1fr; gap: 24px; }
  .choice { padding: 28px; }
  .choice h2 { font-size: 2.3rem; }
  .staff-tabs { gap: 20px; font-size: .875rem; overflow-x: auto; }
  .staff-toolbar { padding-block: 24px; }
  .staff-toolbar h2 { font-size: 1.65rem; }
  .activity li { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 36px; }
  .footer-identity { grid-column: 1 / -1; }
  .site-footer .wordmark { font-size: 2.8rem; }
  .footer-identity p { margin-top: 16px; }
  .footer-grid > div > a:not(.wordmark) { font-size: .875rem; }
  .footer-base { flex-direction: column; gap: 16px; font-size: .8125rem; }
  .review-layout { display: block; }
  .review-file-panel { margin-bottom: 28px; padding: 20px; }
  .review-file-list { display: none; }
  .review-document-head { flex-wrap: wrap; gap: 20px; }
  .review-document-head h2 { font-size: 1.6rem; }
  .review-document-head .toolbar { gap: 12px; }
  .source-frame { height: 64vh; }
}

@media (max-width: 600px) {
  .demo-strip .demo-identity { flex-basis: 100%; }
  .demo-actions { flex: 1 1 100%; }
  .demo-actions .color-mode-control { margin-inline-start: auto; }
  .masthead { flex-wrap: wrap; gap: 12px 16px; padding-top: 12px; }
  .site-header .view-switch {
    order: 1;
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-rule);
  }
  .view-switch > #view-label { font-size: .875rem; line-height: 1.4; }
  .filters .field { flex: 1 1 100%; min-width: 0; }
}

@media (max-width: 370px) {
  :root { --gutter: 20px; }
  .bp-hero h1 { font-size: 14.5vw; }
  .bp-hero-search .btn { padding-inline: 14px; }
  .wordmark { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  /* The camera and pins share one sheet, so a focus change cannot misalign
   * the map. No animation runs until someone chooses a different location. */
  html[data-motion="playing"] .bp-plan-sheet {
    transform: scale(1.14);
    transform-origin: var(--focus, 50% 50%);
    transition: transform-origin 680ms cubic-bezier(.2,.65,.22,1);
  }
  html[data-motion="playing"] .bp-map-pin span {
    transition: background-color .18s ease-out, outline-offset .18s ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .bp-atlas .bp-map-pin, .bp-motion { display: none !important; }
  .bp-hero, .bp-community, .bp-noticeboard { display: block; }
  .bp-hero h1 { font-size: 3rem; }
  .bp-hero-photo { height: 300px; min-height: 0; margin-top: 28px; }
  .bp-home .section { margin-top: 40px; }
  .bp-services .service-grid { grid-template-columns: repeat(2, 1fr); }
}
