/* Conejo Life — design system
   Palette drawn from the valley: valley-oak green, chaparral sage, Boney Mountain
   sandstone, California poppy, evening sky over the Conejo Grade.
   Newsreader (display) + Public Sans (reading text). */

:root {
  --ink: #1d2721;
  --ink-soft: #435048;
  --ink-faint: #5a665e;      /* 5.6:1 on paper, 5.1:1 on paper-sunken */
  --paper: #f7f5ef;
  --paper-raised: #ffffff;
  --paper-sunken: #efebe0;
  --line: #ddd7c8;
  --line-dark: #c9c1ad;
  --oak: #3d5a40;
  --oak-deep: #2a4130;       /* white on it 10:1 */
  --oak-night: #1b2b20;
  --sage: #7b8d6c;
  --sage-pale: #e4e9dc;
  --poppy: #c7652b;
  --poppy-deep: #974310;     /* 6.2:1 on paper; white on it 6.6:1 */
  --stone: #a5876a;
  --stone-pale: #f2e9df;
  --sky: #2f5d78;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 39, 33, .06), 0 8px 24px rgba(29, 39, 33, .07);
  --shadow-lift: 0 2px 4px rgba(29, 39, 33, .08), 0 14px 34px rgba(29, 39, 33, .12);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1140px;
  color-scheme: only light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--oak-deep); text-decoration: none; }
a:hover { color: var(--poppy-deep); }

/* Links inside running text are underlined, not marked by color alone (WCAG 1.4.1) */
p a:not(.btn):not(.more), main li a:not(.btn):not(.more):not(.chip):not(.card-link), td a, .note a, .footer-legal a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
p a:not(.btn):hover, main li a:not(.btn):not(.chip):hover, td a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: absolute; left: 12px; top: 10px; z-index: 1000;
  background: var(--oak-night); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 10px 16px; border-radius: var(--radius-sm); transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #fff; outline: 2px solid var(--poppy); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
:focus-visible { outline: 2px solid var(--poppy-deep); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.24rem; }
h4 { font-size: 1.05rem; }
p + p { margin-top: .85em; }
strong { font-weight: 650; }
.small { font-size: .88rem; color: var(--ink-faint); }
.mt-1 { margin-top: .8rem; } .mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2.2rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(247, 245, 239, .96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; max-width: 1260px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-icon { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark { font-family: var(--font-display); font-size: 1.42rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark .accent { color: var(--poppy-deep); font-style: italic; font-weight: 600; }
.brand-tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint); margin-top: 3px; white-space: nowrap; }
@media (max-width: 420px) { .brand-tag { display: none; } }

nav.primary { display: flex; gap: 2px; align-items: center; }
nav.primary > a, .nav-drop > button {
  font: 600 .9rem/1 var(--font-body); color: var(--ink-soft);
  padding: 10px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
nav.primary > a:hover, .nav-drop > button:hover { background: var(--paper-sunken); color: var(--ink); }
nav.primary > a.active, .nav-drop.active > button { background: var(--oak-deep); color: #fff; }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.drop-panel {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 280px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 10px; display: none;
}
.nav-drop.open .drop-panel { display: block; }
.drop-panel a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .93rem; }
.drop-panel a:hover { background: var(--sage-pale); color: var(--ink); }
.drop-panel a span { color: var(--ink-faint); font-weight: 500; font-size: .82rem; }
.drop-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.nav-toggle { display: none; font-size: 1.45rem; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift);
    padding: 8px 14px 16px; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  nav.primary.open { display: flex; }
  nav.primary > a, .nav-drop > button { padding: 13px 12px; border-radius: var(--radius-sm); text-align: left; width: 100%; font-size: 1rem; }
  .drop-panel { position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--oak-night); isolation: isolate; }
/* The art is anchored to the bottom and capped in height, so on tall (phone) heroes the ridges
   stay below the text; the hero's own background matches the SVG's sky color above it. */
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; height: min(100%, 560px); z-index: -2; }
.hero-art svg { width: 100%; height: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 14, 10, .42) 0%, rgba(8, 14, 10, .18) 45%, rgba(8, 14, 10, 0) 70%);
  /* fade out before the front (page-colored) ridge so it meets the page without a seam */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent calc(100% - 70px)); mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent calc(100% - 70px)); }
