:root {
  --paper: #f6f3ee;
  --paper-2: #fbf9f6;
  --ink: #161513;
  --muted: #6e685f;
  --line: rgba(22, 21, 19, 0.14);
  --night: #141311;
  --brass: #77654f;
  --clay: #6e3d34;
  --sale: transparent;
  --pending: transparent;
  --sold: transparent;
  --shadow: none;
  --serif: "Cormorant Garamond", "Noto Serif SC", Palatino, serif;
  --sans: "Jost", "Noto Sans SC", "Avenir Next", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --listing-photo-ratio: 4 / 3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 9rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: rgba(119, 101, 79, 0.15); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
main { min-height: 50vh; }
h1, h2, h3, blockquote {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 4.8vw, 4.8rem); margin: 0.15em 0 0.45em; font-weight: 500; }
h2 { font-size: clamp(2rem, 3.2vw, 3.15rem); margin: 0.15em 0 0.7em; }
h3 { font-size: 1.7rem; margin: 0.15em 0 0.45em; font-weight: 500; }
p { margin: 0 0 0.85em; }
html[lang^="zh"] { --serif: "Noto Serif SC", "Songti SC", "STSong", serif; --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang^="zh"] body { line-height: 1.9; line-break: strict; }
:where(html[lang^="zh"]) h1 { font-size: clamp(2.1rem, 3.8vw, 3.65rem); }
:where(html[lang^="zh"]) h2 { font-size: clamp(1.65rem, 2.6vw, 2.5rem); }
:where(html[lang^="zh"]) h3 { font-size: 1.4rem; }
html[lang="zh-Hant"] { --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif; --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] blockquote { line-height: 1.5; font-style: normal; }
html[lang="fr"] .prose, html[lang="fr"] .service-grid p, html[lang="fr"] .area-grid p { hyphens: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}
.skip:focus { top: 1rem; }

