/* ==========================================================================
   Willesden Families — site stylesheet
   One system for every page: a local listings paper.
   White page, ink type, one signal-red accent, hairline rules.
   Replaces base.css, style.css and pubs.css.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --paper: #ffffff;
  --paper-2: #f4f3ef;
  --ink: #141413;
  --ink-2: #3a3a37;
  --muted: #696862;
  --hairline: #e3e1da;
  --rule: #141413;
  --accent: #c8361e;
  --accent-ink: #ffffff;
  --accent-soft: #fbece8;
  --focus: #1d5fd1;

  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 3vw, 32px);

  /* Legacy names used by inline styles and schools.css */
  --color-bg: var(--paper);
  --color-surface: var(--paper);
  --color-surface-2: var(--paper-2);
  --color-surface-offset: var(--paper-2);
  --color-text: var(--ink);
  --color-text-secondary: var(--muted);
  --color-text-muted: var(--muted);
  --color-text-faint: #9a988f;
  --color-text-inverse: var(--paper);
  --color-border: var(--hairline);
  --color-divider: var(--hairline);
  --color-primary: var(--accent);
  --color-primary-hover: #a42a15;
  --color-primary-light: var(--accent-soft);
  --color-secondary: var(--ink-2);
  --color-accent: var(--accent);
  --font-display: var(--font);
  --font-body: var(--font);
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 2px; --radius-md: 3px; --radius-lg: 4px; --radius-xl: 4px; --radius-2xl: 4px; --radius-full: 999px;
  --shadow-sm: none; --shadow-md: none; --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --transition-interactive: 120ms ease;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #121211;
  --paper-2: #1b1b19;
  --ink: #efeee8;
  --ink-2: #cfcec7;
  --muted: #a09f97;
  --hairline: #2d2c29;
  --rule: #efeee8;
  --accent: #ff6a4a;
  --accent-ink: #121211;
  --accent-soft: #2a1a15;
  --focus: #7aa7ff;
  --color-primary-hover: #ff8a70;
  --color-text-faint: #6f6e67;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211;
    --paper-2: #1b1b19;
    --ink: #efeee8;
    --ink-2: #cfcec7;
    --muted: #a09f97;
    --hairline: #2d2c29;
    --rule: #efeee8;
    --accent: #ff6a4a;
    --accent-ink: #121211;
    --accent-soft: #2a1a15;
    --focus: #7aa7ff;
    --color-primary-hover: #ff8a70;
    --color-text-faint: #6f6e67;
    color-scheme: dark;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 300; width: auto; height: auto; clip: auto;
  padding: 8px 12px; background: var(--ink); color: var(--paper);
}

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

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Labels: the small uppercase voice used across the site */
.label, .pubs-eyebrow, .schools-eyebrow, .parent-card-kicker, .filter-label, .mini-heading,
.section-no, .masthead-dateline, .footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--rule);
}
.header-inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo-mark { display: none; }
.logo-text { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.logo-sub { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }

.nav-desktop { display: none; align-items: center; gap: 2px; }
.nav-desktop > a, .nav-more summary {
  display: block; padding: 8px 10px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  text-decoration: none; cursor: pointer; list-style: none;
}
.nav-desktop > a:hover, .nav-more summary:hover { color: var(--accent); }
.nav-desktop > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-more { position: relative; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ''; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.nav-more-menu {
  position: absolute; right: 0; top: calc(100% + 13px); min-width: 220px;
  background: var(--paper); border: 1px solid var(--rule); padding: 6px 0;
  display: flex; flex-direction: column;
}
.nav-more-menu a { padding: 8px 16px; font-size: 0.9375rem; text-decoration: none; color: var(--ink); }
.nav-more-menu a:hover, .nav-more-menu a[aria-current="page"] { background: var(--paper-2); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.theme-toggle, .mobile-menu-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.theme-toggle:hover, .mobile-menu-btn:hover { color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }

@media (min-width: 1000px) {
  .nav-desktop { display: flex; }
  .mobile-menu-btn { display: none; }
}
@media (max-width: 560px) {
  .logo-sub { display: none; }
}

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--paper); padding: 0 var(--gutter) 32px; overflow-y: auto;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--rule); margin-bottom: 8px;
}
.mobile-nav-header .logo-text { font-size: 1.375rem; }
.mobile-nav-header button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav > a {
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
  font-size: 1.125rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.mobile-nav > a[aria-current="page"] { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.cta-button, .btn, .card-action.primary, button.cta-button, .contact-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; min-height: 44px;
  background: var(--ink); color: var(--paper);
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
}
.cta-button:hover, .btn:hover, .contact-form button[type="submit"]:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cta-button.secondary, .btn.secondary {
  background: transparent; color: var(--ink); border-color: var(--rule);
}
.cta-button.secondary:hover, .btn.secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ── Homepage masthead ──────────────────────────────────────────────────── */
.masthead { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); }
.masthead-dateline {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-bottom: 12px; border-bottom: 1px solid var(--hairline); color: var(--muted);
}
.masthead-dateline strong { color: var(--accent); font-weight: 700; }
.masthead-grid {
  display: grid; gap: clamp(28px, 4vw, 56px); padding-top: clamp(24px, 4vw, 40px);
}
@media (min-width: 900px) {
  .masthead-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}
