/* Dens-City — site styles
   Palette taken from the Dens-City logo: navy #293C47, brass #BD8D4E.
   Type: Archivo variable (wght 100–900, wdth 62–125). Wide cut for display, normal width for reading. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"), url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-ext.woff2") format("woff2-variations"), url("/assets/fonts/archivo-var-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #16232b;        /* deep navy for dark bands */
  --navy: #293c47;       /* logo navy: headings, body on light */
  --navy-2: #3d5563;
  --slate: #5a6b74;      /* secondary text */
  --brass: #bd8d4e;      /* logo brass: graphics, large numerals, lines */
  --brass-text: #8a6230; /* brass dark enough for small text on white (5.0:1) */
  --brass-soft: #f3e9db;
  --paper: #ffffff;
  --draft: #eef2f3;      /* cool drafting-paper band */
  --rule: #d3dbdf;
  --grid: rgba(41, 60, 71, 0.06);
  --six: #bd8d4e;        /* map: up to 6 homes */
  --four: #4f7f9c;       /* map: up to 4 homes */
  --other: #aeb9bf;      /* map: other house zoning */
  --ok: #2f6b4f;
  --warn: #8a4b14;
  --radius-s: 4px;
  --radius-m: 10px;
  --shadow: 0 1px 2px rgba(22, 35, 43, 0.06), 0 8px 24px rgba(22, 35, 43, 0.07);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%; font-weight: 400;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-text); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); margin: 0 0 0.5em; line-height: 1.08; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.1vw, 3.7rem); font-weight: 800; font-stretch: 125%; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.65rem); font-weight: 780; font-stretch: 122%; }