.container { width: min(1240px, calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 243, 238, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  width: min(1240px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 3rem;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: 'Jost', 'Avenir Next', Arial, sans-serif; }
.brand-text strong {
  font-weight: 400;
  letter-spacing: .38em;
  padding-left: .38em;
  font-size: 1.65rem;
  text-transform: uppercase;
}
.brand-text small {
  margin-top: .5rem;
  color: inherit;
  letter-spacing: .3em;
  padding-left: .3em;
  text-transform: uppercase;
  font-size: .6rem;
  font-weight: 400;
}
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.site-nav a, .text-button, .text-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.site-nav a, .site-nav .text-button { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.site-nav a.is-current { text-decoration: underline; text-underline-offset: 0.5rem; }
.nav-register { border: 0; border-radius: 0; padding: 0; }
.lang-switch { display: flex; align-items: center; gap: 0.15rem; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); text-decoration: none; }
.lang-switch a.is-active { color: var(--ink); background: rgba(119, 101, 79, 0.09); box-shadow: inset 0 -2px var(--brass); }
.text-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.35rem 0;
  cursor: pointer;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  min-height: 44px;
  min-width: 44px;
}
.nav-toggle-bars {
  width: 1rem;
  height: 0.55rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.flash {
  width: min(1240px, calc(100% - var(--gutter) * 2));
  margin: 0 auto 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.flash-ok { background: transparent; color: var(--ink); }
.flash-error { background: transparent; color: var(--clay); }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--brass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 400;
}
.kicker span { color: var(--ink); }
.lead { font-size: clamp(1rem, 1.2vw, 1.125rem); max-width: 38rem; color: var(--muted); }
.lead.narrow { max-width: 34rem; }

.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy h1 { max-width: 13em; }
.hero-copy h1 span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.8rem 0 1.2rem; }
.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.8fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1.6rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-search label { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.hero-search label span { font-size: 0.82rem; color: var(--muted); }
.hero-search input, .hero-search select { width: 100%; }
.hero-search label:nth-of-type(1) { grid-column: 1 / -1; }
.hero-search label:nth-of-type(2) { grid-column: 1; }
.hero-search label:nth-of-type(3) { grid-column: 2 / -1; }
.hero-search label:nth-of-type(4) { grid-column: 1 / 3; }
.hero-search .btn { min-width: 8.5rem; }
.evaluation-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.estimate-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0.8rem 0; }
.estimate-values dt { color: var(--muted); font-size: 0.82rem; }
.estimate-values dd { margin: 0.25rem 0 0; font-size: 1.15rem; }
.evaluation-live { min-height: 0; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.stat-row dt { font-size: 0.95rem; line-height: 1.5; font-weight: 500; }
.stat-row dd { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.hero-frame { position: relative; margin: 0; }
.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 680px;
  object-fit: cover;
  object-position: center top;
  background: #d9d3c8;
}
.hero-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-frame .photo-credit { font-size: .7rem; letter-spacing: normal; text-transform: none; }
.photo-credit a { text-underline-offset: .2em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0.95rem 1.5rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: transparent;
  min-height: 48px;
  max-width: 100%;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  font-weight: 400;
}
.btn-primary { background: var(--night); color: var(--paper); border-color: var(--night); }
.btn-primary:hover { background: #2a2826; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(22, 21, 19, 0.04); }
.btn-light { background: transparent; color: var(--paper); border-color: rgba(246, 243, 238, 0.7); }
.btn-light:hover { background: rgba(246, 243, 238, 0.08); }
.text-link {
  border-bottom: 1px solid var(--ink);
  align-self: end;
  margin-bottom: 0.85rem;
  padding-bottom: 0.15rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.section { padding: 1.5rem 0 clamp(3rem, 6vw, 5.5rem); }
.section-tight { padding-top: 0.4rem; }
.section-head, .page .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.count { color: var(--muted); margin-bottom: 0.8rem; font-size: 0.9rem; white-space: nowrap; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}
.card a { text-decoration: none; display: block; }
.card, .saved-wrap { min-width: 0; }
.card-media {
  position: relative;
  aspect-ratio: var(--listing-photo-ratio);
  overflow: hidden;
  background: #d9d3c8;
}
.pick-note {
  max-width: 42rem;
  color: var(--muted);
}
.pick-label {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card:hover img { transform: scale(1.03); }
.pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.28rem 0.45rem;
  background: rgba(246, 243, 238, 0.92);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill.is-sale, .pill.is-pending, .pill.is-sold,
.pill-sale, .pill-pending, .pill-sold { background: rgba(246, 243, 238, 0.92); color: var(--ink); }
.card-body { padding: 0.95rem 0 0.2rem; }
.card-kicker, .card-address, .card-meta, .meta-line { color: var(--muted); font-size: 0.86rem; }
.card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.55rem;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}
.card-kicker .card-place::before { content: "· "; letter-spacing: 0; }
.card-type.is-cjk, .detail-type.is-cjk {
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.card-foot { display: grid; gap: 0.35rem; margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.card-price { font-family: "Cormorant Garamond", Palatino, serif; font-size: 1.85rem; line-height: 1.3; margin: 0; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: 0; font-size: 0.85rem; }
.card-meta span { white-space: nowrap; }
.card h3 {
  font-size: clamp(1.28rem, 1.45vw, 1.55rem);
  line-height: 1.28;
  margin: 0.1em 0 0.55em;
  text-wrap: pretty;
}

.service-grid, .area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}
.area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.area-grid h3 a { color: inherit; text-decoration: none; }
.area-grid h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.service-grid article, .area-grid article {
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}
.index { font-family: var(--serif); color: var(--brass); margin-bottom: 0.45rem; letter-spacing: 0.08em; }

.quote-band, .closing-band { padding: clamp(3rem, 6vw, 5rem) 0; }
.quote-band { background: transparent; border-top: 1px solid var(--line); }
.quote-band blockquote, .auth-panel blockquote {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 1.1rem;
  max-width: 16em;
}
.quote-by { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.closing-band { background: var(--night); color: var(--paper); }
.closing-band .kicker, .auth-panel .kicker { color: #b6a48c; }
.closing-inner { max-width: 42rem; }
.closing-band p { color: rgba(246, 243, 238, 0.74); }

.page { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.about-grid, .contact-grid, .auth-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17.5rem, 23rem);
  gap: 3rem;
  align-items: start;
}
.monogram {
  margin-top: 2rem;
  width: min(100%, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 7.5rem;
  font-weight: 500;
}
.prose p { max-width: 38rem; }
.prose { line-height: 1.85; }
.prose h2:not(:first-child) { margin-top: 1.25em; }
.contact-grid { align-items: start; }
.contact-grid > .stack-form { background: var(--paper-2); padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line); }
.credential-list { margin: 1.8rem 0; }
.credential-list div {
  display: grid;
  grid-template-columns: minmax(5rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.credential-list dt { color: var(--muted); font-size: 0.88rem; }
.credential-list dd { margin: 0; }
.steps { padding-left: 1.1rem; }
.steps li { margin: 0.7rem 0; }
.placeholder-note { color: var(--muted); font-size: 0.92rem; }

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 0.95fr)) auto;
  gap: 1.1rem;
  align-items: end;
  margin: 1.4rem 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.filters label, .stack-form label { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.filters label span, .stack-form label span {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.filters label em, .stack-form label em { font-style: normal; letter-spacing: 0; text-transform: none; }
.filters input, .filters select { width: 100%; min-width: 0; }
input, select, textarea {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-bottom-color: var(--brass);
  padding: 0.7rem 0.8rem;
  border-radius: 0;
  min-width: 0;
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass);
  box-shadow: none;
}
.feed-note, .empty { color: var(--muted); }
.form-errors {
  background: transparent;
  color: var(--clay);
  border-top: 1px solid var(--clay);
  padding: 0.8rem 0;
  margin-bottom: 0.4rem;
}
.form-errors p { margin: 0.2rem 0; }
.stack-form { display: grid; gap: 1.2rem; align-content: start; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; }
.aside-card, .inquiry-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  padding: 1.3rem 0 0;
}
.back-link { margin-bottom: 1.2rem; font-size: 0.9rem; }
.back-link a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 0.3em; }
.detail-hero { position: relative; margin-bottom: 0.9rem; }
.detail-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  background: #2a2722;
}
.detail-mosaic-hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #2a2722;
}
.detail-mosaic-cell {
  position: relative;
  padding: 0;
  border: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #2a2722;
  cursor: pointer;
}
.detail-mosaic-hero img,
.detail-mosaic-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.detail-mosaic-cell.is-selected {
  outline: 2px solid var(--paper);
  outline-offset: -2px;
}
.detail-mosaic-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 19, 17, 0.46);
  color: var(--paper);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.detail-mosaic.is-single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: min(100%, 40rem);
  aspect-ratio: var(--listing-photo-ratio);
}
.detail-mosaic.is-pair {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  aspect-ratio: 8 / 3;
}
.detail-mosaic.is-pair .detail-mosaic-hero,
.detail-mosaic.is-quad .detail-mosaic-hero {
  grid-row: auto;
}
.detail-mosaic.is-triple {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 2 / 1;
}
.detail-mosaic.is-quad {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: min(100%, 48rem);
  aspect-ratio: var(--listing-photo-ratio);
  max-height: none;
}
.detail-photo-bar, .detail-photo-bar > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.2rem;
}
.detail-photo-bar { justify-content: space-between; margin-top: .5rem; font-size: .9rem; }
.detail-photo-bar a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .3em; }
#detail-photo-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.detail-hero .pill { position: static; display: inline-block; margin: 0; padding-left: 0; background: transparent; }
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 2.6rem;
}
.detail-thumb {
  padding: 0;
  border: 1px solid transparent;
  background: #d9d3c8;
  cursor: pointer;
}
.detail-thumb.is-selected { border-color: var(--ink); }
.detail-thumb img { display: block; width: 100%; aspect-ratio: var(--listing-photo-ratio); height: auto; object-fit: cover; }
.side-label {
  margin: 0.35rem 0 0;
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.detail-copy .side-label { margin: 0 0 0.85rem; }
.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--brass);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.detail-kicker .detail-dot { letter-spacing: 0; }
.detail-title {
  font-size: clamp(1.9rem, 2.8vw, 2.9rem);
  line-height: 1.18;
  max-width: 16em;
  margin: 0 0 0.4em;
  text-wrap: pretty;
  line-break: strict;
}
.detail-address { color: var(--muted); margin-bottom: 0.2rem; }
.detail-price {
  font-family: "Cormorant Garamond", Palatino, serif;
  font-size: clamp(2.15rem, 3vw, 2.7rem);
  line-height: 1;
  margin: 1.15rem 0 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
  gap: 1.15rem 1.5rem;
  margin: 1.45rem 0 1.9rem;
  max-width: 34rem;
}
.facts div { border-top: 1px solid var(--ink); padding-top: 0.75rem; }
.facts dt { color: var(--muted); font-size: 0.85rem; }
.facts dd { margin: 0.3rem 0 0; font-family: var(--serif); font-size: 1.7rem; }
.detail-copy .prose { margin-top: 0.3rem; }
.detail-actions { margin-top: 1.7rem; }
.detail-grid .inquiry-card {
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 0.15rem 0 0 2rem;
}
.inquiry-card h2 {
  font-size: clamp(1.65rem, 2vw, 2.05rem);
  line-height: 1.25;
  max-width: 12em;
  margin: 0 0 0.4em;
  text-wrap: pretty;
  line-break: strict;
}
.inquiry-note {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28em;
  margin-bottom: 1.35rem;
}
.inquiry-card .stack-form { gap: 1.15rem; }
.inquiry-card .stack-form textarea { min-height: 9rem; }
.inquiry-card .stack-form .btn { width: 100%; margin-top: 0.35rem; }