.masthead h1 {
  font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; max-width: 14ch;
}
.masthead-intro { margin-top: 24px; max-width: 52ch; font-size: 1.125rem; color: var(--ink-2); }
.masthead-intro a { font-weight: 600; }
.masthead-facts {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 0.875rem; color: var(--muted);
}
.masthead-facts strong { color: var(--ink); font-weight: 700; }

.index { border-top: 3px solid var(--rule); }
.index-title { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.index ol { list-style: none; }
.index li a {
  display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: baseline; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem;
}
.index li a:hover { color: var(--accent); }
.index-no { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.index-count { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }

/* Editor's notes (live updates) */
.notes { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--paper-2); }
.notes-inner { display: grid; gap: 16px 40px; padding-block: 24px; }
@media (min-width: 900px) { .notes-inner { grid-template-columns: 220px 1fr; } }
.notes-head .label { color: var(--accent); }
.notes-head p { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.notes-headline { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; max-width: 60ch; }
.notes-list { margin-top: 14px; display: grid; gap: 10px 32px; list-style: none; }
@media (min-width: 700px) { .notes-list { grid-template-columns: 1fr 1fr; } }
.notes-list li { font-size: 0.9375rem; color: var(--ink-2); padding-left: 14px; position: relative; }
.notes-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--accent); }
.notes-list strong { color: var(--ink); }

/* ── Toolbar (search + filters) ─────────────────────────────────────────── */
.toolbar {
  position: sticky; top: 67px; z-index: 50;
  max-height: calc(100dvh - 67px); overflow-y: auto;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-block: 12px; }
.search-bar {
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px;
  border-bottom: 2px solid var(--rule); padding: 6px 2px;
}
.search-bar svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-bar input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-size: 1rem; padding: 4px 0;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar:focus-within { border-color: var(--accent); }

.toggle-chip, .filter-pill, .school-filter-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
  padding: 6px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--ink); background: var(--paper);
}
.toggle-chip:hover, .filter-pill:hover, .school-filter-pill:hover { border-color: var(--rule); }
.toggle-chip.active, .toggle-chip[aria-pressed="true"], .filter-pill.active, .school-filter-pill.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.filters-toggle summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600;
}
.filters-toggle summary::-webkit-details-marker { display: none; }
.filters-toggle[open] summary { background: var(--ink); color: var(--paper); }
.filter-columns { display: grid; gap: 16px 32px; padding: 4px 0 16px; }
@media (min-width: 900px) { .filter-columns { grid-template-columns: repeat(4, auto); justify-content: start; } }
.filter-label { color: var(--muted); margin-bottom: 8px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.distance-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; font-size: 0.875rem; color: var(--muted); }
.distance-panel input { border: 1px solid var(--rule); padding: 6px 10px; width: 140px; background: var(--paper); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(40px, 6vw, 72px) 0 0; }
.section:last-of-type { padding-bottom: clamp(40px, 6vw, 72px); }
.section.alt { background: transparent; }

