/* Bloom Lending marketing theme — confident, editorial, and calculator-led.
   The core palette pairs Bloom green with charcoal, black, and white. Poppins
   remains the single display/body family so the existing brand stays familiar.
   site-config can still override --bloom and the charcoal family. */
:root {
  --canvas: #f4f6f2;
  --paper: #ffffff;
  --ink: #191414;
  --muted: #5c615c;
  --near-black: #000000;
  --bloom: #1ed760;
  --bloom-dark: #167b35;
  /* Green TEXT, icons and focus rings on light surfaces. --bloom is a FILL
     colour: it scores 1.76:1 on --canvas and 1.91:1 on white, far under the
     4.5:1 that WCAG 1.4.3 asks of body text, under the 3:1 for large text,
     and under the 3:1 that 1.4.11 asks of a focus indicator. --bloom-dark
     scores 4.96:1 and 5.39:1 on those same two grounds. So: the bright green
     keeps every fill, rule, border and decorative accent, and anything a
     reader has to READ on a light surface uses --bloom-text. On the dark
     bands --bloom is 9.5:1 and stays exactly as it is. */
  --bloom-text: var(--bloom-dark);
  --bloom-pale: #e9fff0;
  --forest: #191414;
  --forest-deep: #000000;
  --line: #d8ddd8;
  --field-line: #bcc4bd;
  --panel: #f4f6f2;
  --mist: #f4f6f2;
  --warm: #eef3ed;
  --shadow: 0 22px 60px rgba(25, 20, 20, .12);
  --radius: 12px;
  --serif: "Poppins", Arial, sans-serif;
  --sans: "Poppins", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: .75rem;
  top: -4rem;
  z-index: 100;
  padding: .65rem .9rem;
  border-radius: 6px;
  background: var(--paper);
  color: var(--forest-deep);
  font-weight: 700;
}
.skip-link:focus { top: .75rem; }

/* ---- Two-tier header (vendor chrome) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.topbar-inner {
  width: min(1140px, calc(100% - 2rem));
  min-height: 88px;
  margin: auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 190px; height: auto; display: block; }
.topbar-utils { display: flex; align-items: center; gap: 1.1rem; }
.socials { display: flex; align-items: center; gap: .9rem; }
.socials a { display: inline-flex; color: var(--near-black); }
.socials a:hover { color: var(--bloom-text); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.topbar-sep { width: 1px; height: 30px; background: var(--line); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--near-black);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.header-phone svg { width: 19px; height: 19px; fill: currentColor; }
.phone-btn, .menu-toggle { display: none; }

/* Green primary nav bar */
.nav-bar { background: var(--bloom); }
.nav-inner {
  width: min(1140px, calc(100% - 2rem));
  margin: auto;
  display: flex;
  align-items: center;
}
/* The dropdown trigger is a real <button> (see marketing.js — an anchor with
   role="button" does not answer Space). Every nav rule therefore matches
   `:is(a, button)`, which keeps the specificity these selectors already had,
   and the block resets the three things a button brings that an anchor does
   not: a border, a background and a UA font. Rendered result is identical. */
.nav-inner > a, .nav-inner .dropdown > :is(a, button) {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .82rem 1.05rem;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
}
.nav-inner > a:first-child, .nav-inner .dropdown:first-child > :is(a, button) { padding-left: 0; }
.nav-inner > a:hover, .nav-inner .dropdown > :is(a, button):hover { color: rgba(255,255,255,.85); }
.nav-inner > a[aria-current="page"] { color: #fff; }
.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: inline-block;
}
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 1.05rem;
  z-index: 60;
  display: none;
  min-width: 205px;
  padding: .35rem 0;
  background: var(--bloom);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 24px rgba(33,37,41,.18);
}
.dropdown:first-child .dropdown-menu { left: 0; }
.dropdown-menu a {
  display: block;
  padding: .55rem 1.15rem;
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--bloom-dark); }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
/* WCAG 1.4.13 Content on Hover or Focus: a menu the pointer opened has to be
   dismissible WITHOUT moving the pointer. Removing .open cannot do that, because
   :hover is still true — so Escape sets .is-dismissed, which outranks the hover
   rule (0,4,0 vs 0,3,0) until the pointer leaves and marketing.js clears it. */
.dropdown.is-dismissed:hover .dropdown-menu { display: none; }