.hero .wrap > * { position: relative; }
.hero .wrap { padding-top: 64px; padding-bottom: 150px; }
.hero.compact .wrap { padding-top: 40px; padding-bottom: 116px; }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero.compact h1 { max-width: 22ch; }
.hero .lede { max-width: 62ch; font-size: 1.1rem; margin-top: 16px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(20, 30, 22, .55); }
.hero h1, .hero .kicker { text-shadow: 0 1px 3px rgba(20, 30, 22, .45); }
.hero .kicker { color: #f5c9a4; }
.hero .breadcrumb, .hero .breadcrumb a { color: rgba(255, 255, 255, .82); }
.hero .stamp { color: rgba(255, 255, 255, .78); }
.hero .stamp a { color: #fff; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--poppy-deep); margin-bottom: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: -74px; position: relative; z-index: 2; background: var(--paper-raised); border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.hero-stats > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; line-height: 1.1; color: var(--oak-deep); }
.hero-stats span { font-size: .84rem; color: var(--ink-faint); }
@media (max-width: 640px) {
  .hero .wrap { padding-top: 42px; padding-bottom: 120px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(2n) { border-right: 0; }
  .hero-stats > div { border-bottom: 1px solid var(--line); }
}

.breadcrumb { font-size: .86rem; color: var(--ink-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.breadcrumb span[aria-hidden] { margin: 0 6px; opacity: .7; }
.stamp { font-size: .84rem; color: var(--ink-faint); margin-top: 18px; }

.page-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
@media (max-width: 640px) {
  .page-toc { flex-wrap: nowrap; overflow-x: auto; margin-right: -22px; padding-right: 22px; padding-bottom: 4px; scrollbar-width: none; }
  .page-toc::-webkit-scrollbar { display: none; }
  .page-toc a { flex: none; }
  .hero-art { height: min(100%, 300px); }
}
.page-toc a { font-size: .84rem; font-weight: 600; color: #fff; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.page-toc a:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 .86rem/1 var(--font-body); letter-spacing: .02em; padding: 13px 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--poppy-deep); color: #fff; }
.btn-primary:hover { background: #7d360b; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-line { border-color: var(--oak-deep); color: var(--oak-deep); background: transparent; }
.btn-line:hover { background: var(--oak-deep); color: #fff; }
.more { font-weight: 700; font-size: .9rem; color: var(--oak-deep); }
.more:hover { color: var(--poppy-deep); }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--sage-pale); color: var(--oak-deep); }
.chip.warm { background: var(--stone-pale); color: var(--poppy-deep); }
.chip.line { background: transparent; border: 1px solid var(--line-dark); color: var(--ink-soft); }

/* ---------- Sections ---------- */
.band { padding: 64px 0; }
.band.tight { padding: 44px 0; }
.band.sunken { background: var(--paper-sunken); }
.band.oak { background: var(--oak-night); color: #eef2ea; }
.band.oak h2, .band.oak h3 { color: #fff; }
.band.oak a { color: #f5c9a4; }
.band.first { padding-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { max-width: 64ch; color: var(--ink-soft); margin-top: 8px; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--poppy-deep); margin-bottom: 8px; }
.band.oak .eyebrow { color: #f5c9a4; }
.prose { max-width: 70ch; font-size: 1.04rem; overflow-wrap: break-word; }
.prose p { color: var(--ink); }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul { margin: .6em 0 0 1.2em; }
.prose li + li { margin-top: .35em; }
.lede-big { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.45; color: var(--ink); max-width: 60ch; }

.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-auto { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 900px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } .band { padding: 46px 0; } }

.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card ul { margin: 6px 0 0 1.1em; color: var(--ink-soft); font-size: .95rem; }
.card li + li { margin-top: 4px; }
.card.flat { box-shadow: none; }
.note { background: var(--stone-pale); border-left: 4px solid var(--stone); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; color: var(--ink-soft); }
.note.green { background: var(--sage-pale); border-left-color: var(--sage); }

/* Place cards (areas, neighborhoods, tracts) */
.place-card { display: flex; flex-direction: column; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.place-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.place-card .pc-art { height: 92px; position: relative; overflow: hidden; }
.place-card .pc-art svg { width: 100%; height: 100%; }
.place-card .pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.place-card h3 { font-size: 1.22rem; }
.place-card p { font-size: .92rem; color: var(--ink-soft); }
.place-card .pc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.place-card .pc-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.place-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.place-row:hover { border-color: var(--sage); color: var(--ink); background: #fbfcf8; }
.place-row b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.place-row small { display: block; color: var(--ink-faint); font-size: .85rem; margin-top: 2px; }
.place-row .arrow { color: var(--poppy-deep); font-weight: 700; }
.list-stack { display: grid; gap: 10px; }

/* ---------- Fact table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-raised); box-shadow: var(--shadow); }
.fact-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fact-table th, .fact-table td { text-align: left; vertical-align: top; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.fact-table td, .data-table td, .note, .card p { overflow-wrap: anywhere; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.fact-table th { width: 210px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding-top: 14px; background: #fcfbf8; }
@media (max-width: 640px) {
  .fact-table th, .fact-table td { display: block; width: auto; border-bottom: 0; padding: 4px 16px; }
  .fact-table th { padding-top: 14px; background: none; }
  .fact-table tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
}
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); background: #fcfbf8; }

/* ---------- Map ---------- */
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #e7e4d8; }
.map { height: 460px; width: 100%; }
.map.tall { height: 560px; }
.map.short { height: 340px; }
@media (max-width: 640px) { .map, .map.tall { height: 380px; } .map.short { height: 280px; } }
.map-caption { font-size: .84rem; color: var(--ink-faint); margin-top: 10px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .85rem; color: var(--ink-soft); }
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.pin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.pin.big { width: 22px; height: 22px; }
.pin-label { font: 700 11px/1.1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; transform: translate(12px, -6px); pointer-events: none; }
.leaflet-popup-content { font-family: var(--font-body); font-size: .9rem; line-height: 1.45; }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 1.05rem; }
.leaflet-popup-content a { font-weight: 700; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- Search ---------- */
.search-box { position: relative; max-width: 640px; }
.search-box input { width: 100%; font: 500 1.05rem var(--font-body); padding: 16px 18px 16px 48px; border-radius: 999px; border: 1.5px solid var(--line-dark); background: var(--paper-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a665e' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 18px center / 20px; color: var(--ink); box-shadow: var(--shadow); }
.search-box input:focus { outline: none; border-color: var(--oak); box-shadow: 0 0 0 4px rgba(61, 90, 64, .18); }
.search-results { list-style: none; margin-top: 10px; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none !important; }
.search-results a:hover, .search-results a:focus { border-color: var(--oak); background: #fbfcf8; }
.search-results b { font-weight: 650; }
.search-results span { color: var(--ink-faint); font-size: .86rem; text-align: right; }
.search-empty { color: var(--ink-faint); font-size: .92rem; padding: 8px 4px; }
.band.oak .search-box input { border-color: transparent; }

/* ---------- A–Z index ---------- */
.az-area { margin-top: 34px; }
.az-area > h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.az-cols { columns: 3 260px; column-gap: 28px; }
.az-n { break-inside: avoid; margin-bottom: 14px; }
.az-n > a { font-weight: 700; }
.az-n ul { list-style: none; margin: 3px 0 0; padding-left: 12px; border-left: 2px solid var(--sage-pale); }
.az-n li { font-size: .9rem; }
.az-n li a { color: var(--ink-soft); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.filter-row button { font: 600 .86rem var(--font-body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: var(--paper-raised); color: var(--ink-soft); cursor: pointer; }
.filter-row button[aria-pressed="true"] { background: var(--oak-deep); color: #fff; border-color: var(--oak-deep); }

/* ---------- Timeline, sources, FAQ ---------- */
.timeline { list-style: none; border-left: 2px solid var(--line-dark); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--poppy); border: 2px solid var(--paper); }
.timeline b { font-family: var(--font-display); font-size: 1.1rem; display: block; color: var(--oak-deep); }
.sources { font-size: .86rem; color: var(--ink-faint); columns: 2 340px; column-gap: 34px; padding-left: 1.2em; }
.sources li { break-inside: avoid; margin-bottom: 6px; overflow-wrap: anywhere; }
.sources a { color: var(--ink-soft); }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--poppy-deep); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: var(--ink-soft); }

.confidence { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.confidence i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.confidence.high i { background: #3d7a46; } .confidence.medium i { background: #c79a2b; } .confidence.low i { background: #b5562a; }

/* Listings (filled by main.js from /data/listings.json) */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.listing-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; }
.listing-card:hover { box-shadow: var(--shadow-lift); color: var(--ink); }
.listing-card .lc-photo { aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--sage), var(--oak)); }
.listing-card .lc-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .lc-body { padding: 14px 16px 16px; }
.listing-card .lc-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.listing-card .lc-addr { font-weight: 600; font-size: .95rem; }
.listing-card .lc-meta { font-size: .86rem; color: var(--ink-faint); }
.listing-card .lc-office { font-size: .76rem; color: var(--ink-faint); margin-top: 6px; }

/* ---------- School checker and attendance-area maps (src/js/schools.js) ---------- */
.sc-box.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 900px) { .sc-box.split { grid-template-columns: 1fr; } }
.sc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sc-row input { flex: 1 1 240px; }
.sc-row .btn { flex: none; }
.sc-row .btn:disabled { opacity: .7; cursor: progress; }
.sc-out:not(:empty) { margin-top: 18px; }
.sc-where { font-size: .95rem; }
.sc-table th[scope=row] { width: 104px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); background: #fcfbf8; }
.sc-table td b { font-weight: 650; }
@media (max-width: 640px) {
  .sc-table thead { display: none; }
  .sc-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .sc-table tr:last-child { border-bottom: 0; }
  .sc-table th[scope=row] { grid-column: 1 / -1; width: auto; background: transparent; border-bottom: 0; padding-bottom: 0; }
  .sc-table td { border-bottom: 0; }
}
.sc-confirm { font-size: .92rem; color: var(--ink-soft); }
.sc-src summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.sc-src ul { margin: 8px 0 6px 1.2em; font-size: .88rem; color: var(--ink-soft); }
.sc-layers { margin: 0 0 12px; align-items: center; }
.sc-check { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 6px; font-size: .86rem; }
.sc-check input { width: 18px; height: 18px; }
.sc-pin { width: 14px; height: 14px; border-width: 2px; }
[data-school-map] .leaflet-interactive:focus { outline: none; }
.sch-card ul { list-style: disc; }
.sch-card li { color: var(--ink); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 5px; }
input[type=text], input[type=email], select, textarea { width: 100%; font: 400 1rem var(--font-body); padding: 12px 14px; border: 1.5px solid #8b958d; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oak); box-shadow: 0 0 0 3px rgba(61, 90, 64, .2); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.callout { display: none; padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.callout.ok { background: var(--sage-pale); border: 1px solid var(--sage); }
.callout.err { background: #fbeae2; border: 1px solid #d99a7c; }
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.newsletter input { flex: 1 1 240px; border-radius: 999px; padding: 13px 18px; border-color: transparent; }
.email-shown { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--oak-night); color: #cfd8cd; padding: 56px 0 30px; font-size: .92rem; }
.site-footer a { color: #e9efe5; }
.site-footer a:hover { color: #f5c9a4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-brand em { color: #f5c9a4; font-weight: 600; }
.footer-h { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a9b8a6; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 38px; padding-top: 20px; font-size: .8rem; color: #a9b8a6; line-height: 1.6; }
.footer-legal a { color: #cfd8cd; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; z-index: 999; }
.flash { animation: flash 2s ease; }
@keyframes flash { 0%, 40% { background: #fff4d6; } 100% { background: transparent; } }
@media print { .site-header, .site-footer, .hero-art, .map-box, .page-toc { display: none !important; } .hero { color: var(--ink); background: none; } .hero .lede, .hero .kicker, .hero .breadcrumb a { color: var(--ink); } }
