/* src/styles/fonts-variable.css */
/* SF Pro and SF Compact are variable fonts (weight axis 1-1000). Instatic's font library registers each
   uploaded file at one weight, so these faces declare the full range: the design's 274, 350, 457 and 790
   then use the font's real weights instead of synthesised ones. Same files as the font library. */
@font-face {
  font-family: "SF Pro";
  src: url("/uploads/Ui85HT86m50s3GxKL458Q-SF-Pro-Variable.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Compact";
  src: url("/uploads/MhL3fx6hfgPEr9BvrSyMW-SF-Compact-Variable.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}


/* src/styles/phone-tablet.css */
/* Phone and tablet layer, built 2026-11-20. Every rule is inside a media query under 1024px: desktop is not affected. */

/* ===== lane: tokens ===== */
/* Side margins for phone and tablet. Desktop keeps the clamp() in the site CSS. */
@media (width < 768px) {
  :root { --gutter: 24px; }
}
@media (768px <= width < 1024px) {
  :root { --gutter: 48px; }
}

/* ===== lane: global ===== */
/* ==========================================================================
   GLOBAL lane: shared type, header, rate ticker, footer, estimator,
   portfolio, stories, blog closing CTA. Phone and tablet only.
   ========================================================================== */

/* --- Shared type classes (every page) -----------------------------------
   Every heading class is used for section h2s; the few h1s that carry
   t-h2 / t-h3 (blog, post, legal, 404, reviews) get the page-title size.
   t-eyebrow, t-link, t-button, t-form, t-footer* are already on the system. */
@media (width < 768px) {
  .t-hero { font-size: 34px; line-height: 1.15; }
  .t-h2, .t-h3, .t-h4 { font-size: 28px; line-height: 1.2; }
  h1.t-h2, h1.t-h3 { font-size: 34px; line-height: 1.15; }
  p.t-subhead { font-size: 20px; line-height: 1.35; }
  .t-lead { font-size: 18px; line-height: 1.45; }
  .t-body { font-size: 16px; line-height: 1.55; }
  .t-body-bold { font-size: 16px; line-height: 1.45; }
  .t-body-sm { line-height: 1.45; }
}
@media (768px <= width < 1024px) {
  .t-hero { font-size: 48px; line-height: 1.1; }
  .t-h2, .t-h3, .t-h4 { font-size: 38px; line-height: 1.15; }
  h1.t-h2, h1.t-h3 { font-size: 48px; line-height: 1.1; }
  p.t-subhead { font-size: 24px; line-height: 1.3; }
  .t-lead { font-size: 20px; line-height: 1.45; }
  .t-body { font-size: 17px; line-height: 1.55; }
  .t-body-bold { font-size: 17px; line-height: 1.45; }
  .t-body-sm { line-height: 1.45; }
}

/* --- Header: smaller logo on tablet (was 168px, header ~124px tall) ----- */
@media (768px <= width < 1024px) {
  .site-logo { width: 132px; }
  .site-logo img { width: 100%; }
}

/* --- Rate ticker under the header (every page) -------------------------- */
@media (width < 1024px) {
  .hero-live { font-size: 12px; line-height: 14px; }
  .hero-rate-label { font-size: 12px; line-height: 14px; }
  .hero-badge { font-size: 12px; line-height: 14px; }
  /* right-edge fade so the scrolling strip reads as a marquee, not a cut-off */
  .hero-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to left, rgb(28, 26, 92) 0%, rgba(28, 26, 92, 0) 100%);
  }
}

/* --- Footer (every page) ------------------------------------------------- */
@media (width < 1024px) {
  /* links: 44px tap height; spacing kept by trimming the gaps around them */
  .footer-links { row-gap: 0; }
  .footer-link { display: inline-block; padding-block: 12px; }
  .footer-heading { margin-bottom: 2px; }
  .footer-account .footer-heading { margin-bottom: 2px; }
  .site-footer .footer-account .footer-heading { margin-bottom: 6px; }
  .footer-grid > .footer-col:first-child > .footer-heading { margin-bottom: 14px; }
  /* phone numbers in the addresses: 44px tap height */
  .site-footer .footer-address a { padding-block: 12px; }
  /* tagline keeps its own size (t-body-bold above would shrink it) */
  .footer-tagline { font-size: 18px; line-height: 24px; }
  /* social icons stay 27px; the link gets a 44px hit area around them */
  .social-link { position: relative; }
  .social-link::after { content: ""; position: absolute; inset: -8.5px; }
}
@media (width < 768px) {
  .legal-links { column-gap: 20px; row-gap: 0; }
  /* why: bullet separators are decorative; at 390px they start a new line */
  .legal-links li + li::before { content: none; }
  .legal-links a { display: inline-block; padding-block: 15px; }
  .footer-legal { row-gap: 4px; }
}

/* --- Quick Estimator (home, loan solutions, who we serve) --------------- */
@media (width < 1024px) {
  .lse-inner { padding-inline: var(--gutter); }
  .lse-field > span { font-size: 12px; line-height: 14px; }
  .lse-tabs { font-size: 12px; line-height: 14px; }
  .lse-cta { height: 48px; }
}
@media (width < 768px) {
  .estimator { padding-bottom: 56px; }
  .lse-title { font-size: 28px; line-height: 1.2; }
  .lse-lead { margin-top: 16px; font-size: 18px; line-height: 1.4; }
}
@media (768px <= width < 1024px) {
  .estimator { padding-top: 80px; padding-bottom: 80px; }
  .lse-inner { max-width: calc(640px + 2 * var(--gutter)); }
  .lse-title { font-size: 38px; line-height: 1.15; }
  .lse-lead { margin-top: 16px; font-size: 20px; line-height: 1.4; }
}

/* --- Portfolio block (home, kosher financing, Miami) -------------------- */
@media (width < 768px) {
  .portfolio { padding: 56px 0; }
}
@media (768px <= width < 1024px) {
  .portfolio { padding: 80px 0; }
  .portfolio-card { padding: 48px 40px; }
}

/* --- Client stories block ------------------------------------------------ */
@media (width < 768px) {
  .stories-text { text-align: center; }
  .stories-lead { margin-inline: auto; }
  .stories-title { margin-bottom: 16px; }
  .stories-more { margin-top: 28px; }
  .stories-pager { justify-content: center; padding-left: 0; }
}
@media (768px <= width < 1024px) {
  .stories-title { margin-bottom: 16px; }
  .stories-more { margin-top: 32px; }
}

/* --- Blog closing call to action (blog, posts, about, contact, ...) ----- */
@media (width < 768px) {
  section.blog-final-cta .blog-final-cta-title { font-size: 28px; line-height: 1.2; }
  .blog-final-cta-copy { margin-top: 16px; font-size: 18px; line-height: 1.45; }
  .blog-final-cta-actions { margin-top: 28px; row-gap: 16px; }
  .blog-final-cta-btn { max-width: 360px; height: 56px; }
}
@media (768px <= width < 1024px) {
  .blog-final-cta { padding: 80px 0; }
  section.blog-final-cta .blog-final-cta-title { font-size: 38px; line-height: 1.15; }
  .blog-final-cta-copy { margin-top: 16px; font-size: 20px; line-height: 1.45; }
  .blog-final-cta-actions { margin-top: 40px; }
}

/* --- Fix round 2026-11-20 ------------------------------------------------ */
/* Estimator (home, loan solutions pages, who we serve), tablet: centre the
   heading, intro, result pill and Apply button; the form stays left inside
   the centred 640px column. */
@media (768px <= width < 1024px) {
  .lse-text { text-align: center; }
  .estimator .hm-pill { margin-inline: auto; }
}
/* Estimator and portfolio "Apply now" buttons, phone: full width up to 360px, centred */
@media (width < 768px) {
  .estimator .hm-terms { display: flex; width: 100%; max-width: 360px; margin-inline: auto; }
  .portfolio-apply { display: flex; box-sizing: border-box; width: 100%; max-width: 360px; align-self: center; }
}
/* Footer, tablet: four link columns across the width; Locations and the
   Blog/Contact pair keep their inner two columns, which line up with the grid. */
@media (768px <= width < 1024px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer .footer-grid > .footer-col:last-child { grid-column: span 2; }
}

/* ===== lane: home ===== */
/* ==========================================================================
   HOME lane: / (home) and /loan-solutions. Phone and tablet only.
   ========================================================================== */

/* --- Home hero: centred over an even wash ------------------------------- */
@media (width < 1024px) {
  .hero-body { align-items: center; text-align: center; }
  .hero-title, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-title { text-wrap: balance; }
  .hero-actions { justify-content: center; }
  .hero-actions a { min-height: 48px; }
  .hero-wash { background-image: linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.66)); }
}
@media (width < 768px) {
  .hero-body { padding-top: 64px; padding-bottom: 56px; }
  .hero-actions { align-self: center; width: 100%; max-width: 360px; margin-top: 12px; }
}
@media (768px <= width < 1024px) {
  .hero-body { padding-top: 100px; padding-bottom: 96px; }
  .hero-actions { flex-wrap: wrap; margin-top: 24px; }
}

/* --- Home stats: centred heading/intro/chart; row of three kept ---------- */
@media (width < 1024px) {
  .stats-text { text-align: center; }
  .stats-title, .stats-intro { margin-left: auto; margin-right: auto; }
  .stats-item { text-align: center; }
}
@media (width < 768px) {
  .stats { padding-block-start: 56px; padding-block-end: 56px; }
  .stats-title { margin-bottom: 12px; }
  .stats-intro { margin-bottom: 28px; }
}
@media (768px <= width < 1024px) {
  .stats { padding-block-start: 80px; padding-block-end: 80px; }
  .stats-title { margin-bottom: 16px; }
  .stats-intro { margin-bottom: 40px; max-width: 640px; }
  .stats-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .stats-item, .stats-item:first-child { padding: 20px 0 0; border-top: 3px solid var(--white); }
  .stats-value { font-size: 52px; letter-spacing: -0.03em; white-space: nowrap; }
  .stats-value-label { font-size: 16px; }
}

/* --- Home Blueprint band: one centred column ---------------------------- */
@media (width < 1024px) {
  .bp-stage { align-items: center; text-align: center; }
  .bp-title { white-space: normal; }
  .bp-copy { max-width: 640px; }
  .bp-ctas { justify-content: center; }
}
@media (width < 768px) {
  .blueprint { padding: 56px 0; }
  .bp-title { font-size: 28px; line-height: 1.2; }
  .bp-copy { font-size: 16px; line-height: 1.55; }
  .bp-ctas { align-items: center; width: 100%; }
  .blueprint .bp-btn-primary, .blueprint .bp-btn-ghost { max-width: 360px; min-height: 48px; }
}
@media (768px <= width < 1024px) {
  .blueprint { padding: 80px 0; }
  .bp-stage { padding: 0 var(--gutter); }
  .bp-title { font-size: 38px; line-height: 1.15; }
  .bp-copy { font-size: 17px; line-height: 1.55; }
  .bp-ctas { flex-direction: row; flex-wrap: wrap; }
  .bp-btn { min-height: 48px; }
}

/* --- Home How it works (steps): centred header and cards ---------------- */
@media (width < 1024px) {
  .steps { text-align: center; }
  .steps-card-title { font-size: 20px; line-height: 1.3; }
  .steps-label { font-size: 13px; line-height: 1.3; }
}
@media (width < 768px) {
  .steps { padding: 56px 0; }
  .steps .steps-card-title { font-size: 20px; line-height: 1.3; }
  .steps .steps-band { padding: 20px 24px 22px; }
  .steps .steps-text { padding: 16px 24px 0; }
}
@media (768px <= width < 1024px) {
  .steps { padding: 80px 0; }
  .steps-list { grid-template-columns: minmax(0, 1fr); row-gap: 24px; max-width: 640px; margin: 40px auto 0; }
  .steps-card-title { font-size: 24px; line-height: 1.25; }
  .steps-photo { height: 240px; }
  .steps-stack { height: 240px; }
  .steps-photo-tall { height: 380px; margin-top: -140px; }
}

