/* Premier Villa Group — see DESIGN.md. Navy and white, bold sans, rounded and photo-led. */
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/PublicSans-normal.woff2) format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/assets/fonts/PublicSans-italic.woff2) format('woff2'); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  --ink: #0d1330; --navy: #050e3d; --paper: #fff; --stone: #f1f3f8; --rule: #dfe3ec; --muted: #575e73; --accent: #2a388e; --accent-dark: #1d2770;
  --tint: #e4e8f6; --water: #cfd9e2; --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: var(--sans);
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --pill: 999px; --shadow: 0 12px 32px rgba(5, 14, 61, 0.12);
  --gutter: 24px; --max: 1240px; --header: 68px; --header-gap: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + var(--header-gap) + 20px); }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--paper); font-feature-settings: 'kern', 'liga'; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, .h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.8rem); letter-spacing: -0.03em; }
h3, .h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
h1 small { font-family: var(--sans); font-size: 0.35em; color: var(--muted); letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow, .narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9em; }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 46ch; color: #2c2f34; }
.lede em { font-style: normal; font-weight: 700; }
.fine { font-size: 14px; color: var(--muted); }
.more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1.5px solid currentColor; border-radius: var(--pill); }
.more:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 48px; padding: 0 24px; background: var(--navy); color: #fff; border: 1.5px solid var(--navy); border-radius: var(--pill); font: 650 15px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--accent); background: transparent; border-color: var(--accent); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Header: a floating navy bar ---- */
.masthead { position: sticky; top: 0; z-index: 50; padding: var(--header-gap) var(--gutter) 0; pointer-events: none; }
.home .masthead { position: fixed; left: 0; right: 0; }
.masthead-row { pointer-events: auto; display: flex; align-items: center; gap: 20px; max-width: calc(var(--max) - 2 * var(--gutter) + 40px); min-height: var(--header); margin: 0 auto; padding: 0 10px 0 26px; background: var(--navy); color: #fff; border-radius: var(--pill); box-shadow: 0 10px 30px rgba(5, 14, 61, 0.22); }
.brand { flex: none; }
.brand img { width: auto; height: 42px; }
.nav-search { display: none; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-top { display: block; background: none; border: 0; font: 600 15px/1 var(--sans); color: #fff; padding: 12px 11px; cursor: pointer; text-decoration: none; border-radius: var(--pill); }
.nav-top:hover, .nav-group:hover > .nav-top { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav-top[aria-current], .nav-top[data-current] { box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.nav-group { position: relative; }
.nav-group > button::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.nav-group > ul { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 10px); min-width: 240px; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); display: none; }
.nav-group > ul a { display: block; padding: 10px 14px; text-decoration: none; font-size: 15px; border-radius: var(--r-sm); }
.nav-group > ul a:hover { background: var(--stone); color: var(--ink); }
.nav-group > ul a[aria-current] { font-weight: 700; }
.nav-group.open > ul { display: block; }
.ext { margin-left: 4px; color: var(--muted); font-size: 0.85em; }
.js .nav-fallback { display: none; }
.no-js .nav-group > button { display: none; }
.no-js .nav-group:hover > ul, .no-js .nav-group:focus-within > ul { display: block; }
.masthead-tools { display: flex; align-items: center; gap: 4px; }
.call { display: inline-flex; align-items: center; min-height: 46px; font-weight: 700; text-decoration: none; white-space: nowrap; padding: 0 18px; background: #fff; color: var(--navy); border-radius: var(--pill); font-size: 15px; }
.call-label { font-weight: 500; color: var(--muted); margin-right: 4px; }
.call:hover { background: var(--tint); color: var(--navy); }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: #fff; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.masthead :focus-visible { outline-color: #fff; }
.masthead .nav-group > ul :focus-visible { outline-color: var(--accent); }
.menu-btn { display: none; }
.menu-btn .i-close, .menu-btn[aria-expanded=true] .i-open { display: none; }
.menu-btn[aria-expanded=true] .i-close { display: inline; }
.nav-contact { display: none; }

@media (max-width: 1120px) {
  .call-label { display: none; }
  .nav-top { padding: 12px 8px; font-size: 14.5px; }
  .masthead-row { gap: 12px; padding-left: 20px; }
}
@media (max-width: 960px) {
  :root { --header: 60px; }
  .brand img { height: 36px; }
  .js .nav-search { display: flex; gap: 8px; margin: 14px 0 6px; }
  .nav-search .btn { flex: none; }
  .js .nav-contact { display: grid; gap: 10px; margin-top: 24px; }
  .menu-btn { display: inline-grid; }
  .js .nav { position: fixed; top: calc(var(--navtop, var(--header)) + 8px); left: var(--gutter); right: var(--gutter); max-height: calc(100svh - var(--navtop, var(--header)) - 24px); overflow-y: auto; padding: 8px 20px 24px; background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); display: none; }
  .js .nav.open { display: block; }
  .no-js .masthead-row { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px 16px; }
  .no-js .nav { order: 3; width: 100%; }
  .no-js .nav > ul { flex-wrap: wrap; }
  .nav > ul { flex-direction: column; }
  .js .nav > ul > li { border-bottom: 1px solid var(--rule); }
  .js .nav-top { width: 100%; text-align: left; font-size: 19px; font-weight: 700; padding: 16px 0; color: var(--ink); border-radius: 0; }
  .js .nav-top:hover, .js .nav-group:hover > .nav-top { background: none; color: var(--accent); }
  .js .nav-top[aria-current], .js .nav-top[data-current] { box-shadow: none; color: var(--accent); }
  .nav-group > button::after { float: right; margin-top: 8px; }
  .nav-group > ul { position: static; box-shadow: none; padding: 0 0 12px; min-width: 0; }
  .nav-group > ul a { padding: 10px 0 10px 14px; font-size: 16px; }
  .nav :focus-visible { outline-color: var(--accent); }
  .masthead-tools { margin-left: auto; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; --header-gap: 10px; }
  .masthead { padding-left: 10px; padding-right: 10px; }
  .masthead-row { padding: 0 6px 0 16px; gap: 6px; }
  .call { padding: 0 14px; font-size: 14px; min-height: 42px; }
  .brand img { height: 32px; }
  .js .masthead-tools a.icon-btn { display: none; }
}

/* ---- Bands & section heads ---- */
.band { padding: 72px 0; }
.band.tight { padding: 44px 0; }
.band.stone { background: var(--stone); }
/* Grey cards turn white on a grey band, so they stay visible. */
.band.stone .review, .band.stone .deal, .band.stone .post-card.no-img { background: var(--paper); }
.band.navy, .band.ink { background: var(--navy); color: #eef0f7; }
.band.ink a { color: #fff; }
.band.ink .fine, .band.ink .hint { color: #b7bdd6; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0.6em 0 0; max-width: 60ch; }
.page-head { padding: 40px 0 32px; }
.page-head h1 { margin-top: 0.15em; }
.page-head + .band:not(.stone):not(.ink):not(.navy) { padding-top: 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #b9bfcf; }
.crumbs a { text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } .band { padding: 52px 0; } .section-head { flex-direction: column; align-items: start; } }

/* ---- Home: video hero with the finder ---- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(92svh, 880px); overflow: hidden; color: #fff; background: var(--navy); text-align: center; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 55%, rgba(5, 14, 61, 0.55), rgba(5, 14, 61, 0.25) 70%), linear-gradient(180deg, rgba(5, 14, 61, 0.45) 0%, rgba(5, 14, 61, 0) 30%, rgba(5, 14, 61, 0.35) 100%); }
.hero-inner { width: 100%; padding-top: calc(var(--header) + var(--header-gap) + 56px); padding-bottom: 96px; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.88); }
.hero h1 { max-width: 15ch; margin: 0 auto 0.3em; font-size: clamp(2.6rem, 6vw, 5rem); text-shadow: 0 2px 24px rgba(5, 14, 61, 0.35); }
.hero .lede { color: rgba(255, 255, 255, 0.95); margin: 0 auto 30px; max-width: 40ch; font-size: 1.15rem; }
.finder { max-width: 880px; margin: 0 auto; text-align: left; }
.finder-tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 14px; padding: 5px; gap: 4px; background: rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--pill); }
.finder-tab { min-height: 42px; padding: 0 22px; border: 0; border-radius: var(--pill); background: none; color: #fff; font: 700 15.5px/1 var(--sans); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.finder-tab:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.finder-tab[aria-selected=true] { background: #fff; color: var(--navy); }
.finder-panel { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(5, 14, 61, 0.3); }
.no-js .finder-tabs { display: none; }
.no-js .finder-panel + .finder-panel { margin-top: 12px; }
.finder-title { display: none; font-size: 1.2rem; margin: 0 0 10px; }
.no-js .finder-title { display: block; }
.finder-foot { margin: 10px 4px 0; font-size: 14.5px; color: var(--muted); }
.finder-foot a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.finder-foot a:hover { text-decoration: underline; }
.finder .quick-search { background: none; border: 0; padding: 0; }
.finder .qs-note { display: none; }
.finder-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.finder-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.finder-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-call { margin: 22px 0 0; font-size: 1.05rem; text-align: center; }
.hero-call a { color: #fff; font-weight: 800; }
.hero-call a:hover { color: #fff; text-decoration-thickness: 2px; }
.hero :focus-visible { outline-color: #fff; }
.hero .finder-panel :focus-visible { outline-color: var(--accent); }
.hero-toggle { position: absolute; right: var(--gutter); bottom: 52px; min-height: 36px; padding: 0 14px; background: rgba(5, 14, 61, 0.5); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--pill); font: 650 13px/1 var(--sans); cursor: pointer; }
.hero-toggle:hover { background: var(--navy); }
/* The page rises over the bottom of the video as a rounded sheet. */
.hero + .band { position: relative; margin-top: -36px; border-radius: 36px 36px 0 0; background: #fff; }
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: calc(var(--header) + var(--header-gap) + 36px); padding-bottom: 108px; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 22px; }
  .finder-tabs { width: 100%; }
  .finder-tab { flex: 1; justify-content: center; padding: 0 6px; font-size: 14.5px; }
  .finder-panel { padding: 14px 14px 12px; border-radius: 20px; }
  .finder-row { grid-template-columns: 1fr; }
  .hero-toggle { bottom: 42px; right: 12px; }
  .hero + .band { margin-top: -24px; border-radius: 24px 24px 0 0; }
}

/* ---- Home: where we work ---- */
.area-lede { font-size: 1.1rem; max-width: 64ch; margin-bottom: 28px; }
.area-rows { columns: 2; column-gap: 14px; }
.county { break-inside: avoid; display: grid; gap: 14px; margin-bottom: 14px; padding: 22px 24px 24px; background: #fff; border-radius: var(--r); }
.county h3 { margin: 0; }
.county ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.county a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 42px; padding: 10px 16px; background: var(--stone); border: 1.5px solid transparent; border-radius: var(--pill); font-size: 15.5px; font-weight: 650; text-decoration: none; }
.county a:hover { border-color: var(--accent); color: var(--ink); }
.county small { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.county b { font-size: 13px; font-weight: 600; color: var(--accent); }
.area-more { margin: 10px 0 0; }
@media (max-width: 760px) { .area-rows { columns: 1; } }
@media (max-width: 640px) { .county { padding: 18px 18px 20px; } .county ul { gap: 8px; } .county a { min-height: 40px; padding: 9px 14px; font-size: 15px; } }

/* Door cards (About page: who does what) */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.door { padding: 24px; background: #fff; border-radius: var(--r); display: flex; flex-direction: column; }
.door-verb { font-size: clamp(2rem, 3vw, 2.6rem); margin: 0 0 0.2em; }
.door p { font-size: 15.5px; color: #33363b; margin-bottom: 14px; }
.door-people, .people { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.door-people a, .people a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.door-people b, .people b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.door-people small, .people small { display: block; font-size: 13px; color: var(--muted); }
.door-next { margin-top: auto; font-weight: 600; text-decoration: none; border-top: 1px solid var(--rule); padding-top: 12px; min-height: 44px; }
.door-next span { display: inline-block; transition: transform 0.2s ease; }
.door:hover .door-next span { transform: translateX(4px); }
.door:target { background: var(--stone); }
.doors.flat { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .doors.flat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doors.flat { grid-template-columns: 1fr; } }

.portrait { width: 44px; height: 44px; object-fit: cover; object-position: top; background: var(--stone); flex: none; border-radius: 50%; }
.portrait.md { width: 96px; height: 96px; }
.portrait.lg { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--r); }
.portrait.xl { width: 220px; height: 260px; border-radius: var(--r); }
.portrait.mono { display: grid; place-items: center; font: 700 16px var(--display); color: var(--muted); background: var(--stone); border: 1px solid var(--rule); }
.portrait.md.mono { font-size: 30px; }
.portrait.lg.mono, .portrait.xl.mono { font-size: 64px; border: 0; }
/* Most headshots are cut-outs on white; multiply drops the white into the tint so they match. */
.portrait-frame { display: block; background: var(--stone); border-radius: var(--r); overflow: hidden; isolation: isolate; }
.portrait-frame img { mix-blend-mode: multiply; border-radius: 0; }
.portrait-frame.xl { width: 220px; }

/* ---- Quick search ---- */
.quick-search { display: grid; grid-template-columns: 1fr 170px 110px auto; gap: 10px; align-items: end; background: var(--stone); padding: 18px; border-radius: var(--r); }
.quick-search label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.quick-search input, .quick-search select { width: 100%; }
.qs-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .quick-search { grid-template-columns: 1fr 1fr; } .qs-main, .quick-search .btn { grid-column: 1 / -1; } }
/* Half-width panels are too narrow for the one-row search. */
.two-col .quick-search { grid-template-columns: 1fr 1fr; }
.two-col .qs-main, .two-col .quick-search .btn { grid-column: 1 / -1; }

/* ---- Forms ---- */
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #c9cedb; border-radius: var(--r-sm); padding: 10px 14px; min-height: 48px; width: 100%; }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--tint); outline-offset: 0; border-color: var(--accent); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
input[type=file] { padding: 9px; }
input[type=file]::file-selector-button { font: 600 14px var(--sans); color: var(--navy); background: var(--paper); border: 1.5px solid var(--navy); border-radius: var(--pill); padding: 8px 18px; margin-right: 12px; cursor: pointer; }
.pvg-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pvg-form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pvg-form fieldset:not(.checks) > legend { font: 700 1.35rem/1.2 var(--display); padding: 0; margin-bottom: 4px; }
.pvg-form fieldset:not(.checks) + fieldset:not(.checks) { margin-top: 30px; }
.pvg-form fieldset > .hint { grid-column: 1 / -1; margin: -10px 0 4px; }
.field { grid-column: 1 / -1; }
.field.half { grid-column: span 1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.req { color: var(--accent); }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 15.5px !important; }
.checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.checks legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 16px 0 12px; }
.form-actions { display: flex; gap: 10px; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status:empty { min-height: 0; margin: 0; }
.form-status.ok { color: #1f6b3a; }
.form-status.err { color: var(--accent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); }
.field .err-msg { color: var(--accent); font-size: 13.5px; margin: 4px 0 0; }
.pvg-form.compact .fields { gap: 12px; }
.band.ink .pvg-form label, .band.ink .pvg-form legend { color: #fff; }
.band.ink .form-note { color: #b7bdd6; }
.band.ink .btn { background: #fff; color: var(--navy); border-color: #fff; }
.band.ink .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.band.ink .form-status.ok { color: #9be0b0; }
.band.ink .form-status.err { color: #ffb4a3; }
.pvg-form.done .fields, .pvg-form.done .form-actions, .pvg-form.done .form-note { display: none; }
.js .pvg-form.stepped fieldset[data-step]:not([data-step="1"]) { display: none; }
.js .pvg-form.stepped[data-at="2"] fieldset[data-step="1"] { display: none; }
.js .pvg-form.stepped[data-at="2"] fieldset[data-step="2"] { display: grid; }
@media (max-width: 560px) { .pvg-form .fields, .pvg-form fieldset { grid-template-columns: 1fr; } .field.half { grid-column: 1 / -1; } .form-actions .btn { flex: 1; } }
.enquiry-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.enquiry-grid h2 { color: #fff; }
.band.ink .pvg-form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 28px; }
.band.ink .pvg-form label, .band.ink .pvg-form legend { color: var(--ink) !important; }
.band.ink .pvg-form .form-note { color: var(--muted); }
.band.ink .pvg-form .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.band.ink .pvg-form a { color: var(--accent); }
.band.ink .pvg-form .form-status.ok { color: #1f6b3a; }
.band.ink .pvg-form .form-status.err { color: #b3261e; }
.big-call { font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--display); margin: 0.2em 0; }
.big-call a { text-decoration: none; }
.faces { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 26px 0 0; }
.faces li + li { margin-left: -10px; }
.faces .portrait { width: 52px; height: 52px; border: 3px solid var(--navy); background: #fff; }
@media (max-width: 860px) { .enquiry-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---- Listings ---- */
.listing-rail, .listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.listing-grid { gap: 32px 20px; }
@media (max-width: 1160px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }
.listing-card { display: flex; flex-direction: column; }
.listing-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); border-radius: var(--r); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-card:hover .listing-photo img { transform: scale(1.03); }
.listing-photo.no-photo { aspect-ratio: 5 / 2; background: var(--navy); }
.sold-photo { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r); margin-bottom: 32px; }
.badge { position: absolute; left: 12px; bottom: 12px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 650; padding: 6px 12px; border-radius: var(--pill); }
.tag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--pill); }
.listing-body { padding: 14px 4px 0; }
.listing-price { font-weight: 800; color: var(--ink); margin: 0 0 2px; font-size: 1.3rem; letter-spacing: -0.02em; }
.listing-price small { font-weight: 500; color: var(--muted); }
.listing-price.big { font: 800 clamp(1.9rem, 3.2vw, 2.6rem)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; margin: 0; }
.listing-card h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin: 0 0 4px; }
.listing-card h3 a { text-decoration: none; }
.listing-meta { font-size: 14.5px; color: var(--muted); margin: 0; }
.listing-rail + .fine, .listing-grid + .fine { margin: 24px 0 0; }
@media (max-width: 1000px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 16px; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 0 var(--gutter) 10px; scrollbar-width: thin; }
  .listing-rail .listing-card { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .listing-rail .listing-card { flex-basis: 80%; }
  .listing-grid { grid-template-columns: 1fr; }
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tabs a { text-decoration: none; padding: 9px 16px; border: 1.5px solid var(--rule); border-radius: var(--pill); font-size: 14.5px; font-weight: 600; }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--rule); text-decoration: none; font-size: 14px; border-radius: var(--pill); }
.chip-list a:hover { border-color: var(--ink); }
.listing-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.listing-title h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 0.15em; }
.listing-title .lede { margin: 0; }
.gallery { padding: 24px 0 0; position: relative; }
.gallery-btn { position: absolute; top: calc(24px + min(62vh, 560px) / 2 - 26px); width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow); cursor: pointer; font: 400 22px/1 var(--sans); }
.gallery-btn:hover { background: var(--navy); color: #fff; }
.gallery-btn[disabled] { opacity: 0; pointer-events: none; }
.gallery-btn.prev { left: 20px; } .gallery-btn.next { right: 20px; }
@media (hover: none), (max-width: 640px) { .gallery-btn { display: none; } }
.gallery-rail { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; }
.gallery-rail img { flex: 0 0 auto; height: min(62vh, 560px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; background: var(--stone); border-radius: var(--r); }
.gallery-count { max-width: var(--max); margin: 4px auto 0; padding: 0 var(--gutter); font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .gallery-rail img { height: 62vw; } }
.listing-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.listing-ask { background: var(--stone); padding: 28px; border-radius: var(--r-lg); position: sticky; top: calc(var(--header) + var(--header-gap) + 20px); }
@media (max-width: 860px) { .listing-detail { grid-template-columns: 1fr; gap: 32px; } .listing-ask { position: static; } }
@media (min-width: 861px) and (max-width: 1100px) { .listing-ask .field.half { grid-column: 1 / -1; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0; margin: 0 0 24px; border-top: 1px solid var(--rule); }
.facts > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 700 1.45rem/1.2 var(--display); }
.open-house { display: inline-block; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--pill); }
.open-house.past { display: none; }
.badge.past { display: none; }
.mini-map { margin: 28px 0 0; max-width: 420px; }
.mini-map + .fine { margin-top: 18px; }
.action-bar { display: none; }
@media (max-width: 860px) {
  .has-action-bar .action-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(21, 23, 26, 0.08); transition: transform 0.25s ease; }
  .action-bar .btn { flex: 1 1 0; padding: 0 10px; white-space: nowrap; }
  .action-bar.away { transform: translateY(120%); }
  .has-action-bar .footer-legal { padding-bottom: 72px; }
}
.mini-map figcaption { font-size: 13.5px; color: var(--muted); }

/* ---- The nine-town map (src/map.js) ---- */
.map-band { background: var(--stone); }
.map-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.map-figure { margin: 0; }
.map-stage { position: relative; background: #d3dde6; border-radius: var(--r-lg); overflow: hidden; }
.map-figure figcaption { font-size: 13px; color: var(--muted); padding: 10px 0 0; }
.map-svg { display: block; width: 100%; height: auto; }
.map-svg .m-base { pointer-events: none; }
.map-svg .town-shape path { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill 0.2s ease; }
.map-svg .town-shape:hover path, .map-svg .town-shape.is-hot path { fill: var(--tint); }
.map-svg .town-shape.is-focus path { fill: #cdd5f0; stroke: var(--accent); stroke-width: 2; }
.map-svg .m-labels text { font: 650 27px var(--display); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.map-svg .m-labels circle { fill: var(--ink); }
.map-svg .town:hover text, .map-svg .town:focus-visible text, .map-svg .town.is-hot text { fill: var(--accent); }
.map-svg .town:focus { outline: none; }
.map-svg .town:focus-visible circle { fill: var(--accent); stroke: var(--accent); stroke-width: 8; stroke-opacity: 0.35; }
.map-svg .m-places text { font: 600 13px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; fill: #8a857e; }
.map-svg .m-places .m-manhattan { font: 600 25px var(--sans); letter-spacing: 0.55em; fill: #77726b; }
.map-svg .m-places .m-water-label { font: italic 400 18px var(--display); letter-spacing: 0.06em; text-transform: none; fill: #64798b; }
.map-svg .m-rings circle { fill: none; stroke: var(--accent); stroke-opacity: 0.6; stroke-width: 1.3; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-svg .m-rings text { font: 700 14px var(--sans); letter-spacing: 0.08em; fill: var(--accent); paint-order: stroke; stroke: #ebe7e1; stroke-width: 5px; stroke-linejoin: round; }
.map-svg .m-reach g { opacity: 0; transition: opacity 0.2s ease; }
.map-svg .m-reach g.is-hot { opacity: 1; }
.map-svg .m-reach line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
.map-svg .m-reach text { font: 700 15px var(--sans); fill: var(--accent); letter-spacing: 0.04em; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.map-svg .m-scale path { fill: none; stroke: var(--ink); stroke-width: 2; }
.map-svg .m-scale text { font: 600 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #ebe7e1; stroke-width: 4px; }
.map-svg .landmark circle, .map-svg .landmark rect { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.map-svg .landmark.midtown rect { fill: var(--ink); }
.map-svg .landmark text { font: 600 15px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #e2ddd6; stroke-width: 5px; stroke-linejoin: round; }
.map-svg .pin circle { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.map-svg .pin.rent circle { fill: #fff; stroke: var(--accent); stroke-width: 4; }
.map-svg .pin:hover circle, .map-svg .pin:focus-visible circle, .map-svg .pin.is-hot circle { stroke: var(--ink); stroke-width: 4; }
.map-svg .pin:focus { outline: none; }
.map-svg .pin.is-focus circle { fill: var(--accent); stroke: var(--ink); stroke-width: 4; }
.map-figure[data-show=sale] .pin.rent, .map-figure[data-show=rent] .pin:not(.rent) { display: none; }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.key-town { border: 1.5px solid var(--ink); background: #fff; border-radius: 0; }
.key-sale { background: var(--accent); }
.key-rent { border: 2.5px solid var(--accent); background: #fff; margin-left: 10px; }
.key-ring { border: 1.5px dotted var(--accent); width: 14px; height: 14px; vertical-align: -3px; }
.map-card { position: absolute; top: 14px; right: 14px; width: 236px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; padding: 14px 16px 12px; font-size: 13.5px; line-height: 1.45; }
.map-card p { margin: 0 0 6px; }
.map-card-h, .mc-t { font: 700 1.25rem/1.15 var(--display); margin-bottom: 8px !important; }
.map-card-hint { color: var(--muted); margin: 8px 0 0 !important; padding-top: 8px; border-top: 1px solid var(--rule); }
.mc-img { display: block; width: calc(100% + 32px); max-width: none; aspect-ratio: 3 / 2; object-fit: cover; margin: -14px -16px 12px; background: var(--stone); }
.mc-m { color: var(--muted); }
.mc-t.price { color: var(--accent); }
.map-card dl { margin: 8px 0 0; border-top: 1px solid var(--rule); }
.map-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.map-card dt { color: var(--muted); }
.map-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-go { font-weight: 600; margin: 10px 0 0 !important; }
.map-filter { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 2px; padding: 4px; background: #fff; border-radius: var(--pill); box-shadow: var(--shadow); }
.map-filter button { border: 0; background: none; font: 650 13px var(--sans); color: var(--ink); padding: 9px 14px; min-height: 38px; cursor: pointer; border-radius: var(--pill); }
.map-filter button:hover { color: var(--accent); }
.map-filter button[aria-pressed=true] { background: var(--navy); color: #fff; }
/* Entrance: towns cut out in turn, rings spread from Midtown, then the listings land. */
.js .map-live .town-shape path { opacity: 0; transition: opacity 0.7s ease calc(var(--i, 0) * 90ms), fill 0.2s ease; }
.js .map-live .m-rings circle { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; transition: opacity 1s ease 0.5s, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s; }
.js .map-live .pin circle { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) calc(900ms + var(--i, 0) * 70ms); }
.js .map-live.is-in .town-shape path, .js .map-live.is-in .m-rings circle { opacity: 1; transform: none; }
.js .map-live.is-in .pin circle { transform: none; }
.town-list { list-style: none; margin: 24px 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.town-list li { border-bottom: 1px solid var(--rule); }
.town-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 4px; text-decoration: none; }
.t-name { font: 700 1.2rem/1.2 var(--display); }
.t-meta { font-size: 13.5px; color: var(--muted); }
.t-meta b { color: var(--accent); font-weight: 600; }
.town-list .t-meta { grid-column: 1; }
.town-list a { border-radius: var(--r-sm); }
.town-list li.is-hot a, .town-list li.is-focus a { background: #fff; }
.town-list li.is-hot .t-name { color: var(--accent); }
@media (max-width: 1000px) { .map-grid { gap: 32px; grid-template-columns: 1.15fr 0.85fr; } .map-card { width: 200px; } }
@media (max-width: 760px) { .map-grid { grid-template-columns: 1fr; } .map-side { order: -1; } }
@media (max-width: 640px) {
  .map-card { display: none; }
  .map-filter { position: static; border-radius: 0; box-shadow: none; border-top: 1px solid var(--rule); }
  .map-filter button { flex: 1; }
  .map-svg .m-labels text { font-size: 34px; stroke-width: 8px; }
  .map-svg .town-shape path { stroke-width: 1.1; }
  .map-svg .m-places text, .map-svg .m-rings text { font-size: 17px; }
  .map-svg .m-places .m-water-label { font-size: 22px; }
  .map-svg .landmark text { font-size: 19px; }
  .map-svg .pin circle { r: 11px; }
}

/* ---- Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
.reviews-head { position: sticky; top: calc(var(--header) + var(--header-gap) + 28px); }
.reviews-list { display: grid; gap: 16px; }
.reviews-list.cols { grid-template-columns: 1fr 1fr; gap: 16px; }
.review { margin: 0; padding: 26px 28px; background: var(--stone); border-radius: var(--r-lg); }
.review blockquote { margin: 0 0 14px; font: 500 1.12rem/1.55 var(--display); }
.review blockquote p { margin: 0; }
.review-title { font-weight: 700; margin: 0 0 6px; }
.review figcaption { font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.review figcaption span { color: var(--muted); }
.review-agents a { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .reviews-grid, .reviews-list.cols { grid-template-columns: 1fr; gap: 28px; } .reviews-head { position: static; } }
@media (max-width: 640px) {
  .swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scrollbar-width: thin; }
  .swipe > * { flex: 0 0 86%; scroll-snap-align: start; }
  .review { padding: 22px; }
  .review blockquote { font-size: 1.05rem; }
}

/* ---- Team ---- */
.team-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.team-strip a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; gap: 4px; }
.team-strip b { font-size: 15px; line-height: 1.25; margin-top: 8px; }
.team-strip small { font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (max-width: 1000px) { .team-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .team-strip { grid-template-columns: repeat(2, 1fr); } }
.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.team-grid a { text-decoration: none; display: block; }
.team-grid .portrait-frame, .team-grid .portrait.mono { margin-bottom: 14px; }
.team-grid h2 { margin: 0 0 2px; }
.team-grid p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.agent { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.agent-card h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 18px 0 4px; }
.agent-title { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 760px) { .agent { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Prose (blog & guides) ---- */
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose h4, .prose h5 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose img { margin: 1.6em 0; width: 100%; height: auto; border-radius: var(--r); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: -1em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--stone); border-radius: var(--r); font-size: 1.08em; }
.prose a { color: var(--accent); }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; background: var(--stone); border-radius: var(--r); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.map { aspect-ratio: 4 / 3; margin: 0; }
.post-meta { font-size: 14.5px; color: var(--muted); }
.post-meta a { text-decoration: none; font-weight: 600; color: var(--ink); }
.post .page-head { border: 0; padding-bottom: 8px; }
.post .page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.post-foot { padding-top: 24px; padding-bottom: 56px; }
.post-cta { background: var(--stone); border-radius: var(--r); padding: 20px 24px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post-card h3 { font-size: 1.2rem; margin: 0; }
.post-card h3 a { text-decoration: none; }
.post-card .post-meta { margin: 12px 0 6px; font-size: 13.5px; }
.post-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); border-radius: var(--r); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card.no-img { background: var(--stone); border-radius: var(--r); padding: 4px 22px 22px; }
.post-card.no-img .post-meta { margin-top: 14px; }
.post-excerpt { font-size: 15.5px; color: #3b3e44; margin: 10px 0 0; }
.post-card.lead:not(.no-img) { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 28px; align-content: start; }
.post-card.lead .post-img { grid-row: span 5; }
.post-card.lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.post-card.lead.no-img { grid-column: span 2; display: flex; flex-direction: column; justify-content: end; min-height: 300px; padding: 28px 36px 32px; background: var(--navy); color: #fff; border-radius: var(--r-lg); }
.post-card.lead.no-img h3 { max-width: 22ch; }
.post-card.lead.no-img .post-meta, .post-card.lead.no-img .post-meta a { color: #c4c9de; }
.post-card.lead.no-img .post-excerpt { color: #dfe3f0; max-width: 60ch; font-size: 16.5px; }
.post-card.lead.no-img a:hover { color: #fff; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } .post-card.lead { grid-template-columns: 1fr; } .post-card.lead .post-img { grid-row: auto; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; gap: 20px; } .post-card.lead, .post-card.lead.no-img { grid-column: auto; min-height: 0; padding: 22px 22px 24px; } }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 18px; font-size: 15px; }
.pager a { font-weight: 600; text-decoration: none; }
.reading ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.reading li { border-bottom: 1px solid var(--rule); }
.reading a { display: block; padding: 12px 0; text-decoration: none; font-weight: 500; }

/* ---- Towns ---- */
.town-hero { background: var(--navy); color: #fff; }
.town-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.town-hero .crumbs ol, .town-hero .crumbs a { color: #c4c9de; }
.town-hero .lede { color: #e6e6e6; }
.town-locator { margin: 0; background: #fff; padding: 6px; border-radius: var(--r); overflow: hidden; }
.town-locator .town:not(.is-focus) text, .town-locator .m-places, .town-locator .m-rings text, .town-locator .landmark text, .town-locator .m-scale, .town-locator .m-reach { display: none; }
.town-locator .town.is-focus text { font-size: 46px; stroke-width: 9px; }
.town-locator .pin circle { r: 9px; }
@media (max-width: 760px) { .town-hero-grid { grid-template-columns: 1fr; gap: 20px; } .town-locator { max-width: 260px; } }
.town-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.town-facts .facts { grid-template-columns: 1fr 1fr; }
.town-stats > div { display: flex; flex-direction: column; }
.town-stats dd small { font: 400 0.6em var(--sans); color: var(--muted); }
.town-stats span { font-size: 13px; color: var(--muted); margin-top: 2px; }
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); text-align: right; }
.compare th:first-child { text-align: left; }
.compare thead th { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; border-bottom: 2px solid var(--navy); }
.compare tbody th { font: 700 1.1rem var(--display); }
.compare tbody th a { text-decoration: none; }
.compare tr.nj th, .compare tr.nj td { color: var(--muted); border-bottom: 0; font-style: italic; }
.town-facts .btn { margin-top: 8px; width: 100%; }
.grades { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 24px; }
.grades li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.grade { display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 8px; font: 650 15px var(--sans); border: 1.5px solid var(--navy); border-radius: var(--pill); }
.grade.g-A { background: var(--navy); color: #fff; }
.ranks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15.5px; }
.ranks b { font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.schools { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.schools ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.schools li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.town-notes p { max-width: 72ch; }
.town-map { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.town-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.town-card { background: var(--stone); border-radius: var(--r); padding: 22px 24px; }
.town-card h2 { margin: 0 0 4px; }
.town-card h2 a { text-decoration: none; }
.town-card p { font-size: 15.5px; }
@media (max-width: 860px) { .town-intro, .schools, .town-map { grid-template-columns: 1fr; gap: 32px; } .town-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .town-cards { grid-template-columns: 1fr; } }

/* ---- Misc pages ---- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; margin-bottom: 18px; padding-left: 50px; min-height: 34px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 15px/1 var(--display); }
/* An agent above a reading list: give the two their own space. */
.people + .reading, .people + section { margin-top: 36px; }
.def dt { font: 700 1.35rem/1.2 var(--display); margin-top: 18px; }
.def dd { margin: 4px 0 0; }
.factors { padding-left: 1.4em; }
.factors li { margin-bottom: 8px; }
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deal { background: var(--stone); border-radius: var(--r); padding: 22px 24px; }
.deal h3 { margin-bottom: 2px; }
.deal ul { list-style: none; padding: 0; margin: 10px 0; font-size: 14.5px; }
.deal li { padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.deal-result { font-weight: 700; color: var(--accent); margin: 0; }
.deal.sold { display: flex; flex-direction: column; }
.deal.sold .deal-result { order: -1; margin: 0 0 14px; color: var(--ink); font: 800 1.65rem/1.15 var(--display); letter-spacing: -0.025em; }
.deal.sold .deal-result small { display: block; margin-bottom: 4px; font: 700 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.deal.sold .deal-extra { display: block; font-size: 0.6em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.deal.sold h3 { font-size: 1.1rem; }
.deal.sold .t-meta { margin: 0; }
@media (max-width: 900px) { .deal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .deal-grid { grid-template-columns: 1fr; } }
.team-photo { margin: 0; }
.team-photo img { border-radius: var(--r-lg); }
.team-photo figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.faq details { background: var(--stone); border-radius: var(--r); padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font: 700 1.15rem/1.35 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 300 26px var(--sans); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 20px; max-width: 64ch; }
.contact-block address { margin: 18px 0; }
.site-search { display: flex; gap: 10px; margin-top: 18px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.search-results a { font: 700 1.2rem/1.3 var(--display); text-decoration: none; }
.search-results .k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }
.search-results p { margin: 4px 0 0; font-size: 15px; color: #3b3e44; }
.search-results mark { background: var(--tint); color: inherit; }

/* ---- Calculator ---- */
.calc { padding: 28px; background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 18px 0 24px; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.calc legend { font: 700 1.3rem var(--display); margin-bottom: 8px; padding: 0; }
.calc label { font-size: 14px; font-weight: 600; display: grid; grid-template-rows: 1fr auto; align-items: end; gap: 4px; }
.calc-peek { display: none; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); }
.calc-out > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); display: grid; }
.calc-out span { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.calc-out b { font: 700 1.9rem/1.2 var(--display); }
.calc-out b.neg { color: var(--accent); }
.calc-out small { font-size: 13px; color: var(--muted); }
.flip { margin-top: 20px; }
.flip summary { cursor: pointer; font-weight: 600; }
.flip label { max-width: 280px; margin-top: 10px; }
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; } .calc-out { grid-template-columns: 1fr 1fr; } .calc { padding: 18px; }
  .calc-peek { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; position: sticky; bottom: 0; z-index: 5; margin: 0 -18px; padding: 12px 18px; background: var(--navy); color: #d9dcea; font-size: 13.5px; border-radius: var(--r) var(--r) 0 0; }
  .calc-peek b { font: 700 1.3rem var(--display); color: #fff; margin-left: 4px; }
  .calc-peek b.neg { color: #ffb4a3; }
}


/* ---- Footer ---- */
.footer { background: var(--navy); color: #d9dcea; padding: 72px 0 28px; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-id img { width: auto; height: 64px; margin-bottom: 20px; }
.footer h2 { font: 700 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #a4abc8; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer .socials { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-call { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: baseline; }
.footer-call a { font: 700 1.35rem var(--display); }
.footer-call span { color: #a4abc8; font-size: 13px; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: #a4abc8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } .footer-id { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .masthead, .footer, .pvg-form, .listing-ask { display: none; } }
