/* Five Stars Learning Family Day Care — site styles
   Navy and orange come from the logo. Everything else is kept quiet so the photos and
   the information do the work. */

:root {
  --navy: #1c3a6b;
  --navy-900: #0f2240;
  --ink: #1b2433;
  --muted: #566173;
  --accent: #e27a1c;      /* logo orange: fills, rules, small marks */
  --accent-ink: #a9520b;  /* orange that passes contrast as text */
  --sand: #f6f2eb;
  --sand-2: #efe8dc;
  --line: #e0d9cc;
  --paper: #ffffff;
  --ok: #1f6b4a;
  --bad: #a3271b;
  --radius: 6px;
  --wrap: 1200px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #fbe3c8; }

h1, h2, h3 { color: var(--navy-900); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.narrow { max-width: 800px; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.kicker { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: #b9c3d3; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: #f3f6fa; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--sand); color: var(--navy-900); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }
.text-link:hover { color: var(--accent-ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { width: 128px; height: auto; }
.nav { display: none; margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 11px; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink); white-space: nowrap; position: relative; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--accent); }
.header-actions { display: none; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; text-decoration: none; color: var(--navy-900); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.header-phone svg { width: 16px; height: 16px; fill: var(--accent); }
.header-actions .btn { padding: 11px 18px; }
.burger { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; color: var(--navy-900); background: none; border: 1.5px solid var(--line); padding: 9px 14px; border-radius: var(--radius); cursor: pointer; }
.burger-lines { display: grid; gap: 4px; }
.burger-lines span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-open .burger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger-lines span:nth-child(2) { opacity: 0; }
.menu-open .burger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 24px; max-height: calc(100vh - 76px); overflow-y: auto; }
.menu-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mobile-nav nav a { display: block; padding: 13px 0; font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav nav a[aria-current="page"] { color: var(--accent-ink); }
.mobile-nav .btn { width: 100%; margin-top: 10px; }
@media (min-width: 1240px) {
  .nav, .header-actions { display: flex; }
  .burger, .mobile-nav, .menu-open .mobile-nav { display: none; }
}

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a8a090; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-sm { padding: clamp(44px, 5vw, 64px) 0; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy-900); color: #cfd8e6; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lead, .bg-navy .muted { color: #b5c1d4; }
.bg-navy .kicker { color: #f3a65e; }
.bg-navy a:not(.btn) { color: #fff; }
.rule-top { border-top: 1px solid var(--line); }

/* Heading on the left, intro on the right */
.sec-head { display: grid; gap: 12px 64px; margin-bottom: 48px; }
.sec-head h2 { margin: 0; }
.sec-head p { color: var(--muted); max-width: 58ch; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 5fr 7fr; align-items: end; } .sec-head > :last-child { padding-bottom: 4px; } }
.sec-head.stack { grid-template-columns: 1fr; max-width: 760px; }

.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } .split.top { align-items: start; } }
.split-7-5 { display: grid; gap: clamp(36px, 6vw, 72px); }
@media (min-width: 960px) { .split-7-5 { grid-template-columns: 7fr 5fr; } }

/* ---------- media ---------- */
.media { margin: 0; border-radius: 4px; overflow: hidden; background: var(--sand-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-3-2 { aspect-ratio: 3 / 2; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-1-1 { aspect-ratio: 1 / 1; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 0; }
.hero-photo { aspect-ratio: 4 / 3.2; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: clamp(44px, 6vw, 72px) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { padding: 22px 20px 22px 0; }
@media (min-width: 860px) { .facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); } }
@media (max-width: 859px) { .facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.facts dt { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy-900); line-height: 1.4; }

.page-hero { background: var(--sand); padding: clamp(36px, 5vw, 56px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-grid { display: grid; gap: 36px; align-items: end; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.page-hero .media { aspect-ratio: 3 / 2; }

/* ---------- lists that replace icon cards ---------- */
.features { display: grid; gap: 0 48px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.features > li { border-top: 1px solid var(--line); padding: 24px 0 28px; }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--muted); margin: 0; }
.bg-navy .features > li { border-color: rgba(255,255,255,.14); }
.bg-navy .features p { color: #b5c1d4; }

.numbered { counter-reset: n; }
.numbered > li { counter-increment: n; position: relative; padding-left: 56px; }
.numbered > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--accent-ink); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 32px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.steps li { counter-increment: s; border-top: 2px solid var(--navy-900); padding: 20px 0 28px; }
.steps li::before { content: "Step " counter(s); display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.bg-navy .ticks li { border-color: rgba(255,255,255,.14); }

.def { display: grid; gap: 0; margin: 0; }
.def > div { display: grid; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.def > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .def > div { grid-template-columns: 180px 1fr; } }
.def dt { font-weight: 700; color: var(--navy-900); }
.def dd { margin: 0; color: var(--ink); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 12px; } }
.gallery figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- areas ---------- */
.area-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .area-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.area-list li { border-bottom: 1px solid var(--line); }
.area-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; text-decoration: none; color: var(--navy-900); font-weight: 700; font-size: 1.08rem; }
.area-list a span { font-weight: 400; font-size: .9rem; color: var(--muted); }
.area-list a:hover { color: var(--accent-ink); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--sand-2); display: block; }

/* ---------- founder / quote ---------- */
.profile { display: grid; gap: 36px; }
@media (min-width: 900px) { .profile { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; } }
.pull { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--navy-900); border-left: 3px solid var(--accent); padding-left: 24px; margin: 0 0 28px; font-weight: 500; }
.bg-navy .pull { color: #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.0625rem; color: var(--navy-900); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--navy); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ---------- standards (philosophy) ---------- */
.standards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 56px; counter-reset: n; }
@media (min-width: 900px) { .standards { grid-template-columns: 1fr 1fr; } }
.standards li { counter-increment: n; position: relative; border-top: 1px solid var(--line); padding: 24px 0 28px 64px; }
.standards li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--accent-ink); line-height: 1; }
.standards h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.standards p { color: var(--muted); font-size: 1rem; margin: 0; }

.note { border-left: 3px solid var(--accent); background: var(--sand); padding: 20px 24px; }
.note-navy { border-color: var(--navy); }
.note-alert { border-color: var(--bad); background: #fbefed; }
.note h2 { font-size: 1.35rem; }

/* ---------- CTA band ---------- */
.cta { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr 1fr; gap: 64px; } .cta .btn-row { justify-content: flex-end; margin-top: 0; } }
.cta h2 { margin-bottom: .3em; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.bg-sand .form-card { border-color: #fff; box-shadow: 0 1px 2px rgba(15,34,64,.04), 0 12px 32px rgba(15,34,64,.06); }
.form-card > h2, .form-card > h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; font-size: .95rem; padding: 0; }
.field .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c9c2b5; border-radius: 4px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c3a6b' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; padding-right: 38px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,58,107,.14); }
.field .hint { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.field .err-msg { display: none; font-size: .875rem; color: var(--bad); margin-top: 6px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field.invalid .err-msg { display: block; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #c9c2b5; border-radius: 4px; padding: 9px 14px; cursor: pointer; margin: 0; }
.radio-row input { width: auto; accent-color: var(--navy); margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--navy); background: #f1f4f9; }
.hp { position: absolute; left: -9999px; }
.form-foot { font-size: .875rem; color: var(--muted); margin-top: 14px; }
.form-status { display: none; margin-top: 16px; padding: 16px 18px; border-radius: 4px; font-weight: 600; }
.form-status.ok { display: block; background: #e8f3ed; color: var(--ok); }
.form-status.bad { display: block; background: #fbefed; color: var(--bad); }
.help-btn { font: inherit; font-size: .85rem; font-weight: 600; color: var(--navy); background: none; border: 0; padding: 0 0 0 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.form-step { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy-900); margin: 0 0 18px; }
.form-step + .form-grid { margin-bottom: 8px; }
.form-step:not(:first-child) { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.contact-list small { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list b { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); text-decoration: none; }
.contact-list a:hover { color: var(--accent-ink); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid var(--line); }
.hours td { text-align: right; font-weight: 700; color: var(--navy-900); }

/* ---------- calculator ---------- */
.calc-results { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.calc-results[hidden] { display: none; }
.calc-results h2 { font-size: 1.6rem; }
.result-hero { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .result-hero { grid-template-columns: repeat(3, 1fr); } }
.result-box { padding: 20px; background: #fff; }
.result-box.navy { background: var(--navy-900); color: #cfd8e6; }
.result-box b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--navy-900); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.result-box.navy b { color: #fff; }
.result-box span { font-size: .9rem; }
.breakdown { width: 100%; border-collapse: collapse; margin-top: 20px; font-variant-numeric: tabular-nums; }
.breakdown th, .breakdown td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.breakdown th:first-child, .breakdown td:first-child { text-align: left; padding-left: 0; }
.breakdown thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.breakdown tbody td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.note-list { font-size: .9rem; color: var(--muted); padding-left: 18px; margin: 18px 0 0; }
.note-list li { margin-bottom: 6px; }

/* ---------- prose (legal, guides) ---------- */
.prose { font-size: 1.075rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--navy-900); }
.toc { border-top: 2px solid var(--navy-900); border-bottom: 1px solid var(--line); padding: 18px 0 20px; margin: 28px 0; }
.toc strong { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2 240px; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.byline { font-size: .9rem; color: var(--muted); margin-top: 18px; }

.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 18px 0; text-decoration: none; }
.related b { display: block; color: var(--navy-900); font-size: 1.05rem; }
.related span { color: var(--muted); font-size: .95rem; }
.related a:hover b { color: var(--accent-ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #aebbd0; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #e3e9f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-logo { background: #fff; border-radius: 4px; padding: 10px 12px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 120px; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #8e9db6; }
.ack { font-size: .9rem; color: #95a5bf; max-width: 52ch; }

/* ---------- mobile call bar ---------- */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; font-weight: 700; text-decoration: none; background: #fff; color: var(--navy-900); }
.call-bar a.primary { background: var(--navy); color: #fff; }
.call-bar svg { width: 16px; height: 16px; fill: currentColor; }
@media (min-width: 760px) { .call-bar { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 56px; } }

@media print {
  .site-header, .call-bar, .site-footer, .btn-row { display: none !important; }
  body { padding: 0; }
}
.calc-results:focus, .form-status:focus { outline: none; }

/* ---------- suburb finder ---------- */
.finder label { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.finder-row { display: flex; gap: 8px; max-width: 560px; }
.finder-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 13px 14px; border: 1px solid #c9c2b5; border-radius: 4px; background: #fff; color: var(--ink); }
.finder-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,58,107,.14); }
.finder-row .btn { flex: none; }
.find-result { margin-top: 20px; background: #fff; border-left: 3px solid var(--accent); padding: 18px 20px; max-width: 620px; }
.find-result[hidden] { display: none; }
.find-hit { margin: 0; }

/* ---------- quiz ---------- */
.quiz-progress { height: 6px; background: var(--sand-2); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.quiz:not(.is-stepped) .quiz-progress, .quiz:not(.is-stepped) .quiz-count { display: none; }
.q-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.q-step legend { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--navy-900); line-height: 1.3; margin-bottom: 18px; padding: 0; }
.q-step label { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid #c9c2b5; border-radius: 4px; margin-bottom: 10px; cursor: pointer; font-weight: 600; background: #fff; }
.q-step label:hover { border-color: var(--navy); }
.q-step label:has(input:checked) { border-color: var(--navy); background: #f1f4f9; box-shadow: inset 3px 0 0 var(--accent); }
.q-step input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; flex: none; }
.q-step .err-msg { display: none; color: var(--bad); font-weight: 600; font-size: .9rem; margin: 4px 0 0; }
.q-step.invalid .err-msg { display: block; }
.quiz-nav { justify-content: space-between; }
.quiz-nav #quizNext { margin-left: auto; }
#quizResult h2 { margin-top: 4px; }

/* ---------- income calculator ---------- */
.field input[type="range"] { padding: 0; border: 0; box-shadow: none; accent-color: var(--accent); height: 28px; background: none; }
.field output { color: var(--accent-ink); font-weight: 700; }
@media (min-width: 960px) { .income-out { position: sticky; top: 100px; } }
#quizResult:focus { outline: none; }