/* --- Home Talk to a real person (shared with /partnerships/brokers) ----- */
@media (width < 1024px) {
  .talk-text { text-align: center; }
  .talk-chips { justify-content: center; }
  .talk-chip { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
  .talk-title { margin-bottom: 16px; }
  .talk-programs-label { margin-bottom: 12px; }
}
@media (width < 768px) {
  .talk { padding: 56px 0; }
  .talk-copy { margin-bottom: 28px; }
}
@media (768px <= width < 1024px) {
  .talk { padding: 80px 0; }
  .talk-inner { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
  .talk-copy { margin-left: auto; margin-right: auto; margin-bottom: 32px; }
}

/* --- Home reviews (shared with /client-reviews) -------------------------- */
@media (width < 768px) {
  /* why: live rule sets padding-top with !important */
  .reviews { padding-top: 56px !important; padding-bottom: 56px; }
  .reviews .reviews-list { margin-top: 64px; row-gap: 56px; }
}
@media (768px <= width < 1024px) {
  /* why: live rule sets padding-top with !important */
  .reviews { padding-top: 80px !important; padding-bottom: 80px; }
  .reviews .reviews-list { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-top: 72px; row-gap: 56px; }
}

/* --- /loan-solutions hero ------------------------------------------------ */
@media (width < 1024px) {
  .lsx-hero-body { align-items: center; text-align: center; }
  .lsx-hero-title, .lsx-hero-sub { margin-left: auto; margin-right: auto; }
  .lsx-hero-eyebrow { white-space: normal; }
  .lsx-hero-wash { background-color: rgba(0, 0, 0, 0.5); }
  /* empty aria-hidden spacer band: collapse the blank white strip */
  .lsx-tabs, .lsx-tabs.lsx-tabs { height: 0; padding-block-end: 0; }
}
@media (width < 768px) {
  .lsx-hero-body { padding-top: 56px; padding-bottom: 56px; }
  .lsx-hero-eyebrow { font-size: 13px; }
}
@media (768px <= width < 1024px) {
  .lsx-hero-body { padding-top: 80px; padding-bottom: 80px; }
  .lsx-hero-eyebrow { font-size: 13px; }
}

/* --- /loan-solutions "Confidence at every stage": centred head, list block */
@media (width < 1024px) {
  .lsx-intro .lsi-points { display: grid; grid-template-columns: minmax(0, 1fr); width: auto; max-width: 420px; margin: 32px auto 0; }
  .lsx-intro .lsi-points .lsx-intro-point,
  .lsx-intro .lsi-points .lsx-intro-point:nth-child(n) { width: auto; padding: 20px 0; border-top: 1px solid var(--white); }
  .lsx-intro .lsi-points .lsx-intro-point:first-child { border-top-width: 0; padding-top: 0; }
  /* why: live phone rule sets margin-left with !important */
  .lsx-intro .lsx-intro-points { margin-left: auto !important; max-width: 420px !important; }
  /* why: live rules force these with !important */
  .lsx-intro ul.lsi-points { margin: 32px 0 0 !important; max-width: none !important; }
  /* why: live phone rule sets padding-left with !important */
  .lsx-intro .lsi-points .lsx-intro-point { padding-left: 0 !important; }
  .lsx-intro .lsi-points .lsx-intro-name { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
  .lsx-intro .lsi-points .lsx-intro-list li,
  .lsi-points .lsx-intro-list li { font-size: 16px; line-height: 1.45; padding: 4px 0; }
  .lsx-intro .lsi-points .lsx-intro-point:nth-child(4) .lsx-intro-list li { padding-left: 25px; }
  .lsx-intro .lsx-intro-lead { font-size: 18px; line-height: 1.45; }
}
@media (width < 768px) {
  .lsx-intro { padding-block-start: 56px; padding-block-end: 56px; min-height: 0; }
  .lsx-intro .lsx-intro-title { margin-bottom: 12px; }
}
@media (768px <= width < 1024px) {
  .lsx-intro { padding-block-start: 80px; padding-block-end: 80px; min-height: 0; }
  .lsx-intro .lsx-intro-title { margin-bottom: 16px; }
  .lsx-intro .lsx-intro-lead { font-size: 20px; }
  /* why: live rules force max-width on the points with !important */
  .lsx-intro .lsx-intro-points { max-width: 640px !important; }
  .lsx-intro .lsi-points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 0; }
  .lsx-intro .lsi-points .lsx-intro-point:nth-child(2) { padding-top: 0; border-top-width: 0; }
}

/* --- /loan-solutions loan cards: centred text under the photo ----------- */
@media (width < 1024px) {
  .lsc-copy { align-items: center; text-align: center; }
  .lsc-title { width: auto; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
  .lsc-tag { font-size: 22px; line-height: 1.3; margin-top: 16px; }
  .lsc-text { font-size: 16px; line-height: 1.55; }
  .lsc-body { margin-top: 12px; }
  .lsc-link { margin-top: 20px; min-height: 48px; font-size: 16px; }
}
@media (width < 768px) {
  .lsc-media { min-height: 260px; }
  .lsc-copy { padding: 40px var(--gutter) 48px; }
}
@media (768px <= width < 1024px) {
  .lsc-title { font-size: 38px; line-height: 1.15; }
  .lsc-tag { font-size: 24px; }
  .lsc-text { font-size: 17px; }
  .lsc-media { min-height: 360px; }
  .lsc-copy { padding: 56px var(--gutter) 64px; }
}

/* ===== lane: products ===== */
/* ==========================================================================
   PRODUCTS lane: four loan-solution product pages (bridge, construction,
   dscr-rental, fix-and-flip) and landing pages /fix-and-flip, /construction.
   Phone and tablet only.
   ========================================================================== */

/* --- Product pages: hero (centred) -------------------------------------- */
@media (width < 1024px) {
  .prod-hero-body { align-items: center; text-align: center; row-gap: 16px; }
  .prod-hero-title, .prod-hero-sub { margin-inline: auto; }
  .prod-hero-sub { max-width: 640px; }
}
@media (width < 768px) {
  .prod-hero-body { padding-top: 56px; padding-bottom: 56px; }
}
@media (768px <= width < 1024px) {
  .prod-hero-body { padding-top: 80px; padding-bottom: 80px; }
}

/* --- Product pages: sub-navigation (chips + buttons), centred ------------ */
@media (width < 1024px) {
  .prod-subnav-inner { align-items: center; text-align: center; row-gap: 24px; }
  .prod-subnav-label { margin-bottom: 16px; }
  .prod-subnav-chips { justify-content: center; row-gap: 12px; column-gap: 12px; }
  .prod-subnav-chip { height: 44px; }
  .prod-subnav-actions { justify-content: center; align-items: center; }
}
@media (width < 768px) {
  .prod-subnav { padding: 40px 0; }
  .prod-subnav-actions { flex-direction: column; width: 100%; }
  .prod-subnav-btn { width: 100%; max-width: 360px; }
}
@media (768px <= width < 1024px) {
  .prod-subnav { padding: 48px 0; }
  .prod-subnav-actions { flex-direction: row; }
}

/* --- Product pages: "Built for every stage" circles ---------------------- */
@media (width < 768px) {
  .prod-stages { padding: 56px 0; }
  .prod-stages-intro { margin-top: 16px; }
  .prod-stages-list { margin-top: 32px; row-gap: 24px; }
}
@media (768px <= width < 1024px) {
  .prod-stages { padding: 80px 0; }
  .prod-stages-intro { margin-top: 16px; max-width: 640px; }
  /* one row of circles, scaled to 80% so four fit at 724px; label 15px so it still renders at 12px */
  .prod-stages-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 40px;
    column-gap: 24px;
  }
  .prod-stages-item { zoom: 0.8; flex: 0 0 auto; }
  .prod-stages-label { font-size: 15px; }
}

/* --- Product pages: Key benefits (dark band) ----------------------------- */
@media (width < 1024px) {
  .prod-benefits-title { text-align: center; }
  .prod-benefits-item { text-align: center; }
  .prod-benefits-item-title { white-space: normal; }
  /* :nth-child(n) lifts specificity above the live :nth-child(4) rule */
  .prod-benefits-list .prod-benefits-item:nth-child(n) .prod-benefits-item-copy { max-width: 280px; margin-inline: auto; }
}
@media (width < 768px) {
  .prod-benefits { padding: 56px 0; }
  .prod-benefits-title { margin-bottom: 28px; }
  .prod-benefits-list { row-gap: 28px; }
  .prod-benefits-list .prod-benefits-item:nth-child(n) .prod-benefits-item-copy { font-size: 16px; line-height: 1.5; }
}
@media (768px <= width < 1024px) {
  .prod-benefits { padding: 80px 0; }
  .prod-benefits-title { margin-bottom: 40px; }
  .prod-benefits-list { row-gap: 32px; column-gap: 24px; }
  .prod-benefits-list .prod-benefits-item:nth-child(n) .prod-benefits-item-copy { font-size: 17px; line-height: 1.5; }
}

/* --- Product pages: FAQ card (shared with /locations/miami) -------------- */
@media (width < 768px) {
  .prod-faq { padding: 56px 0; }
  .prod-faq-cta { width: 100%; max-width: 360px; height: 56px; }
}
@media (768px <= width < 1024px) {
  .prod-faq { padding: 80px 0; }
  .prod-faq-card { padding: 40px 40px; row-gap: 32px; }
  .prod-faq-cta { height: 56px; }
}

/* --- Product pages: loan highlights (tiles + need/why panels) ------------ */
@media (width < 1024px) {
  .prod-highlights-eyebrow, .prod-highlights-title, .prod-highlights-intro { text-align: center; }
  .prod-highlights-intro { margin: 12px auto 0; }
  .prod-highlights-tile { align-items: center; text-align: center; }
  .prod-highlights-value-row, .prod-highlights-term { justify-content: center; }
  .prod-highlights-note { text-align: center; }
}
@media (width < 768px) {
  .prod-highlights { padding: 56px 0 24px; }
  .prod-highlights-tiles { margin-top: 28px; row-gap: 16px; }
  .prod-highlights-panels { margin-top: 16px; row-gap: 16px; }
}
@media (768px <= width < 1024px) {
  .prod-highlights { padding: 80px 0 24px; }
  .prod-highlights-tiles { margin-top: 40px; row-gap: 24px; column-gap: 24px; }
  .prod-highlights-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .prod-highlights-panels { margin-top: 24px; row-gap: 24px; column-gap: 24px; }
}

/* --- Product pages: process steps ---------------------------------------- */
@media (width < 1024px) {
  .prod-process-eyebrow { text-align: center; }
  .prod-process-name { white-space: normal; }
}
@media (width < 768px) {
  .prod-process { padding: 40px 0 56px; }
  .prod-process-cta { margin-top: 40px; }
  .prod-process-button { width: 100%; max-width: 360px; }
}
@media (768px <= width < 1024px) {
  .prod-process { padding: 40px 0 80px; }
  .prod-process-cta { margin-top: 40px; }
}

/* --- Landing pages /fix-and-flip and /construction: page title ------------ */
/* Same title size as every other page; the live .cf-h1 rule sets 40px phone and 65px tablet. */
@media (width < 768px) {
  h1.lp-ff-h1, h1.lp-con-h1 { font-size: 34px; line-height: 1.15; }
}
@media (768px <= width < 1024px) {
  h1.lp-ff-h1, h1.lp-con-h1 { font-size: 48px; line-height: 1.1; }
}

/* --- Landing pages: pillar icon + title row centred over centred text ---- */
@media (width < 1024px) {
  .lp-ff-pillar-head, .lp-con-pillar-head { justify-content: center; }
}

/* --- Product heroes: stronger, even wash so white text reads on bright photos */
@media (width < 1024px) {
  .prod-hero-wash { background-image: linear-gradient(rgba(10, 8, 40, 0.8), rgba(10, 8, 40, 0.8)); }
}

/* ===== lane: build ===== */
/* ==========================================================================
   BUILD lane: /build/construction*, /powered-by-people (cf-* and lp-ppl-*).
   Phone and tablet only.
   ========================================================================== */

/* --- Shared: side margins, header, section rhythm (all cf pages) --------- */
@media (width < 1024px) {
  .cf-wrap { padding-inline-start: var(--gutter); padding-inline-end: var(--gutter); }
  .cf-head { padding-block-start: 20px; padding-block-end: 20px; }
  .cf-phone { display: inline-flex; align-items: center; min-height: 44px; }
  .cf-hero { padding-block-start: 16px; padding-block-end: 56px; }
  .cf-band { padding-block-start: 56px; padding-block-end: 56px; }
  .cf-dark, .cf-light, .cf-section { padding-block-start: 56px; padding-block-end: 56px; }
  .cf-cta-block { padding-block-start: 56px; padding-block-end: 56px; }
  .cf-eyebrow { font-size: 13px; line-height: 1.3; margin: 0 0 12px; text-align: center; }
  .cf-h2 { font-size: 28px; line-height: 1.2; margin: 0 0 28px; text-align: center; text-wrap: balance; }
  /* why: the split-section h2s carry an inline margin-bottom:0 */
  .cf-split .cf-h2 { margin-bottom: 16px !important; }
  .cf-cta-block .cf-h2 { margin-bottom: 16px; }
  .cf-split-sub { font-size: 20px; line-height: 1.35; margin: 0; text-align: center; }
  .cf-split { row-gap: 28px; column-gap: 28px; }
  .cf-lead { font-size: 18px; line-height: 1.45; margin: 16px auto 0; text-align: center; max-width: 640px; }
  .cf-note { font-size: 16px; line-height: 1.5; margin: 24px 0 0; text-align: center; }
  .cf-actions { flex-direction: column; align-items: center; justify-content: center; row-gap: 12px; column-gap: 16px; margin-top: 28px; }
  .cf-btn { display: flex; min-height: 48px; width: 100%; max-width: 360px; margin-inline: auto; }
  .cf-actions .cf-btn { margin-inline: 0; }
  .cf-btn-lg { min-height: 56px; font-size: 18px; padding-inline: 24px; }
}
@media (768px <= width < 1024px) {
  .cf-head { padding-block-start: 28px; padding-block-end: 28px; }
  .cf-hero { padding-block-start: 24px; padding-block-end: 80px; }
  .cf-band { padding-block-start: 80px; padding-block-end: 80px; }
  .cf-dark, .cf-light, .cf-section, .cf-cta-block { padding-block-start: 80px; padding-block-end: 80px; }
  .cf-eyebrow { margin-bottom: 12px; }
  .cf-h2 { font-size: 38px; line-height: 1.15; margin-bottom: 40px; }
  /* why: the split-section h2s carry an inline margin-bottom:0 */
  .cf-split .cf-h2 { margin-bottom: 16px !important; }
  .cf-cta-block .cf-h2 { margin-bottom: 16px; }
  .cf-split-sub { font-size: 24px; line-height: 1.3; }
  .cf-split { row-gap: 40px; column-gap: 40px; }
  .cf-lead { font-size: 20px; }
  .cf-note { font-size: 17px; margin-top: 32px; }
  .cf-actions { flex-direction: row; flex-wrap: wrap; row-gap: 16px; column-gap: 24px; margin-top: 40px; }
  .cf-btn { width: fit-content; max-width: none; }
  .cf-btn-lg { min-height: 64px; padding-inline: 48px; font-size: 20px; }
}

/* --- Hero (construction, first-time, brokers, ready): header + h1 + offer - */
@media (width < 1024px) {
  .cf-hero-grid { row-gap: 24px; column-gap: 24px; justify-items: center; text-align: center; }
  .cf-h1, .cf-h1-md { font-size: 34px; line-height: 1.15; text-align: center; }
  .cf-offer { font-size: 24px; line-height: 1.25; text-align: center; max-width: 360px; }
  .cf-hero .cf-actions { margin-top: 28px; }
}
@media (768px <= width < 1024px) {
  .cf-hero-grid { row-gap: 32px; }
  .cf-h1, .cf-h1-md { font-size: 48px; line-height: 1.1; }
  .cf-offer { font-size: 28px; max-width: 480px; }
  .cf-hero .cf-actions { margin-top: 40px; }
}

/* --- Teal stats band (construction, brokers, ready; also /construction, /fix-and-flip) */
@media (width < 1024px) {
  .cf-band-grid { row-gap: 28px; column-gap: 28px; justify-items: center; text-align: center; }
  .cf-band-copy { font-size: 18px; line-height: 1.4; text-align: center; max-width: 640px; }
  .cf-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; column-gap: 16px; justify-content: stretch; width: 100%; max-width: 360px; text-align: center; }
  .cf-stat-label { font-size: 14px; line-height: 1.3; letter-spacing: 0.06em; margin-bottom: 4px; }
  .cf-stat-value { font-size: 36px; }
}
@media (768px <= width < 1024px) {
  .cf-band-grid { row-gap: 40px; }
  .cf-band-copy { font-size: 20px; }
  .cf-stats { grid-template-columns: repeat(4, 1fr); column-gap: 24px; max-width: 640px; }
  .cf-stat-value { font-size: 40px; }
}

/* --- Pillars (dark band on construction; cream band on powered-by-people) -- */
@media (width < 1024px) {
  .cf-pillars { grid-template-columns: 1fr; row-gap: 24px; column-gap: 24px; max-width: 640px; margin-inline: auto; text-align: center; }
  .cf-pillars .cf-pillar { padding: 24px 0 0; border-left-width: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .cf-pillars .cf-pillar:first-child { padding-top: 0; border-top-width: 0; }
  .cf-pillars .cf-pillar h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
  .cf-pillars .cf-pillar p { font-size: 16px; line-height: 1.55; margin: 0 0 8px; }
  .lp-ppl-pillars .cf-pillar { border-top-color: rgba(28, 26, 92, 0.15); padding-right: 0; }
  .lp-ppl-pillars .cf-pillar:first-child { border-top-width: 0; }
  .lp-ppl-pillars .cf-pillar p { margin: 0 auto; max-width: 360px; }
  .lp-ppl-pillar-head { justify-content: center; margin-bottom: 8px; }
}
@media (768px <= width < 1024px) {
  .cf-pillars .cf-pillar h3 { font-size: 24px; line-height: 1.25; }
  .cf-pillars .cf-pillar p { font-size: 17px; }
}

/* --- Cards: programs, highlights (construction, first-time, powered-by-people) */
@media (width < 1024px) {
  .cf-cards { grid-template-columns: 1fr; row-gap: 16px; column-gap: 16px; }
  .cf-card { padding: 24px; min-height: 0; row-gap: 8px; }
  .cf-card h3 { font-size: 20px; line-height: 1.3; }
  .cf-card p { font-size: 16px; line-height: 1.5; }
  .cf-card a { font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .cf-cards-4 .cf-card { text-align: center; align-items: center; }
  .cf-cards-4 .cf-card h3 { font-size: 32px; line-height: 1.15; }
  .cf-cards-4 { grid-template-columns: 1fr; }
}
@media (768px <= width < 1024px) {
  .cf-cards, .cf-cards-4 { grid-template-columns: repeat(2, 1fr); row-gap: 24px; column-gap: 24px; }
  .cf-card { padding: 28px; }
  .cf-card h3 { font-size: 24px; line-height: 1.25; }
  .cf-card p { font-size: 17px; }
  .cf-cards-4 .cf-card h3 { font-size: 36px; }
}

/* --- First-time and brokers: steps, checklist panel, note ------------------ */
@media (width < 1024px) {
  .cf-steps { row-gap: 24px; width: fit-content; max-width: 100%; margin-inline: auto; }
  .cf-step h3 { font-size: 20px; line-height: 1.3; }
  .cf-step p { font-size: 16px; line-height: 1.5; }
  .cf-panel { padding: 24px; }
  .cf-checks { grid-template-columns: 1fr; row-gap: 16px; }
  .cf-checks li { font-size: 17px; line-height: 1.35; }
  .cf-checks li::before { top: 0; }
}
@media (768px <= width < 1024px) {
  .cf-steps { row-gap: 28px; }
  .cf-step h3 { font-size: 24px; line-height: 1.25; }
  .cf-step p { font-size: 17px; }
  .cf-panel { padding: 32px; }
  .cf-checks { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .cf-checks li { font-size: 18px; }
}

/* --- CTA block (first-time, brokers, ready, powered-by-people) ------------- */
@media (width < 1024px) {
  .cf-callnote { font-size: 18px; line-height: 1.5; letter-spacing: 0.08em; margin: 24px 0 0; text-align: center; }
  .cf-callnote a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; }
  .cf-cta-block .cf-lead { margin-top: 0; }
  .lp-ppl-band .cf-h2 { font-size: 28px; line-height: 1.2; margin-bottom: 0; }
  .lp-ppl-band .cf-actions { margin-top: 28px; }
}
@media (768px <= width < 1024px) {
  .cf-callnote { font-size: 20px; }
  .lp-ppl-band .cf-h2 { font-size: 38px; line-height: 1.15; }
  .lp-ppl-band .cf-actions { margin-top: 40px; }
}

/* --- Story section on /build/construction: call note, photo caption ---------------- */
@media (width < 1024px) {
  .cf-photo-cap { font-size: 14px; padding: 16px 20px; text-align: left; }
  .cf-photo-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* --- Footer strip (all cf pages) ------------------------------------------ */
@media (width < 1024px) {
  .cf-foot { padding-block-start: 56px; padding-block-end: 40px; text-align: center; }
  .cf-foot-grid { row-gap: 28px; justify-items: center; }
  .cf-foot-logo img { width: 200px; margin-inline: auto; }
  .cf-foot-programs { font-size: 14px; line-height: 1.5; margin-top: 16px; }
  .cf-foot-right { text-align: center; font-size: 14px; line-height: 1.6; }
  .cf-foot-right a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .cf-foot-tag { font-size: 16px; letter-spacing: 0.08em; margin-top: 16px; }
  .cf-legal { flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: 32px; padding-top: 24px; row-gap: 8px; font-size: 13px; }
}

/* --- /powered-by-people hero ----------------------------------------------- */
@media (width < 1024px) {
  .lp-ppl-hero { min-height: 0; }
  .lp-ppl-hero-inner { align-items: center; text-align: center; padding-block-start: 32px; padding-block-end: 56px; }
  .lp-ppl-brand { display: flex; flex-direction: column; align-items: center; }
  .lp-ppl-logo img { width: 160px; }
  .lp-ppl-eyebrow { font-size: 13px; line-height: 1.3; margin-top: 10px; text-align: center; }
  .lp-ppl-copy { margin-top: 0; padding-top: 48px; }
  .lp-ppl-h1 { font-size: 34px; line-height: 1.15; margin-bottom: 16px; }
  .lp-ppl-h1 span { font-size: 28px; line-height: 1.2; margin-top: 8px; }
  .lp-ppl-sub { font-size: 18px; line-height: 1.45; margin-inline: auto; }
  .lp-ppl-micro { font-size: 16px; line-height: 1.4; margin-top: 20px; }
  .lp-ppl-cta { margin-top: 28px; }
}
@media (768px <= width < 1024px) {
  .lp-ppl-hero-inner { padding-block-start: 40px; padding-block-end: 80px; }
  .lp-ppl-logo img { width: 200px; }
  .lp-ppl-h1 { font-size: 48px; line-height: 1.1; }
  .lp-ppl-h1 span { font-size: 38px; line-height: 1.15; }
  .lp-ppl-sub { font-size: 20px; max-width: 640px; }
  .lp-ppl-micro { font-size: 17px; }
  .lp-ppl-cta { margin-top: 40px; }
}

/* --- /powered-by-people programs, stories ---------------------------------- */
@media (width < 1024px) {
  .lp-ppl-pillars { padding-block-start: 56px; padding-block-end: 56px; }
  .lp-ppl-intro { font-size: 16px; line-height: 1.55; margin: 16px 0 0; text-align: center; }
  .lp-ppl-stories { padding-block-start: 0; }
  .lp-ppl-stories-title { margin-bottom: 28px; }
  .lp-ppl-grid { grid-template-columns: 1fr; row-gap: 40px; column-gap: 24px; max-width: 640px; margin-inline: auto; }
  .lp-ppl-quote { font-size: 16px; line-height: 1.55; margin-top: 16px; }
  .lp-ppl-cap { text-align: left; font-size: 14px; margin-top: 8px; }
}
@media (768px <= width < 1024px) {
  .lp-ppl-pillars { padding-block-start: 80px; padding-block-end: 80px; }
  .lp-ppl-intro { font-size: 17px; }
  .lp-ppl-stories-title { margin-bottom: 40px; }
  .lp-ppl-grid { grid-template-columns: repeat(2, 1fr); max-width: none; row-gap: 40px; column-gap: 24px; }
  .lp-ppl-quote { font-size: 17px; }
}

/* ===== lane: company ===== */
/* ==========================================================================
   COMPANY lane: /about, /careers, /careers/loan-officer, /client-reviews,
   /insights/events. Phone and tablet only.
   ========================================================================== */

/* ---- /about hero: centred, on the page gutter --------------------------- */
@media (width < 1024px) {
  .about-hero-body { align-items: center; text-align: center; padding-inline: var(--gutter); }
  .about-hero-title, .about-hero-intro { margin-inline: auto; }
}

/* ---- /about "Four founders" video block --------------------------------- */
@media (width < 1024px) {
  .about-story-video-overlay { align-items: center; text-align: center; }
  .about-story-play { width: max-content; color: var(--white); }
  .about-story-play-label { white-space: nowrap; text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.6); }
}

/* ---- /about "Why RBI": centred head, one tidy left-aligned list --------- */
@media (width < 1024px) {
  .about-why-rbi-title { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
  .about-why-rbi-lead { font-size: 18px; line-height: 1.45; }
  .about-why-rbi-pillars { margin: 28px auto 0; row-gap: 28px; max-width: 420px; }
  .about-why-rbi-pillar { padding: 0; }
  .about-why-rbi-pillar:first-child .about-why-rbi-text { padding-left: 0; }
  .about-why-rbi-name { font-size: 20px; line-height: 1.3; }
  .about-why-rbi-text { font-size: 16px; line-height: 1.5; }
  .about-why-rbi-head { margin-bottom: 8px; }
}
@media (768px <= width < 1024px) {
  .about-why-rbi { padding-block: 80px; }
  .about-why-rbi-title { font-size: 38px; line-height: 1.15; }
  .about-why-rbi-lead { font-size: 20px; }
  .about-why-rbi-pillars { margin-top: 40px; max-width: none; row-gap: 40px; column-gap: 0; }
  .about-why-rbi-pillar { padding: 0 24px 0 0; }
  .about-why-rbi-pillar:nth-child(2n) { padding: 0 0 0 24px; }
  .about-why-rbi-name { font-size: 24px; line-height: 1.25; }
  .about-why-rbi-text { font-size: 17px; }
}

/* ---- /about "Built over a decade" map block: centred head -------------- */
@media (width < 1024px) {
  .about-impact-map-text { text-align: center; }
  .about-impact-map-eyebrow { text-align: center; }
  .about-impact-map .about-impact-map-title { font-size: 28px; line-height: 1.2; margin: 0 auto 12px; }
  .about-impact-map-copy { margin-inline: auto; font-size: 16px; line-height: 1.55; }
  .about-impact-map-legend { justify-content: center; justify-items: start; width: max-content; max-width: 100%; margin-inline: auto; }
}
@media (768px <= width < 1024px) {
  .about-impact-map .about-impact-map-title { font-size: 38px; line-height: 1.15; }
  .about-impact-map-copy { font-size: 17px; max-width: 640px; }
}

/* ---- /about leadership: heading ----------------------------------------- */
@media (width < 1024px) {
  section.about-team-heading { padding-top: 56px; padding-bottom: 32px; }
  section.about-team-heading .about-team-heading-title { font-size: 28px; line-height: 1.2; }
  section.about-team-heading .about-team-heading-sub { font-size: 18px; line-height: 1.45; padding: 0; margin-top: 0; text-align: center; }
}
@media (768px <= width < 1024px) {
  section.about-team-heading { padding-top: 80px; padding-bottom: 40px; }
  section.about-team-heading .about-team-heading-title { font-size: 38px; line-height: 1.15; }
  section.about-team-heading .about-team-heading-sub { font-size: 20px; }
}

/* ---- /about leadership: every biography is one block, on shared classes ------
   name, role, photo, text; 56px (phone) / 80px (tablet) between people. Text stays left-aligned. */
@media (width < 1024px) {
  .about-bio { padding-block: 0 56px; }
  .about-bio-row { display: flex; flex-direction: column; align-items: stretch; row-gap: 0; column-gap: 0; }
  .about-bio-text { display: contents; padding: 0; }
  .about-bio-name { order: 1; margin: 0; text-align: left; font-family: var(--font-pro), sans-serif; font-weight: 200; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
  .about-bio-role { order: 2; margin: 12px 0 0; font-size: 14px; line-height: 1.2; letter-spacing: 0; text-align: left; }
  .about-bio-photo { order: 3; margin: 24px 0 0; width: 100%; max-width: 420px; height: auto; aspect-ratio: 420 / 483; }
  .about-bio-quote { order: 4; margin: 24px 0 0; font-size: 16px; line-height: 1.55; text-align: left; max-width: none; }
  .about-bio-para { order: 4; margin: 16px 0 0; font-size: 16px; line-height: 1.55; text-align: left; max-width: none; }
  /* why: a trailing line break in the markup adds a blank line under a paragraph; it only carries spacing */
  .about-bio-quote br:last-child, .about-bio-para br:last-child { display: none; }
}
@media (768px <= width < 1024px) {
  .about-bio { padding-block: 0 80px; }
  .about-bio-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .about-bio-photo { grid-column: 1; grid-row: 1 / span 12; margin: 0; max-width: 220px; }
  .about-bio-name, .about-bio-role, .about-bio-quote, .about-bio-para { grid-column: 2; }
  .about-bio-name { font-size: 44px; }
  .about-bio-quote, .about-bio-para { font-size: 17px; }
}


/* ---- /about press strip: heading on the page gutter ---------------------- */
@media (width < 1024px) {
  .about-press-title { padding-inline: var(--gutter); }
}

/* ---- /about careers band: centred, gutter margins, 44px link ------------- */
@media (width < 1024px) {
  .about-careers-text { align-items: center; text-align: center; padding: 56px var(--gutter); }
  .about-careers-eyebrow { white-space: normal; }
  .about-careers-title { font-size: 28px; line-height: 1.2; font-weight: 700; margin-top: 12px; }
  .about-careers-intro { margin: 16px auto 0; }
  .about-careers-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 16px; }
}
@media (768px <= width < 1024px) {
  .about-careers-text { padding: 80px var(--gutter); }
  .about-careers-title { font-size: 38px; line-height: 1.15; }
  .about-careers-intro { margin-top: 16px; max-width: 560px; }
}

/* ---- /careers hero: centred, buttons full width up to 360px ------------- */
@media (width < 1024px) {
  .jobs-hero-body { align-items: center; text-align: center; padding-inline: var(--gutter); }
  .jobs-hero-title, .jobs-hero-sub { margin-inline: auto; }
  .jobs-hero-row { align-items: center; align-self: center; }
  .jobs-hero-actions { align-items: center; align-self: center; width: 100%; }
}
@media (768px <= width < 1024px) {
  .jobs-hero-actions { justify-content: center; }
}

/* ---- /careers "Why RBI": centred head, tidy list ------------------------- */
@media (width < 1024px) {
  .jobs-why { padding: 56px 0; text-align: center; }
  .jobs-why-title { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
  .jobs-why-intro { font-size: 18px; line-height: 1.45; margin-inline: auto; }
}
@media (768px <= width < 1024px) {
  .jobs-why { padding-block: 80px; }
  .jobs-why-title { font-size: 38px; line-height: 1.15; }
  .jobs-why-intro { font-size: 20px; }
}

/* ---- /careers openings panel --------------------------------------------- */
@media (width < 1024px) {
  .jobs-openings { padding-block: 0 56px; }
  .jobs-openings-title { font-size: 28px; line-height: 1.2; text-align: center; }
  .jobs-openings-intro, .jobs-openings-count { text-align: center; }
  .jobs-openings-intro { margin-top: 12px; }
  .jobs-openings-count { margin-top: 24px; }
  .jobs-openings-list { margin-top: 28px; row-gap: 16px; column-gap: 16px; }
  .jobs-openings-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (768px <= width < 1024px) {
  .jobs-openings { padding-block: 0 80px; }
  .jobs-openings-title { font-size: 38px; line-height: 1.15; }
  .jobs-openings-intro { margin-top: 16px; }
  .jobs-openings-list { margin-top: 40px; row-gap: 24px; column-gap: 24px; }
}

/* ---- /careers culture block ---------------------------------------------- */
@media (width < 1024px) {
  .jobs-culture-text { padding-block: 56px; }
  .jobs-culture-title { margin-bottom: 16px; }
}
@media (768px <= width < 1024px) {
  .jobs-culture-text { padding-block: 80px; }
}

/* ---- /careers life and motion cards: centred head, left-aligned cards ----- */
@media (width < 1024px) {
  .jobs-life { padding-top: 56px; text-align: center; }
  .jobs-life-title { margin-top: 12px; }
  .jobs-life-lead { margin-inline: auto; margin-top: 12px; }
  .jobs-life-story-label { margin-top: 32px; margin-bottom: 20px; }
  .jobs-life-card, .jobs-motion-card { text-align: left; }
  .jobs-life-name, .jobs-motion-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
  .jobs-life-name { margin-top: 20px; }
  .jobs-life-quote { line-height: 1.5; max-width: none; }
  .jobs-life-link, .jobs-motion-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }
  .jobs-motion { padding-block: 40px 56px; text-align: center; }
  .jobs-motion-kicker { margin-bottom: 20px; }
  .jobs-motion-lead { line-height: 1.5; }
  .jobs-motion-text { padding: 28px 24px 24px; }
  .jobs-life-play-label, .jobs-motion-label { white-space: nowrap; text-align: center; }
}
@media (768px <= width < 1024px) {
  .jobs-life { padding-top: 80px; }
  .jobs-motion { padding-block: 56px 80px; }
  .jobs-life-name, .jobs-motion-title { font-size: 38px; line-height: 1.1; }
  .jobs-life-link { margin-top: auto; }
}

/* ---- /careers/loan-officer: one gutter, system type sizes ---------------- */
@media (width < 1024px) {
  .job-header { padding: 0; }
  .job-header-card { border-top-left-radius: 0; border-top-right-radius: 0; padding: 40px var(--gutter) 28px; }
  .job-header-title { font-size: 34px; line-height: 1.15; }
  .job-details-cyan, .job-apply-band { padding-inline: 0; }
  .job-details-card { padding: 32px var(--gutter) 40px; }
  .job-apply-card { padding: 32px var(--gutter) 40px; }
  .job-details-intro { font-size: 16px; line-height: 1.55; }
  .job-details-heading { font-size: 20px; line-height: 1.3; letter-spacing: 0; }
  .job-details-list { font-size: 16px; line-height: 1.5; padding-left: 20px; }
  .job-details-list li::before { top: 9px; }
  .job-apply-title { font-size: 28px; line-height: 1.2; margin-bottom: 24px; letter-spacing: 0; }
  .job-apply-submit { align-self: center; width: 100%; max-width: 360px; min-height: 48px; }
}
@media (768px <= width < 1024px) {
  .job-header-card { padding: 56px var(--gutter) 32px; }
  .job-header-title { font-size: 48px; line-height: 1.1; }
  .job-details-card { padding: 48px var(--gutter) 56px; }
  .job-apply-card { padding: 48px var(--gutter) 40px; }
  .job-apply-band { padding-bottom: 80px; }
  .job-details-intro { font-size: 17px; }
  .job-details-heading { font-size: 24px; line-height: 1.25; }
  .job-details-list { font-size: 17px; }
  .job-details-list li::before { top: 10px; }
  .job-apply-title { font-size: 38px; line-height: 1.15; }
  .job-apply-submit { width: auto; max-width: none; padding-inline: 48px; }
}

/* ---- /client-reviews hero: centred, system title and intro sizes --------- */
@media (width < 1024px) {
  .revs-hero { padding: 56px 0 40px; text-align: center; }
  .revs-hero .revs-hero-title { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
  .revs-hero-sub { font-size: 18px; line-height: 1.45; margin: 16px auto 0; }
  .revs-hero-tag { margin-top: 28px; }
}
@media (768px <= width < 1024px) {
  .revs-hero { padding: 80px 0 56px; }
  .revs-hero .revs-hero-title { font-size: 48px; line-height: 1.1; }
  .revs-hero-sub { font-size: 20px; }
  .revs-hero-tag { margin-top: 32px; }
}

/* ---- /client-reviews featured story ------------------------------------- */
@media (width < 1024px) {
  .revs-feature-text { padding-block: 56px; }
  .revs-feature-quote p, .revs-feature .revs-feature-quote p { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; max-width: none; }
  .revs-feature-person { margin-left: 0; margin-top: 28px; }
}
@media (768px <= width < 1024px) {
  .revs-feature-text { padding-block: 64px; }
  .revs-feature-quote p, .revs-feature .revs-feature-quote p { font-size: 30px; line-height: 1.2; }
}

/* ---- /client-reviews video stories --------------------------------------- */
@media (width < 1024px) {
  .revs-videos { padding-block: 56px; }
  .revs-videos-title { font-size: 28px; line-height: 1.2; margin-bottom: 28px; letter-spacing: -0.02em; text-align: center; }
  .revs-videos-grid { row-gap: 16px; column-gap: 16px; }
}
@media (768px <= width < 1024px) {
  .revs-videos { padding-block: 80px; }
  .revs-videos-title { font-size: 38px; line-height: 1.15; margin-bottom: 40px; }
  .revs-videos-grid { row-gap: 24px; column-gap: 24px; }
  .revs-videos-grid > li:last-child:nth-child(2n+1) { width: calc(50% - 12px); }
}

/* ---- /client-reviews verified reviews: centred head, 44px tap links ------ */
@media (width < 1024px) {
  .revs-verified { padding-block: 56px; }
  section.revs-verified .revs-verified-title { font-size: 28px; line-height: 1.2; text-align: center; letter-spacing: -0.02em; }
  .revs-verified-filters { justify-content: center; margin-top: 20px; }
  .revs-verified-summaries { margin-top: 28px; }
  .revs-verified-links { justify-content: center; column-gap: 32px; row-gap: 0; margin-top: 24px; }
  .revs-verified-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; }
}
@media (768px <= width < 1024px) {
  .revs-verified { padding-block: 80px; }
  section.revs-verified .revs-verified-title { font-size: 38px; line-height: 1.15; }
  .revs-verified-summaries { row-gap: 24px; column-gap: 24px; margin-top: 40px; }
}

/* ---- /client-reviews metrics: centred figures ---------------------------- */
@media (width < 768px) {
  .revs-metrics-list { grid-template-columns: 1fr; row-gap: 24px; text-align: center; }
  .revs-metrics-item, .revs-metrics-item:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (768px <= width < 1024px) {
  .revs-metrics { padding-block: 56px; }
  .revs-metrics-list { grid-template-columns: repeat(3, 1fr); text-align: center; }
  .revs-metrics-item, .revs-metrics-item:nth-child(2n+1) { padding: 0 16px; border-left: 1px solid var(--dark-purple); }
  .revs-metrics-item:first-child { border-left: 0; }
}

/* ---- /insights/events: one gutter, centred heads, system sizes ------------- */
@media (width < 1024px) {
  .ev-wrap { padding-inline: var(--gutter); }
  .ev-hero { padding: 56px 0; text-align: center; }
  .ev-hero-title { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin-inline: auto; }
  .ev-hero-lead { margin: 16px auto 0; }
  .ev-eyebrow { margin-bottom: 12px; }
  .ev-featured { padding: 56px 0; text-align: center; }
  .ev-featured-intro { margin: 12px auto 0; }
  .ev-caption { margin: 32px 0 20px; font-size: 16px; line-height: 1.3; }
  .jobs-motion-card { text-align: left; }
  .ev-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }
  .ev-past { padding-block: 56px; }
  .ev-grid { margin-top: 28px; row-gap: 16px; column-gap: 16px; }
  .ev-past-title { font-size: 28px; line-height: 1.2; text-align: center; }
  .ev-item-body { padding: 20px 24px 24px; }
  .ev-item-title { font-size: 20px; line-height: 1.3; min-height: 0; }
  .ev-item-text { line-height: 1.5; }
}
@media (768px <= width < 1024px) {
  .ev-hero { padding: 80px 0; }
  .ev-hero-title { font-size: 48px; line-height: 1.1; }
  .ev-hero-lead { margin-top: 16px; }
  .ev-featured { padding: 80px 0; }
  .ev-caption { margin-top: 40px; }
  .ev-past { padding-block: 80px; }
  .ev-grid { margin-top: 40px; row-gap: 24px; column-gap: 24px; }
  .ev-past-title { font-size: 38px; line-height: 1.15; }
  .ev-item-title { font-size: 24px; line-height: 1.25; }
}

/* ======== Fix round ======== */

/* /careers hero buttons: full width up to 360px on phone, centred */
@media (width < 768px) {
  .jobs-hero-actions { align-items: stretch; width: 100%; }
  .jobs-hero-actions .hero-btn { width: 100%; max-width: 360px; min-height: 48px; margin-inline: auto; justify-content: center; }
}

/* /about "Built over a decade": three equal columns on tablet, no collision */
@media (width < 1024px) {
  .about-impact-map .about-impact-map-stats .stats-item:nth-child(n) .stats-value { letter-spacing: -0.03em; white-space: nowrap; }
  .about-impact-map .about-impact-map-stats .stats-item:nth-child(n) .stats-plus { margin-left: 6px; }
}
@media (768px <= width < 1024px) {
  .about-impact-map .about-impact-map-stats { max-width: none; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: 40px; }
  .about-impact-map-stats .stats-item, .about-impact-map-stats .stats-item:first-child { padding: 0; border-top: 0; text-align: center; }
  .about-impact-map-stats .stats-value { font-size: 52px; }
  .about-impact-map .about-impact-map-label { margin-top: 8px; text-align: center; }
}

/* one heading weight per page: bold compact like the other section headings */
@media (width < 1024px) {
  .jobs-culture-title, .jobs-life-title, .jobs-motion-title, .ev-hero-title, .revs-hero .revs-hero-title {
    font-family: var(--font-compact); font-weight: 790; letter-spacing: -0.02em;
  }
}

/* /careers culture band centred; phone openings head left to match the job card */
@media (width < 1024px) {
  .jobs-culture-text { text-align: center; }
  .jobs-culture-copy { margin-inline: auto; }
}
@media (width < 768px) {
  .jobs-openings-title, .jobs-openings-intro, .jobs-openings-count { text-align: left; }
}

/* /client-reviews tablet: one card width, summary box centred */
@media (768px <= width < 1024px) {
  .revs-verified .reviews-list { max-width: 640px; margin-inline: auto; }
  .revs-verified-summaries { grid-template-columns: minmax(0, 420px); justify-content: center; }
}

/* /careers/loan-officer tablet: fields fill the card, title centred */
@media (768px <= width < 1024px) {
  .job-apply-form { max-width: none; }
  .job-apply-title { text-align: center; }
}


/* ===== lane: partners ===== */
/* ==========================================================================
   PARTNERS lane: /who-we-serve, /partnerships/brokers, /loyalty-program/*,
   /heter-iska-kosher-financing. Phone and tablet only.
   ========================================================================== */

/* --- /who-we-serve: hero ------------------------------------------------- */
@media (width < 1024px) {
  .wws-hero-body { align-items: center; text-align: center; }
  .wws-hero-title, .wws-hero-sub { margin-inline: auto; }
}
@media (width < 768px) {
  .wws-hero-body { padding-top: 64px; padding-bottom: 64px; }
}

/* --- /who-we-serve: "Is this you?" intro --------------------------------- */
@media (width < 1024px) {
  .wws-intro-title { text-align: center; margin-bottom: 16px; }
  .wws-intro-lead { text-align: center; margin-inline: auto; max-width: 640px; }
}
@media (width < 768px) {
  .wws-intro { padding: 56px 0; }
}
@media (768px <= width < 1024px) {
  .wws-intro { padding: 80px 0; }
}

/* --- /who-we-serve: three stage cards ------------------------------------ */
@media (width < 1024px) {
  .wws-stages-card { padding: 40px 24px; }
  .wws-stages-name { font-size: 32px; line-height: 1.15; }
  .wws-stages-tag { margin-top: 20px; }
  .wws-stages-lead { margin-top: 28px; }
  .wws-stages-link { display: inline-flex; align-items: center; min-height: 44px; padding-top: 24px; box-sizing: content-box; }
  .wws-stages-blurb, .wws-stages-item { line-height: 1.4; }
  /* why: the site hides these <br> below 1024px, which glues the words together ("multipleinvestment") */
  .wws-stages-item br, .wws-stages-blurb br { display: inline; }
  .wws-stages-band { align-items: center; text-align: center; }
  .wws-stages-actions { justify-content: center; }
}
@media (width < 768px) {
  .wws-stages { padding-block: 56px; }
  .wws-stages-grid { row-gap: 40px; }
  .wws-stages-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .wws-stages-btn, .wws-stages-btn--ghost { width: 100%; height: 56px; }
  .wws-stages-band-title { font-size: 28px; }
}
@media (768px <= width < 1024px) {
  .wws-stages { padding-block: 80px; }
  .wws-stages-grid { grid-template-columns: minmax(0, 640px); justify-content: center; row-gap: 40px; }
  .wws-stages-band-title { font-size: 38px; line-height: 1.15; }
  .wws-stages-btn { height: 56px; }
}

/* --- /who-we-serve: loan type cards -------------------------------------- */
@media (width < 1024px) {
  /* live rules use five-class selectors with clamp(34px, 9.5vw, 65px) */
  .wws-loans .wws-loans-grid .wws-loans-item:nth-child(n) .wws-loans-title { font-size: 36px; line-height: 1.1; letter-spacing: -1px; word-spacing: 0; }
  .wws-loans-kind { font-size: 24px; line-height: 1.2; }
  .wws-loans-blurb { line-height: 1.4; }
  .wws-loans-more { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (width < 768px) {
  .wws-loans { padding: 56px 0; }
  .wws-loans-heading { margin-bottom: 32px; }
  .wws-loans-grid { row-gap: 16px; }
  .wws-loans .wws-loans-grid .wws-loans-item:nth-child(n) .wws-loans-title { font-size: 32px; }
}
@media (768px <= width < 1024px) {
  .wws-loans { padding: 80px 0; }
  .wws-loans-heading { margin-bottom: 40px; }
  .wws-loans-grid { max-width: 640px; row-gap: 24px; }
}

/* --- /who-we-serve: trust points ----------------------------------------- */
@media (width < 768px) {
  .wws-trust { padding-block: 56px; }
  .wws-trust-title { margin-bottom: 16px; }
  .wws-trust-list { margin-top: 32px; grid-template-columns: max-content; justify-content: center; }
}
@media (768px <= width < 1024px) {
  .wws-trust { padding-block: 80px; }
  .wws-trust-list { margin-top: 40px; max-width: 640px; margin-inline: auto; justify-content: center; }
}

/* --- /who-we-serve: closing call to action ------------------------------- */
@media (width < 1024px) {
  .wws-final-cta-inner { align-items: center; text-align: center; }
  .wws-final-cta-copy { align-items: center; }
}
@media (width < 768px) {
  .wws-final-cta { padding: 56px 0; }
  .wws-final-cta-btn { width: 100%; max-width: 360px; height: 56px; }
}
@media (768px <= width < 1024px) {
  .wws-final-cta { padding: 80px 0; }
  .wws-final-cta-btn { height: 56px; }
}

/* --- Partner page hero (.ph): /partnerships/brokers and both loyalty pages - */
@media (width < 1024px) {
  .ph-inner { text-align: center; }
  .ph-lead, .ph-loy .ph-lead, body:has(#lk-title) .ph-lead { margin-inline: auto; }
  /* centred text needs an even wash, the live one fades from the left */
  .ph-wash, .ph-loy .ph-wash { background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); }
}
@media (width < 768px) {
  .ph-inner { padding-top: 64px; padding-bottom: 64px; }
}
@media (768px <= width < 1024px) {
  .ph-inner { padding-top: 96px; padding-bottom: 96px; }
  .ph-eyebrow { font-size: 13px; }
}

/* --- /partnerships/brokers: "More closings" teal band --------------------- */
@media (width < 768px) {
  .pb-band { padding: 56px 0; }
  .pb-grid { margin-top: 32px; row-gap: 16px; }
}
@media (768px <= width < 1024px) {
  .pb-band { padding: 80px 0; }
  .pb-grid { margin-top: 40px; row-gap: 24px; }
}

/* --- /partnerships/brokers: "Partner with us in one simple step" ----------- */
@media (width < 1024px) {
  .pbj-text { text-align: center; }
  .pbj-inner { justify-items: center; }
  .pbj-eyebrow { font-size: 13px; margin-bottom: 16px; }
  .pbj-title { font-size: 28px; line-height: 1.2; }
  .pbj-body { margin: 16px auto 0; font-size: 18px; line-height: 1.45; max-width: 560px; }
  .pbj-btn { margin-top: 32px; }
}
@media (width < 768px) {
  .pbj { padding: 56px 0; }
  .pbj-inner { row-gap: 32px; }
  .pbj-btn { width: 100%; max-width: 360px; }
}
@media (768px <= width < 1024px) {
  .pbj { padding: 80px 0; }
  .pbj-inner { max-width: 640px; margin-inline: auto; row-gap: 40px; }
  .pbj-title { font-size: 38px; line-height: 1.15; }
  .pbj-body { font-size: 20px; }
}

/* --- Partner Elite band (.pe-band): brokers and loyalty pages -------------- */
@media (width < 1024px) {
  .pe-inner { align-items: center; text-align: center; }
  .pe-body { margin-inline: auto; }
  .pe-eyebrow { font-size: 13px; margin-bottom: 12px; }
}
@media (width < 768px) {
  .pe-band { padding: 56px 0; }
  .pe-title { font-size: 28px; line-height: 1.2; }
  .pe-body { margin-top: 16px; }
  .pe-inner { row-gap: 28px; }
  .pe-btn { width: 100%; max-width: 360px; }
}
@media (768px <= width < 1024px) {
  .pe-band { padding: 80px 0; }
  .pe-title { font-size: 38px; line-height: 1.15; }
  .pe-body { margin-top: 16px; }
  .pe-inner { row-gap: 40px; max-width: 640px; margin-inline: auto; }
}

/* --- /partnerships/brokers: wholesalers and referral partners ------------- */
@media (width < 768px) {
  .pbs-half { padding-block: 56px; }
  .pbs-title { font-size: 28px; line-height: 1.2; }
  .pbs-eyebrow { font-size: 13px; margin-bottom: 16px; }
  .pbs-body { margin-top: 16px; font-size: 16px; line-height: 1.55; }
}
@media (768px <= width < 1024px) {
  .pbs-half { padding-block: 80px; }
  .pbs-title { font-size: 38px; line-height: 1.15; }
  .pbs-eyebrow { font-size: 13px; margin-bottom: 16px; }
  .pbs-body { margin-top: 16px; font-size: 17px; line-height: 1.55; max-width: 640px; }
}

/* --- Loyalty pages (brokers + borrowers): shared blocks ------------------- */
@media (width < 1024px) {
  .loy-wrap { padding-inline: var(--gutter); }
  .loy-label { font-size: 13px; margin-bottom: 12px; }
  .loy-h2 { letter-spacing: -0.5px; }
  .loy-how-title { font-size: 28px; line-height: 1.2; }
  .loy-tier-list { margin-top: 32px; row-gap: 16px; column-gap: 16px; }
  .loy-tier { padding: 32px 24px; }
  .loy-tier-name { font-size: 28px; line-height: 1.1; letter-spacing: -0.5px; }
  .loy-tier-sub { font-size: 20px; line-height: 1.3; margin-top: 16px; }
  .loy-tier-qual { font-size: 20px; line-height: 1.4; margin-top: 16px; }
  .loy-tier-desc { margin-top: 20px; padding-top: 20px; }
  .loy-compare-intro, .loy-how-copy, .loy-qualify-copy { margin-top: 16px; }
  .loy-how-copy p, .loy-qualify-copy p { margin-bottom: 20px; }
  .loy-how-copy p:last-child, .loy-qualify-copy p:last-child { margin-bottom: 0; }
  .loy-table-scroll { margin-top: 32px; }
  /* scroll hint: soft shadow on the edge that still has more table behind it */
  .loy-table-scroll {
    background:
      linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
      linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
      linear-gradient(to right, rgba(28, 26, 92, 0.28), rgba(28, 26, 92, 0)) left center / 14px 100% no-repeat scroll,
      linear-gradient(to left, rgba(28, 26, 92, 0.28), rgba(28, 26, 92, 0)) right center / 14px 100% no-repeat scroll;
  }
  .loy-table-note { font-size: 12px; }
}
@media (width < 768px) {
  .loy-how, .loy-compare, .loy-qualify, .loy-close { padding-block: 56px; }
  .loy-tiers { padding-block: 56px; }
  .loy-compare-intro { margin-bottom: 0; }
}
@media (768px <= width < 1024px) {
  .loy-how, .loy-compare, .loy-qualify, .loy-close, .loy-tiers { padding-block: 80px; }
  .loy-how-title { font-size: 38px; line-height: 1.15; }
  .loy-tier-list { margin-top: 40px; row-gap: 24px; column-gap: 24px; }
  .loy-tier-name { font-size: 32px; }
  .loy-tier-sub, .loy-tier-qual { font-size: 22px; }
  .loy-table-scroll { margin-top: 40px; }
}

/* --- Loyalty pages: closing call to action --------------------------------- */
@media (width < 1024px) {
  .loy-close .loy-wrap { text-align: center; }
  .loy-close-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.5px; margin-inline: auto; }
  .loy-close-copy { font-size: 17px; line-height: 1.5; margin-inline: auto; }
  .loy-close-row { justify-content: center; margin-top: 28px; }
  .loy-close-legal { flex-basis: 100%; margin-inline: auto; }
  .loy-close-actions { justify-content: center; }
}
@media (width < 768px) {
  .loy-close-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .loy-btn { width: 100%; }
}
@media (768px <= width < 1024px) {
  .loy-close-title { font-size: 38px; line-height: 1.15; }
  .loy-close-copy { font-size: 20px; }
  .loy-close-legal { max-width: 640px; }
}

/* --- /heter-iska-kosher-financing: the live page forces sizes and padding below 1024px, so overrides carry a why note. */

/* hero */
@media (width < 1024px) {
  /* why: live rule sets padding with !important; use the shared gutter */
  .kh-hero { padding-inline: var(--gutter) !important; }
  .kh-hero-in { text-align: center; }
  .kh-eye { text-align: center; }
  .kh-hero-row { align-items: center; }
  /* why: live clamp() size is set with !important */
  .kh-h1 { text-align: center; }
  /* why: the live rule below 1024px is !important */
  .kh-hero-sub { margin-inline: auto !important; font-size: 18px; line-height: 1.45; text-align: center; }
  .kh-hero-btns { justify-content: center; }
}
@media (width < 768px) {
  /* why: the live rule below 1024px is !important */
  .kh-hero { padding-block: 64px !important; }
  /* why: the live rule below 1024px is !important */
  .kh-h1 { font-size: 34px !important; line-height: 1.15 !important; letter-spacing: -0.5px; }
  .kh-hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .kh-btn { width: 100%; height: 56px; }
}
@media (768px <= width < 1024px) {
  /* why: the live rule below 1024px is !important */
  .kh-hero { padding-block: 96px !important; }
  /* why: the live rule below 1024px is !important */
  .kh-h1 { font-size: 48px !important; line-height: 1.1 !important; }
  .kh-hero-sub { font-size: 20px; max-width: 640px; }
  .kh-btn { height: 56px; }
}

/* "What is kosher financing?" */
@media (width < 1024px) {
  .kh-eye-p, .kh-eye-w, .kh-trust-eye { font-size: 13px; line-height: 1.3; }
  .kh-mean .kh-eye, .kh-mean .kh-h2, .kh-mean-p { text-align: center; }
  .kh-mean-p { margin: 16px auto 0; font-size: 16px; line-height: 1.55; }
  .kh-mean-top { align-items: center !important; /* why: live column layout is !important */ }
  .kh-h2 { margin-top: 12px; }
  .kh-note { margin-top: 32px; font-size: 12px; line-height: 1.5; padding-left: 16px; }
  .kh-step-b { font-size: 16px; line-height: 1.55; }
  .kh-step-t { font-size: 18px; line-height: 1.3; width: auto; }
  /* why: the live rule below 1024px is !important */
  .kh-steps { max-width: 640px; margin-inline: auto !important; }
}
@media (width < 768px) {
  /* why: live padding is !important */
  .kh-mean { padding: 56px var(--gutter) !important; }
  /* why: the live rule below 1024px is !important */
  .kh-h2 { font-size: 28px !important; line-height: 1.2 !important; }
  /* why: the live rule below 1024px is !important */
  .kh-steps { margin-top: 32px !important; }
}
@media (768px <= width < 1024px) {
  /* why: the live rule below 1024px is !important */
  .kh-mean { padding: 80px var(--gutter) !important; }
  /* why: the live rule below 1024px is !important */
  .kh-h2 { font-size: 38px !important; line-height: 1.15 !important; }
  .kh-mean-p { font-size: 17px; max-width: 640px; }
  /* why: the live rule below 1024px is !important */
  .kh-steps { margin-top: 40px !important; }
}

/* "Structured with care and transparency" */
@media (width < 1024px) {
  .kh-care-p { font-size: 18px; line-height: 1.45; letter-spacing: 0; margin-top: 16px; }
  .kh-cc-h { flex-direction: column; justify-content: center; row-gap: 12px; }
  .kh-cc, .kh-cc:first-child { text-align: center; }
  .kh-cc-t, .kh-cc-b { margin-inline: auto; }
  .kh-cc-t { max-width: none; }
  .kh-cc-b { font-size: 16px; line-height: 1.55; margin-top: 12px; }
  /* why: the live rule below 1024px is !important */
  .kh-care-cols { max-width: 720px; margin-inline: auto !important; }
}
@media (width < 768px) {
  /* why: the live rule below 1024px is !important */
  .kh-care { padding: 56px var(--gutter) !important; }
  /* why: the live rule below 1024px is !important */
  .kh-care-h { font-size: 28px !important; line-height: 1.2 !important; }
  /* why: the live rule below 1024px is !important */
  .kh-care-cols { margin-top: 32px !important; row-gap: 32px !important; }
}
@media (768px <= width < 1024px) {
  /* why: the live rule below 1024px is !important */
  .kh-care { padding: 80px var(--gutter) !important; }
  /* why: the live rule below 1024px is !important */
  .kh-care-h { font-size: 38px !important; line-height: 1.15 !important; }
  .kh-care-p { font-size: 20px; }
  /* why: the live rule below 1024px is !important */
  .kh-care-cols { margin-top: 40px !important; }
  .kh-cc-b { font-size: 17px; }
}

/* "Documented for confidence": the Heter Iska terms link must stay tappable */
@media (width < 1024px) {
  .kh-trust-l { text-align: center; }
  /* why: font-size below is !important in the live page; see the phone and tablet rules further down */
  .kh-trust-h { text-align: center; }
  .kh-trust-p { font-size: 18px; line-height: 1.45; margin: 16px auto 0; }
  .kh-trust-a {
    position: static; display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; min-height: 48px; margin-top: 24px; padding: 0 24px;
    font-size: 16px; line-height: 1.2; letter-spacing: 0;
    border: 2px solid var(--white); border-radius: 999px; text-decoration: none;
  }
}
@media (width < 768px) {
  /* why: the live rule below 1024px is !important */
  .kh-trust { padding: 56px var(--gutter) !important; }
  /* why: the live rule below 1024px is !important */
  .kh-trust-h { font-size: 28px !important; line-height: 1.2 !important; margin-top: 12px; }
  .kh-trust-a { width: 100%; max-width: 360px; }
}
@media (768px <= width < 1024px) {
  /* why: the live rule below 1024px is !important */
  .kh-trust { padding: 80px var(--gutter) !important; }
  /* why: the live rule below 1024px is !important */
  .kh-trust-h { font-size: 38px !important; line-height: 1.15 !important; margin-top: 12px; }
  .kh-trust-p { font-size: 20px; }
}

/* FAQ */
@media (width < 1024px) {
  .kh-faq-l { padding: 32px 24px 0; text-align: center; }
  /* why: the live rule below 1024px is !important */
  .kh-faq-big { font-size: 48px !important; letter-spacing: -0.06em; }
  .kh-faq-tag { margin: 8px auto 0; font-size: 18px; line-height: 1.35; }
  .kh-faq-btn { margin: 24px auto 0; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .kh-faq-r { padding-inline: 24px; padding-bottom: 32px; }
  .kh-faq-i summary { min-height: 44px; }
}
@media (width < 768px) {
  /* why: the live rule below 1024px is !important */
  .kh-faq { padding: 56px var(--gutter) !important; }
}
@media (768px <= width < 1024px) {
  /* why: the live rule below 1024px is !important */
  .kh-faq { padding: 80px var(--gutter) !important; }
  /* why: the live rule below 1024px is !important */
  .kh-faq-big { font-size: 64px !important; }
}

/* --- Loyalty pages: comparison table (fit on tablet, obvious scroll on phone) --- */
@media (768px <= width < 1024px) {
  .loy-table { min-width: 0; width: 100%; }
  .loy-table thead th:first-child { width: 150px; padding-left: 14px; font-size: 18px; line-height: 22px; }
  .loy-table thead th { padding: 16px 10px; font-size: 14px; }
  .loy-table thead th small { font-size: 13px; line-height: 1.25; }
  .loy-table tbody th { width: 150px; padding: 29px 10px 16px 14px; font-size: 14px; line-height: 1.2; }
  .loy-table tbody td { padding: 24px 10px 16px 12px; font-size: 13px; line-height: 1.4; }
}
@media (width < 768px) {
  .loy-table { min-width: 720px; }
  .loy-table thead th:first-child, .loy-table tbody th { width: 120px; padding-left: 12px; position: sticky; left: 0; z-index: 1; }
  .loy-table thead th:first-child { font-size: 16px; line-height: 20px; }
  .loy-table tbody th { font-size: 14px; line-height: 1.2; padding-right: 8px; }
  .loy-table thead th { padding: 16px 12px; }
  .loy-table thead th small { font-size: 13px; }
  .loy-table tbody td { font-size: 13px; padding: 24px 12px 16px; }
  /* strong right-edge cue: the next column always shows and fades out */
  .loy-table-scroll {
    background:
      linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
      linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
      linear-gradient(to right, rgba(28, 26, 92, 0.35), rgba(28, 26, 92, 0)) left center / 18px 100% no-repeat scroll,
      linear-gradient(to left, rgba(28, 26, 92, 0.6), rgba(28, 26, 92, 0)) right center / 36px 100% no-repeat scroll;
  }
}

/* --- Fix round: loyalty section headings, same size, centred on tablet --- */
@media (width < 768px) {
  .loy-h2 { font-size: 28px; line-height: 1.2; }
}
@media (768px <= width < 1024px) {
  .loy-h2 { font-size: 38px; line-height: 1.15; }
  .loy-how .loy-label, .loy-tiers .loy-label, .loy-compare .loy-label, .loy-qualify .loy-label,
  .loy-how-title, .loy-h2, .loy-compare-intro { text-align: center; }
  .loy-compare-intro { max-width: 640px; margin-inline: auto; }
  .loy-how-copy, .loy-qualify-copy { max-width: 640px; margin-inline: auto; }
}

/* --- Fix round: /who-we-serve loan cards: graphic gets its own space, cards alike --- */
@media (width < 1024px) {
  .wws-loans-card { min-height: 200px; padding-right: 88px; }
  .wws-loans-mark { width: 44px; height: 100px; right: 20px; }
  .wws-loans-body { margin-top: 16px; padding-top: 0; }
  .wws-loans-blurb { max-width: none; }
}

/* --- Fix round: /who-we-serve stage cards on tablet: two text columns use the card width --- */
@media (768px <= width < 1024px) {
  .wws-stages-card { display: block; columns: 2; column-gap: 40px; padding: 40px 32px; }
  .wws-stages-card > * { break-inside: avoid; }
  .wws-stages-card .wws-stages-lead { margin-top: 0; break-before: column; }
}

/* --- Fix round: /partnerships/brokers wholesaler and referral text column centred on tablet --- */
@media (768px <= width < 1024px) {
  .pbs-content { max-width: 640px; margin-inline: auto; }
}

/* --- Fix round: /heter-iska-kosher-financing steps, centred, full width --- */
@media (width < 1024px) {
  .kh-step { padding-right: 0; text-align: center; }
  .kh-step-h { justify-content: center; }
  .kh-step-b { max-width: none; margin-inline: auto; }
}

/* --- Fix round: stronger wash under centred hero text --- */
@media (width < 768px) {
  .ph-wash, .ph-loy .ph-wash { background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)); }
  /* extra wash on the photo: inset shadow paints above the background, below the text */
  .kh-hero { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.35); }
}

/* ===== lane: content ===== */
/* ==========================================================================
   CONTENT lane: contact, get-your-terms, blog, post, locations, deals,
   faqs, legal, 404. Phone and tablet only.
   ========================================================================== */

/* --- /contact hero: centred title block, 34/48 title --------------------- */
@media (width < 1024px) {
  .contact-hero { text-align: center; }
  .contact-hero-sub { font-size: 18px; line-height: 1.45; letter-spacing: 0; }
  .contact-hero-title { line-height: 1.15; }
  .contact-hero-actions { align-items: center; justify-content: center; }
  .contact-hero-btn { height: 56px; }
}
@media (width < 768px) {
  .contact-hero { padding: 40px 0 48px; }
  .contact-hero-title { font-size: 34px; }
  .contact-hero-actions { margin-top: 8px; }
  .contact-hero-btn { max-width: 360px; }
}
@media (768px <= width < 1024px) {
  .contact-hero { padding: 56px 0 64px; }
  .contact-hero-title { font-size: 48px; line-height: 1.1; }
  .contact-hero-sub { font-size: 20px; }
}

/* --- /contact form: section title, fields, submit ------------------------ */
@media (width < 1024px) {
  .contact-form-title, .contact-shortcuts-title, .contact-map-title { text-align: center; font-weight: 700; }
  .contact-form-title { font-family: Inter, var(--font-pro); letter-spacing: -0.01em; }
  .contact-form-label { text-align: left; }
  .contact-form-control { font-size: 16px; }
  .contact-form-field { min-height: 72px; }
  .contact-form-info-title { text-align: left; }
}
@media (width < 768px) {
  .contact-form { padding: 56px 0; }
  .contact-form-title { font-size: 28px; line-height: 1.2; margin-bottom: 28px; }
  .contact-form-submit { width: 100%; max-width: 360px; align-self: center; margin-inline: auto; }
  .contact-form-footer { flex-direction: column; align-items: center; }
  .contact-form-info { padding-inline: 20px; }
}
@media (768px <= width < 1024px) {
  .contact-form { padding: 80px 0; }
  .contact-form-title { font-size: 38px; line-height: 1.15; margin-bottom: 40px; }
}

/* --- /contact shortcuts and map: headings, padding, tap targets ---------- */
@media (width < 1024px) {
  .contact-shortcuts-title, .contact-map-title { font-size: 28px; line-height: 1.2; }
  .contact-map-tab { min-height: 44px; padding-block: 12px; }
  .contact-map-tabs { row-gap: 0; }
  .contact-map-directions { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (width < 768px) {
  .contact-shortcuts, .contact-map { padding: 56px 0; }
  .contact-shortcuts-title { margin-bottom: 28px; }
  .contact-map-title { margin-bottom: 28px; }
  .contact-shortcuts-card-text { font-size: 15px; }
  .contact-shortcuts-card-link { font-size: 15px; }
}
@media (768px <= width < 1024px) {
  .contact-shortcuts, .contact-map { padding: 80px 0; }
  .contact-shortcuts-title, .contact-map-title { font-size: 38px; line-height: 1.15; margin-bottom: 40px; }
  .contact-shortcuts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .contact-shortcuts-card { padding: 20px 18px; }
}

/* --- /get-your-terms wizard ---------------------------------------------- */
@media (width < 1024px) {
  .gyt-card { padding-inline: 0; }
  .gyt-title-xl { line-height: 1.15; }
  .gyt-input { font-size: 16px; min-height: 48px; }
  .gyt-label { text-align: left; }
  .gyt-fine { font-size: 13px; line-height: 1.4; }
}
@media (width < 768px) {
  .gyt { padding: 48px 0 56px; }
  .gyt-title-xl { font-size: 34px; }
  .gyt-title { font-size: 28px; line-height: 1.2; }
  .gyt-kicker { margin-top: 28px; font-size: 20px; line-height: 1.3; }
  .gyt-sub { font-size: 16px; line-height: 1.5; }
  .gyt-q { margin-top: 40px; }
  .gyt-h3 { font-size: 20px; line-height: 1.3; margin: 36px 0 16px; }
  .gyt-loans { row-gap: 16px; margin-top: 28px; }
  .gyt-loan { padding: 24px 20px; min-height: 0; }
  .gyt-loan-name { font-size: 32px; line-height: 1.15; max-width: calc(100% - 40px); }
  .gyt-loan-chev { top: 14px; right: 20px; }
  .gyt-panel-body { padding: 16px 16px 20px; }
  .gyt-nav { flex-direction: column-reverse; align-items: center; row-gap: 16px; }
  .gyt-btn, .gyt-btn-next { width: 100%; max-width: 360px; margin-inline: auto; height: 56px; }
}
@media (768px <= width < 1024px) {
  .gyt { padding: 80px 0; }
  .gyt-title-xl { font-size: 48px; line-height: 1.1; }
  .gyt-title { font-size: 38px; line-height: 1.15; }
  .gyt-kicker { margin-top: 32px; font-size: 24px; line-height: 1.25; }
  .gyt-sub { font-size: 18px; line-height: 1.5; }
  .gyt-q { margin-top: 48px; }
  .gyt-loans { row-gap: 24px; column-gap: 24px; }
  .gyt-loan-name { font-size: 40px; line-height: 1.15; max-width: calc(100% - 40px); }
  .gyt-btn { height: 56px; }
}

/* --- /insights/blog hero: centred, chips centred ------------------------ */
@media (width < 1024px) {
  .blog-hero { text-align: center; }
  .blog-hero-title { margin-inline: auto; margin-bottom: 16px; }
  .blog-hero-intro { margin-inline: auto; margin-bottom: 32px; max-width: 640px; }
  .blog-hero-chips { justify-content: center; }
  .blog-hero-chip { min-height: 48px; }
}
@media (width < 768px) {
  .blog-hero { padding: 48px 0 32px; }
}
@media (768px <= width < 1024px) {
  .blog-hero { padding: 64px 0 40px; }
  .blog-hero-intro { margin-bottom: 40px; }
}

/* --- /insights/blog featured card, latest grid -------------------------- */
@media (width < 1024px) {
  .blog-featured-eyebrow { text-align: center; }
  .blog-featured-link, .blog-latest-read, .blog-popular-guides-link,
  .blog-market-insights-link, .blog-case-studies-link {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .blog-popular-guides-link { align-self: flex-start; margin-right: 0; margin-top: 4px; }
  .blog-market-insights-link, .blog-case-studies-link { margin-top: 4px; }
  .blog-latest-more { min-height: 48px; padding-inline: 24px; }
  .blog-latest-meta { font-size: 13px; line-height: 1.3; }
  .blog-latest-excerpt, .blog-popular-guides-desc, .blog-market-insights-text,
  .blog-case-studies-card-text { line-height: 1.5; }
}
@media (width < 768px) {
  .blog-featured { padding: 0 0 56px; }
  .blog-featured-eyebrow { margin-bottom: 20px; }
  .blog-latest { padding: 56px 0; }
  .blog-latest-title, .blog-popular-guides-title, .blog-market-insights-title,
  .blog-case-studies-title { font-size: 28px; line-height: 1.2; margin-bottom: 28px; text-align: center; }
  .blog-featured-title, .blog-latest-card-title, .blog-popular-guides-card-title,
  .blog-market-insights-card-title, .blog-case-studies-card-title { font-size: 20px; line-height: 1.3; }
  .blog-popular-guides { padding: 56px 0 28px; }
  .blog-market-insights { padding: 28px 0; }
  .blog-case-studies { padding: 28px 0 56px; }
  .blog-latest-more-wrap { margin-top: 32px; }
  .blog-popular-guides-track, .blog-market-insights-track { column-gap: 16px; }
  .blog-case-studies-list { row-gap: 32px; }
}
@media (768px <= width < 1024px) {
  .blog-featured { padding: 0 0 80px; }
  .blog-featured-eyebrow { margin-bottom: 24px; }
  .blog-featured-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .blog-featured-media { height: 100%; min-height: 360px; }
  .blog-featured-panel { padding: 32px 32px 36px; }
  .blog-featured-title { font-size: 24px; line-height: 1.25; }
  .blog-latest { padding: 80px 0; }
  .blog-latest-grid { row-gap: 24px; column-gap: 24px; }
  .blog-latest-card-title, .blog-popular-guides-card-title,
  .blog-market-insights-card-title, .blog-case-studies-card-title { font-size: 22px; line-height: 1.25; }
  .blog-latest-title, .blog-popular-guides-title, .blog-market-insights-title,
  .blog-case-studies-title { font-size: 38px; line-height: 1.15; margin-bottom: 40px; text-align: center; }
  .blog-popular-guides { padding: 80px 0 40px; }
  .blog-market-insights { padding: 40px 0; }
  .blog-case-studies { padding: 40px 0 80px; }
  .blog-popular-guides-track, .blog-market-insights-track { column-gap: 24px; }
  .blog-market-insights-card { flex-basis: calc(50% - 12px); }
  .blog-case-studies-list { flex-direction: row; flex-wrap: wrap; row-gap: 40px; column-gap: 24px; }
  .blog-case-studies-card { flex: 0 0 calc(50% - 12px); min-width: 0; }
}

/* --- /insights/blog newsletter: centred --------------------------------- */
@media (width < 1024px) {
  .blog-newsletter-inner { align-items: center; text-align: center; }
  .blog-newsletter-copy { margin-inline: auto; }
  .blog-newsletter-form { width: 100%; max-width: 360px; }
  .blog-newsletter-input { font-size: 16px; }
  .blog-newsletter-submit { min-height: 56px; }
}
@media (width < 768px) {
  .blog-newsletter { padding: 56px 0; }
  .blog-newsletter-title { font-size: 28px; line-height: 1.2; }
}
@media (768px <= width < 1024px) {
  .blog-newsletter { padding: 80px 0; }
  .blog-newsletter-title { font-size: 38px; line-height: 1.15; }
  .blog-newsletter-form { max-width: 440px; }
}

/* --- Blog post template (all /posts/*): readable column, tap targets ----- */
@media (width < 1024px) {
  .post-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; }
  .post-title { line-height: 1.15; }
  .post-body h2 { line-height: 1.2; }
  .post-body li { margin-bottom: 10px; }
}
@media (width < 768px) {
  .post-hero { padding-top: 24px; padding-bottom: 24px; }
  .post-body { font-size: 16px; line-height: 1.6; }
  .post-body h2 { font-size: 26px; margin-top: 40px; }
  .post-layout { padding-top: 32px; padding-bottom: 56px; }
}
@media (768px <= width < 1024px) {
  .post-hero { padding-top: 40px; padding-bottom: 32px; }
  .post-media { height: 360px; }
  .post-body { font-size: 17px; line-height: 1.65; }
  .post-body h2 { font-size: 32px; margin-top: 48px; }
  .post-layout { padding-top: 40px; padding-bottom: 80px; }
}

/* --- /locations hero, local insight, map -------------------------------- */
@media (width < 1024px) {
  .locs-hero { text-align: center; }
  .locs-hero-title { line-height: 1.1; margin-inline: auto; }
  .locs-hero-sub { font-size: 18px; line-height: 1.45; margin-inline: auto; }
  .locs-hero-grid { align-items: center; }
  .locs-hero-btn { align-self: center; min-height: 48px; }
  .locs-insight-title, .locs-insight-intro { text-align: center; margin-inline: auto; }
  .locs-insight-list { width: fit-content; margin-inline: auto; padding-left: 0; }
  .locs-insight-item { font-size: 18px; line-height: 1.4; }
  .locs-insight-stat { text-align: center; }
  .locs-map-title { text-align: center; margin-inline: auto; }
  .locs-map-legend { justify-content: center; }
  /* why: live rule makes the map a sideways scroller with a cut-off edge; show it whole */
  .locs-map-figure { overflow-x: visible; margin-inline: 0; padding-inline: 0; }
  .locs-map-img { width: 100%; max-width: 100%; }
}
@media (width < 768px) {
  .locs-hero { padding: 48px 0 56px; }
  .locs-hero-title { font-size: 34px; }
  .locs-hero-btn { width: 100%; max-width: 360px; }
  .locs-insight { padding-block: 56px; }
  .locs-insight-value { font-size: 40px; line-height: 1.1; }
  .locs-map { padding-block: 56px; }
}
@media (768px <= width < 1024px) {
  .locs-hero { padding: 64px 0 80px; }
  .locs-hero-title { font-size: 48px; }
  .locs-hero-sub { font-size: 20px; }
  .locs-insight { padding-block: 80px; }
  .locs-insight-title { font-size: 38px; line-height: 1.15; }
  .locs-insight-intro { font-size: 20px; }
  .locs-insight-item { font-size: 20px; }
  .locs-insight-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .locs-insight-value { font-size: 40px; line-height: 1.1; }
  .locs-map { padding-block: 80px; }
}

/* --- /locations/miami (city page template) ------------------------------ */
@media (width < 1024px) {
  .loc-hero-body { text-align: center; }
  .loc-hero-body, .loc-hero-row, .loc-hero-actions { align-items: center; }
  .loc-hero-title, .loc-hero-sub { margin-inline: auto; }
  .loc-hero-row { flex-direction: column; row-gap: 24px; }
  .loc-hero-actions { justify-content: center; }
  .loc-intro-text { text-align: center; margin-inline: auto; }
  .loc-intro-inner { align-items: center; }
  .loc-intro-title { line-height: 1.15; }
  .loc-intro-list { margin-inline: auto; }
  .loc-why-item { text-align: center; justify-items: center; grid-template-columns: 1fr; row-gap: 12px; }
  .loc-why-name { align-self: start; }
  .loc-market-head { text-align: center; flex-direction: column; align-items: center; }
  .loc-market-card-title { text-align: center; }
  .loc-market-stat { text-align: center; align-items: center; }
  .loc-market-foot { align-items: center; text-align: center; }
  .loc-track { padding-inline: 0; }
  .loc-track-title { text-align: center; }
  .loc-track-stats { text-align: center; }
  .loc-resources-head { flex-direction: column; align-items: center; text-align: center; }
  .loc-resources-all, .loc-resources-link { display: inline-flex; align-items: center; min-height: 44px; }
  .loc-resources-card-title { line-height: 1.25; }
}
@media (width < 768px) {
  .loc-hero-body { padding-block: 56px; }
  .loc-hero-actions { width: 100%; flex-direction: column; row-gap: 16px; }
  .loc-hero-actions > * { width: 100%; max-width: 360px; margin-inline: auto; }
  .loc-intro, .loc-why { padding-block: 56px; }
  .loc-market { padding-top: 56px; }
  .loc-market-figure, .loc-track-value { font-size: 40px; line-height: 1.1; }
  .loc-track { padding-top: 28px; padding-bottom: 56px; }
  .loc-resources { padding: 56px 0; }
  .loc-resources-card-title { font-size: 24px; }
  .loc-resources-head { margin-bottom: 28px; }
}
@media (768px <= width < 1024px) {
  .loc-hero-body { padding-block: 80px; }
  .loc-hero-row { align-items: center; }
  .loc-intro, .loc-why { padding-block: 80px; }
  .loc-market { padding-top: 80px; }
  .loc-track { padding-top: 40px; padding-bottom: 80px; }
  .loc-resources { padding: 80px 0; }
  .loc-resources-head { margin-bottom: 40px; }
}

/* --- /locations/miami: hero legibility, tablet grids --------------------- */
@media (width < 1024px) {
  /* why: wash is a decorative overlay; centred text needs an even tint, not the desktop left-to-right fade */
  .loc-hero-wash { background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)); }
}
@media (768px <= width < 1024px) {
  .loc-market-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .loc-market-figure, .loc-track-value { font-size: 40px; line-height: 1.1; }
  .loc-resources-list { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}

/* --- /insights/recent-deals ---------------------------------------------- */
@media (width < 1024px) {
  .deals-hero { text-align: center; }
  .deals-hero-title { line-height: 1.1; }
  .deals-hero-intro { font-size: 18px; line-height: 1.45; margin-inline: auto; }
  .deals-stats-title, .deals-filters-head { text-align: center; }
  .deals-filters-head { margin-inline: auto; }
  .deals-filters-intro, .deals-filters-title { margin-inline: auto; }
  .deals-filters-search { margin-inline: auto; margin-top: 24px; }
  .deals-stats-item, .deals-stats-item:nth-child(2n+1) { text-align: center; padding-left: 0; border-left-width: 0; }
  .deals-stats-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .deals-stats-label { font-size: 16px; line-height: 1.3; }
  .deals-featured-eyebrow { text-align: center; }
  .deals-grid-title { text-align: center; }
  .deals-grid-more-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (width < 768px) {
  .deals-hero { padding: 56px 0; }
  .deals-hero-title { font-size: 34px; }
  .deals-stats-value { font-size: 32px; }
  .deals-filters, .deals-featured, .deals-grid { padding-block: 56px; }
  .deals-featured-btn { width: 100%; max-width: 360px; height: 56px; }
  .deals-featured-content { text-align: center; }
  .deals-featured-stats { text-align: center; justify-content: center; }
  .deals-grid-title { font-size: 28px; line-height: 1.2; }
}
@media (768px <= width < 1024px) {
  .deals-hero { padding: 80px 0; }
  .deals-hero-title { font-size: 48px; }
  .deals-hero-intro { font-size: 20px; }
  .deals-filters, .deals-featured, .deals-grid { padding-block: 80px; }
  .deals-stats-value { font-size: 48px; }
  .deals-filters-title { font-size: 38px; line-height: 1.15; }
  .deals-grid-title { font-size: 38px; line-height: 1.15; margin-bottom: 40px; }
  .deals-grid-list { column-gap: 24px; row-gap: 24px; }
  .deals-featured-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .deals-featured-title { font-size: 30px; }
}

/* --- /insights/faqs ------------------------------------------------------ */
@media (width < 1024px) {
  .fqh { text-align: center; }
  .fqh-title { line-height: 1.1; }
  .fqh-sub { margin-inline: auto; }
  .fqh-search { flex: 1 1 auto; text-align: left; }
  .fqh-input { font-size: 16px; }
  .fqh-help { margin-left: 0; text-align: center; }
  .fqc-chip { height: auto; min-height: 44px; }
  .fqs-in { padding-inline: var(--gutter); }
  .fqs-h { text-align: center; margin-inline: auto; }
  .fqs-card { height: auto; min-height: 154px; }
}
@media (width < 768px) {
  .fqh { padding: 56px 0; }
  .fqh-title { font-size: 34px; }
  .fqc-title { font-size: 28px; line-height: 1.2; }
  .fqc-group-title { font-size: 24px; line-height: 1.25; }
  .fqs { padding: 56px 0; }
  .fqs-h { font-size: 28px; line-height: 1.2; }
}
@media (768px <= width < 1024px) {
  .fqh { padding: 80px 0; }
  .fqh-title { font-size: 48px; }
  .fqc-title { font-size: 38px; line-height: 1.15; }
  .fqc-group-title { font-size: 28px; }
  .fqs { padding: 80px 0; }
  .fqs-h { font-size: 38px; line-height: 1.15; margin-bottom: 40px; }
  .fqs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
}

/* --- Legal pages (licensing, privacy, texting terms): left-aligned text, set measure */
@media (width < 1024px) {
  .legal-inner { max-width: calc(720px + 2 * var(--gutter)); }
  .legal-title { line-height: 1.15; }
  .legal-body h2 { line-height: 1.3; margin-top: 32px; }
  .legal-body p, .legal-body li { line-height: 1.6; }
}
@media (width < 768px) {
  .legal { padding: 48px 0 56px; }
  .legal-body { font-size: 16px; }
}
@media (768px <= width < 1024px) {
  .legal { padding: 64px 0 80px; }
  .legal-title { line-height: 1.1; }
  .legal-body { font-size: 17px; }
  .legal-body h2 { font-size: 24px; margin-top: 40px; }
}

/* --- Not-found page: centred --------------------------------------------- */
@media (width < 1024px) {
  .nf-inner { text-align: center; }
  .nf-title, .nf-copy { margin-inline: auto; }
  .nf-actions { justify-content: center; align-items: center; }
  .nf-links { justify-content: center; column-gap: 8px; row-gap: 0; }
  .nf-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
}
@media (width < 768px) {
  .nf { padding: 56px 0 64px; }
  .nf-actions { flex-direction: column; margin-bottom: 24px; }
  .nf-actions > * { width: 100%; max-width: 360px; min-height: 48px; justify-content: center; }
}
@media (768px <= width < 1024px) {
  .nf { padding: 80px 0 96px; }
}

/* === Fix round ============================================================ */

/* Blog carousels (popular guides, market insights): show a quarter of the next card, fade, visible arrow */
@media (width < 1024px) {
  .blog-popular-guides-carousel::after, .blog-market-insights-carousel::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 56px;
    pointer-events: none; z-index: 1;
    background: linear-gradient(to left, #fff 15%, rgba(255, 255, 255, 0));
  }
  .blog-popular-guides-next, .blog-market-insights-next {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 63px; right: 4px; z-index: 2;
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    background: #fff; color: var(--deep-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }
  .blog-popular-guides-next svg, .blog-market-insights-next svg { width: 24px; height: 24px; }
  .blog-latest-meta, .post-meta { font-size: 13px; line-height: 1.4; text-wrap: balance; }
}
@media (width < 768px) {
  .blog-popular-guides-card, .blog-market-insights-card { flex: 0 0 75%; }
}
@media (768px <= width < 1024px) {
  .blog-popular-guides-card, .blog-market-insights-card { flex: 0 0 40%; }
}

/* Recent deals: one card layout, featured block aligned */
@media (width < 1024px) {
  .deals-grid-tags { justify-content: flex-start; column-gap: 16px; }
  .deals-grid-type { min-width: 0; }
  .deals-featured-eyebrow, .deals-featured-content { text-align: left; }
  .deals-featured-stats { justify-content: flex-start; text-align: left; }
}
@media (width < 768px) {
  .deals-featured-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (768px <= width < 1024px) {
  .deals-featured-grid { align-items: start; column-gap: 40px; }
  .deals-featured-photo { align-self: start; }
  .deals-featured-title { margin-top: 0; }
  .deals-featured-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
}

/* Miami: heading gap, alignment, equal widths, stronger wash */
@media (width < 1024px) {
  .loc-loans h2 { line-height: 1.15; }
  .loc-loans h2 u { line-height: 1.15; }
  .loc-market-title, .loc-market-intro { text-align: center; margin-inline: auto; }
  .loc-market-card, .loc-track-card { width: 100%; max-width: none; box-sizing: border-box; margin-inline: 0; }
  .loc-hero-wash { background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)); }
}

/* Get your terms on tablet: centred column */
@media (768px <= width < 1024px) {
  .gyt-card { max-width: 640px; margin-inline: auto; }
  .gyt-title, .gyt-title-xl, .gyt-kicker, .gyt-sub, .gyt-q, .gyt-progress-label { text-align: center; }
  .gyt { padding: 64px 0 80px; }
  .gyt-nav { flex-direction: column-reverse; align-items: center; row-gap: 16px; }
  .gyt-btn, .gyt-btn-next { width: 100%; max-width: 100%; margin-inline: 0; }
}
@media (width < 1024px) {
  .loc-track .loc-track-card, .loc-market .loc-market-card { width: 100%; max-width: none; margin-inline: 0; }
}
@media (768px <= width < 1024px) {
  .deals-featured-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; }
  .deals-featured-stats { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 20px; }
}

/* ===== lane: lead ===== */
/* Lead: faults the lanes reported in classes owned by another lane. */

/* Kosher Financing FAQ: the heading's text is "FAO" and an image draws the tail of the Q, which the site hides under 1024px,
   so phones and tablets read "FAO". Show the right word at those widths. */
@media (width < 1024px) {
  /* why: the live rule sets this size with !important under 1024px */
  .kh-faq .kh-faq-big { font-size: 0 !important; line-height: 1 !important; }
  .kh-faq .kh-faq-big::after { content: "FAQ"; font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
}
@media (768px <= width < 1024px) {
  .kh-faq .kh-faq-big::after { font-size: 64px; }
}

/* Campaign and landing pages: the closing "Time for your next build. We're ready." block */
@media (width < 1024px) {
  .cf-story { row-gap: 24px; }
  .cf-story-title { text-align: center; font-size: 28px; line-height: 1.2; margin-bottom: 20px; }
}
@media (768px <= width < 1024px) {
  .cf-story { row-gap: 32px; }
  .cf-story-title { font-size: 38px; line-height: 1.15; margin-bottom: 24px; }
  .cf-photo { max-width: 640px; margin-left: auto; margin-right: auto; }
}

/* Miami: the intro heading was 56px on tablet (the system's section heading is 38) */
@media (width < 768px) {
  .loc-intro .loc-intro-title { font-size: 28px; line-height: 1.2; }
}
@media (768px <= width < 1024px) {
  .loc-intro .loc-intro-title { font-size: 38px; line-height: 1.15; }
}

/* Loyalty pages on phone: section labels, headings and the table intro centred, as on tablet and as the hero and closing band already are */
@media (width < 768px) {
  .loy-label, .loy-how-title, .loy-h2, .loy-compare-intro { text-align: center; }
}

/* Footer on phone and tablet (owner's request, 2026-11-20): the lists of pages are removed, and everything left is centred. */
@media (width < 1024px) {
  /* why: the owner asked for the page lists to be removed from the footer on phone and tablet; every link is in the menu */
  .site-footer .footer-grid > nav.footer-col:nth-child(n) { display: none; }
  .site-footer .footer-logo { width: fit-content; margin-left: auto; margin-right: auto; }
  .site-footer .footer-grid { display: block; margin-top: 32px; }
  .site-footer .footer-grid > .footer-col:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; max-width: 440px; margin-left: auto; margin-right: auto; text-align: center; }
  .site-footer .footer-grid > .footer-col:first-child > .footer-heading { grid-column: 1 / -1; text-align: center; }
  .site-footer .footer-address, .site-footer .footer-address:last-of-type { text-align: center; margin-bottom: 0; }
  .site-footer .footer-bottom-row { display: flex; flex-direction: column; align-items: center; justify-content: center; row-gap: 16px; margin-top: 36px; text-align: center; }
  .site-footer .footer-tagline { text-align: center; }
  .site-footer .social-list { justify-content: center; column-gap: 16px; }
  .site-footer .footer-legal { flex-direction: column; align-items: center; justify-content: center; text-align: center; row-gap: 8px; margin-top: 32px; padding-top: 24px; }
  .site-footer .footer-copy, .site-footer .footer-nmls { text-align: center; }
  .site-footer .legal-links { justify-content: center; }
  .site-footer { padding-bottom: 48px; }
}
