/* Understanding Aging — site stylesheet.
 *
 * Direction: warm, calm and editorial. Heather plum and oat, with deep peat text,
 * a characterful serif (Fraunces) for headings and Atkinson Hyperlegible for body
 * text. Type is deliberately large (19px body, generous leading) and every text
 * colour below meets WCAG AA against the background it is used on:
 *   peat  #2b2420 on oat   #f7f1e7  ~ 14:1
 *   muted #5c5049 on oat            ~ 7:1
 *   plum  #4a2240 on oat            ~ 11:1
 *   link  #6b2f5c on cream #fffaf3  ~ 8.9:1
 *   ochre #8a4b0f on cream          ~ 6.4:1
 *   oat   #f3e9da on peat           ~ 13:1  (footer)
 * The mark (partials/brand-mark) and tools/brand/make-logo.py share these tokens.
 */
:root {
  --peat: #2b2420;
  --peat-soft: #40362f;
  --muted: #5c5049;
  --plum: #4a2240;
  --plum-deep: #34172d;
  --heather: #6b2f5c;
  --heather-mid: #a8789d;
  --heather-wash: #f2e7ef;
  --oat: #f7f1e7;
  --oat-deep: #efe4d3;
  --cream: #fffaf3;
  --line: #e6dccd;
  --line-strong: #cdbfae;
  --ochre: #8a4b0f;
  --gorse: #d9a441;
  --moss: #4d5a3a;
  --focus: #d9a441;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 14px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--oat); color: var(--peat); font-family: var(--sans); font-size: 19px; line-height: 1.7; }
@media (min-width: 992px) { body { font-size: 20px; } }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--plum); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.28rem; margin: 1.4rem 0 .5rem; }
h1 em, h2 em { font-style: italic; color: var(--heather); font-weight: 500; }
p { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
a { color: var(--heather); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--plum-deep); text-decoration-thickness: 2px; }
strong, b { font-weight: 700; }
img { max-width: 100%; height: auto; }
code { color: var(--plum-deep); background: var(--oat-deep); padding: .05em .3em; border-radius: 3px; font-size: .85em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.container { max-width: 1160px; }
.narrow-container { max-width: 800px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 9999; background: var(--cream); color: var(--plum); padding: .7rem 1rem; border: 2px solid var(--plum); border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.text-muted { color: var(--muted) !important; }
.eyebrow { display: inline-block; margin-bottom: .55rem; color: var(--ochre); font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow-light { color: var(--ochre); }
.text-link { font-weight: 700; }
.text-link::after { content: " \2192"; }
.hero-lead { font-size: 1.15em; color: var(--peat-soft); max-width: 40em; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.3; border-radius: var(--radius); padding: .8rem 1.35rem; text-decoration: none; border: 2px solid transparent; }
.btn-lg { font-size: 1.08rem; padding: .95rem 1.6rem; }
.btn-heather { background: var(--heather); border-color: var(--heather); color: #fff !important; }
.btn-heather:hover, .btn-heather:focus { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn-outline-heather { background: transparent; border-color: var(--heather); color: var(--heather) !important; }
.btn-outline-heather:hover { background: var(--heather-wash); color: var(--plum) !important; }
.btn-block { display: block; width: 100%; }

/* ---------- Header: a quiet masthead, not a dark bar ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header-top { background: var(--plum); color: var(--oat); font-size: .85rem; }
.site-header-top p { margin: 0; padding: .4rem 0; letter-spacing: .02em; }
.site-nav { padding: 1rem 0; }
.site-nav > .container { padding-left: 16px !important; padding-right: 16px !important; }
.site-nav-inner { display: flex; align-items: center; flex-wrap: wrap; }
.site-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--plum); }
.site-brand:hover { color: var(--plum); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; display: block; }
.site-brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; color: var(--plum); line-height: 1; }
.site-brand-name em { font-style: italic; font-weight: 500; color: var(--heather); }
.site-nav .nav-link { color: var(--peat) !important; font-weight: 700; font-size: 1.02rem; padding: .5rem .9rem !important; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav .nav-link:hover { color: var(--heather) !important; border-bottom-color: var(--heather-mid); }
.site-nav .nav-link[aria-current] { color: var(--plum) !important; border-bottom-color: var(--gorse); }
.nav-enquire .nav-link { color: var(--heather) !important; }
.navbar-toggler { border: 2px solid var(--plum); border-radius: var(--radius); padding: .4rem .8rem; color: var(--plum); font-weight: 700; font-size: 1rem; }
@media (max-width: 991.98px) {
  .site-nav .navbar-nav { padding-top: .8rem; }
  .site-nav .nav-link { border-bottom: 1px solid var(--line); }
  .site-brand-name { font-size: 1.3rem; }
}

/* ---------- Heroes ---------- */
.home-hero { position: relative; background: var(--oat-deep); padding: 4.5rem 0 7rem; overflow: hidden; }
.home-hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; position: relative; z-index: 1; }
@media (min-width: 992px) { .home-hero-grid { grid-template-columns: 1.55fr 1fr; } }
.home-hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); max-width: 14em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-note { background: var(--cream); border: 1px solid var(--line); border-top: 5px solid var(--heather); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.hero-note h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
.hero-note ul { list-style: none; padding: 0; margin: 0; }
.hero-note li { padding: .6rem 0; border-top: 1px dashed var(--line-strong); margin: 0; }
.hero-note li:first-child { border-top: 0; padding-top: 0; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
.hero-hills .hill-back { fill: var(--heather-mid); opacity: .35; }
.hero-hills .hill-front { fill: var(--oat); }
.page-hero { background: var(--oat-deep); border-bottom: 1px solid var(--line); padding: 3.2rem 0 2.6rem; }
.page-hero h1 { max-width: 20em; }
.page-hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 992px) { .page-hero-grid { grid-template-columns: 1.6fr 1fr; } }
.page-hero-callout { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--gorse); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: .95em; }
.page-hero-callout strong { display: block; font-family: var(--serif); color: var(--plum); font-size: 1.12rem; margin-bottom: .3rem; }
.page-hero-callout p { margin: 0 0 .5rem; }

/* ---------- Sections ---------- */
.section-shell { padding: 3.5rem 0; }
.section-heading { margin-bottom: 1.6rem; max-width: 46em; }
.section-heading h2 { margin-top: 0; }
.heading-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; }
.library-section { background: var(--oat); }
.library-card-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.library-card { display: block; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; color: var(--peat); text-decoration: none; box-shadow: 0 1px 0 var(--line-strong); }
a.library-card:hover { border-color: var(--heather-mid); color: var(--peat); text-decoration: none; }
.library-card small { color: var(--ochre); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.library-card h3 { font-size: 1.6rem; margin: .4rem 0 .6rem; }
.library-card-go { display: inline-block; margin-top: .4rem; font-weight: 700; color: var(--heather); }
a.library-card .library-card-go::after { content: " \2192"; }
.library-card-soon { background: transparent; border-style: dashed; }
.library-card-soon .library-card-go { color: var(--muted); font-weight: 400; font-style: italic; }
.principles-section { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-list { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 1.6rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle-list li { counter-increment: p; position: relative; padding-top: 2.6rem; margin: 0; }
.principle-list li::before { content: counter(p, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 1.7rem; font-style: italic; color: var(--heather-mid); line-height: 1; }
.principle-list h3 { margin-top: 0; font-size: 1.2rem; }
.principle-list p { margin: 0; color: var(--peat-soft); }
.principle-list-compact { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.principle-list-compact li { padding: 0 0 0 3.2rem; }
.people-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .people-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.people-grid h2 { margin-top: 0; }
.funding-note { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; font-size: .95em; }
.funding-note h3 { margin-top: 0; }
.funding-note p { margin: 0; }
.people-card { display: flex; gap: 1.3rem; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.people-card .brand-mark { width: 64px; height: 64px; }
.people-card h2 { margin: .1rem 0 .5rem; }
.people-card p { margin: 0; }

/* ---------- Prose pages (about, contact, legal) ---------- */
.prose-page h2 { margin-top: 2.4rem; }
.prose-page h2:first-child { margin-top: 0; }
.updated-note { color: var(--muted); font-size: .9em; }
.contact-card { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--heather); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.contact-card h2 { margin: .2rem 0 .6rem; font-size: clamp(1.25rem, 3vw, 1.6rem); overflow-wrap: anywhere; }
.contact-card p { margin: 0; }
.privacy-notice h3 { color: var(--peat); }

/* ---------- Research ---------- */
.site-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0 0 1.6rem; font-size: .92rem; }
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--line-strong); }
.site-breadcrumb .breadcrumb-item.active { color: var(--muted); }
.draft-note { padding: .8rem 1rem; border: 1px dashed var(--ochre); border-radius: var(--radius); background: #fdf5ea; color: #6b3a0b; font-size: .92rem; }
.draft-tag { color: var(--ochre); }
.topic-card-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.topic-card-grid-spaced { margin-bottom: 2.4rem; }
.topic-card-pro { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); color: var(--peat); text-decoration: none; overflow: hidden; }
.topic-card-pro:hover { color: var(--peat); text-decoration: none; border-color: var(--heather-mid); box-shadow: 0 4px 0 var(--heather-wash); }
.topic-card-image img { display: block; width: 100%; height: auto; }
.topic-card-copy { display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem 1.35rem 1.35rem; height: 100%; border-top: 4px solid var(--heather-mid); }
.topic-card-copy small { color: var(--ochre); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.topic-card-copy strong { font-family: var(--serif); color: var(--plum); font-size: 1.28rem; font-weight: 600; line-height: 1.25; }
.topic-card-copy > span { color: var(--peat-soft); font-size: .95em; }
.topic-card-copy > b { margin-top: auto; color: var(--heather); }
.topic-card-copy > b::after { content: " \2192"; }
.library-intro { max-width: 42em; font-size: 1.05em; margin-bottom: 1.8rem; }
.library-group-heading { margin-top: 2.4rem; }
.library-group-heading h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.library-about { margin-top: 3rem; max-width: 46em; background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--plum); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: .95em; }
.library-about strong { display: block; font-family: var(--serif); color: var(--plum); font-size: 1.15rem; margin-bottom: .4rem; }
.library-about p:last-child { margin-bottom: 0; }
.study-container { max-width: 820px; }
.study-header { margin-bottom: 1.6rem; }
.study-dates { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.key-findings { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--gorse); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.8rem; }
.key-findings strong { display: block; font-family: var(--serif); color: var(--plum); font-size: 1.15rem; margin-bottom: .4rem; }
.key-findings ul { margin: 0; }
.research-body { font-size: 1em; }
.study-related, .study-sources { margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.study-related h2, .study-sources h2 { font-size: 1.3rem; margin: .3rem 0 .9rem; }
.study-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.study-related li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; margin: 0; }
.study-related li a { font-weight: 700; }
.study-related li small { display: block; color: var(--muted); }
.research-authors { margin-top: 2.8rem; border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.research-authors img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line); background: var(--plum); }
.research-authors > div { flex: 1; min-width: 240px; }
.research-authors p { margin: .3rem 0 0; color: var(--peat-soft); }
.research-authors p strong { color: var(--plum); }

/* ---------- Enquiry funnel ---------- */
.quote-page-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 992px) { .quote-page-grid { grid-template-columns: 1fr 1fr; } }
.quote-reasons { padding-left: 1.3rem; margin: 1.4rem 0; }
.quote-page-disclosure { font-size: .92em; color: var(--muted); }
.quote-card { background: var(--cream); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 1.6rem; }
.quote-card-compact { padding: 1.2rem; }
.quote-card-head h2 { margin: .1rem 0 .5rem; font-size: 1.6rem; }
.quote-card-head p { color: var(--peat-soft); font-size: .95em; }
.quote-progress { margin: 1rem 0 1.2rem; }
.quote-progress-track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.quote-progress-track span { display: block; height: 100%; width: 0; background: var(--heather); transition: width .3s ease; }
.quote-progress ol { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; justify-content: space-between; }
.quote-progress li { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--muted); font-size: .9rem; }
.quote-progress li span { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--line-strong); font-weight: 700; font-size: .85rem; }
.quote-progress li.is-active span, .quote-progress li.is-complete span { border-color: var(--heather); background: var(--heather); color: #fff; }
.quote-progress li.is-active { color: var(--plum); font-weight: 700; }
.quote-progress small { font-size: inherit; }
.quote-step h3 { margin-top: .2rem; font-size: 1.35rem; }
.quote-step-kicker { color: var(--ochre); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }
.quote-step-assurance, .quote-why-phone { color: var(--muted); font-size: .92rem; margin-top: .8rem; }
.quote-step-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.quote-step-back { background: none; border: 0; color: var(--heather); font-weight: 700; padding: .4rem 0; text-decoration: underline; }
.quote-step-back-final { display: block; margin-top: .6rem; }
.pill-group { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .pill-group { grid-template-columns: 1fr 1fr; } }
.pill { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .85rem 1rem; background: #fff; border: 2px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 700; line-height: 1.3; }
.pill input { width: 1.15rem; height: 1.15rem; accent-color: var(--heather); }
.pill.selected, .pill:hover { border-color: var(--heather); background: var(--heather-wash); }
.quote-label { font-weight: 700; margin-bottom: .3rem; }
.optional { color: var(--muted); font-weight: 400; font-size: .85em; }
.form-control { font-size: 1.05rem; min-height: 3rem; border: 2px solid var(--line-strong); border-radius: var(--radius); color: var(--peat); background: #fff; }
.form-control:focus { border-color: var(--heather); box-shadow: 0 0 0 3px rgba(107, 47, 92, .18); }
.has-error .form-control, .has-error .pill { border-color: #a3281e; }
.field-error { color: #a3281e; font-weight: 700; font-size: .92rem; margin-top: .35rem; }
.quote-alert { border-radius: var(--radius); }
.quote-persuade { background: var(--oat); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1rem 1.1rem; margin: .8rem 0 1rem; font-size: .93rem; }
.quote-persuade ul { margin: .3rem 0 .6rem; }
.quote-persuade-lead, .quote-persuade-foot { margin: 0; }
.quote-submit { margin-top: .4rem; }
.consent-group { margin-top: 1rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--peat-soft); font-weight: 400; line-height: 1.5; }
.consent input { margin-top: .25rem; width: 1.2rem; height: 1.2rem; flex: 0 0 auto; accent-color: var(--heather); }
.trust-line { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.trust-line span::before { content: "\2022"; color: var(--heather-mid); margin-right: .4rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.question-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.question-grid article { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.question-grid h3 { margin-top: 0; font-size: 1.15rem; }
.question-grid p { margin: 0; color: var(--peat-soft); }
.quote-free-help { margin-top: 1.6rem; }
.quote-safety { background: var(--cream); border-top: 1px solid var(--line); padding: 2.4rem 0; }
.quote-safety-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .quote-safety-grid { grid-template-columns: 1fr 1.4fr; } }
.quote-safety h2 { margin-top: 0; }

/* ---------- Guides (commercial surface; quiet) ---------- */
.cta-band { background: var(--heather-wash); border-top: 1px solid var(--line); padding: 2.4rem 0; }
.cta-band-inner { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 992px) { .cta-band-inner { grid-template-columns: 2.2fr 1fr; } .cta-band-action { text-align: right; } }
.cta-band h2 { margin-top: 0; font-size: 1.5rem; }
.cta-band p { margin: 0; }
.cta-inline { margin: 2rem 0; padding: 1.2rem 1.4rem; background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--heather-mid); border-radius: var(--radius); }
.cta-inline p { font-size: .95em; }
.guide-hero, .cluster-hero { background: var(--oat-deep); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.guide-hero-grid, .cluster-hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 992px) { .guide-hero-grid, .cluster-hero-grid { grid-template-columns: 1.4fr 1fr; } }
.guide-hero-image img, .cluster-hero-image img { border-radius: var(--radius-lg); }
.guide-deck { font-size: 1.12em; color: var(--peat-soft); }
.guide-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--muted); font-size: .92rem; }
.light-breadcrumb { font-size: .92rem; margin-bottom: 1rem; color: var(--muted); }
.light-breadcrumb span { margin: 0 .4rem; }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--gorse); }
.long-form-guide { padding: 2.8rem 0; }
.article-intro-bar { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.article-toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 1.8rem; }
.article-toc h2 { font-size: 1.2rem; margin: .2rem 0 .6rem; }
.article-end-cta { margin: 2.4rem 0 1.2rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.article-end-cta h2 { margin-top: .2rem; font-size: 1.4rem; }
.article-disclaimer { font-size: .9rem; color: var(--muted); }
.sticky-quote { position: sticky; top: 1.2rem; }
.sticky-quote-note { font-size: .85rem; color: var(--muted); margin-top: .7rem; }
.related-guides { margin-top: 2.2rem; }
.related-guide-grid { display: grid; gap: .6rem; }
.related-guide-grid a { display: flex; justify-content: space-between; gap: 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; text-decoration: none; font-weight: 700; }
.cluster-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.cluster-toolbar h2 { margin: 0; }
.guide-search span { display: block; font-weight: 700; font-size: .9rem; }
.guide-search input { min-height: 3rem; padding: .4rem .8rem; border: 2px solid var(--line-strong); border-radius: var(--radius); font-size: 1rem; }
.filter-status { color: var(--muted); font-size: .9rem; }
.guide-card-list { display: grid; gap: .8rem; }
.guide-card { display: flex; justify-content: space-between; gap: 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.guide-card h2 { font-size: 1.2rem; margin: .2rem 0 .4rem; }
.guide-card p { margin: 0; color: var(--peat-soft); font-size: .95em; }
.guide-card small { color: var(--ochre); font-weight: 700; }
.guide-card-arrow { align-self: center; text-decoration: none; font-size: 1.3rem; }
.other-topics { margin-top: 2.4rem; }
.inline-topics { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.inline-topics a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; background: var(--cream); }

/* ---------- Commercial surface (guide and legal pages only; same rules as the
   parent site, restyled). Home, about, contact and research opt out. ---------- */
.site-nav .nav-cta .nav-link { margin-left: .6rem; padding: .7rem 1.15rem !important; background: var(--heather); border: 2px solid var(--heather); border-radius: var(--radius); color: #fff !important; }
.site-nav .nav-cta .nav-link:hover { background: var(--plum); border-color: var(--plum); color: #fff !important; }
.assurance-bar { background: var(--plum-deep); color: var(--oat); font-size: .85rem; font-weight: 700; }
.assurance-items { display: flex; justify-content: center; gap: 2rem; padding-top: .45rem; padding-bottom: .45rem; }
.assurance-items span { white-space: nowrap; }
.assurance-items i { margin-right: .3rem; color: var(--gorse); font-style: normal; }
.btn-gorse { background: var(--gorse); border-color: var(--gorse); color: var(--peat) !important; }
.btn-gorse:hover { background: #e6b65a; color: var(--peat) !important; }
.cta-band-action small, .cta-inline small { display: block; margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.cta-inline h3 { margin-top: .1rem; }
.guide-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.4rem; }
.guide-hero-cta-note { font-size: .9rem; color: var(--muted); max-width: 32ch; }
.footer-action { background: rgba(243, 233, 218, .07); border: 1px solid #54473f; border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.footer-action p { color: #e3d7c6; }
@media (min-width: 768px) { .footer-grid-commercial { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
@media (min-width: 768px) { .footer-grid-commercial > :nth-child(n) { min-width: 0; } }

/* Preparing panel between steps 2 and 3 */
.quote-searching-panel[hidden] { display: none !important; }
.quote-searching-panel { display: flex; min-height: 250px; align-items: center; flex-direction: column; justify-content: center; padding: 1.2rem .5rem; text-align: center; }
.quote-searching-panel h3 { margin: .25rem 0 .5rem; font-size: 1.3rem; }
.quote-searching-panel p { max-width: 340px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.quote-search-spinner { position: relative; width: 54px; height: 54px; margin-bottom: .85rem; border: 4px solid var(--line); border-top-color: var(--heather); border-radius: 50%; animation: quote-spin .8s linear infinite; }
.quote-search-spinner span { position: absolute; inset: 9px; background: var(--heather-wash); border-radius: 50%; }
.quote-searching-panel.is-ready .quote-search-spinner { background: var(--heather); border-color: var(--heather); animation: none; }
.quote-searching-panel.is-ready .quote-search-spinner::after { position: absolute; top: 11px; left: 17px; width: 14px; height: 24px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; content: ""; transform: rotate(45deg); }
.quote-searching-panel.is-ready .quote-search-spinner span { display: none; }
.quote-search-lines { display: grid; width: min(280px, 90%); gap: .35rem; margin-top: 1rem; }
.quote-search-lines i { display: block; height: 5px; overflow: hidden; background: var(--line); border-radius: 10px; }
.quote-search-lines i::after { display: block; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, var(--heather-mid), transparent); content: ""; animation: quote-search 1s ease-in-out infinite; }
.quote-search-lines i:nth-child(2)::after { animation-delay: .15s; }
.quote-search-lines i:nth-child(3)::after { animation-delay: .3s; }
.quote-searching-panel.is-ready .quote-search-lines { opacity: 0; }
@keyframes quote-spin { to { transform: rotate(360deg); } }
@keyframes quote-search { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* Persuasion panel (shown when submitted without a valid number) */
.quote-persuade { border-left: 5px solid var(--ochre); background: #fdf5ea; border-color: #e3c49e; animation: persuadeIn .25s ease-out; }
.quote-persuade-lead { color: #6b3a0b; font-size: 1.02rem; margin-bottom: .5rem !important; }
.quote-persuade li { color: var(--peat); }
@keyframes persuadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Global quote rail: wide screens only, beside the content */
.global-quote-rail { display: none; }
@media (min-width: 1320px) {
  body.has-global-quote-rail #main-content { padding-right: 420px; }
  .global-quote-rail { position: fixed; top: 186px; right: 18px; z-index: 1020; display: block; width: 386px; max-height: calc(100vh - 202px); padding: 0 .2rem .5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .global-quote-rail .quote-card { margin: 0; padding: 1.2rem 1.15rem 1rem; box-shadow: 0 18px 50px rgba(43, 36, 32, .18); }
  .global-quote-rail .quote-card-head h2 { font-size: 1.4rem; }
  .global-quote-rail .quote-card-head p { font-size: .88rem; }
  .global-quote-rail .quote-form .form-row { display: block; margin-right: 0; margin-left: 0; }
  .global-quote-rail .quote-form .form-row > [class*="col-"] { max-width: 100%; padding-right: 0; padding-left: 0; }
  .global-quote-rail .pill-group { grid-template-columns: 1fr; }
  .global-quote-rail .quote-step { min-height: 238px; }
}
.sticky-quote { max-height: calc(100vh - 2.4rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sticky-quote .quote-form .form-row { display: block; margin-right: 0; margin-left: 0; }
.sticky-quote .quote-form .form-row > [class*="col-"] { max-width: 100%; padding-right: 0; padding-left: 0; }
@media (max-width: 991.98px) { .sticky-quote { position: static; max-height: none; overflow: visible; } }

/* Exit-intent modal (desktop with a fine pointer only; site.js) */
.exit-modal[hidden] { display: none !important; }
.exit-modal { position: fixed; inset: 0; z-index: 3000; display: grid; padding: 28px; place-items: center; }
.exit-modal-backdrop { position: absolute; inset: 0; background: rgba(43, 36, 32, .72); }
.exit-modal-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; width: min(980px, 100%); max-height: calc(100vh - 56px); overflow: auto; background: var(--cream); border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(0, 0, 0, .35); }
.exit-modal-copy { display: flex; flex-direction: column; justify-content: center; padding: 2.6rem 2.2rem; background: var(--plum); border-radius: var(--radius-lg) 0 0 var(--radius-lg); color: var(--oat); }
.exit-modal-copy .eyebrow { color: var(--gorse); }
.exit-modal-copy h2 { margin: 0 0 1rem; color: #fff; font-size: 2.2rem; }
.exit-modal-copy ul { margin: .5rem 0 0; padding: 0; list-style: none; }
.exit-modal-copy li { position: relative; margin: .6rem 0; padding-left: 1.5rem; }
.exit-modal-copy li::before { position: absolute; left: 0; color: var(--gorse); content: "✓"; font-weight: 700; }
.exit-modal-form { padding: 1rem; }
.exit-modal-form .quote-card { margin: 0; border: 0; }
.exit-modal-close { position: absolute; top: 12px; right: 14px; z-index: 4; width: 40px; height: 40px; padding: 0; background: var(--oat-deep); border: 0; border-radius: 50%; color: var(--plum); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.exit-modal-open { overflow: hidden; }
@media (max-width: 767.98px) { .exit-modal { display: none !important; } }

/* Sticky mobile enquiry bar */
.mobile-quote-bar { display: none; }
@media (max-width: 991.98px) {
  .mobile-quote-bar {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--plum); color: #fff; text-decoration: none;
    box-shadow: 0 -8px 24px rgba(43, 36, 32, .25); border-top: 3px solid var(--gorse);
  }
  .mobile-quote-bar:hover { color: #fff; text-decoration: none; }
  .mobile-quote-bar-text { display: flex; flex-direction: column; line-height: 1.25; }
  .mobile-quote-bar-text strong { font-size: 1.02rem; color: #fff; }
  .mobile-quote-bar-text small { font-size: .82rem; color: var(--oat); }
  .mobile-quote-bar-btn { flex: none; background: var(--gorse); color: var(--peat); font-weight: 700; padding: .6rem 1.1rem; border-radius: var(--radius); white-space: nowrap; }
  body:not(.no-mobile-cta) { padding-bottom: 5rem; }
  .site-nav .nav-cta .nav-link { display: block; margin: .6rem 0 0; text-align: center; }
  .assurance-items { justify-content: flex-start; overflow-x: auto; gap: 1.2rem; }
}
@media (max-width: 575.98px) { .assurance-items span:nth-child(2) { display: none; } }
body.no-mobile-cta .mobile-quote-bar { display: none; }

/* ---------- Errors ---------- */
.error-panel { padding: 4.5rem 0 5rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.error-links { color: var(--muted); }

/* ---------- Footer: peat ground under a line of hills ---------- */
.site-footer { position: relative; background: var(--peat); color: var(--oat); margin-top: 3.5rem; padding: 3.2rem 0 2rem; font-size: .95rem; }
.footer-hills { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; fill: var(--peat); }
.site-footer a { color: var(--oat); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { margin-bottom: .9rem; }
.footer-brand .site-brand-name, .footer-brand .site-brand-name em { color: var(--oat); }
.footer-brand-block p { color: #e3d7c6; max-width: 30em; }
.site-footer h2 { font-family: var(--sans); color: var(--gorse); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: .3rem 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-disclosure { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid #54473f; color: #e3d7c6; font-size: .88rem; line-height: 1.6; }
.footer-disclosure strong { color: var(--oat); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quote-persuade, .quote-search-spinner, .quote-search-lines i::after { animation: none !important; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .article-sidebar, .global-quote-rail, .mobile-quote-bar, .exit-modal { display: none; }
  body { background: #fff; font-size: 12pt; }
}