.section-head, .section-header {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 16px;
  border-top: 3px solid var(--rule); padding-top: 14px; margin-bottom: 8px;
}
.section-header > div:first-child { grid-column: 1 / 3; }
.section-no { color: var(--accent); }
.section-head h2, .section-header h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em;
}
.section-head p, .section-subtitle {
  grid-column: 1 / -1; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; max-width: var(--measure);
}
.section-header .section-subtitle { grid-column: auto; }
.section-count {
  grid-column: 3; grid-row: 1; justify-self: end;
  font-size: 0.8125rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.section-head .section-count::after { content: ' listed'; font-weight: 500; }
.section-emoji { display: none; }

.subhead {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.subhead h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.subhead span { font-size: 0.8125rem; color: var(--muted); }

.jump-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; font-size: 0.875rem; }
.jump-links span { color: var(--muted); }
.jump-links a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--hairline); }
.jump-links a:hover { border-color: var(--accent); }

/* ── Listing rows (homepage, rendered by app.js) ────────────────────────── */
.listing-list { list-style: none; }
.listing {
  display: grid; gap: 6px 24px;
  grid-template-columns: 1fr;
  padding: 18px 0; border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .listing { grid-template-columns: 150px minmax(0, 1fr) 220px 132px; align-items: start; }
}
.listing-when { font-size: 0.875rem; font-weight: 700; line-height: 1.35; }
.listing-when small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8125rem; }
.listing-when.is-area { font-weight: 600; color: var(--muted); }
.listing-title { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.listing-title a { text-decoration: none; }
.listing-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.listing-title .pick { margin-left: 8px; vertical-align: 2px; }
.pick {
  display: inline-block; padding: 2px 6px; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink);
}
.listing-blurb { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; max-width: var(--measure); }
.listing-reco { margin-top: 6px; font-size: 0.875rem; color: var(--muted); max-width: var(--measure); }
.listing-reco strong { color: var(--ink); font-weight: 600; }
.listing-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.875rem; }
@media (min-width: 900px) { .listing-facts { display: grid; gap: 4px; } }
.listing-facts div { display: flex; gap: 8px; }
.listing-facts dt { color: var(--muted); min-width: 3.5rem; }
.listing-facts dd { font-weight: 600; }
.cost-free { color: var(--accent); }
.listing-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.875rem; }
@media (min-width: 900px) { .listing-actions { flex-direction: column; align-items: flex-start; } }
.listing-actions a, .listing-actions button {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 0;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.listing-actions a:hover, .listing-actions button:hover { color: var(--accent); }
.listing-actions svg { width: 14px; height: 14px; }
.listing-actions .is-saved { color: var(--accent); }

.empty-note { padding: 18px 0; color: var(--muted); border-bottom: 1px solid var(--hairline); }

/* ── Map ────────────────────────────────────────────────────────────────── */
.map-category-toggles { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0; font-size: 0.875rem; }
.map-category-toggles label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.map-category-toggles input { accent-color: var(--accent); }
.map-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .map-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.map-shell { border: 1px solid var(--rule); }
.map-frame { height: 440px; background: var(--paper-2); }
.map-panel { padding: 14px 16px; border-top: 1px solid var(--rule); display: grid; gap: 4px; font-size: 0.9375rem; }
.map-panel span { color: var(--ink-2); }
.map-panel-links { display: flex; gap: 16px; margin-top: 6px; font-weight: 600; }
.mini-heading { color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.map-list { display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.map-list-item {
  display: grid; gap: 2px; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--hairline);
}
.map-list-item strong { font-size: 0.9375rem; }
.map-list-item span { font-size: 0.8125rem; color: var(--muted); }
.map-list-item:hover strong, .map-list-item.active strong { color: var(--accent); }
.map-fallback-message { padding: 16px; color: var(--muted); }
.leaflet-container { font-family: var(--font); }

/* ── Shortlist ──────────────────────────────────────────────────────────── */
.shortlist-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.shortlist-empty { padding: 18px 0; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.shortlist-grid { display: grid; }
.shortlist-item { padding: 14px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 4px; }
.shortlist-item h3 { font-size: 1.0625rem; }
.shortlist-meta { font-size: 0.8125rem; color: var(--muted); }
.shortlist-item p { font-size: 0.9375rem; color: var(--ink-2); }
.card-actions.compact { display: flex; gap: 14px; font-size: 0.875rem; }
.card-actions.compact .card-action { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.card-actions.compact svg { width: 14px; height: 14px; }

/* ── Inner-page header (all secondary pages) ────────────────────────────── */
.pubs-hero, .schools-hero { padding: clamp(24px, 4vw, 40px) 0 0; position: relative; }
.pubs-hero-overlay, .hero-image, .hero-overlay { display: none !important; }
.pubs-hero .container, .schools-hero .container { position: static !important; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--muted);
}
.back-link svg { width: 14px; height: 14px; }
.back-link:hover { color: var(--accent); }
.pubs-hero-content, .schools-hero-content { border-top: 3px solid var(--rule); padding-top: 14px; }
.pubs-eyebrow, .schools-eyebrow { color: var(--accent); margin-bottom: 14px; }
.pubs-hero h1, .schools-hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.25rem); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1; max-width: 18ch;
}
.pubs-hero-sub, .schools-hero-sub {
  margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); max-width: 60ch;
}
.pubs-stats, .schools-stats {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.pubs-stat, .schools-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 28px 14px 0; margin-right: 28px;
  border-right: 1px solid var(--hairline);
}
.pubs-stat:last-child, .schools-stat:last-child { border-right: 0; margin-right: 0; }
.pubs-stat strong, .schools-stat .stat-number { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pubs-stat span, .schools-stat .stat-label { font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 560px) {
  .pubs-stat, .schools-stat { padding-right: 16px; margin-right: 16px; }
}

/* Community note (was a gradient banner) */
.community-banner { padding: 0; margin-top: clamp(24px, 4vw, 40px); }
.community-banner-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem; color: var(--ink-2);
}
.community-banner-text { display: flex; gap: 10px; }
.community-banner-icon { display: none; }
.community-banner .cta-button {
  background: transparent; color: var(--ink); border: 0; padding: 0; min-height: 0;
  font-size: 0.9375rem !important; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.community-banner .cta-button:hover { color: var(--accent); background: transparent; }

/* ── Entries on secondary pages (static .parent-card markup) ────────────── */
.parent-grid { display: grid; }
.parent-card {
  display: grid; gap: 6px 28px; padding: 24px 0; border-bottom: 1px solid var(--hairline);
  grid-template-columns: 1fr;
}
.parent-card-media-wrap { position: relative; }
@media (min-width: 800px) {
  .parent-card:has(> .parent-card-media-wrap:not(.is-hidden)) { grid-template-columns: 280px minmax(0, 1fr); }
  .parent-card:has(> .parent-card-media-wrap:not(.is-hidden)) > *:not(.parent-card-media-wrap) { grid-column: 2; }
  .parent-card > .parent-card-media-wrap { grid-row: 1 / span 8; }
}
.parent-card-promo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.parent-card-promo img { width: 100%; height: 100%; object-fit: cover; }
.parent-card-media-overlay, .parent-card-media-topline, .parent-card-floating-brandmark,
.mini-pill-row, .card-footnote { display: none; }
/* Generic stock photography reads as filler: show real local photos only */
.parent-card-media-wrap:has(img[src*="images.unsplash.com"]) { display: none; }
.parent-card:has(img[src*="images.unsplash.com"]) { grid-template-columns: 1fr !important; }
.parent-card:has(img[src*="images.unsplash.com"]) > * { grid-column: 1 !important; }

.parent-card-top { display: flex; justify-content: space-between; gap: 16px; }
.parent-card-kicker { color: var(--muted); margin-bottom: 4px; }
.parent-card.featured .parent-card-kicker { color: var(--accent); }
.parent-card.featured .parent-card-kicker::after { content: ' · Editor’s pick'; }
.parent-card h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0; font-size: 0.875rem; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 4px; }
.badge + .badge::before { content: '·'; margin: 0 8px; color: var(--muted); font-weight: 400; }
.badge svg { display: none; }
.parent-card-copy { color: var(--ink-2); max-width: var(--measure); }
.parent-card-reco { font-size: 0.9375rem; color: var(--muted); max-width: var(--measure); }
.parent-card-reco strong { color: var(--ink); font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 0.9375rem; }
.card-action {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.card-action:hover { color: var(--accent); }
.card-actions .card-action.primary {
  background: transparent; color: var(--ink); border: 0; padding: 0; min-height: 0;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.card-actions .card-action.primary::after { content: ' ↗'; text-decoration: none; }
.card-actions .card-action.primary:hover { color: var(--accent); background: transparent; }
.card-action svg { width: 14px; height: 14px; }
.save-btn { display: none; }

/* Neighbourhood hub tiles */
.hub-cards { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: 8px; }
@media (min-width: 700px) { .hub-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hub-cards { grid-template-columns: repeat(3, 1fr); } }
.hub-card {
  display: block; padding: 18px 20px 20px 0; border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: var(--ink);
}
.hub-card h3 { font-size: 1.125rem; margin-bottom: 4px; }
.hub-card p { font-size: 0.9375rem; color: var(--muted); }
.hub-card:hover h3 { color: var(--accent); }
.hub-card-icon { display: none; }

/* Weekly timetable */
.schedule-grid { display: grid; gap: 0 24px; margin-top: 8px; }
@media (min-width: 700px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .schedule-grid { grid-template-columns: repeat(4, 1fr); } }
.day-column { padding: 14px 0 20px; border-top: 2px solid var(--rule); }
.day-column h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.day-class { padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; }
.day-class strong { display: block; font-weight: 700; }
.day-class .meta { font-size: 0.8125rem; color: var(--muted); font-weight: 600; margin: 2px 0; }
.day-class small { display: block; font-size: 0.875rem; color: var(--ink-2); }
.day-class a { font-weight: 600; }
.key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: var(--muted); margin: 12px 0; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--muted); }
.dot-baby { background: #b0446b; } .dot-toddler { background: #c8361e; } .dot-preschool { background: #b7791f; }
.dot-school { background: #2f6b4f; } .dot-all { background: var(--ink); }

/* Day plans */
.itinerary { padding: 28px 0; border-top: 3px solid var(--rule); }
.itinerary + .itinerary { margin-top: 24px; }
.itinerary h2, .itinerary h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.itinerary .subtitle { color: var(--muted); margin-top: 6px; }
.stops { counter-reset: stop; margin-top: 16px; display: grid; }
.stop { counter-increment: stop; display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.stop::before { content: counter(stop, decimal-leading-zero); font-size: 0.8125rem; font-weight: 700; color: var(--accent); padding-top: 3px; }
.stop-icon { display: none; }
.stop-content { grid-column: 2; }
.stop-content h3, .stop-content h4, .stop-content strong:first-child { font-size: 1.0625rem; font-weight: 700; }
.stop-content p { color: var(--ink-2); font-size: 0.9375rem; margin-top: 2px; }

/* ── About + contact ────────────────────────────────────────────────────── */
.about-section { border-top: 3px solid var(--rule); padding-top: 14px; }
.about-grid { display: grid; gap: 32px 56px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.about-grid h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 14px; }
.about-grid p { color: var(--ink-2); max-width: var(--measure); margin-bottom: 12px; }
.fineprint { font-size: 0.8125rem; color: var(--muted) !important; }
.about-stack { display: grid; align-content: start; }
.about-callout { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; }
.about-callout:first-child { border-top: 1px solid var(--rule); }
.about-callout strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.about-callout a { font-weight: 600; }

.contact-form { display: grid; gap: 14px; margin-top: 18px; max-width: 560px; }
.contact-field { display: grid; gap: 6px; }
.contact-field label { font-size: 0.875rem; font-weight: 600; }
.contact-field input, .contact-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--paper); font-size: 1rem;
}
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.contact-form button[type="submit"] { justify-self: start; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(48px, 7vw, 88px); border-top: 3px solid var(--rule); padding: 32px 0 40px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 28px 48px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-about .logo-text { font-size: 1.375rem; font-weight: 800 !important; letter-spacing: -0.035em; font-family: var(--font) !important; }
.footer-about p { margin-top: 8px; color: var(--muted); max-width: 44ch; }
.footer-col h4 { color: var(--muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 6px; }
.footer-col a { text-decoration: none; font-weight: 500; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 0.8125rem; color: var(--muted); }

/* Utility: elements retired by the redesign */
.reveal { opacity: 1 !important; transform: none !important; }
.hero-highlights { display: none; }

/* Provider directory blocks and notes on weekly-classes */
.type-block { border-top: 2px solid var(--rule); padding-top: 12px; }
.type-block h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px !important; }
.type-block small { color: var(--ink-2); }
.panel-note { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; }
.panel-note h3, .panel-note h4 { font-size: 1.125rem; margin-bottom: 10px; }

.hub-card strong { display: block; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.hub-card span:not(.hub-card-icon) { display: block; font-size: 0.9375rem; color: var(--muted); }
.hub-card:hover strong { color: var(--accent); }

/* Phones: keep the toolbar out of the way and the facts compact */
@media (max-width: 699px) {
  .toolbar, .schools-filter-bar { position: static; }
  .toolbar-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar-row::-webkit-scrollbar { display: none; }
  .toolbar-row .search-bar { flex: 0 0 100%; }
  .toolbar-row { flex-wrap: wrap; }
  .toolbar-row > :not(.search-bar) { flex-shrink: 0; }
  .listing-facts dt { min-width: 0; }
  .listing-facts div { gap: 4px; }
}

/* ── Imagery ────────────────────────────────────────────────────────────── */
/* Homepage cover: the watercolour of a local park */
.cover { margin: 20px 0 0; border-bottom: 1px solid var(--rule); }
.cover img {
  width: 100%; height: auto; aspect-ratio: 2000 / 835; object-fit: cover; object-position: center 60%;
  max-height: 440px;
}
@media (max-width: 699px) {
  .cover img { aspect-ratio: 4 / 3; max-height: none; object-position: 38% 60%; }
}
[data-theme="dark"] .cover img { filter: brightness(0.86); }

/* Inner pages: the neighbourhood street map, washed out behind the title */
.pubs-hero, .schools-hero { isolation: isolate; overflow: hidden; }
.pubs-hero-img {
  display: block; position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  width: 58%; height: 100%; object-fit: cover; object-position: center 45%;
  opacity: 0.4; filter: grayscale(1) contrast(1.6) brightness(0.92);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%), linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 0%, #000 35%, transparent 100%), linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 699px) {
  .pubs-hero-img { width: 100%; opacity: 0.16; }
}
[data-theme="dark"] .pubs-hero-img { filter: grayscale(1) invert(1) contrast(1.5); opacity: 0.28; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pubs-hero-img { filter: grayscale(1) invert(1) contrast(1.5); opacity: 0.28; }
}
.pubs-hero-content, .schools-overview { background: transparent; }