h3 { font-size: 1.28rem; font-weight: 700; font-stretch: 110%; line-height: 1.2; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.12rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--navy-2); max-width: 36em; }
.muted { color: var(--slate); }
.small { font-size: 0.875rem; line-height: 1.5; }
.tiny { font-size: 0.78rem; line-height: 1.45; }
.measure { max-width: 42em; }
.num { font-variant-numeric: tabular-nums; }
strong { font-weight: 650; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.35em; border-radius: var(--radius-s); border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 650; font-stretch: 108%; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-brass { --bg: var(--brass); --fg: #16232b; }
.btn-brass:hover { background: #d3a668; border-color: #d3a668; color: #16232b; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 56px; width: auto; }
.brokerage { font-size: 0.82rem; font-weight: 600; color: var(--slate); padding-left: 16px; border-left: 1px solid var(--rule); line-height: 1.2; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 11px; font-weight: 560; font-stretch: 100%; font-size: 0.95rem; white-space: nowrap; text-decoration: none; color: var(--navy); border-radius: var(--radius-s); }
.nav a:hover { background: var(--draft); color: var(--navy); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brass); border-radius: 0; }
.nav .btn { margin-left: 8px; min-height: 44px; padding: 0.55em 1.1em; color: #fff; }
.nav .btn:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: var(--radius-s); width: 48px; height: 44px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { margin: auto; }
@media (max-width: 1240px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--draft); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--brass-text); }
  .nav .btn { margin: 12px 0 0; }
  .brand img { height: 44px; }
  .brokerage { font-size: 0.72rem; padding-left: 10px; }
}
@media (max-width: 420px) { .brokerage { white-space: normal; max-width: 7.5em; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.band-draft { background: var(--draft); }
.band-ink { background: var(--ink); color: #dfe6ea; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a { color: #fff; }
.band-ink .muted { color: #a9b8c0; }
.grid-paper {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
}
.band-ink.grid-paper { --grid: rgba(255,255,255,0.045); }
.section-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--slate); font-size: 1.1rem; }
.band-ink .section-head p { color: #b9c7cf; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 14em; font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.3rem); }
.hero .lede { margin-bottom: 28px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.lookup { display: flex; gap: 8px; max-width: 560px; }
.lookup input { flex: 1; min-width: 0; }
.lookup-note { margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }

/* Lot plan figure */
.lotplan { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 18px 18px 14px; box-shadow: var(--shadow); }
.lotplan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lotplan-count { font-stretch: 125%; font-weight: 820; font-size: 2.1rem; line-height: 1; color: var(--navy); }
.lotplan-count span { color: var(--brass); }
.lotplan-tabs { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; }
.lotplan-tabs button { font: inherit; font-size: 0.86rem; font-weight: 600; padding: 8px 12px; border: 0; background: #fff; color: var(--navy); cursor: pointer; border-left: 1px solid var(--rule); min-height: 40px; }
.lotplan-tabs button:first-child { border-left: 0; }
.lotplan-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lotplan svg { width: 100%; height: auto; }
.lotplan figcaption { font-size: 0.85rem; color: var(--slate); margin-top: 6px; }
.lp-unit { transition: opacity 0.5s ease, transform 0.5s ease; transform-box: fill-box; transform-origin: center; }
.lp-hide { opacity: 0; transform: scale(0.94); }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-weight: 400; color: var(--slate); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy); background: #fff;
  border: 1.5px solid #b8c4ca; border-radius: var(--radius-s); padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(189,141,78,0.45); outline-offset: 0; border-color: var(--brass-text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-s); display: none; }
.form-status.ok { display: block; background: #e7f2ec; color: var(--ok); border: 1px solid #b9d8c7; }
.form-status.err { display: block; background: #fbeee4; color: var(--warn); border: 1px solid #ecc9ad; }
.form-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }

/* ---------- At-a-glance comparison ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare caption { text-align: left; color: var(--slate); font-size: 0.9rem; padding-bottom: 10px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.compare thead th { font-stretch: 115%; font-weight: 750; font-size: 1.05rem; border-bottom: 2px solid var(--navy); }
.compare tbody th { font-weight: 600; color: var(--slate); width: 22%; font-size: 0.95rem; }
.compare .big { font-stretch: 120%; font-weight: 800; font-size: 1.5rem; line-height: 1.1; display: block; color: var(--navy); }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .compare th, .compare td { display: block; border: 0; padding: 4px 0; width: auto; }
  .compare td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.8rem; color: var(--brass-text); }
}

/* ---------- Housing forms (plan icons) ---------- */
.forms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.form-item { padding: 24px 18px 26px; border-left: 1px solid var(--rule); }
.form-item:first-child { border-left: 0; padding-left: 0; }
.form-item svg { width: 100%; max-width: 150px; height: 96px; margin-bottom: 14px; }
.form-item .homes { font-stretch: 125%; font-weight: 820; font-size: 1.9rem; line-height: 1; color: var(--brass); }
.form-item h3 { margin: 6px 0 6px; font-size: 1.08rem; }
.form-item p { font-size: 0.93rem; color: var(--slate); margin: 0; }
@media (max-width: 980px) { .forms { grid-template-columns: repeat(2, 1fr); } .form-item, .form-item:first-child { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .forms { grid-template-columns: 1fr; } }

/* ---------- Map teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.teaser-map { border-radius: var(--radius-m); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); aspect-ratio: 4 / 3; background: #22323b; position: relative; }
.teaser-map #mini-map { position: absolute; inset: 0; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 26px; padding: 0; list-style: none; font-size: 0.95rem; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; margin-right: 8px; }
.sw-six { background: var(--six); } .sw-four { background: var(--four); } .sw-other { background: var(--other); }
.sw-hatch { background: repeating-linear-gradient(45deg, #9aa7ae 0 3px, transparent 3px 7px); border: 1px solid #9aa7ae; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- Cost ledger ---------- */
.ledger { border-top: 2px solid var(--navy); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger-row .what { font-weight: 600; }
.ledger-row .what small { display: block; font-weight: 400; color: var(--slate); font-size: 0.88rem; margin-top: 2px; }
.ledger-row .range { font-stretch: 112%; font-weight: 750; font-size: 1.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.callout { border-left: 4px solid var(--brass); background: var(--brass-soft); padding: 16px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.callout p:last-child { margin: 0; }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; }
.path { background: #fff; padding: 26px 24px 24px; display: flex; flex-direction: column; }
.path h3 { margin-bottom: 8px; }
.path p { color: var(--slate); font-size: 0.97rem; flex: 1; }
.meters { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 0.83rem; color: var(--slate); margin-top: 8px; }
.meter { display: flex; gap: 3px; }
.meter i { display: block; width: 22px; height: 6px; border-radius: 2px; background: #e1e7ea; }
.meter i.on { background: var(--navy); }
.meter.risk i.on { background: var(--brass); }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border: 2px solid var(--brass); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-stretch: 120%; color: var(--brass); }
.steps li::after { content: ""; position: absolute; top: 21px; left: 54px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.band-ink .steps li p { color: #b9c7cf; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.14); }
.team .role { color: var(--brass); font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.team h3 { margin-bottom: 4px; }
.team a { text-decoration: none; }
.team a:hover { text-decoration: underline; color: #fff; }
.team p { color: #b9c7cf; font-size: 0.95rem; margin: 0 0 4px; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }

/* ---------- Seminar band ---------- */
.seminar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: center; }
.datechip { width: 104px; text-align: center; border: 2px solid var(--navy); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.datechip .m { background: var(--navy); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 6px 0; letter-spacing: 0.04em; }
.datechip .d { font-stretch: 125%; font-weight: 850; font-size: 2.6rem; line-height: 1.15; padding: 4px 0 6px; }
@media (max-width: 760px) { .seminar { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-stretch: 106%; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; max-width: 46em; color: var(--navy-2); }

/* ---------- Guide pages ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); max-width: 16em; }
.crumbs { font-size: 0.88rem; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.guide-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 1.8em; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { margin-top: 1.5em; }
.guide-body ul, .guide-body ol { padding-left: 1.2em; }
.guide-body li { margin-bottom: 0.45em; }
.guide-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 20px; background: #fff; }
.aside-card h3 { font-size: 1.05rem; }
.aside-card.dark { background: var(--ink); color: #dfe6ea; border-color: var(--ink); }
.aside-card.dark h3 { color: #fff; }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; } .guide-aside { position: static; } }
.spec { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.98rem; }
.spec th, .spec td { border-bottom: 1px solid var(--rule); padding: 11px 12px 11px 0; text-align: left; vertical-align: top; }
.spec thead th { border-bottom: 2px solid var(--navy); font-weight: 700; font-size: 0.92rem; }
.spec tbody th { font-weight: 600; width: 38%; }
.spec td { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sources { font-size: 0.88rem; color: var(--slate); border-top: 1px solid var(--rule); margin-top: 36px; padding-top: 16px; }
.sources ul { padding-left: 1.1em; }
.status { display: inline-block; font-size: 0.78rem; font-weight: 650; padding: 3px 8px; border-radius: 3px; background: var(--draft); color: var(--navy-2); vertical-align: 2px; }
.status.verified { background: #e7f2ec; color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9b8c0; padding: 56px 0 36px; font-size: 0.92rem; }
.site-footer a { color: #dfe6ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.foot-grid h2 { font-size: 0.95rem; color: #fff; font-stretch: 110%; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-logo { width: 240px; margin-bottom: 16px; }
.disclosure { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; font-size: 0.82rem; line-height: 1.55; color: #93a4ad; }
.disclosure p { margin-bottom: 0.7em; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Map page ---------- */
.map-page body, body.map-page { overflow: hidden; }
.map-shell { display: grid; grid-template-columns: 400px minmax(0, 1fr); height: calc(100vh - 77px); height: calc(100dvh - 77px); }
.map-panel { overflow-y: auto; border-right: 1px solid var(--rule); background: #fff; padding: 22px 22px 28px; }
.map-panel h1 { font-size: 1.65rem; font-stretch: 118%; margin-bottom: 8px; }
#map { position: relative; min-height: 360px; background: #e9eef0; }
.search-box { position: relative; margin: 16px 0 6px; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-s); box-shadow: var(--shadow); display: none; }
.suggest.open { display: block; }
.suggest li { padding: 10px 14px; cursor: pointer; font-size: 0.95rem; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--draft); }
.result { margin: 18px 0; border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; display: none; }
.result.show { display: block; }
.result-head { padding: 16px 18px; background: var(--ink); color: #fff; }
.result-head .addr { font-size: 0.9rem; color: #b9c7cf; margin-bottom: 4px; }
.result-head .verdict { font-stretch: 122%; font-weight: 820; font-size: 1.7rem; line-height: 1.1; }
.result-head .verdict small { display: block; font-size: 0.95rem; font-weight: 500; font-stretch: 100%; color: #dfe6ea; margin-top: 6px; line-height: 1.4; }
.result-body { padding: 14px 18px 18px; font-size: 0.94rem; }
.result-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.result-body dt { color: var(--slate); }
.result-body dd { margin: 0; font-weight: 600; }
.result-body ul { padding-left: 1.1em; margin: 8px 0 14px; }
.layer-list { list-style: none; padding: 0; margin: 10px 0 0; }
.layer-list li { margin-bottom: 8px; }
.layer-list label { font-weight: 500; display: flex; gap: 10px; align-items: center; margin: 0; cursor: pointer; }
.layer-list input { width: 18px; height: 18px; accent-color: var(--navy); }
.panel-section { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 18px; }
.panel-section h2 { font-size: 1rem; font-stretch: 110%; margin-bottom: 6px; }
.maplibregl-popup-content { font-family: var(--font); font-size: 0.9rem; color: var(--navy); border-radius: var(--radius-s); padding: 12px 14px; }
@media (max-width: 860px) {
  body.map-page { overflow: auto; }
  .map-shell { grid-template-columns: 1fr; grid-template-rows: 58vh auto; height: auto; }
  #map { grid-row: 1; height: 58vh; }
  .map-panel { grid-row: 2; border-right: 0; border-top: 1px solid var(--rule); }
}

/* ---------- Misc ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: 0.9rem; }
.notice { font-size: 0.85rem; color: var(--slate); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose { max-width: 46em; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

/* ---------- MLS® listings (IDX display) ----------
   Board rules: listing text, brokerage name, logo and copyright share one size and colour;
   brokerage name never truncated; MLS® Reciprocity logo never smaller than 95 x 35. */
.idx-page [hidden] { display: none !important; }
.idx-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 4px 0 20px; border-bottom: 1px solid var(--rule); }
.idx-logo { width: 109px; height: 44px; flex: none; display: block; }
.idx-notice { margin: 0; max-width: 52em; font-size: 0.95rem; color: var(--navy-2); }
.idx-page .crumbs + .idx-notice { margin-bottom: 22px; }
.idx-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 22px 0 18px; }
.seg { display: inline-flex; border: 1px solid var(--navy); border-radius: var(--radius-s); overflow: hidden; }
.seg button { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 9px 14px; border: 0; background: #fff; color: var(--navy); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--navy); }
.seg button[aria-checked="true"] { background: var(--navy); color: #fff; }
.seg button:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.idx-sort { display: flex; gap: 10px; align-items: center; margin: 0; }
.idx-sort select { width: auto; min-width: 200px; }
.idx-status { color: var(--slate); margin: 0 0 18px; }
.idx-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.idx-card a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; }
.idx-card a:hover { border-color: var(--navy); }
.idx-card a:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.idx-ph { aspect-ratio: 4 / 3; background: var(--draft); }
.idx-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idx-tx { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.idx-tx p { font-size: 1rem; line-height: 1.45; margin: 0 0 3px; color: var(--ink); }
.idx-strong { font-weight: 700; }
.idx-tx .idx-brk { margin-top: auto; padding-top: 10px; font-weight: 600; overflow-wrap: anywhere; }
.idx-pager { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin: 30px 0 0; }
.idx-legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 62em; }
.idx-legal p { font-size: 1rem; line-height: 1.55; color: var(--ink); }
.idx-detail { color: var(--ink); }
.idx-detail p, .idx-detail dt, .idx-detail dd, .idx-detail .idx-h { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.idx-detail .idx-h { font-family: var(--font); font-weight: 700; font-stretch: 100%; letter-spacing: 0; margin: 0 0 4px; max-width: none; }
.idx-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.idx-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-s); background: var(--draft); }
.idx-gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; display: block; }
.idx-gallery:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.idx-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0 18px; }
.idx-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.idx-remarks { white-space: pre-line; }
.idx-after { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 62em; }
.idx-after .idx-logo { margin: 4px 0 14px; }
@media (max-width: 860px) { .idx-body { grid-template-columns: 1fr; } }

/* ---------- Homepage additions (2026-10-23 redesign) ---------- */
.stats { border-bottom: 1px solid var(--rule); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.stats-grid p { margin: 0; color: var(--slate); font-size: 0.93rem; line-height: 1.45; }
.stats-grid .stat { color: var(--navy); font-stretch: 122%; font-weight: 820; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .stats-grid { grid-template-columns: 1fr; } }
.section-flush-top { padding-top: 0; }

.build-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.build-steps figure { margin: 0; }
.build-steps img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--radius-m); background: var(--draft); }
.build-steps figcaption { margin-top: 10px; font-weight: 650; font-stretch: 108%; color: var(--navy); }
.build-steps figcaption span { color: var(--brass-text); font-weight: 800; margin-right: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .build-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .build-steps { grid-template-columns: 1fr; } }

.bios-title { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 1.6rem; font-stretch: 118%; }
.bios { display: grid; gap: 20px; margin-top: 20px; }
.bio { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 32px); }
.bio img { width: 168px; height: 168px; object-fit: cover; border-radius: var(--radius-m); }
.bio .role { color: var(--brass); font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.bio h3 { font-size: 1.6rem; font-stretch: 118%; margin-bottom: 4px; }
.bio p { color: #c9d4da; margin: 0 0 0.8em; }
.bio .bio-title { color: #a9b8c0; font-size: 0.95rem; }
.bio .bio-contact { margin: 0; }
.bio .bio-contact a { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 16px; }
.chips li { border: 1px solid rgba(189,141,78,0.55); color: #f1e4d1; border-radius: 999px; padding: 4px 12px; font-size: 0.86rem; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; } .bio img { width: 128px; height: 128px; } }

.signoff { margin-top: 18px; font-weight: 600; color: var(--navy); }

.guide-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-links a { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 22px; text-decoration: none; color: var(--navy); }
.guide-links a:hover { border-color: var(--navy); color: var(--navy); }
.guide-links .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-text); }
.guide-links strong { font-size: 1.12rem; font-stretch: 110%; font-weight: 720; line-height: 1.25; }
.guide-links a > span:last-child { color: var(--slate); font-size: 0.93rem; }
@media (max-width: 900px) { .guide-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-links { grid-template-columns: 1fr; } }

/* ---------- Blog and news ---------- */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.post-card > div { padding: 18px 20px 20px; }
.post-card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { color: var(--slate); font-size: 0.95rem; margin: 0; }
.post-meta { font-size: 0.85rem; color: var(--slate); margin: 0; }
.post-meta span { color: var(--brass-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.post-card .post-meta { font-size: 0.82rem; }
.post-hero { width: 100%; height: auto; border-radius: var(--radius-m); margin-bottom: 24px; }
.post .page-head h1 { max-width: 20em; }
.post-disclaimer { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 32px; }
@media (max-width: 980px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }
