/* ==========================================================================
   warmhomeloans.org
   Single stylesheet. Mobile-first. Targets WCAG 2.2 AA.
   All colour pairs used for text have been checked at >= 4.5:1 (>= 3:1 for
   large text and UI borders).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --navy:        #072a4d;   /* 14.6:1 on white */
  --navy-700:    #0a3a66;
  --blue:        #0b57a4;   /* 7.2:1 on white  */
  --blue-600:    #0d64bd;
  --blue-100:    #dce9f7;
  --blue-050:    #eef5fc;
  --sky:         #9fd0ff;
  --teal:        #0b6e5f;   /* 6.1:1 on white  */
  --teal-050:    #eaf6f3;
  --amber:       #ffb020;
  --amber-700:   #8a5a00;   /* 5.5:1 on white — for amber-coloured text */
  --amber-050:   #fff6e4;
  --plum-050:    #f4f0fd;
  --plum:        #5b3fa6;

  /* Ink and surfaces */
  --ink:         #11212f;   /* 15.2:1 on white */
  --ink-muted:   #46596b;   /* 7.0:1 on white  */
  --line:        #cdd9e5;
  --line-soft:   #e4ebf2;
  --bg:          #ffffff;
  --bg-soft:     #f7fafd;
  --bg-warm:     #fdf8f1;

  /* Type */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-step--1: clamp(0.875rem, 0.86rem + 0.1vw, 0.9375rem);
  --fs-step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-step-1:  clamp(1.125rem, 1.07rem + 0.3vw, 1.25rem);
  --fs-step-2:  clamp(1.375rem, 1.28rem + 0.5vw, 1.625rem);
  --fs-step-3:  clamp(1.625rem, 1.45rem + 0.9vw, 2.125rem);
  --fs-step-4:  clamp(2rem, 1.6rem + 1.9vw, 3rem);

  /* Space */
  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(7, 42, 77, .08), 0 2px 8px rgba(7, 42, 77, .06);
  --shadow-md: 0 4px 12px rgba(7, 42, 77, .09), 0 12px 32px rgba(7, 42, 77, .08);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--sp-4); color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-step-4); }
h2 { font-size: var(--fs-step-3); }
h3 { font-size: var(--fs-step-2); }
h4 { font-size: var(--fs-step-1); }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: var(--sp-2); }
strong { font-weight: 700; }
small { font-size: var(--fs-step--1); }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: var(--sp-6) 0; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; }
iframe { border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 48rem) { .wrap { padding-inline: var(--sp-5); } }

.skip-link {
  position: absolute; left: var(--sp-4); top: -3rem; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; text-decoration: none;
  transition: top .15s ease-in;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- top notice */

.topbar { background: var(--navy); color: #eaf2fa; font-size: var(--fs-step--1); }
.topbar-inner { display: flex; justify-content: center; padding-block: var(--sp-2); }
.topbar-text { margin: 0; display: flex; align-items: center; gap: var(--sp-2); text-align: center; flex-wrap: wrap; justify-content: center; }
.topbar-text strong { color: #fff; }
.topbar a { color: var(--sky); }
.topbar a:hover { color: #fff; }
.topbar-flag {
  flex: none; display: inline-grid; place-items: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--amber); color: var(--navy); font-weight: 700; font-size: .75rem; font-style: italic;
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-3); flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-text { display: grid; }
.brand-name { font-weight: 700; font-size: var(--fs-step-1); line-height: 1.1; letter-spacing: -.015em; }
.brand-sub { font-size: .75rem; color: var(--ink-muted); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy);
  font: inherit; font-weight: 600; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 1.1rem; }
.nav-toggle-bars span { height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.primary-nav { display: none; width: 100%; }
.primary-nav.is-open { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: var(--sp-2) 0 0; display: grid; gap: 2px; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block; padding: var(--sp-3); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; color: var(--navy);
}
.primary-nav a:hover { background: var(--blue-050); }
.primary-nav a[aria-current="page"] { background: var(--blue-050); box-shadow: inset 3px 0 0 var(--blue); }

.header-cta { display: none; }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; width: auto; order: 3; flex-basis: 100%; }
  .primary-nav ul { display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: 0; border-top: 1px solid var(--line-soft); padding-top: var(--sp-2); }
  .primary-nav li + li { margin-top: 0; }
  .primary-nav a { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-step--1); }
  .primary-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); }
  .header-cta { display: inline-flex; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .7rem 1.15rem; border-radius: var(--radius); border: 2px solid transparent;
  background: var(--blue); color: #fff; transition: background-color .15s, color .15s, transform .15s;
  min-height: 44px;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: #e59c0c; color: var(--navy); }
.btn-outline { background: transparent; color: var(--blue); border-color: currentColor; }
.btn-outline:hover { background: var(--blue-050); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: .9rem 1.5rem; font-size: var(--fs-step-1); }
.btn-small { padding: .45rem .85rem; font-size: var(--fs-step--1); min-height: 38px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }

/* ------------------------------------------------------------- structure */

.section { padding-block: var(--sp-7); }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.section-navy { background: var(--navy); color: #eaf2fa; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: var(--sky); }
.section-navy a:hover { color: #fff; }
/* Buttons keep their own text colour inside navy sections */
.section-navy a.btn-accent, .section-navy a.btn-accent:hover { color: var(--navy); }
.section-navy a.btn-ghost-light, .section-navy a.btn-ghost-light:hover { color: #fff; }
.section-tight { padding-block: var(--sp-6); }
.section > .wrap > :last-child { margin-bottom: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; font-weight: 700;
  color: var(--blue); margin-bottom: var(--sp-2);
}
.section-navy .eyebrow { color: var(--amber); }
.lede { font-size: var(--fs-step-1); color: var(--ink-muted); max-width: 62ch; }
.section-navy .lede { color: #cfe0f0; }
.measure { max-width: 70ch; }

/* ------------------------------------------------------------------- hero */

.hero { background: linear-gradient(170deg, var(--blue-050) 0%, #ffffff 62%); padding-block: var(--sp-6) var(--sp-7); }
.hero-inner { display: grid; gap: var(--sp-6); }
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 .hero-hl { color: var(--blue); }
.hero-lede { font-size: var(--fs-step-1); color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; padding: 0; margin: 0; font-size: var(--fs-step--1); color: var(--ink-muted); }
.hero-trust li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.hero-trust li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); flex: none; }
.illus-hero { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--sp-7); }
}

/* ------------------------------------------------------- urgency / notice */

.fund-card {
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--amber);
  border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-5);
}
.fund-card h2, .fund-card h3 { font-size: var(--fs-step-2); margin-bottom: var(--sp-3); }
.fund-card p:last-child { margin-bottom: 0; }
.fund-figures { display: grid; gap: var(--sp-4); list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.fund-figures li { margin: 0; }
.fund-figure { font-size: var(--fs-step-3); font-weight: 700; color: var(--navy); display: block; line-height: 1.1; }
.fund-label { font-size: var(--fs-step--1); color: var(--ink-muted); display: block; }
@media (min-width: 40rem) { .fund-figures { grid-template-columns: repeat(3, 1fr); } }

.notice {
  border: 1px solid var(--line); border-left: 6px solid var(--blue);
  background: var(--blue-050); border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5);
}
.notice > :last-child { margin-bottom: 0; }
.notice h2, .notice h3 { font-size: var(--fs-step-1); margin-bottom: var(--sp-2); }
.notice-warn { border-left-color: var(--amber); background: var(--amber-050); }
.notice-good { border-left-color: var(--teal); background: var(--teal-050); }
.notice-plain { border-left-color: var(--line); background: var(--bg-soft); }

/* -------------------------------------------------------------- card grid */

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 40rem) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: var(--sp-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { font-size: var(--fs-step-1); }
.card .illus { border-radius: var(--radius) var(--radius) 0 0; margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-4); max-width: none; width: calc(100% + 2 * var(--sp-5)); }
.card-cap {
  display: inline-block; align-self: flex-start; background: var(--navy); color: #fff;
  font-size: var(--fs-step--1); font-weight: 700; padding: var(--sp-1) var(--sp-3);
  border-radius: 999px; margin-bottom: var(--sp-3);
}
.card-cap-teal { background: var(--teal); }
.card-cap-plum { background: var(--plum); }
.card-link { margin-top: auto; padding-top: var(--sp-3); font-weight: 700; }

.stat-row { display: grid; gap: var(--sp-4); list-style: none; padding: 0; }
@media (min-width: 48rem) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4); margin: 0; }
.stat b { display: block; font-size: var(--fs-step-2); color: var(--navy); line-height: 1.15; }
.stat span { font-size: var(--fs-step--1); color: var(--ink-muted); }

/* ------------------------------------------------------------------ lists */

.tick-list, .cross-list { list-style: none; padding: 0; }
.tick-list li, .cross-list li { position: relative; padding-left: 2rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.25rem; height: .7rem;
  border-left: .19rem solid var(--teal); border-bottom: .19rem solid var(--teal);
  transform: rotate(-45deg) scale(.8); transform-origin: center;
}
.cross-list li::before {
  content: "\00d7"; position: absolute; left: .25rem; top: -.05em;
  color: #a8341f; font-weight: 700; font-size: 1.35em; line-height: 1.4;
}
.section-navy .tick-list li::before { border-color: var(--amber); }
/* The default cross colour is too dark on the navy band — lighten it there. */
.section-navy .cross-list li::before { color: #ff9c86; }

/* ------------------------------------------------------------------ steps */

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; margin: 0; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-sm); position: relative;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: var(--fs-step-1);
  margin-bottom: var(--sp-3);
}
.steps h3 { font-size: var(--fs-step-1); margin-bottom: var(--sp-2); }
.steps p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ table */

