/* BC Tots website styles. Brand v1, "Trusted & grounded" (see brand/README.md).
   Colour rules: Marigold is for shapes, highlights and text on Navy only, never text on white.
   Coloured text on light backgrounds uses Pine. These hexes mirror BRAND in content-bot/bot/config.py. */
:root {
  /* Brand palette */
  --navy: #1F3A5C;
  --navy-dark: #142A45;
  --ink: #17202B;
  --pine: #0F6B5C;
  --marigold: #F0B429;
  --marigold-soft: #FDF3DA;
  --mint: #D7EDE6;
  --paper: #F4F6F8;
  --muted: #4A5563;
  --line: #D5DAE1;
  --white: #FFFFFF;

  /* Roles */
  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--ink);
  --heading: var(--navy);
  --link: var(--pine);
  --focus: var(--pine);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 32, 43, .06), 0 1px 3px rgba(23, 32, 43, .06);
  --shadow-lg: 0 8px 28px rgba(23, 32, 43, .12);
  --header-h: 68px;
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--body);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); font-weight: 500; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; color: var(--heading); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; margin: 0.3em 0; }
h2 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.6em; }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); margin: 0; }

/* ---- Header / footer ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 32px; width: auto; }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 600; white-space: nowrap;
}
.site-header nav a:hover { color: var(--pine); }
.site-header nav a.social { padding: 0 8px; color: var(--navy); }
.site-header nav a:not(.social) + a.social { margin-left: 6px; }
.site-header nav a.social:hover { color: var(--pine); }
.site-header nav a[aria-current]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--marigold);
}
.site-footer { margin-top: 56px; padding: 40px 24px; background: var(--navy); color: var(--white); font-size: 0.875rem; text-align: center; }
.site-footer .brand img { height: 30px; margin: 0 auto 6px; }
.site-footer .tagline { margin: 0 auto 8px; font-weight: 500; }
.site-footer .footer-links { margin: 0 auto 16px; }
.site-footer p { max-width: 640px; margin: 0 auto; color: rgba(255, 255, 255, .85); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--marigold); }
.site-footer :focus-visible { outline-color: var(--marigold); }

/* ---- Buttons, tags ---- */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  padding: 10px 20px; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: var(--white); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover, button:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--navy); }
.btn.secondary:hover { background: var(--mint); border-color: var(--navy); color: var(--navy); }
/* On Navy backgrounds */
.btn.light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn.light:hover { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); color: var(--white); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.tag.ok { background: var(--mint); color: var(--pine); }
.tag.ccfri { background: var(--marigold-soft); color: var(--ink); }

/* ---- Pill search ---- */
.search { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); }
.search svg { flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 6px; border: 0; background: transparent; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--pine); }
.search button { padding: 10px 22px; }
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px 0; list-style: none; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); color: var(--text);
}
.suggestions li { padding: 11px 18px; cursor: pointer; font-size: 0.95rem; }
.suggestions li:hover { background: var(--mint); }
.suggestions .s-name { display: block; font-weight: 600; color: var(--navy); }
.suggestions .s-sub { display: block; font-size: 0.825rem; color: var(--muted); }