.auth-page { width: min(1100px, calc(100% - var(--gutter) * 2)); margin: clamp(2rem, 4vw, 3rem) auto 4rem; align-items: stretch; }
.auth-panel {
  background: var(--night);
  color: var(--paper);
  padding: 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
}
.auth-panel p:last-child { color: rgba(246, 243, 238, 0.62); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.auth-form { padding: 1.2rem 0 1rem; }
.auth-form h1 { font-size: clamp(2.3rem, 4vw, 3.7rem); }
.google-signin { margin: 1.5rem 0; }
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: 'Google Sans', Arial, 'Noto Sans TC', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.google-button img { display: block; flex: 0 0 20px; width: 20px; height: auto; }
.google-button:hover:not(:disabled) { background: #f8faff; border-color: #1f1f1f; }
.google-button:focus-visible { outline: 2px solid #1a73e8; outline-offset: 3px; }
.google-button:disabled { cursor: not-allowed; color: #626568; border-color: #c4c7c5; }
.google-note { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: .7rem 0 0; }
.auth-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; margin: 1.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.auth-divider span { max-width: 75%; text-align: center; }
.switch-link { color: var(--muted); margin-top: 1.25rem; }
.switch-link a { display: inline-flex; align-items: center; min-height: 44px; }

.message-list { list-style: none; padding: 0; margin: 0; }
.message-list li { border-top: 1px solid var(--line); padding: 1rem 0; }
.saved-wrap .text-button { margin: 0.35rem 0 1rem; min-height: 44px; color: var(--muted); }
.narrow-page { max-width: 36rem; }

.site-footer { background: var(--night); color: #efece6; padding: 3.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.6fr); gap: 2rem; }
.footer-brand { width: fit-content; margin-bottom: 1.3rem; gap: 1rem; }
.footer-brand .brand-mark { width: 4rem; }
.footer-brand .brand-text strong { color: #cfb78d; font-size: 2rem; }
.footer-brand .brand-text small { font-size: .7rem; }
.site-footer .footer-brand:hover { text-decoration: none; }
.site-footer .footer-grid > div:last-child p { margin: 0; }
.site-footer .footer-grid > div:last-child a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(246, 243, 238, 0.16);
  margin-top: 2rem;
  padding-top: 1rem;
  color: rgba(246, 243, 238, 0.58);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1359px) {
  .header-bar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; padding-block: 0.6rem; }
  .lang-switch { grid-column: 2; grid-row: 1; }
  .nav-ready .nav-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; }
  .nav-ready .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 9rem); overflow-y: auto; padding: 0.75rem var(--gutter) 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px rgba(22, 21, 19, 0.06); }
  .nav-ready .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav .text-button { padding: 0.55rem 0; width: 100%; }
  .site-nav a.is-current { color: var(--brass); }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid, .detail-grid, .auth-page, .service-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 44rem; }
  .hero-copy h1 { max-width: 16em; }
  .card-grid, .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero-frame img { aspect-ratio: 16 / 10; max-height: 480px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters label:first-child { grid-column: 1 / -1; }
  .filters .btn { grid-column: 1 / -1; justify-self: start; min-width: 10rem; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search label:nth-of-type(1),
  .hero-search label:nth-of-type(2),
  .hero-search label:nth-of-type(3),
  .hero-search label:nth-of-type(4),
  .hero-search .btn { grid-column: auto; }
  .hero-search label:nth-of-type(1), .hero-search .btn { grid-column: 1 / -1; }
  .service-grid { gap: 1.75rem; }
  .detail-grid .inquiry-card {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--ink);
    padding: 1.5rem 0 0;
    margin-top: 0.4rem;
  }
  .detail-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-mosaic,
  .detail-mosaic.is-pair,
  .detail-mosaic.is-triple,
  .detail-mosaic.is-quad {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
    max-height: none;
    width: 100%;
  }
  .detail-mosaic-hero {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: var(--listing-photo-ratio);
  }
  .detail-mosaic-cell { aspect-ratio: var(--listing-photo-ratio); }
  .detail-mosaic.is-single {
    grid-template-columns: 1fr;
    width: 100%;
    aspect-ratio: var(--listing-photo-ratio);
  }
  .auth-panel { grid-row: 2; min-height: 0; padding: 2rem; }
  .auth-form { padding: 0; }
  .monogram { width: 160px; font-size: 5rem; }
}

@media (max-width: 600px) {
  .header-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; padding-top: 0.75rem; padding-bottom: 0; }
  .brand { min-height: 44px; }
  .site-header .brand-mark { width: 2.6rem; }
  .site-header .brand-text strong { font-size: 1.45rem; }
  .nav-ready .nav-toggle { grid-column: 2; }
  .lang-switch { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); padding-top: 0.2rem; }
  .site-nav { grid-row: 3; }
  .lang-switch a { min-width: 52px; }
  .card-grid, .area-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid { gap: 2.25rem; }
  .hero-grid { gap: 1.75rem; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 1.5rem; }
  .hero-actions .btn { padding: 0.85rem 0.65rem; font-size: 0.85rem; }
  .stat-row { gap: 0.75rem; }
  .stat-row dt { font-size: 0.85rem; }
  .stat-row dd { font-size: 0.8rem; }
  .hero-frame img { aspect-ratio: 4 / 3; }
  .section-head, .page .section-head { align-items: flex-start; gap: 0.25rem; }
  .section-head > div { flex-basis: 100%; }
  .section-head .text-link { margin-bottom: 1.25rem; }
  .page .section-head .count { flex-basis: 100%; }
  .filters { gap: 1rem; }
  .filters .btn { width: 100%; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .btn { width: 100%; }
  .evaluation-fields, .estimate-values { grid-template-columns: 1fr; }
  .detail-gallery { gap: 0.45rem; margin-bottom: 2rem; }
  .detail-thumb { min-height: 44px; }
  .auth-panel { padding: 1.5rem; }
  .auth-panel blockquote { font-size: 1.8rem; }
  .footer-note { flex-direction: column; }
  .footer-note p { margin-bottom: 0; }
  html[lang^="zh"] .kicker, html[lang^="zh"] .btn, html[lang^="zh"] .detail-kicker { letter-spacing: 0.04em; }
}