/* ---- Buttons: vendor green pills, white label ---- */
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bloom);
  color: var(--forest);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease;
}
.button:hover { background: var(--bloom-dark); }
.button--light { background: #fff; color: var(--bloom-text); border-color: var(--bloom); }
.button--light:hover { background: var(--bloom-pale); }
.button--line { border-color: currentColor; background: transparent; color: var(--bloom-text); }
.button--dark { background: var(--forest-deep); color: #fff; }
.button--dark:hover { background: var(--forest); }
.button--wide { width: 100%; }

main { overflow: hidden; }
.container { width: min(1140px, calc(100% - 2rem)); margin: auto; }
.section { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.section--paper { background: var(--paper); }
.section--mist { background: var(--panel); }
.section--warm { background: var(--panel); }
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--bloom-text);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.22;
}
h2 {
  margin-bottom: .9rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.28;
}
h3 { margin-bottom: .55rem; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.lead { max-width: 720px; color: var(--ink); font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.kicker { color: var(--bloom-text); font-weight: 700; }

/* ---- Legacy hand-authored sections, restyled to the vendor family ---- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 3.5rem;
  color: #fff;
  background: linear-gradient(rgba(20, 45, 18, .62), rgba(20, 45, 18, .62)), var(--forest-deep);
}
.hero h1, .hero .lead { color: #fff; }
.hero .eyebrow { color: #d3f2cf; }
.hero-content { position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.path-markers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  max-width: 840px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.path-marker {
  padding: .85rem 0;
  border-top: 1px solid rgba(255,255,255,.4);
  color: #e3f3e0;
  font-size: .8rem;
  font-weight: 500;
}
.path-marker span { display: block; margin-bottom: .25rem; color: #aef0a8; font-size: .72rem; letter-spacing: .1em; }

.page-hero {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0 2.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.page-hero--dark { color: #fff; border: 0; background: var(--forest-deep); }
.page-hero--dark h1, .page-hero--dark .lead { color: #fff; }
.page-hero .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 3rem;
  align-items: end;
}
.hero-note {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.page-hero--dark .hero-note { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }

.stat-row, .card-grid, .process-grid, .guide-grid { display: grid; gap: 1.1rem; }
.stat-row { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.stat { padding-top: .9rem; border-top: 2px solid var(--bloom); color: var(--ink); font-size: .85rem; font-weight: 500; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--bloom-text); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.card--dark { background: var(--forest-deep); border-color: var(--forest-deep); }
.card--dark h3, .card--dark p, .card--dark .card-link { color: #fff; }
.card-number { margin-bottom: auto; color: var(--bloom-text); font-size: 2rem; font-weight: 700; line-height: 1; }
.card p { color: var(--muted); }
.card-link { display: inline-flex; gap: .4rem; align-items: center; margin-top: auto; color: var(--bloom-text); font-size: .9rem; font-weight: 600; }
.card-link::after { content: "→"; }
.card-link:hover { text-decoration: underline; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading > p:last-child { max-width: 390px; margin-bottom: .45rem; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.callout { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--forest-deep); color: #fff; }
.callout h2, .callout p { color: #fff; }
.list-clean { padding: 0; margin: 1.2rem 0 0; list-style: none; }
.list-clean li { display: flex; gap: .75rem; margin: .7rem 0; }
.list-clean li::before { content: "•"; color: var(--bloom-text); font-weight: 700; }
.frame { position: relative; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.frame img { display: block; width: 100%; min-height: 310px; border-radius: 4px; object-fit: cover; }
.frame-label {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  max-width: 210px;
  padding: .9rem 1rem;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.process-grid { grid-template-columns: repeat(4, 1fr); counter-reset: process; }
.process { padding: 1.2rem .3rem .25rem 0; border-top: 1px solid var(--line); counter-increment: process; }
.process::before { content: "0" counter(process); display: block; margin-bottom: .8rem; color: var(--bloom-text); font-size: 1.4rem; font-weight: 700; }
.process p { margin: 0; color: var(--muted); font-size: .9rem; }

.calculator {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.calculator-form { padding: clamp(1.6rem, 4vw, 2.5rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-field { display: grid; gap: .3rem; margin-bottom: .85rem; }
.form-field label { color: var(--ink); font-size: .9rem; font-weight: 400; }
.form-field .req { color: #dc3545; }
.form-field .field-hint { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.form-error-message {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  border: 1px solid #dc3545;
  border-radius: 4px;
  color: #842029;
  background: #f8d7da;
  font-weight: 600;
}
.form-error-message:focus { outline: 2px solid rgba(132, 32, 41, .35); outline-offset: 2px; }
.form-field input, .form-field select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  min-height: 40px;
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--bloom-text); border-color: var(--bloom); }
.calculator-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: var(--forest-deep);
  color: #fff;
}
.calculator-result h3 { color: #d9efd6; font-size: .9rem; }
.calculator-result output { display: block; margin: .35rem 0 .75rem; color: #fff; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; }
.calculator-result p { color: #cfe8cb; }
.calculator-disclaimer { margin-top: auto; color: #bcdcb8; font-size: .72rem; }

.quote {
  max-width: 900px;
  margin: 0;
  padding-left: clamp(1rem, 4vw, 3rem);
  border-left: 4px solid var(--bloom);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
}
.quote cite { display: block; margin-top: 1rem; color: var(--muted); font-size: .8rem; font-style: normal; font-weight: 600; }

.guide-grid { grid-template-columns: repeat(3, 1fr); }
.guide { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.guide p { margin-bottom: .75rem; color: var(--muted); font-size: .9rem; }
.guide-tag { color: var(--bloom-text); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.contact-cell { padding: 1.4rem; background: #fff; }
.contact-cell strong, .contact-cell a { display: block; color: var(--ink); font-size: .95rem; }

.cta-band { padding: clamp(2.5rem, 5vw, 4rem) 0; color: #fff; background: var(--forest-deep); }
.cta-band h2 { color: #fff; }
.cta-band .split { align-items: end; }
.cta-band p { max-width: 510px; color: #d8ecd4; }

.notice {
  padding: .8rem 1rem;
  border-left: 3px solid var(--bloom);
  color: var(--ink);
  background: var(--bloom-pale);
  font-size: .85rem;
}

/* ---- Vendor footer: 4 green columns + darkest bottom bar ---- */
.site-footer { color: #fff; background: var(--forest); }
.footer-inner { width: min(1140px, calc(100% - 2rem)); margin: auto; padding: 3rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 2.25rem; }
.footer-heading { margin-bottom: 1rem; color: #fff; font-size: 1.02rem; font-weight: 600; }
.footer-col p { margin: 0 0 .8rem; color: rgba(255,255,255,.95); font-size: .88rem; line-height: 1.65; }
.footer-links { display: block; font-size: .9rem; }
.footer-links a { display: block; padding: .5rem 0; border-bottom: 1px dashed rgba(255,255,255,.4); color: #fff; }
.footer-links a:first-child { padding-top: 0; }
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-plain a { display: inline; padding: 0; border: 0; text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; }
.footer-bottom-bar { background: var(--forest-deep); }
.footer-bottom-inner {
  width: min(1140px, calc(100% - 2rem));
  margin: auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-eoh { display: flex; align-items: center; gap: 1rem; }
.footer-eoh img { height: 52px; width: auto; }
.footer-eoh span { color: rgba(255,255,255,.85); font-size: .72rem; }
.footer-bottom-bar .socials a { color: #fff; }
.footer-bottom-bar .socials a:hover { color: rgba(255,255,255,.7); }

/* ---- Program & content pages (vendor two-column layout) ---- */
.breadcrumbs { display: none; }
.program-section { padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(2.75rem, 5vw, 4rem); }
.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.program-article > p { max-width: 72ch; color: var(--ink); margin-bottom: 1.1rem; }
.program-article ul { max-width: 72ch; padding-left: 1.25rem; color: var(--ink); }
.program-article li { margin: .35rem 0; }
.program-article a { color: var(--bloom-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
/* Component anchors inside flex/article content (buttons, cards) keep their own
   styling instead of inheriting the prose-link green-underline treatment above,
   which otherwise wins on specificity (.program-article a) and hides button labels. */
.program-article a.button { color: var(--forest); font-weight: 600; text-decoration: none; }
.program-article a.button--light,
.program-article a.button--line { color: var(--bloom-text); }
.program-article a.hub-card,
.program-article a.card-link { color: inherit; text-decoration: none; }
.program-article a.card-link { color: var(--bloom-text); }

.accordion { margin-top: 1.9rem; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem .25rem 1.15rem 1.9rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  flex-shrink: 0;
  margin-right: .5rem;
  color: var(--bloom-text);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-body { padding: 0 2.25rem 1.35rem 1.9rem; }
.accordion-body p, .accordion-body ul { margin-bottom: .85rem; color: var(--ink); }
.accordion-body ul { padding-left: 1.25rem; }
.accordion-body li { margin: .3rem 0; }
.accordion-body > :last-child { margin-bottom: 0; }

.sidebar-card {
  position: sticky;
  top: 100px;
  padding: 1.8rem 2rem 2rem;
  border-radius: var(--radius);
  background: var(--panel);
}
.sidebar-title {
  margin-bottom: 1.3rem;
  color: var(--bloom-text);
  font-size: 1.7rem;
  font-weight: 500;
  text-align: center;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.consent {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin: .9rem 0 1.1rem;
  color: var(--ink);
  font-size: .72rem;
  line-height: 1.5;
}
.consent input { margin-top: .2rem; flex-shrink: 0; }
.consent a { color: var(--bloom-text); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .socials, .topbar-sep, .header-phone, .topbar-utils .button { display: none; }
  .phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bloom);
    color: var(--forest);
  }
  .phone-btn svg { width: 18px; height: 18px; fill: currentColor; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; fill: currentColor; }
  .topbar-inner { min-height: 72px; }
  .brand img { width: 150px; }
  .nav-bar { display: none; }
  .nav-bar.is-open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; padding: .4rem 0 .8rem; }
  .nav-inner > a, .nav-inner .dropdown > :is(a, button) { padding: .7rem 1rem; }
  .nav-inner > a:first-child, .nav-inner .dropdown:first-child > :is(a, button) { padding-left: 1rem; }
  .dropdown-menu {
    position: static;
    display: block;
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 .4rem;
  }
  .dropdown-menu a { padding: .5rem 2.1rem; font-size: .88rem; }
}
@media (max-width: 900px) {
  .card-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero .hero-split, .split, .calculator { grid-template-columns: 1fr; }
  .calculator-result { min-height: 240px; }
  .program-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .path-markers, .stat-row { grid-template-columns: 1fr; gap: .15rem; }
  .card-grid, .guide-grid, .process-grid, .contact-panel { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Hub / index card grids ---- */
.hub-lead { max-width: 72ch; margin-bottom: 1.4rem; }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
.hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: box-shadow .2s ease, transform .2s ease;
}
.hub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hub-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; }
.hub-card h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.hub-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.hub-card-more { margin-top: auto; color: var(--bloom-text); font-size: .9rem; font-weight: 600; }
.hub-card:hover .hub-card-more { text-decoration: underline; }

/* ---- Glossary ---- */
.article-col { max-width: 860px; }
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1.5rem 0 1rem;
}
.glossary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--bloom-text);
  font-weight: 600;
  font-size: .9rem;
}
.glossary-nav a:hover { background: var(--bloom); color: var(--forest); border-color: var(--bloom); }
.glossary-letter { max-width: 860px; padding-top: 1.25rem; }
.glossary-letter h2 { color: var(--bloom-text); border-bottom: 2px solid var(--bloom); padding-bottom: .25rem; }
.glossary-letter dt { font-weight: 600; margin-top: 1rem; }
.glossary-letter dd { margin: .25rem 0 0; color: var(--ink); }
.back-to-top { display: inline-block; margin-top: 1.25rem; color: var(--bloom-text); font-size: .85rem; font-weight: 600; }
.back-to-top:hover { text-decoration: underline; }

@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---- Marketing/form pages (flex template) ---- */
.flex-page { max-width: 1140px; }
.flex-page .lead-form { max-width: 640px; }
.form-field textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--field-line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.form-field textarea:focus { outline: 2px solid var(--bloom-text); border-color: var(--bloom); }

.star-rating { margin: 0 0 1rem; padding: 0; border: 0; }
.star-rating legend { font-weight: 600; margin-bottom: .5rem; }
.stars { display: flex; gap: .3rem; }
.stars button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--line);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease;
}
.stars button.is-active, .stars button:hover { color: #f5b301; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.team-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}
.team-card img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.team-card h2 { font-size: 1.12rem; margin-bottom: .2rem; }
.team-title { color: var(--muted); font-size: .88rem; margin-bottom: .35rem; }
.team-nmls { color: var(--bloom-text); font-size: .82rem; font-weight: 600; margin-bottom: .6rem; }
.team-contact a { display: block; padding: .15rem 0; color: var(--ink); font-size: .9rem; }
.team-contact a:hover { color: var(--bloom-text); }
.team-socials { margin-top: .6rem; }
.team-socials a { color: var(--bloom-text); font-size: .82rem; font-weight: 600; margin: 0 .35rem; text-decoration: underline; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-card {
  margin: 0;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.testimonial-stars { color: #f5b301; font-size: 1.15rem; letter-spacing: .15em; margin-bottom: .7rem; }
.testimonial-card blockquote { margin: 0 0 .9rem; color: var(--ink); }
.testimonial-card figcaption { color: var(--bloom-text); font-weight: 600; }

/* ---- Home-page Google + Trustpilot review carousel ---- */
.google-reviews {
  margin-top: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, var(--panel) 100%);
  box-shadow: var(--shadow);
}
.google-reviews__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.google-reviews__header > div:first-child { max-width: 710px; }
.google-reviews__header h2 { margin-bottom: .5rem; }
.google-reviews__header p { margin: 0; color: var(--muted); }
.google-reviews__eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem !important;
  color: var(--ink) !important;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.google-reviews__g {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}
.google-reviews__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 1.35rem 0 1.1rem;
  color: var(--muted);
  font-size: .88rem;
}
.google-reviews__rating > span:first-child {
  color: #f5b301;
  font-size: 1.08rem;
  letter-spacing: .12em;
}
.google-reviews__rating strong { color: var(--ink); }
.google-reviews__controls { display: flex; gap: .6rem; flex-shrink: 0; }
.google-reviews__controls button {
  min-height: 40px;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.google-reviews__controls button:hover:not(:disabled) { border-color: var(--bloom); color: var(--bloom-dark); }
.google-reviews__controls button:disabled { opacity: .4; cursor: not-allowed; }
.google-reviews__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  padding: 1.1rem .75rem 1.45rem;
  overflow: visible;
  perspective: 1200px;
  transform-style: preserve-3d;
  touch-action: pan-y;
}
.google-reviews__track:focus-visible { outline: 3px solid var(--bloom-text); outline-offset: 5px; }
.review-card {
  min-width: 0;
  margin: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 45, 34, .08);
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.22, .61, .36, 1), opacity .75s ease, border-color .75s ease, box-shadow .75s ease;
}
.review-card[hidden] { display: none; }
.review-card.is-side { opacity: .64; }
.review-card.is-left {
  grid-column: 1;
  transform: translateX(4%) translateZ(-55px) rotateY(8deg) scale(.9);
  transform-origin: right center;
}
.review-card.is-right {
  grid-column: 3;
  transform: translateX(-4%) translateZ(-55px) rotateY(-8deg) scale(.9);
  transform-origin: left center;
}
.review-card.is-center {
  position: relative;
  grid-column: 2;
  z-index: 2;
  transform: translateZ(60px) scale(1.07);
  border-color: color-mix(in srgb, var(--bloom) 42%, var(--line));
  box-shadow: 0 22px 44px rgba(18, 45, 34, .2);
}
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.review-card__stars { color: #f5b301; font-size: 1rem; letter-spacing: .12em; }
.review-card__source {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.review-card__source--google { background: #eef4ff; color: #245fc7; }
.review-card__source--trustpilot { background: #e6f7f1; color: #006b57; }
.review-card blockquote { margin: .8rem 0 1rem; color: var(--ink); }
.review-card blockquote p { margin: 0; font-size: .92rem; line-height: 1.65; }
.review-card figcaption { display: grid; gap: .1rem; }
.review-card figcaption strong { color: var(--ink); font-size: .88rem; }
.review-card figcaption span { color: var(--muted); font-size: .75rem; }
.google-reviews__footer { display: flex; flex-wrap: wrap; gap: .55rem 1.35rem; margin-top: 1.25rem; }
.google-reviews__footer a { color: var(--bloom-dark); font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.google-reviews__footer a:hover { color: var(--forest-deep); }
.review-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .testimonial-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .google-reviews { padding: 1.5rem 1rem; }
  .google-reviews__header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .google-reviews__track { grid-template-columns: minmax(0, 1fr); padding-inline: .2rem; }
  .review-card.is-side { display: none; }
  .review-card.is-center { grid-column: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .review-card { transition: none; }
  .review-card.is-left,
  .review-card.is-right,
  .review-card.is-center { transform: none; }
}

/* ---- Blog (vendor blog-post + paginated index) ---- */
.blog-post h1 { color: var(--bloom-text); }
.blog-date { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.share-rail { display: flex; gap: .5rem; margin-bottom: 1.4rem; }
.share-rail a, .share-rail button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.share-rail a:hover, .share-rail button:hover { background: var(--bloom); color: var(--forest); border-color: var(--bloom); }
.share-rail button.copied { background: var(--bloom); color: var(--forest); }
/* Confirmation for the copy-link button. The button's own .copied state was the
   ONLY feedback, and on a phone your fingertip covers a 38px circle completely —
   so a successful copy looked identical to a dead button. The toast appears
   away from the touch point and says what happened in words. */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 9999;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .share-toast { transition: opacity .18s ease; } }
.blog-hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.6rem; }
.blog-body h2 { color: var(--bloom-text); margin-top: 1.6rem; }
.blog-body p, .blog-body ul, .blog-body ol { max-width: 76ch; color: var(--ink); }
.blog-body ul, .blog-body ol { padding-left: 1.3rem; }
.blog-body li { margin: .35rem 0; }
.blog-body a { color: var(--bloom-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.blog-body blockquote { margin: 1.2rem 0; padding: .6rem 1.1rem; border-left: 4px solid var(--bloom); background: var(--panel); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card img { width: 100%; height: 185px; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.blog-card-body .blog-date { margin-bottom: .4rem; font-size: .78rem; }
.blog-card h2 { font-size: 1.05rem; line-height: 1.4; margin-bottom: .5rem; }
.blog-excerpt { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.blog-card .hub-card-more { margin-top: auto; }

.blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: 2.2rem;
  font-size: .92rem;
  font-weight: 600;
}
.blog-pager a, .page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--bloom-text);
}
.blog-pager a:hover { background: var(--bloom); color: var(--forest); border-color: var(--bloom); }
.page-current { background: var(--bloom); color: var(--forest); border-color: var(--bloom); }
.page-gap { color: var(--muted); padding: 0 .2rem; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- Pre-qual wizard (vendor short-app parity) ---- */
.wizard { max-width: 720px; margin: 1.5rem auto 0; }
.wizard-shell {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.wizard-progress { height: 8px; border-radius: 999px; background: #e3e8e3; overflow: hidden; }
.wizard-progress-fill { height: 100%; border-radius: 999px; background: var(--bloom); transition: width .25s ease; }
.wizard-progress-label { margin: .45rem 0 1.4rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.wizard-question { font-size: 1.35rem; margin-bottom: .4rem; }
/* wizard.js focuses this heading on every step render so screen readers
   announce the new question (it carries tabindex="-1" for exactly that). A
   tabindex="-1" element cannot be reached by Tab, so the browser's focus ring
   here only ever means "the script just moved focus" — which rendered as a blue
   box drawn around the question on load. Suppress it for programmatic focus and
   keep :focus-visible, so a genuine keyboard user still sees an indicator.
   Same class covers the submitting-status and error headings. */
.wizard-question:focus { outline: none; }
.wizard-question:focus-visible { outline: 2px solid var(--bloom-text); outline-offset: 3px; border-radius: 4px; }
.wizard-note { color: var(--muted); font-size: .9rem; }
/* Photon address suggestions (wizard.js). Anchored to the field wrapper, which
   the script sets position:relative on. */
.wizard-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin: .25rem 0 0;
  padding: .25rem;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}
.wizard-suggestion {
  padding: .6rem .7rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: .95rem;
  color: var(--ink);
  cursor: pointer;
}
/* Hover AND .active: .active is what the arrow keys move, so a keyboard user
   sees the same highlight a mouse user does. */
.wizard-suggestion:hover,
.wizard-suggestion.active { background: var(--bloom); color: var(--forest); }
.wizard-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 1rem; }
.wizard-option {
  padding: .9rem 1.1rem;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wizard-option:hover { border-color: var(--bloom); }
.wizard-option.selected { border-color: var(--bloom); box-shadow: inset 0 0 0 1px var(--bloom); background: var(--bloom-pale); }
.wizard-select, .wizard-input {
  width: 100%;
  max-width: 420px;
  margin-top: 1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background: #fff;
  font-size: 1rem;
}
.wizard-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 1rem; }
.wizard-error { color: #dc3545; font-size: .85rem; font-weight: 600; margin: .6rem 0 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.wizard-nav .button:only-child { margin-left: auto; }
@media (max-width: 640px) {
  .wizard-options, .wizard-contact { grid-template-columns: 1fr; }
}

/* ---- Calculator hub + panels ---- */
.calc-back {
  margin-bottom: 1rem;
  border: 0;
  background: none;
  color: var(--bloom-text);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
}
.calc-back:hover { text-decoration: underline; }
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}
.calc-form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.calc-results {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.calc-row span:last-child { font-weight: 600; }
.calc-row.strong { font-size: 1.05rem; }
.calc-row.strong span:last-child { color: var(--bloom); font-weight: 700; }
.calc-donut {
  width: 150px;
  height: 150px;
  margin: 1.2rem auto .8rem;
  border-radius: 50%;
  mask: radial-gradient(circle 46px, transparent 98%, black 100%);
  -webkit-mask: radial-gradient(circle 46px, transparent 98%, black 100%);
}
.calc-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; font-size: .78rem; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; }
.calc-disclaimer { margin-top: 1.4rem; color: var(--muted); font-size: .75rem; max-width: 76ch; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }

/* ---- 2026 Bloom refinement: immersive home + mortgage workbench ---- */
.site-header { background: var(--paper); box-shadow: none; }
.topbar-inner { min-height: 76px; }
.brand img { width: 176px; }
.header-phone { font-size: 1.08rem; }
.nav-bar { background: var(--forest); }
.nav-inner > a,
.nav-inner .dropdown > :is(a, button) {
  position: relative;
  color: #fff;
  font-weight: 600;
}
.nav-inner > a::after,
.nav-inner .dropdown > :is(a, button)::after {
  position: absolute;
  right: 1.05rem;
  bottom: .45rem;
  left: 1.05rem;
  height: 2px;
  background: var(--bloom);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: left;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-inner > a:first-child::after,
.nav-inner .dropdown:first-child > :is(a, button)::after { left: 0; }
.nav-inner > a:hover,
.nav-inner .dropdown > :is(a, button):hover { color: #fff; }
.nav-inner > a:hover::after,
.nav-inner .dropdown > :is(a, button):hover::after,
.nav-inner > a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.dropdown-menu { background: var(--forest); border: 1px solid rgba(255,255,255,.12); border-top: 2px solid var(--bloom); }
.dropdown-menu a:hover { color: var(--forest); background: var(--bloom); }

.button { color: var(--forest); font-weight: 700; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover { color: var(--forest); background: #62e98c; box-shadow: 0 10px 28px rgba(30,215,96,.2); transform: translateY(-1px); }
.button--light { color: var(--forest); border-color: #fff; background: #fff; }
.button--light:hover { background: var(--bloom); border-color: var(--bloom); }
.button--line { color: var(--bloom-dark); border-color: currentColor; }
.button--dark { color: #fff; background: var(--forest); }
.button--dark:hover { color: var(--forest); background: var(--bloom); }
.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.eyebrow { color: var(--bloom-dark); font-weight: 700; letter-spacing: .14em; }
.kicker, .calc-back { color: var(--bloom-dark); }
.text-link,
.richtext a:not(.button) { color: var(--bloom-dark); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.hero {
  min-height: clamp(600px, 76vh, 820px);
  padding: clamp(6rem, 13vh, 9rem) 0 5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--forest);
}
.hero-media {
  position: absolute;
  z-index: -2;
  inset: -6%;
  background-image: linear-gradient(90deg, rgba(0,0,0,.83) 0%, rgba(0,0,0,.58) 45%, rgba(0,0,0,.16) 78%), var(--hero-image);
  background-position: center;
  background-size: cover;
  animation: bloom-hero-zoom 18s cubic-bezier(.2,.65,.2,1) both;
}
.hero::after {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 0;
  width: 1px;
  height: 26%;
  background: linear-gradient(transparent, var(--bloom));
  content: "";
}
.hero-content { width: min(760px, 72%); }
.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .94;
}
.hero .lead { max-width: 660px; color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero .eyebrow { color: var(--bloom); }
.hero-actions { gap: 1rem; margin-top: 2rem; }
.hero-rate-promo {
  width: min(100%, 470px);
  margin-top: clamp(2.25rem, 6vh, 4.5rem);
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  background: rgba(4,30,22,.66);
  backdrop-filter: blur(10px);
  text-decoration: none;
}
.hero-rate-promo span:first-child { color: var(--bloom); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-rate-promo strong { font-size: .95rem; }
.hero-rate-promo:hover { border-color: var(--bloom); color: #fff; }
.button--hero-line { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(0,0,0,.22); backdrop-filter: blur(6px); }
.button--hero-line:hover { border-color: var(--bloom); color: var(--forest); background: var(--bloom); }
@keyframes bloom-hero-zoom { from { transform: scale(1.01); } to { transform: scale(1.14); } }

body[data-page="home"] .program-section { background: var(--canvas); }
.home-section-heading { max-width: 900px; margin-bottom: clamp(2.25rem, 4vw, 4rem); }
.home-section-heading h2 { max-width: 15ch; font-size: clamp(2.25rem, 4.8vw, 4.5rem); letter-spacing: -.045em; line-height: 1.02; }
.home-section-heading .lead { color: var(--muted); font-size: 1.08rem; }
body[data-page="home"] .hub-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-bottom: clamp(4.5rem, 8vw, 8rem);
}
body[data-page="home"] .hub-card {
  min-height: 0;
  padding: 1.35rem 0 0;
  border: 0;
  border-top: 2px solid var(--forest);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-page="home"] .hub-card:hover { border-color: var(--bloom-dark); box-shadow: none; transform: translateY(-3px); }
body[data-page="home"] .hub-card img { width: 52px; height: 52px; margin-bottom: 1.5rem; object-fit: contain; }
body[data-page="home"] .hub-card h3 { font-size: 1.35rem; }
.home-story {
  width: 100vw;
  margin: 0 0 clamp(4.5rem, 8vw, 8rem) calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: stretch;
  color: #fff;
  background: var(--forest);
}
.home-story__image { position: relative; min-height: 540px; margin: 0; overflow: hidden; }
.home-story__image img { display: block; width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.home-story__image figcaption { position: absolute; right: 1.25rem; bottom: 1.25rem; padding: .55rem .75rem; color: #fff; background: rgba(0,0,0,.68); font-size: .72rem; }
.home-story__copy { max-width: 650px; padding: clamp(3rem, 7vw, 7rem); align-self: center; }
.home-story h2 { color: #fff; font-size: clamp(2.25rem, 4.2vw, 4rem); letter-spacing: -.04em; line-height: 1.03; }
.home-story p { color: rgba(255,255,255,.76); }
.home-story .eyebrow { color: var(--bloom); }
.home-story .text-link { color: var(--bloom); }

body[data-page="home"] .calculator {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--forest);
  box-shadow: var(--shadow);
}
body[data-page="home"] .calculator-form { color: var(--forest); background: #fff; }
body[data-page="home"] .calculator-result { background: var(--forest); }
body[data-page="home"] .calculator-result h3 { color: rgba(255,255,255,.7); }
body[data-page="home"] .calculator-result output { color: var(--bloom); font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.055em; }
body[data-page="home"] .calculator-result p { color: rgba(255,255,255,.72); }
.home-calculator-followup { margin: 1.4rem 0 clamp(4.5rem, 8vw, 8rem); text-align: right; }

body[data-page="home"] .cta-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}
body[data-page="home"] .cta-band { background: var(--bloom); color: var(--forest); }
body[data-page="home"] .cta-band h2,
body[data-page="home"] .cta-band p { color: var(--forest); }
body[data-page="home"] .program-layout {
  margin: 0 0 clamp(4.5rem, 8vw, 7rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  background: var(--paper);
}
.home-contact-copy { max-width: 560px; }
.home-contact-copy address { margin-top: 1.5rem; color: var(--muted); font-style: normal; }
.home-contact-copy address a { color: var(--forest); font-weight: 700; }
.home-contact-image { margin: 2rem 0 0; overflow: hidden; }
.home-contact-image img { display: block; width: 100%; height: 260px; object-fit: cover; transition: transform .8s ease; }
.home-contact-image:hover img { transform: scale(1.035); }

body[data-page="calculators"] .program-section { background: var(--canvas); }
.calculator-workbench { margin-top: clamp(1rem, 3vw, 3rem); }
.calculator-workbench__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: 3rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.calculator-workbench__intro h2 { max-width: 12ch; margin: 0; font-size: clamp(2.3rem, 5vw, 4.7rem); letter-spacing: -.05em; line-height: .98; }
.calculator-workbench__intro p:last-child { margin: 0; color: var(--muted); }
body[data-page="calculators"] .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; margin-top: 1rem; }
body[data-page="calculators"] .hub-card {
  position: relative;
  min-height: 195px;
  padding: 2rem 0 2rem 3.6rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body[data-page="calculators"] .hub-card:hover { border-color: var(--forest); box-shadow: none; transform: translateX(4px); }
.hub-card-number { position: absolute; top: 2.15rem; left: 0; color: var(--bloom-dark); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
body[data-page="calculators"] .hub-card h2 { font-size: 1.35rem; }
body[data-page="calculators"] .hub-card .text-link { margin-top: auto; }
.calc-panel { margin-top: clamp(3rem, 6vw, 6rem); scroll-margin-top: 9rem; }
.calc-panel:not([hidden]) { padding: clamp(2rem, 5vw, 4rem); background: #fff; box-shadow: var(--shadow); }
.calc-form { border: 0; border-radius: 0; background: var(--panel); }
.calc-results { border: 0; border-radius: 0; color: #fff; background: var(--forest); }
.calc-results h3, .calc-results .calc-row { color: #fff; }
.calc-row { border-color: rgba(255,255,255,.18); }
.calc-row.strong span:last-child { color: var(--bloom); }
.calc-disclaimer { color: var(--muted); }
.calc-validation { margin: 0; color: #fff; font-weight: 700; line-height: 1.5; }

/* One focus indicator for the whole site. The colour is per-surface because a
   single hue cannot clear 3:1 (WCAG 1.4.11) against both a near-white page and
   a near-black band: --bloom-text is 4.96-5.39:1 on the light surfaces and
   --bloom is 9.5:1 on the dark ones. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--bloom-text);
  outline-offset: 3px;
}
:is(.nav-bar, .dropdown-menu, .site-footer, .footer-bottom-bar, .hero, .page-hero--dark,
    .card--dark, .callout, .home-story, .calculator-result, .rate-widget-guide,
    .equity-ledger, .equity-cta, .equity-path--featured)
  :where(a, button, input, select, textarea):focus-visible { outline-color: var(--bloom); }
/* A band FILLED with the bright green takes the dark ring instead — the green
   ring on green was invisible (1:1). */
body[data-page="home"] .cta-band :where(a, button, input, select, textarea):focus-visible { outline-color: var(--forest); }
.calc-results :where(a, button, input, select, textarea):focus-visible { outline-color: #fff; }

.site-footer { background: var(--forest); }
.footer-bottom-bar { background: var(--forest-deep); }

@media (max-width: 900px) {
  .hero { min-height: 650px; }
  .hero-content { width: min(650px, 90%); }
  body[data-page="home"] .hub-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-story { grid-template-columns: 1fr; }
  .home-story__image,
  .home-story__image img { min-height: 380px; max-height: 520px; }
  .home-story__copy { max-width: none; }
  .calculator-workbench__intro { grid-template-columns: 1fr; gap: 1.25rem; }
  body[data-page="calculators"] .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero { min-height: 600px; padding-top: 5rem; }
  .hero-media { background-position: 58% center; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero::after { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  body[data-page="calculators"] .hub-grid { grid-template-columns: 1fr; }
  .home-story__image,
  .home-story__image img { min-height: 300px; }
  .home-story__copy { padding: 2.5rem 1rem 3rem; }
  body[data-page="calculators"] .hub-card { min-height: 0; padding-left: 2.75rem; }
  .calc-panel:not([hidden]) { width: 100vw; margin-left: calc(50% - 50vw); padding: 1.25rem 1rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; transform: none; }
  .button,
  .hub-card,
  .nav-inner > a::after,
  .nav-inner .dropdown > :is(a, button)::after { transition: none; }
}

/* Responsive marketing refresh: preserve the image-led hierarchy on every viewport. */
.topbar-inner {
  min-height: clamp(88px, 8vw, 112px);
}

.brand img {
  width: clamp(230px, 25vw, 320px);
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

/* bloom-logo.png is a square source; keep it intentionally cropped until a wide
   configured mark is loaded, then marketing.js toggles the matching class. */
.brand img[src*="bloom-logo.png"],
.brand.brand--square img,
.brand.is-square img,
.brand.logo-square img,
.brand[data-logo-shape="square"] img {
  width: clamp(82px, 9vw, 108px);
  height: clamp(82px, 9vw, 108px);
  aspect-ratio: 1;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.hero {
  min-height: max(620px, calc(100vh - 126px));
  min-height: max(620px, calc(100svh - 126px));
  background: #111416;
}

.hero-media {
  background-color: #111416;
  background-image: var(--hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: none;
  transform: none;
}

.hero-media > img {
  position: absolute;
  inset: -6%;
  z-index: 0;
  display: block;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  mix-blend-mode: normal;
  animation: bloom-hero-zoom 18s ease-out both;
}

img.hero-media {
  position: absolute;
  inset: -6%;
  z-index: -2;
  display: block;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  animation: bloom-hero-zoom 18s ease-out both;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(14, 16, 17, 0.9) 0%, rgba(14, 16, 17, 0.68) 46%, rgba(14, 16, 17, 0.25) 100%);
}

.hero::after {
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.24));
}

.hero-content {
  position: relative;
  z-index: 1;
}

@supports selector(.hero-media:has(> img)) {
  .hero-media:has(> img) {
    background-image: none;
    background-color: #111416;
    animation: none;
  }
}

/* Inline calculator icons inherit the current theme instead of behaving like text. */
.calculator-heading,
.calculator-title,
.calculator__heading,
.calc-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calculator-icon,
.calc-icon,
[data-calculator-icon],
svg[data-icon="calculator"],
.calculator-heading > svg,
.calculator-title > svg,
.calculator__heading > svg,
.calc-heading > svg {
  flex: 0 0 auto;
  width: clamp(2.5rem, 4vw, 4.25rem);
  height: clamp(2.5rem, 4vw, 4.25rem);
  color: var(--bloom-dark, #17352c);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.calculator-icon path,
.calculator-icon rect,
.calculator-icon circle,
.calculator-icon line,
.calculator-icon polyline,
.calculator-icon polygon,
.calc-icon path,
.calc-icon rect,
.calc-icon circle,
.calc-icon line,
.calc-icon polyline,
.calc-icon polygon,
[data-calculator-icon] path,
[data-calculator-icon] rect,
[data-calculator-icon] circle,
[data-calculator-icon] line,
[data-calculator-icon] polyline,
[data-calculator-icon] polygon,
svg[data-icon="calculator"] path,
svg[data-icon="calculator"] rect,
svg[data-icon="calculator"] circle,
svg[data-icon="calculator"] line,
svg[data-icon="calculator"] polyline,
svg[data-icon="calculator"] polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* First-party display preferences. The launcher is fixed to the MIDDLE of the
   right edge so it never covers the footer or floats over primary CTAs. */
.accessibility-preferences-launcher,
.a11y-preferences-launcher {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 3rem;
  min-height: 3rem;
  max-width: calc(100vw - 2rem);
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: #17352c;
  color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.22);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.accessibility-preferences-launcher span,
.a11y-preferences-launcher span {
  /* Screen-reader-only by default: the launcher is a compact round icon;
     the label stays available to assistive technology. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accessibility-preferences-launcher svg,
.a11y-preferences-launcher svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  stroke: none;
}

.accessibility-preferences-launcher:hover,
.accessibility-preferences-launcher:focus-visible,
.a11y-preferences-launcher:hover,
.a11y-preferences-launcher:focus-visible {
  background: #0c211a;
}

.accessibility-preferences-panel,
.a11y-preferences-panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(4.7rem, calc(4.7rem + env(safe-area-inset-bottom)));
  z-index: 91;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(78svh, 600px);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid rgba(23, 53, 44, 0.22);
  border-radius: 1rem;
  background: #fff;
  color: #18201e;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.24);
}

.accessibility-preferences-panel[hidden],
.a11y-preferences-panel[hidden] {
  display: none;
}

.a11y-preferences-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.a11y-preferences-eyebrow {
  margin: 0 0 0.25rem;
  color: #52615c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.a11y-preferences-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.a11y-preferences-close {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 53, 44, 0.24);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.a11y-preferences-description {
  margin: 0.9rem 0 1rem;
  color: #40504a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.a11y-preferences-options {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.a11y-preferences-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid rgba(23, 53, 44, 0.14);
  border-radius: 0.7rem;
  background: #f6f8f6;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
}

.a11y-preferences-option input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.05rem 0 0;
  flex: 0 0 auto;
  accent-color: #17352c;
}

.a11y-preferences-status {
  min-height: 1.35em;
  margin: 0.8rem 0 0;
  color: #40504a;
  font-size: 0.82rem;
}

.a11y-preferences-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: #17352c;
  font-weight: 700;
  text-underline-offset: 0.15em;
}

html[data-a11y-text-size="large"] body,
body[data-a11y-text-size="large"],
body.a11y-large-text {
  font-size: 18px;
}

/* ---- "Higher contrast" display preference ----
   The site has two surface families, so this preference has to raise both:
   light surfaces go to #000 on #fff and every band the site paints dark goes
   to #fff on #000. Both are 21:1.

   The previous rules only did the light half, and the half they did do was
   inverted by specificity: `a:not(.button):not(.brand)` scores (0,3,1) and
   outranked the `:is(.nav-bar, .site-footer, .hero) a` rescue at (0,2,1), so
   turning the preference ON painted every footer, hero and nav link #000 on
   --forest (#191414) = 1.15:1. The control marketed as "Higher contrast" was
   the lowest-contrast state the site could render. The dark-band rules below
   are deliberately kept one class more specific than the link rule so that
   inversion cannot come back.

   Links also take an underline here: once every link is the same #000 (or
   #fff) as the prose around it, colour alone no longer distinguishes them
   (WCAG 1.4.1 Use of Colour). */
html[data-a11y-contrast="high"] body,
body[data-a11y-contrast="high"],
body.a11y-high-contrast {
  background: #fff;
  color: #000;
}

/* The dark bands, by name. Each gets an explicit background so nothing is left
   sitting on an inherited mid-tone, and the descendant list re-states #fff for
   the elements that carry their own colour (translucent white paragraphs, and
   the home CTA band, whose --forest text on --bloom would otherwise land
   black-on-black once the fill is forced to #000). */
:is(html[data-a11y-contrast="high"], body[data-a11y-contrast="high"], body.a11y-high-contrast)
  :is(.nav-bar, .dropdown-menu, .site-footer, .footer-bottom-bar, .hero, .hero-media,
      .page-hero--dark, .card--dark, .callout, .cta-band, .calculator-result, .calc-results,
      .home-story, .rate-widget-guide, .equity-ledger, .equity-cta, .equity-path--featured) {
  background-color: #000;
  background-image: none;
  color: #fff;
}

:is(html[data-a11y-contrast="high"], body[data-a11y-contrast="high"], body.a11y-high-contrast)
  :is(.nav-bar, .dropdown-menu, .site-footer, .footer-bottom-bar, .hero, .hero-media,
      .page-hero--dark, .card--dark, .callout, .cta-band, .calculator-result, .calc-results,
      .home-story, .rate-widget-guide, .equity-ledger, .equity-cta, .equity-path--featured)
  :is(p, h1, h2, h3, h4, span, strong, em, li, dt, dd, output, figcaption, cite, address, time, label, summary) {
  color: #fff;
}

/* The hero photograph is an <img>, so blanking the background is not enough to
   put the headline on a plain ground. Hiding it is the whole point of the
   preference — the copy over it is what the reader asked to be able to read. */
:is(html[data-a11y-contrast="high"], body[data-a11y-contrast="high"], body.a11y-high-contrast)
  :is(img.hero-media, .hero-media > img) { display: none; }

:is(html[data-a11y-contrast="high"], body[data-a11y-contrast="high"], body.a11y-high-contrast)
  a:not(.button):not(.brand) {
  color: #000;
  text-decoration: underline;
}

/* (0,4,2) — one class more specific than the rule above, on purpose. */
:is(html[data-a11y-contrast="high"], body[data-a11y-contrast="high"], body.a11y-high-contrast)
  :is(.nav-bar, .dropdown-menu, .site-footer, .footer-bottom-bar, .hero, .page-hero--dark,
      .card--dark, .callout, .cta-band, .calculator-result, .calc-results, .home-story,
      .rate-widget-guide, .equity-ledger, .equity-cta, .equity-path--featured)
  a:not(.button):not(.brand) {
  color: #fff;
}

html[data-a11y-links="underline"] a:not(.button),
body[data-a11y-links="underline"] a:not(.button),
body.a11y-underline-links a:not(.button) {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

html[data-a11y-motion="reduce"] *,
html[data-a11y-motion="reduce"] *::before,
html[data-a11y-motion="reduce"] *::after,
body[data-a11y-motion="reduce"] *,
body[data-a11y-motion="reduce"] *::before,
body[data-a11y-motion="reduce"] *::after,
body.a11y-reduced-motion *,
body.a11y-reduced-motion *::before,
body.a11y-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

@media (max-width: 1199px) {
  .topbar-inner {
    min-height: clamp(84px, 12vw, 102px);
  }

  .brand img {
    width: clamp(190px, 31vw, 270px);
    max-height: 86px;
  }

  .brand img[src*="bloom-logo.png"],
  .brand.brand--square img,
  .brand.is-square img,
  .brand.logo-square img,
  .brand[data-logo-shape="square"] img {
    width: clamp(72px, 15vw, 96px);
    height: clamp(72px, 15vw, 96px);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: max(600px, calc(100svh - 92px));
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    width: calc(100% - 1.25rem);
    gap: 0.75rem;
  }

  .hero {
    min-height: max(560px, calc(100svh - 84px));
    padding-top: clamp(4rem, 10vh, 6rem);
  }

  .hero-media,
  .hero-media > img,
  img.hero-media {
    background-position: 58% center;
    object-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(14, 16, 17, 0.84) 0%, rgba(14, 16, 17, 0.42) 100%);
  }

  .accessibility-preferences-launcher,
  .a11y-preferences-launcher {
    right: max(0.55rem, env(safe-area-inset-right));
    top: 50%;
  }

  .accessibility-preferences-panel,
  .a11y-preferences-panel {
    /* Panel opens above the launcher's vertical center, anchored to the same
       edge the launcher sits on. */
    right: max(0.55rem, env(safe-area-inset-right));
    top: calc(50% + 2.2rem);
    bottom: auto;
    width: min(390px, calc(100vw - 1.4rem));
  }
}

@media (max-width: 480px) {
  .brand img {
    width: min(220px, 58vw);
  }

  .brand img[src*="bloom-logo.png"],
  .brand.brand--square img,
  .brand.is-square img,
  .brand.logo-square img,
  .brand[data-logo-shape="square"] img {
    width: 72px;
    height: 72px;
  }

  .accessibility-preferences-launcher span {
    /* The label is screen-reader-only at every width now (round icon-only
       launcher); this rule remains as a harmless no-op guard. */
    max-width: 9.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-media > img,
  img.hero-media {
    animation: none;
  }
}

/* Calculator cards render their inline SVG inside this semantic icon wrapper. */
.hub-card-icon {
  display: inline-grid;
  width: clamp(2.75rem, 5vw, 4.25rem);
  height: clamp(2.75rem, 5vw, 4.25rem);
  place-items: center;
  color: var(--bloom-dark, #17352c);
}

.hub-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hub-card-icon svg path,
.hub-card-icon svg rect,
.hub-card-icon svg circle,
.hub-card-icon svg line,
.hub-card-icon svg polyline,
.hub-card-icon svg polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: inherit;
  stroke-linecap: inherit;
  stroke-linejoin: inherit;
  vector-effect: non-scaling-stroke;
}

/* ---- Rate display (/mortgage-rates) ------------------------------------
   Reg Z §1026.24(f) requires the APR to be stated with equal prominence to
   the note rate, so Rate and APR deliberately share one type ramp here and
   the mobile reflow gives them identical treatment. If you restyle this
   block, keep .rate-table td:nth-child(2) and :nth-child(3) visually
   identical — a smaller or greyer APR is a compliance defect, not a design
   choice. */

/* The staleness guard toggles `hidden` on grid/flex children, which a display
   rule would otherwise beat. Scoped to the rate panel so it cannot surprise
   anything else on the site. */
.rate-panel [hidden] { display: none !important; }

.rate-panel {
  margin: 2.5rem 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.rate-panel > h2 { margin-bottom: .6rem; }
.rate-panel > p { color: var(--muted); }

.rate-table-block { margin-top: 2rem; }
.rate-table-block:first-of-type { margin-top: 1.5rem; }
.rate-table-block h3 { margin-bottom: .35rem; font-size: 1.15rem; }

.rate-assumption {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .85rem;
}

/* Wide tables scroll inside their own box rather than pushing the page. */
.rate-table-scroll { overflow-x: auto; border-radius: 8px; background: var(--paper); }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.rate-table caption {
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.rate-table thead th {
  padding: .85rem 1rem;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.rate-table tbody th,
.rate-table tbody td {
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table tbody th { font-weight: 600; }

/* Column labels are for the stacked mobile layout only. */
.rate-cell__label { display: none; }
.rate-cell__value { font-variant-numeric: tabular-nums; }
/* Rate and APR: same size, same weight, same colour. See the note above. */
.rate-table tbody td:nth-child(2) .rate-cell__value,
.rate-table tbody td:nth-child(3) .rate-cell__value {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.rate-asof {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: .82rem;
}
.rate-cta { margin-top: 1.25rem; }

.rate-stale,
.rate-pending {
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--bloom);
  border-radius: 8px;
  background: var(--paper);
}
.rate-stale p,
.rate-pending p { margin-bottom: .8rem; }
.rate-stale > :last-child,
.rate-pending > :last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  /* Reflow each row into a labelled card. The visually-hidden column names
     become visible here because the <thead> is gone. */
  .rate-table thead { display: none; }
  .rate-table,
  .rate-table tbody,
  .rate-table tr,
  .rate-table tbody th,
  .rate-table tbody td { display: block; width: 100%; }
  .rate-table tbody tr {
    margin-bottom: .9rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .rate-table tbody tr:last-child { margin-bottom: 0; }
  .rate-table tbody th {
    padding: 0 0 .6rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .rate-table tbody td {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .45rem 0;
    border-bottom: 0;
  }
  .rate-cell__label { display: inline; color: var(--muted); font-size: .85rem; }
}

/* ---- Market-context strip (Freddie Mac PMMS + drivers) ---- */
.market-strip {
  margin: 2.5rem 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #c7ecd4;
  border-radius: var(--radius);
  background: var(--bloom-pale);
}
.market-strip > h2 { margin-bottom: .5rem; font-size: 1.3rem; }
.market-strip > p { color: var(--muted); }

.market-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.4rem 0 1rem;
}
.market-tile {
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: var(--paper);
}
.market-tile__label {
  margin-bottom: .3rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.market-tile__value {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.market-tile__meta { color: var(--muted); font-size: .75rem; }

/* Up is bad news for a borrower, so the colour reads "rates rose", not
   "number went up in a good way". Never the only signal — the ▲/▼ glyph
   carries the same meaning without colour. */
.market-move { font-size: .8rem; font-weight: 600; }
.market-move.is-up { color: #b3261e; }
.market-move.is-down { color: var(--bloom-dark); }

.market-unavailable { grid-column: 1 / -1; color: var(--muted); }
.market-unavailable a { color: var(--bloom-dark); font-weight: 600; text-decoration: underline; }
.market-source { color: var(--muted); font-size: .78rem; }

@media (max-width: 900px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .market-grid { grid-template-columns: 1fr; } }
/* Landing pages (body:is([data-page="landing"],[data-page="pre-qualify"])) — /lp/*.
   The flex template caps prose at 72ch but let .hub-grid take the full
   container, so the card row visibly outran the paragraph above it. Rather
   than shrink the cards to the text column, centre BOTH independently: prose
   and form stay at a readable 72ch, the card row is allowed to be wider, and
   each is centred in the container so the page reads as one axis. Scoped to
   the landing data-page so no existing flex page (home, contact-us,
   testimonials...) shifts. */
body:is([data-page="landing"],[data-page="pre-qualify"]) .flex-page > h1,
body:is([data-page="landing"],[data-page="pre-qualify"]) .flex-page > h2,
body:is([data-page="landing"],[data-page="pre-qualify"]) .flex-page > p,
body:is([data-page="landing"],[data-page="pre-qualify"]) .flex-page > form {
  max-width: 72ch;
  margin-inline: auto;
}
/* Wider than the prose on purpose. .hub-grid only had margin-top, so the next
   section heading butted straight against the cards. */
body:is([data-page="landing"],[data-page="pre-qualify"]) .flex-page .hub-grid {
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}
body:is([data-page="landing"],[data-page="pre-qualify"]) .flex-page > h2 { margin-top: 0; }
/* Non-linking explainer cards get no hover lift — nothing happens on click. */
body:is([data-page="landing"],[data-page="pre-qualify"]) .hub-card { text-align: left; }
body:is([data-page="landing"],[data-page="pre-qualify"]) div.hub-card { cursor: default; }
body:is([data-page="landing"],[data-page="pre-qualify"]) .hub-card-icon { margin-bottom: .85rem; color: var(--bloom-text); }
@media (max-width: 900px) {
  body:is([data-page="landing"],[data-page="pre-qualify"]) .flex-page .hub-grid { grid-template-columns: 1fr; max-width: 72ch; }
}

/* ---- Mortgage rate desk (/mortgage-rates) ---- */
.rates-hero {
  padding: clamp(5.5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(30,215,96,.18), transparent 26rem),
    linear-gradient(180deg, #fff 0%, #f5f7f4 100%);
}
.rates-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.rates-hero__copy { max-width: 820px; }
.rates-hero h1 { max-width: 13ch; margin: .65rem 0 1.25rem; color: var(--forest); font-size: clamp(3.25rem, 7vw, 6.5rem); letter-spacing: -.06em; line-height: .94; }
.rates-hero .lead { max-width: 700px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.rates-hero__highlights { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rates-hero__highlights li { position: relative; padding: 1rem 0 1rem 1.7rem; border-bottom: 1px solid var(--line); color: var(--forest); font-weight: 650; }
.rates-hero__highlights li::before { position: absolute; left: 0; color: var(--bloom-dark); content: "\2713"; }
.rates-program-section { padding-top: clamp(2.5rem, 5vw, 5rem); background: var(--paper); }

/* ---- MND national-average rate widget (/mortgage-rates) ----
   A third-party iframe at a fixed pixel width (MND offers 500/600/650 only),
   dropped into a Bloom panel so the seam is as small as it can be. The widget
   chrome takes our green via its colour param; its interior is MND's, and that
   is deliberate — the reader should be able to see this is their data. */
.rate-widget-panel {
  margin: 0 0 clamp(3rem, 6vw, 6rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  border: 0;
  border-radius: 0;
  background: var(--canvas);
}
.rate-widget-panel__header { display: flex; gap: 2rem; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.rate-widget-panel__header > div { max-width: 760px; }
.rate-widget-panel__header h2 { max-width: 14ch; margin: .45rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.045em; line-height: 1; }
.rate-widget-panel__header p:not(.eyebrow) { margin: 0; color: var(--muted); }
.rate-widget-panel__alert { flex: 0 0 auto; color: var(--forest); font-weight: 750; text-underline-offset: .25em; }
.rate-widget-panel__body { display: grid; grid-template-columns: minmax(0, 650px) minmax(230px, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; }

/* Fixed-width embed in a fluid page: scroll it inside its own box rather than
   letting a 650px iframe push the whole document sideways on a phone. */
.rate-widget-scroll {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rate-widget-frame {
  display: block;
  max-width: none; /* beat the global img/iframe max-width so it never squashes */
  border: 0;
  border-radius: 8px;
  background: var(--paper);
}
.rate-widget-guide { padding: clamp(1.5rem, 3vw, 2.5rem); color: #fff; background: var(--forest); }
.rate-widget-guide p { color: rgba(255,255,255,.74); }
.rate-widget-guide strong { color: #fff; }
.rate-widget-guide__label { color: var(--bloom) !important; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.rate-widget-guide a { color: var(--bloom); font-weight: 750; }

.rate-widget-source { margin-top: 1.2rem; color: var(--muted); font-size: .78rem; }
.rate-widget-source a { color: var(--bloom-dark); font-weight: 600; text-decoration: underline; }

.rate-alert-panel { margin: 0 0 clamp(3rem, 7vw, 7rem); padding: clamp(1.5rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(340px, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 70px rgba(5,39,28,.08); scroll-margin-top: 7rem; }
.rate-alert-panel__intro h2 { max-width: 12ch; margin: .5rem 0 1rem; font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.045em; line-height: 1; }
.rate-alert-panel__intro > p:not(.eyebrow) { color: var(--muted); }
.rate-alert-panel__points { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.rate-alert-panel__points li { padding: .8rem 0; border-top: 1px solid var(--line); color: var(--forest); font-weight: 650; }
.lead-form--rate-alert { margin: 0; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--canvas); }

@media (max-width: 900px) {
  .rates-hero__inner,
  .rate-widget-panel__body,
  .rate-alert-panel { grid-template-columns: 1fr; }
  .rates-hero__highlights { max-width: 620px; }
  .rate-widget-panel__header { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .rates-hero { padding-top: 4.5rem; }
  .rates-hero h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .rates-hero .hero-actions { align-items: stretch; flex-direction: column; }
  .rates-hero .hero-actions .button { width: 100%; }
  .rate-widget-panel,
  .rate-alert-panel { margin-inline: calc(50% - 50vw); }
  .rate-alert-panel { border-inline: 0; }
}

/* ---- Get Equity: an editorial decision page, not a product quote ---- */
body[data-page="equity"] .program-section {
  padding-top: clamp(2rem, 5vw, 4.75rem);
  background: var(--paper);
}
body[data-page="equity"] .flex-page { max-width: 1200px; }
.equity-kicker {
  margin: 0 0 .8rem;
  color: var(--bloom-dark);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.equity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(4rem, 8vw, 7rem);
}
.equity-hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--near-black);
  font-size: clamp(3.25rem, 7.5vw, 7.3rem);
  line-height: .91;
  letter-spacing: -.065em;
}
.equity-lead {
  max-width: 680px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}
.equity-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.equity-ledger {
  position: relative;
  padding: 1.6rem;
  border-top: 5px solid var(--bloom);
  background: var(--near-black);
  color: #fff;
  box-shadow: 18px 18px 0 var(--bloom-pale);
}
.equity-ledger__label { margin: 0 0 1.5rem; color: var(--bloom); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.equity-ledger__row,
.equity-ledger__result { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.2); font-weight: 650; }
.equity-ledger__row span:last-child { color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.equity-ledger__operator { padding-top: .7rem; color: rgba(255,255,255,.58); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.equity-ledger__result { border: 0; color: var(--bloom); font-size: 1.14rem; }
.equity-ledger > p:last-child { margin: .6rem 0 0; color: rgba(255,255,255,.65); font-size: .78rem; line-height: 1.55; }
.equity-principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 0 0 clamp(5rem, 10vw, 9rem);
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
  border-left: 4px solid var(--bloom);
  background: var(--bloom-pale);
}
.equity-principle__mark { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 50%; color: var(--near-black); background: var(--bloom); font-weight: 800; }
.equity-principle p { max-width: none; margin: 0; line-height: 1.6; }
.equity-section__intro { display: grid; grid-template-columns: .55fr 1.45fr; column-gap: 3rem; align-items: start; }
.equity-section__intro .equity-kicker { grid-row: 1 / 3; }
.equity-section__intro h2,
.equity-decisions h2,
.equity-cta h2 { margin: 0; color: var(--near-black); font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; }
.equity-section__intro > p:last-child { max-width: 650px; margin: 1rem 0 0; color: var(--muted); }
.equity-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.equity-path { display: flex; min-height: 420px; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--paper); }
.equity-path--featured { background: var(--near-black); color: #fff; }
.equity-path__number { margin: 0 0 3rem; color: var(--bloom-dark); font-size: .78rem; font-weight: 700; line-height: 1; letter-spacing: .12em; }
.equity-path--featured .equity-path__number { color: var(--bloom); }
.equity-path h3 { margin: 0 0 1rem; color: inherit; font-size: 1.4rem; }
.equity-path > p:not(.equity-path__number) { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.65; }
.equity-path--featured > p:not(.equity-path__number) { color: rgba(255,255,255,.72); }
.equity-path__fit { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.equity-path--featured .equity-path__fit { border-color: rgba(255,255,255,.18); }
.equity-path__fit span { color: var(--ink); font-weight: 700; }
.equity-path--featured .equity-path__fit span { color: #fff; }
.program-article .equity-path > a { margin-top: auto; color: var(--bloom-dark); font-weight: 700; }
.program-article .equity-path--featured > a { color: var(--bloom); }
.equity-decisions { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 7vw, 7rem); margin: clamp(5rem, 10vw, 9rem) 0; }
.equity-decisions ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.equity-decisions li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.equity-decisions li > span { color: var(--bloom-dark); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.equity-decisions h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.equity-decisions li p { margin: 0; color: var(--muted); line-height: 1.55; }
.equity-cta { padding: clamp(2.2rem, 6vw, 4.5rem); color: #fff; background: var(--near-black); }
.equity-cta .equity-kicker { color: var(--bloom); }
.equity-cta h2 { max-width: 740px; color: #fff; }
.equity-cta > p:not(.equity-kicker) { max-width: 670px; margin: 1.2rem 0 0; color: rgba(255,255,255,.72); }
.equity-disclosure { margin-top: 2rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--line); background: var(--panel); }
.equity-disclosure p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }

@media (max-width: 880px) {
  .equity-hero { grid-template-columns: 1fr; }
  .equity-ledger { max-width: 600px; }
  .equity-section__intro,
  .equity-decisions { grid-template-columns: 1fr; }
  .equity-section__intro .equity-kicker { grid-row: auto; }
  .equity-paths { grid-template-columns: 1fr; }
  .equity-path { min-height: auto; }
  .equity-path > a { margin-top: 1.4rem; }
}
@media (max-width: 520px) {
  .equity-hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .equity-actions { align-items: stretch; flex-direction: column; }
  .equity-actions .button { width: 100%; }
  .equity-ledger { box-shadow: 10px 10px 0 var(--bloom-pale); }
  .equity-principle { grid-template-columns: 1fr; }
}

/* ---- Homebot: bounded three-widget planning set ---- */
.homebot-panel {
  margin: clamp(4rem, 9vw, 8rem) 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.homebot-panel__header { max-width: 780px; margin-bottom: 2rem; }
.homebot-panel__header h2 { margin: 0; color: var(--near-black); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; }
.homebot-panel__header > p:last-child { max-width: 720px; margin: 1rem 0 0; color: var(--muted); line-height: 1.65; }
.homebot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.homebot-card { display: flex; min-width: 0; flex-direction: column; gap: 1.25rem; padding: clamp(1.2rem, 2.5vw, 1.8rem); border: 1px solid var(--line); background: var(--paper); }
.homebot-card__label { margin: 0 0 .55rem; color: var(--bloom-dark); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.homebot-card h3 { margin: 0 0 .6rem; color: var(--near-black); font-size: 1.3rem; }
.homebot-card header > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.homebot-frame { min-height: 150px; margin-top: auto; }
.homebot-noscript { margin: 1.5rem 0 0; color: var(--muted); }

@media (min-width: 1200px) {
  .homebot-panel {
    width: min(1400px, calc(100vw - 4rem));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .homebot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .homebot-panel { margin-inline: -1rem; border-inline: 0; }
}