/* ---- Home ---- */
.hero-band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-band::before, .hero-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-band::before { width: 340px; height: 340px; right: -120px; top: -140px; background: var(--marigold); }
.hero-band::after { width: 180px; height: 180px; left: -70px; bottom: -90px; background: var(--mint); }
.hero { position: relative; max-width: 760px; margin: 0 auto; padding: 72px 16px 56px; text-align: center; }
.hero .eyebrow { color: var(--marigold); }
.hero h1 { color: var(--white); }
.hero .lede { font-size: 1.15rem; color: rgba(255, 255, 255, .9); margin: 0 0 28px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero :focus-visible { outline-color: var(--marigold); }
.section { max-width: 1040px; margin: 0 auto; padding: 40px 16px; }
.section.alt { max-width: none; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt > * { max-width: 1008px; margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 8px 0 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature .icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); }
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0 0 8px; color: var(--muted); font-size: 0.925rem; }
.feature a { font-size: 0.925rem; font-weight: 600; }
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.topics li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow); font-weight: 600; color: var(--navy); }
.topics .icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); }
.care-search { max-width: 720px; text-align: center; }
.care-search .section-title { margin-bottom: 8px; }
.care-search .lede { color: var(--muted); margin: 0 0 24px; }
.care-search .note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.care-search .cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; }
.stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.stats span { padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.stats strong { color: var(--ink); }
.cities-title { text-align: center; font-size: 1.2rem; margin: 40px auto 18px; }
.city-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city-card { display: block; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--pine); color: var(--text); }
.city-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.city-card h3 { margin: 0; font-size: 1.2rem; }
.city-card .arrow { color: var(--pine); font-size: 1.2rem; }
.city-card p { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.section.alt .city-card { background: var(--paper); }
.cities-page .city-card { background: var(--white); }
.center { text-align: center; margin-top: 28px; }

/* ---- Map page ---- */
.map-page { height: 100vh; overflow: hidden; }
.map-page .site-footer { display: none; }
.map-layout { display: flex; height: calc(100vh - var(--header-h)); }
.panel { width: 400px; flex: none; overflow-y: auto; padding: 24px 20px; background: var(--bg); border-right: 1px solid var(--line); }
.panel h1 { font-size: 1.6rem; margin-top: 0; }
.panel .search { box-shadow: var(--shadow); }
.panel .search button { padding: 10px 16px; }
.panel .row-actions { margin: 14px 0; }
.map { flex: 1; }

.filters { margin: 16px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.filters summary { font-weight: 700; color: var(--navy); cursor: pointer; min-height: 28px; }
.filters fieldset { border: 0; padding: 0; margin: 10px 0; display: flex; gap: 16px; flex-wrap: wrap; }
.filters legend { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; margin-bottom: 6px; }
.filters label { font-size: 0.925rem; display: block; margin: 8px 0; }
.filters fieldset label { display: inline-flex; gap: 8px; align-items: center; margin: 0; min-height: 32px; }
.filters input[type=checkbox] { accent-color: var(--navy); width: 18px; height: 18px; }
.filters select { display: block; width: 100%; min-height: 44px; margin-top: 4px; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--text); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.825rem; color: var(--muted); margin: 0 0 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .dot-group { background: var(--navy); }
.legend .dot-home { background: var(--marigold); border: 1.5px solid var(--navy); }
.legend .dot-vacancy { background: var(--white); border: 3px solid var(--pine); }
/* Family places are squares, so they never read as child care pins (circles). */
.legend .sq-ss, .legend .sq-lib { border-radius: 3px; }
.legend .sq-ss { background: var(--pine); }
.legend .sq-lib { background: var(--white); border: 2.5px solid var(--pine); }
.more-filters { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.more-filters summary { font-weight: 600; color: var(--navy); cursor: pointer; min-height: 28px; }
.filters fieldset label { margin-right: 4px; }
.place-note { margin: 6px 0 0; }

.status { font-size: 0.875rem; color: var(--muted); }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.results li a { display: block; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: border-color .15s; }
.results li a:hover { border-color: var(--pine); color: var(--text); }
.results .name { display: block; font-weight: 600; color: var(--navy); }
.results .meta { font-size: 0.825rem; color: var(--muted); font-weight: 400; }
.maplibregl-popup-content { border-radius: var(--radius-sm) !important; padding: 14px 16px !important; box-shadow: var(--shadow-lg) !important; font-family: var(--body); color: var(--text); }
.popup strong { font-family: var(--display); font-size: 1.05rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.popup a { display: inline-block; margin-top: 8px; }
.popup .popup-actions { display: flex; gap: 6px; margin-top: 10px; }
.popup .popup-actions .btn { flex: 1 1 auto; margin: 0; min-height: 40px; padding: 8px 12px; font-size: 0.875rem; }
.popup .tag { margin-top: 4px; }

/* ---- Content pages ---- */
.container { max-width: 1040px; margin: 0 auto; padding: 32px 16px; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin: 0; }
.type { color: var(--muted); margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mini-map { height: 230px; border-radius: var(--radius-sm); overflow: hidden; margin-top: 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.875rem; padding: 4px 12px; border-radius: 999px; background: var(--mint); color: var(--navy); }
.ages { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ages td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ages td:last-child { text-align: right; }
.ages td.left { text-align: left; }
.fac-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fac-list li a.item { display: block; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.fac-list li a.item:hover { border-color: var(--pine); color: var(--text); }
.fac-list .name { display: block; font-weight: 600; color: var(--navy); }
.city-list { list-style: none; padding: 0; columns: 4 200px; column-gap: 24px; }
.city-list li { margin: 4px 0; break-inside: avoid; }
.city-list a { text-decoration: none; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }

/* ---- Parent guide ---- */
.prose.guide { max-width: 860px; }
.guide .lede { font-size: 1.125rem; color: var(--muted); }
.guide h2 { font-size: 1.65rem; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 12px); }
.guide h3 { font-size: 1.125rem; margin: 0 0 8px; }
.guide [id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.guide li { margin: 6px 0; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.quick { display: block; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--mint);
  text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.quick strong { display: block; color: var(--navy); }
.quick span { display: block; font-size: 0.85rem; color: var(--ink); font-weight: 400; margin-top: 2px; }
.quick.local { background: var(--navy); }
.quick.local strong { color: var(--marigold); }
.quick.local span { color: var(--white); }
.toc { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toc summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2 240px; column-gap: 24px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.steps { padding-left: 22px; }
.steps li { margin: 10px 0; padding-left: 4px; }
.steps li::marker { font-family: var(--display); font-weight: 800; color: var(--pine); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.guide-table th, .guide-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--paper); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.guide-table tbody th { font-weight: 600; color: var(--navy); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-table.compact td { white-space: nowrap; }
.program { margin: 16px 0; }
.program h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.program h3 .tag { font-family: var(--body); letter-spacing: 0; }
.program p:last-child { margin-bottom: 0; }
.program .table-wrap { margin: 12px 0; }
.links { font-size: 0.925rem; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; font-size: 0.95rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 2px solid var(--navy); border-radius: 5px; }
.ha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.card.ha { padding: 16px 18px; }
.card.ha h3 { margin-bottom: 2px; }
.card.ha p { margin: 0 0 10px; color: var(--muted); }
.callout { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--marigold-soft); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 12px 32px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.35rem; color: var(--pine); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--text); }
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resources ul { padding-left: 18px; margin: 0; font-size: 0.925rem; }
.checked { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-link { margin: 28px 0 12px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--mint); }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: var(--radius);
  background: var(--mint); text-decoration: none; color: var(--text); }
.guide-cta:hover { color: var(--text); }
.guide-cta h2 { font-size: 1.55rem; margin-bottom: 6px; }
.guide-cta p { margin: 0; color: var(--ink); font-weight: 400; }
.guide-cta .btn { flex: none; }

/* ---- Compare ---- */
.compare-row { margin: 4px 0 12px; }
.compare-toggle[aria-pressed="true"] { background: var(--mint); border-color: var(--pine); color: var(--pine); }
.link-btn { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--link);
  font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.link-btn:hover { background: none; color: var(--navy); }
.popup .compare-toggle { display: block; margin-top: 6px; min-height: 0; padding: 0; border: 0; background: none;
  color: var(--link); font-size: 0.875rem; text-decoration: underline; }
.popup .compare-toggle:hover, .popup .compare-toggle[aria-pressed="true"] { background: none; color: var(--pine); }
.compare-tray {
  position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); box-shadow: var(--shadow-lg);
}
.compare-tray[hidden] { display: none; }
.compare-tray .tray-text { margin: 0; font-size: 0.875rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.compare-tray .tray-text strong { color: var(--marigold); margin-right: 4px; }
.compare-tray .tray-note { display: block; color: var(--marigold); }
.compare-tray .tray-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.compare-tray .tray-hint { font-size: 0.825rem; color: rgba(255, 255, 255, .85); }
.compare-tray :focus-visible { outline-color: var(--marigold); }
.compare-wrap { overflow-x: auto; margin: 20px 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 190px; }
.compare-table thead th { background: var(--paper); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table th[scope="row"], .compare-table .corner { position: sticky; left: 0; z-index: 1; min-width: 130px; width: 150px;
  background: var(--white); color: var(--navy); font-weight: 700; }
.compare-table .corner { background: var(--paper); }
.compare-table .cmp-name { display: block; font-family: var(--display); font-weight: 800; color: var(--navy); text-decoration: none; margin-bottom: 4px; }
.compare-table .cmp-name:hover { text-decoration: underline; }
.compare-table ul.plain { list-style: none; margin: 0; padding: 0; }
.compare-table ul.plain li { margin: 2px 0; }
.compare-empty { max-width: 640px; }
.share { max-width: 640px; }
.share label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 0.875rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--text); }
/* Keep page content clear of the fixed tray. */
body:has(.compare-tray:not([hidden])) .site-footer { padding-bottom: 110px; }
body.map-page:has(.compare-tray:not([hidden])) .panel { padding-bottom: 110px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .city-card:hover, .quick:hover { transform: none; }
}
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .city-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .site-header { padding: 0 8px 0 16px; }
  .site-header nav { gap: 0; }
  .site-header nav a { font-size: 0.875rem; padding: 0 8px; }
  .site-header nav a[aria-current]::after { left: 8px; right: 8px; }
  .brand img { height: 26px; }
  .hero { padding: 48px 16px 44px; }
  /* Keep the Marigold circle clear of the Marigold eyebrow text. */
  .hero-band::before { width: 150px; height: 150px; right: -85px; top: -95px; }
  .hero-band::after { width: 120px; height: 120px; left: -60px; bottom: -70px; }
  .search button { padding: 10px 14px; }
  .map-page { height: auto; overflow: auto; }
  .map-layout { flex-direction: column-reverse; height: auto; }
  .map { height: 55vh; flex: none; }
  .panel { width: 100%; border-right: 0; }
  .grid2, .fac-list { grid-template-columns: 1fr; }
  .quick-links, .ha-grid { grid-template-columns: 1fr 1fr; }
  .checklist-grid, .resources { grid-template-columns: 1fr; }
  .guide-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
/* Compact header: Hug mark only (see the <picture> in build.py), About moves to the footer. */
@media (max-width: 560px) {
  .site-header nav a.hide-sm { display: none; }
  .site-header nav a.social { padding: 0 6px; }
  .site-header nav a:not(.social) + a.social { margin-left: 0; }
  .brand img { height: 24px; }
}
@media (max-width: 420px) {
  .compare-tray { flex-direction: column; align-items: stretch; }
  .compare-tray .tray-actions { justify-content: space-between; }
  .city-cards, .quick-links, .ha-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .guide-table.stack thead { display: none; }
  .guide-table.stack, .guide-table.stack tbody, .guide-table.stack tr, .guide-table.stack th, .guide-table.stack td { display: block; }
  .guide-table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .guide-table.stack tbody tr:last-child { border-bottom: 0; }
  .guide-table.stack th, .guide-table.stack td { padding: 2px 0; border: 0; }
  .guide-table.stack tbody th { font-size: 1rem; margin-bottom: 4px; }
  .guide-table.stack td::before { color: var(--muted); font-size: 0.8rem; margin-right: 6px; }
  .guide-table.stack td:nth-child(2)::before { content: "Ages:"; }
  .guide-table.stack td:nth-child(3)::before { content: "Max. group:"; }
  .guide-table.stack td:nth-child(4)::before { content: "Where:"; }
}