.table-scroll { overflow-x: auto; margin-bottom: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: var(--fs-step--1); }
caption { caption-side: top; text-align: left; padding: var(--sp-4) var(--sp-4) var(--sp-2); font-weight: 700; color: var(--navy); }
th, td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: var(--fs-step--1); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--navy); }
tbody tr:nth-child(even) { background: var(--bg-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: var(--fs-step--1); color: var(--ink-muted); }

/* -------------------------------------------------------------------- faq */

.faq-group { margin-bottom: var(--sp-6); }
.faq-group h2 { font-size: var(--fs-step-2); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--line-soft); }
.faq-list { display: grid; gap: var(--sp-3); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-4);
  font-weight: 700; color: var(--navy); display: flex; gap: var(--sp-3); align-items: flex-start;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; margin-left: auto; flex: none; width: .6rem; height: .6rem;
  border-right: .17rem solid var(--blue); border-bottom: .17rem solid var(--blue);
  transform: rotate(45deg); transition: transform .15s ease; margin-top: .4em;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-item summary:hover { background: var(--blue-050); border-radius: var(--radius); }
.faq-answer { padding: var(--sp-4); }
.faq-answer > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------- eligibility tool */

.checker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--sp-5); }
@media (min-width: 48rem) { .checker { padding: var(--sp-6); } }
.checker-progress { font-size: var(--fs-step--1); color: var(--ink-muted); margin-bottom: var(--sp-2); font-weight: 600; }
.checker-bar { height: .5rem; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin-bottom: var(--sp-5); }
.checker-bar span { display: block; height: 100%; background: var(--teal); width: 0; transition: width .2s ease; }
.checker fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.checker legend { font-size: var(--fs-step-2); font-weight: 700; color: var(--navy); padding: 0; margin-bottom: var(--sp-2); line-height: 1.25; }
.checker-help { color: var(--ink-muted); margin-bottom: var(--sp-4); }
.choices { display: grid; gap: var(--sp-3); }
@media (min-width: 40rem) { .choices-2 { grid-template-columns: repeat(2, 1fr); } }
.choice {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  border: 2px solid var(--line); border-radius: var(--radius); padding: var(--sp-4);
  cursor: pointer; background: #fff; font-weight: 600; min-height: 44px;
}
.choice:hover { border-color: var(--blue); background: var(--blue-050); }
.choice input { margin: .2rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--blue); flex: none; }
.choice input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice-text { display: grid; gap: .15rem; }
.choice-note { font-weight: 400; font-size: var(--fs-step--1); color: var(--ink-muted); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-050); box-shadow: inset 0 0 0 1px var(--blue); }
.checker-nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.checker-error { color: #8a1c0a; font-weight: 700; margin: 0 0 var(--sp-3); }

.result { border-radius: var(--radius); padding: var(--sp-5); border: 1px solid var(--line); border-left: 6px solid var(--blue); background: var(--blue-050); }
.result > :last-child { margin-bottom: 0; }
.result h3 { font-size: var(--fs-step-2); }
.result-yes { border-left-color: var(--teal); background: var(--teal-050); }
.result-maybe { border-left-color: var(--amber); background: var(--amber-050); }
.result-no { border-left-color: #a8341f; background: #fdf0ed; }
.result-list { margin-bottom: var(--sp-4); }
.noscript-note { margin-bottom: var(--sp-5); }

/* -------------------------------------------------------------- lead form */

.lead-form { background: var(--navy); color: #eaf2fa; padding-block: var(--sp-7); }
.lead-form.tone-plain { background: var(--bg-soft); color: var(--ink); }
.lead-form h2 { color: #fff; }
.lead-form.tone-plain h2 { color: var(--navy); }
.lead-form a { color: var(--sky); }
.lead-form.tone-plain a { color: var(--blue); }
.lead-form a:hover { color: #fff; }
.lead-form.tone-plain a:hover { color: var(--navy); }
.lead-form .eyebrow { color: var(--amber); }
.lead-form.tone-plain .eyebrow { color: var(--blue); }
.lead-form-inner { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 60rem) { .lead-form-inner { grid-template-columns: .9fr 1.1fr; gap: var(--sp-7); } }
.lead-form-intro { font-size: var(--fs-step-1); color: #cfe0f0; }
.lead-form.tone-plain .lead-form-intro { color: var(--ink-muted); }
.lead-form .tick-list li::before { border-color: var(--amber); }
.lead-form.tone-plain .tick-list li::before { border-color: var(--teal); }
.lead-form-note { font-size: var(--fs-step--1); }
.form-frame {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); height: min(78vh, 680px); min-height: 520px;
}
.typeform-frame { width: 100%; height: 100%; display: block; }
.form-fallback, .form-privacy { font-size: var(--fs-step--1); margin-top: var(--sp-3); margin-bottom: 0; color: #cfe0f0; }
.lead-form.tone-plain .form-fallback, .lead-form.tone-plain .form-privacy { color: var(--ink-muted); }

/* --------------------------------------------------------------- cta band */

.cta-band { background: linear-gradient(100deg, var(--blue) 0%, var(--navy) 100%); color: #fff; padding-block: var(--sp-6); }
.cta-band h2 { color: #fff; font-size: var(--fs-step-2); margin-bottom: var(--sp-2); }
.cta-band p { color: #dce9f7; margin-bottom: 0; }
.cta-band-inner { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 56rem) { .cta-band-inner { grid-template-columns: 1.4fr auto; } }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; }

/* ------------------------------------------------------------- disclaimer */

.disclaimer {
  background: var(--bg-warm); border: 1px solid var(--line); border-top: 6px solid var(--navy);
  border-radius: var(--radius); padding: var(--sp-5);
}
.disclaimer h2 { font-size: var(--fs-step-2); }
.disclaimer > :last-child { margin-bottom: 0; }
.disclaimer-meta { font-size: var(--fs-step--1); color: var(--ink-muted); }

/* ----------------------------------------------------------------- prose */

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); font-size: var(--fs-step-1); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose dt { font-weight: 700; color: var(--navy); margin-top: var(--sp-4); }
.prose dd { margin: 0 0 var(--sp-2); padding-left: 0; }
.toc { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.toc h2 { font-size: var(--fs-step-1); margin: 0 0 var(--sp-2); }
.toc ul { margin: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--navy); color: #cfe0f0; padding-block: var(--sp-7) var(--sp-5); margin-top: var(--sp-7); font-size: var(--fs-step--1); }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: var(--amber); }
.footer-top { display: grid; gap: var(--sp-6); }
@media (min-width: 48rem) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.brand-footer { color: #fff; margin-bottom: var(--sp-4); }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: var(--sky); }
.footer-blurb { max-width: 36ch; }
.footer-nav h2 { font-size: var(--fs-step-0); color: #fff; margin-bottom: var(--sp-3); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer-nav li { margin: 0; }
.footer-official { border-top: 1px solid rgba(255,255,255,.18); margin-top: var(--sp-6); padding-top: var(--sp-5); }
.footer-official h2 { font-size: var(--fs-step-0); color: #fff; margin-bottom: var(--sp-2); }
.footer-official p { max-width: 80ch; margin-bottom: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: var(--sp-5); padding-top: var(--sp-4); }
.footer-bottom p { margin-bottom: var(--sp-2); }
.footer-smallprint { color: #a9c4dc; max-width: 90ch; }

/* --------------------------------------------------------- cookie notice */

.cookie-notice {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 -6px 24px rgba(7,42,77,.14);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice-inner { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; padding-block: var(--sp-3); }
.cookie-notice p { margin: 0; font-size: var(--fs-step--1); max-width: 78ch; }

/* ------------------------------------------------------------------ misc */

/* The header is sticky, so anchored targets need clearance or they land
   underneath it. */
[id] { scroll-margin-top: 6rem; }
.anchor-offset { scroll-margin-top: 7rem; }
.illus { display: block; width: 100%; }
.pill {
  display: inline-block; background: var(--amber-050); color: var(--amber-700);
  border: 1px solid #f0d79a; border-radius: 999px; padding: .15rem .7rem;
  font-size: var(--fs-step--1); font-weight: 700;
}
.pill-teal { background: var(--teal-050); color: var(--teal); border-color: #b5ded6; }
.updated { font-size: var(--fs-step--1); color: var(--ink-muted); }

@media print {
  .topbar, .site-header, .cookie-notice, .lead-form-embed, .cta-band { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Illustrative fund-scale note (src/partials/fund-scale.html) */
.scale-note { max-width: 78ch; }
.scale-note h3 { font-size: var(--fs-step-2); }

/* ------------------------------------------------------------------ photos */
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; }
.photo-hero { aspect-ratio: 4 / 3; }
.photo-portrait { max-height: 32rem; aspect-ratio: 2 / 3; width: auto; max-width: 100%; margin-inline: auto; }
.photo-figure { margin: var(--sp-5) 0 var(--sp-6); }
.photo-figure .photo { max-height: 26rem; aspect-ratio: 16 / 9; }