@media (max-width: 360px) {
  .stat-row { grid-template-columns: 1fr; gap: 0.65rem; }
  .stat-row > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0.5rem; }
  .stat-row dd { margin: 0; }
  .hero-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
}

/* Editorial guides and census directory share the site's quiet, readable rhythm. */
.page-intro { padding-block: clamp(2rem, 5vw, 4.5rem) 2.5rem; }
.page-intro h1 { max-width: 20ch; }
:where(html[lang^="zh"]) .page-intro h1 { max-width: 22ch; }
.page-intro > .text-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 1rem; }
.page-intro .lead { max-width: 54rem; }
.page-intro .kicker { margin-top: 1rem; }
.resource-page { padding-bottom: 4rem; }
.resource-page h2 { font-size: clamp(1.6rem, 2.1vw, 2.25rem); line-height: 1.4; }
.resource-page h3, .resource-card h3 { font-size: 1.35rem; line-height: 1.5; }
.resource-grid, .community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.resource-card, .community-card { min-width: 0; border-top: 1px solid var(--brass); padding: 1.5rem; background: var(--paper-2); display: flex; flex-direction: column; align-items: flex-start; }
.resource-card h2, .community-card h2 { font-size: 1.5rem; line-height: 1.45; }
.resource-card h2 a, .resource-card h3 a, .community-card h2 a { text-decoration: none; }
.resource-card h2 a:hover, .resource-card h3 a:hover, .community-card h2 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.resource-card > .text-link, .community-card > .text-link { margin-top: auto; padding-top: 0.5rem; }
.resource-card p, .official-card p, .guide-step p { color: var(--muted); }
.resource-home { background: #ede8df; }
.official-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; }
.official-card { min-width: 0; border-top: 1px solid var(--line); padding-block: 1.3rem; }
.official-card h3 a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.editorial-notice { padding: 1.25rem 1.5rem; background: #eee7dc; border-left: 3px solid var(--brass); font-size: 0.95rem; margin: 1.5rem 0 2rem; }
.meta-text, .source-link { color: var(--muted); font-size: 0.87rem; }
.source-link, .resource-page .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.process-flow { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.process-flow li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-flow a { height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 1.1rem; text-decoration: none; font-size: 0.95rem; }
.process-flow a:hover { background: #eee7dc; }
.step-number { color: var(--brass); font-family: var(--sans); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.flow-arrow { color: var(--brass); }
.process-flow li:last-child .flow-arrow { visibility: hidden; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.guide-step { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; padding-block: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.guide-step .step-number { padding-top: 0.3rem; }
.guide-step p { margin-bottom: 0.5rem; }
.guide-checklist { padding: 1.75rem; background: #eee7dc; }
.guide-checklist h2 { font-size: 1.35rem; }
.guide-checklist ul, .service-detail ul { padding-left: 1.2rem; }
.guide-checklist li, .service-detail li { padding-left: 0.25rem; margin-bottom: 1rem; }
.guide-checklist li::marker, .service-detail li::marker { color: var(--brass); }
.guide-facts, .guide-sources, .faq-section { margin-block: 3rem; }
.guide-sources { border-top: 1px solid var(--line); padding-top: 2rem; max-width: 60rem; }
.guide-sources ul { padding-left: 1.3rem; }
.guide-sources li a { display: inline-block; padding-block: 0.45rem; }
.guide-cta, .finder-panel { margin-block: 2rem; padding: 2rem; border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.guide-cta h2, .finder-panel h2 { font-size: 1.5rem; }
.guide-cta p, .finder-panel p { margin-bottom: 0; max-width: 45rem; }
.guide-cta .btn, .finder-panel .btn { flex-shrink: 0; }
.school-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 3rem 0; padding: 0; }
.school-steps li { border-top: 1px solid var(--brass); padding-top: 1.25rem; }
.school-steps h3 { margin-top: 0.8rem; }
.faq-section { max-width: 56rem; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { cursor: pointer; padding: 1.1rem 0; font-weight: 500; }
.faq-section details p { padding: 0 0 1rem; max-width: 50rem; color: var(--muted); }
.services-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; }
.service-detail { border-top: 1px solid var(--brass); padding-top: 1.4rem; }
.service-detail h2 { margin-top: 1rem; }
.service-detail .lead { font-size: 1rem; }
.service-detail li { color: var(--muted); }
.equation-panel { margin-block: 3rem; background: var(--night); color: var(--paper); padding: clamp(1.25rem, 3vw, 2.5rem); }
.equation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-block: 2rem; }
.equation-grid strong { display: block; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.equation-grid strong span { color: #c7b496; }
.equation-panel p { font-size: 0.9rem; margin-bottom: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 0.75rem; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 1rem 0.8rem; vertical-align: top; font-weight: 400; }
.data-table thead { background: #ede8df; }
.data-table thead th { font-weight: 500; }
.data-table th small { font-weight: 400; }
.community-search { padding: 1.5rem; background: #ede8df; }
.community-search label { display: block; margin-bottom: 0.65rem; }
.community-search > div { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.community-search input { flex: 1 1 20rem; width: 100%; min-width: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper-2); font-size: 1rem; min-height: 48px; }
.results-count { margin-top: 1.75rem; color: var(--muted); }
.community-card dl { width: 100%; margin: 0.5rem 0 1rem; }
.community-card dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.community-card dt { color: var(--muted); font-size: 0.85rem; }
.community-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-block: 2rem; }
.community-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0 0 3rem; }
.community-stats > div { border-top: 1px solid var(--brass); padding-top: 1rem; }
.community-stats dt { min-height: 3.5em; font-size: 0.95rem; }
.community-stats dd { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.7rem); font-variant-numeric: tabular-nums; }
.community-stats small { color: var(--muted); }
.community-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.community-data-section { min-width: 0; margin-block: 2rem; }
.community-data th:first-child { width: 43%; }
.community-data strong { font-weight: 500; }
.community-data th:last-child { width: 22%; }
.metric-share { display: block; color: var(--muted); font-size: 0.85rem; }
.data-bar { display: block; width: 100%; height: 4px; background: #e4dfd5; margin-top: 0.5rem; }
.data-bar > span { display: block; height: 100%; background: var(--brass); }
html[lang="fr"] .resource-page p, html[lang="fr"] .resource-page li { hyphens: auto; }
@media (max-width: 960px) {
  .resource-grid, .community-grid, .school-steps, .community-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { gap: 2rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .services-detail-grid, .community-data-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-cta, .finder-panel { align-items: flex-start; flex-direction: column; }
  .service-detail { max-width: 50rem; }
}
@media (max-width: 600px) {
  .resource-grid, .community-grid, .official-grid, .guide-layout, .school-steps, .equation-grid, .process-flow { grid-template-columns: minmax(0, 1fr); }
  .process-flow a { padding: 0.9rem 1rem; }
  .flow-arrow { transform: rotate(90deg); }
  .guide-step { grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.5rem; }
  .guide-checklist, .guide-cta, .finder-panel { padding: 1.25rem; }
  .community-search > div { gap: 0.75rem; }
  .community-search .btn { flex: 1 1 100%; }
  .community-stats { gap: 1.5rem 1rem; }
  .community-stats dt { min-height: 0; }
  .community-stats dd { font-size: 1.5rem; }
  .community-data th:first-child { width: 40%; }
  .community-data th:last-child { width: 24%; }
  .data-table th, .data-table td { padding: 0.85rem 0.5rem; }
  .guide-sources { margin-block: 2rem; }
  .equation-grid { gap: 1.25rem; }
}

/* Resident guides and municipal directories. */
.guide-primary { margin-bottom: 2rem; }
.cart-card { border-top-width: 5px; border-top-style: solid; }
.cart-blue { border-top-color: #2f658d; }
.cart-green { border-top-color: #426a46; }
.cart-black { border-top-color: #383b3b; }
.directory-summary { display: flex; flex-wrap: wrap; gap: 2rem 4rem; margin: 2rem 0; }
.directory-summary > div { display: flex; flex-direction: column; gap: .4rem; }
.directory-summary strong { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.directory-summary span { font-size: .9rem; color: var(--muted); }
.directory-nav { display: flex; flex-wrap: wrap; gap: .75rem 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.directory-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 2px solid transparent; }
.directory-nav a[aria-current] { border-color: var(--brass); }
.directory-filters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem 1.25rem; padding: 1.5rem; background: #ebe7df; }
.directory-filters > div { min-width: 0; }
.directory-filters label { display: block; margin-bottom: .45rem; font-size: .9rem; }
.directory-filters input, .directory-filters select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #bcb4a8; padding: .75rem; background: #fffefa; border-radius: 0; font: inherit; font-size: 1rem; color: var(--ink); }
.directory-filters .filter-search { grid-column: span 2; }
.filter-actions { display: flex; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; }
.filter-actions .text-link { display: inline-flex; align-items: center; min-height: 48px; }
.directory-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.directory-note { margin: 0 0 2rem; max-width: 80ch; }
.amenity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.catchment-intro { border-left: 3px solid var(--accent, #aa8b52); background: #eeece5; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.catchment-intro h2 { font-family: inherit; font-size: 1.15rem; margin: 0 0 .6rem; }
.catchment-intro p { max-width: 90ch; margin: .5rem 0; }
.catchment-intro summary { cursor: pointer; min-height: 44px; padding-top: .5rem; font-size: .9rem; }
@media (min-width: 1025px) { .process-flow-four { grid-template-columns: repeat(4,minmax(0,1fr)); } }
.school-catchment { border-top: 1px solid var(--line); padding-top: 1rem; margin: .5rem 0 1.5rem; }
.school-catchment h3 { font-family: inherit; font-size: 1rem; line-height: 1.5; margin: 0 0 .5rem; }
.school-catchment p { margin: .5rem 0; }
.catchment-program { border-bottom: 1px solid var(--line); padding: .65rem 0; overflow-wrap: anywhere; }
.catchment-program summary { cursor: pointer; font-size: .9rem; line-height: 1.6; min-height: 44px; }
.catchment-program summary span { display: block; color: var(--muted); font-size: .8rem; }
.catchment-communities { padding-left: 1.2rem; margin: .75rem 0; font-size: .9rem; line-height: 1.7; }
.catchment-partial { color: var(--muted); font-size: .8rem; }
.amenity-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); padding: 1.5rem; background: #fffefa; }
.amenity-card h2 { font-family: inherit; font-size: 1.25rem; line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere; margin: .3rem 0 1rem; }
.amenity-card .kicker { font-size: .72rem; line-height: 1.6; margin-bottom: .5rem; }
.amenity-details { display: grid; gap: .85rem; margin: 0 0 1.25rem; font-size: .94rem; }
.amenity-details dt { color: var(--muted); font-size: .8rem; margin-bottom: .2rem; }
.amenity-details dd { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.amenity-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.25rem; }
.amenity-tags li { padding: .3rem .55rem; background: #e9ede5; color: #3d5343; font-size: .8rem; line-height: 1.4; }
.amenity-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.amenity-actions a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.5; }
.amenity-source { font-size: .72rem; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding-top: .75rem; margin: .75rem 0 0; }
.directory-source-list { margin-block: 1.5rem; }
.directory-source-list summary { cursor: pointer; padding-block: .7rem; }
.directory-source-list li { margin-bottom: 1rem; overflow-wrap: anywhere; }
.directory-source-list li span { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 1024px) { .amenity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .directory-filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 1rem; }
  .filter-actions { grid-column: 1 / -1; }
  .directory-summary { gap: 1.5rem 2rem; }
  .amenity-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 390px) { .directory-filters { grid-template-columns: minmax(0,1fr); } .directory-filters .filter-search { grid-column: auto; } }
.amenity-page .page-intro { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.amenity-page .page-intro h1 { margin-block: 1rem; }
.amenity-page .directory-summary { margin-block: 1.5rem; }

/* Community schools: location and attendance are separate, explicit sections. */
.community-schools { border-block: 1px solid var(--line); padding: 3rem 0; margin: 2.5rem 0 3rem; }
.community-schools > h3 { margin-top: 2.5rem; }
.community-school-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.community-school-card { border: 1px solid var(--line); padding: 1.4rem; background: var(--paper-2); min-width: 0; }
.community-school-card h4 { font-size: 1.1rem; font-weight: 500; line-height: 1.5; margin: 0 0 .75rem; }
.community-school-card .kicker { font-size: .72rem; }
.community-school-card p:last-child { margin-bottom: 0; }
.community-school-partial { display: inline-block; padding: .15rem .65rem; background: #eae1d0; font-size: .85rem; }
.community-school-more { border-block-end: 1px solid var(--line); padding: 1.1rem 0; margin: 1.25rem 0; }
.community-school-more summary { font-weight: 500; cursor: pointer; }
.community-school-more[open] summary { margin-bottom: 1rem; }
.community-school-more .table-scroll { margin-top: 1rem; }
@media(max-width: 900px) { .community-school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 560px) { .community-school-grid { grid-template-columns: 1fr; } .community-schools .section-head { align-items: start; } }
