/* ===== Residential page — scoped styles (loads after home-redesign.css) ===== */

/* Clip stray overflow (wordmark, carousels) so the phone viewport stays at the device width.
   overflow-x:clip does not create a scroll container, so position:sticky still works. */
body.blvd-redesign {
  overflow-x: clip;
}


.blvd-redesign {

  /* ---------- HERO ---------- */
  .rhero {
    position: relative;
    overflow: hidden;
    height: 800px;
    background: #1b1614;
  }

  .rhero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
  }

  .rhero__bg img {
    position: absolute;
    left: -6.28%;
    top: -51.63%;
    width: 150.55%;
    height: 153.28%;
    max-width: none;
  }

  /* the desktop crop above is tuned to the residential photo */
  .rhero--commercial .rhero__bg img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  /* business-loans hero photo: subject sits lower-centre, so anchor lower */
  .rhero--business .rhero__bg img {
    object-position: center 45%;
  }

  /* per-page commercial hero photos, anchored to each subject */
  .rhero--comm-property .rhero__bg img {
    object-position: center 54%;
  }

  .rhero--equip .rhero__bg img {
    object-position: center 50%;
  }

  .rhero--develop .rhero__bg img {
    object-position: center 38%;
  }

  .rhero--smsf .rhero__bg img {
    object-position: center 42%;
  }

  /* residential posts that use a cover crop like the commercial heroes */
  .rhero--green .rhero__bg img,
  .rhero--debt .rhero__bg img,
  .rhero--invest .rhero__bg img,
  .rhero--refi .rhero__bg img,
  .rhero--nexthome .rhero__bg img,
  .rhero--construct .rhero__bg img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .rhero--green .rhero__bg img {
    object-position: center 45%;
  }

  .rhero--debt .rhero__bg img {
    object-position: center 30%;
  }

  .rhero--invest .rhero__bg img {
    object-position: center 45%;
  }

  .rhero--refi .rhero__bg img {
    object-position: center 45%;
  }

  .rhero--nexthome .rhero__bg img {
    object-position: center 50%;
  }

  .rhero--construct .rhero__bg img {
    object-position: center 42%;
  }

  .rhero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(114, 82, 63, .42), rgba(114, 82, 63, .42)),
      linear-gradient(90deg, rgba(27, 22, 20, .5), rgba(27, 22, 20, .5));
  }

  /* wordmark now lives in .feat so it can bleed from the hero into the cards band (see .feat__wordmark) */

  .rhero__inner {
    position: absolute;
    z-index: 4;
    left: max(24px, calc(50% - 610px));
    top: calc(50% - 81.5px);
    transform: translateY(-50%);
    width: min(764px, calc(100% - 48px));
    margin: 0;
    padding: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .rhero__copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100% - 40px);
    max-width: 764px;
    padding-bottom: 50px;
  }

  .rhero__title {
    margin: 0;
    max-width: none;
    width: 100%;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #fff;
    text-wrap: balance;
  }

  .rhero--one-line .rhero__title {
    width: max-content;
    white-space: nowrap;
  }

  .rhero__lead,
  .rhero__copy p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #fff;
    max-width: 760px;
  }

  .rhero__copy p:not(.rhero__lead) {
    padding-top: 16px;
  }

  .rhero__copy p strong {
    font-weight: 700;
  }

  .rhero__copy-desktop {
    display: block;
  }

  .rhero__copy-mobile {
    display: none;
  }

  .rhero__cta {
    align-self: flex-start;
    margin-top: 12px;
  }

  /* arrow underline matches the width of the CTA label above it, so a short
     label ("Lets Talk") gets a short arrow and a longer one a longer arrow */
  .rhero__cta .text-link-arrow {
    width: 100%;
  }

  /* hover: the whole arrow (line + arrowhead) extends forward together */
  .rhero__cta:hover .text-link-arrow {
    width: calc(100% + 14px);
  }

  @media (prefers-reduced-motion: reduce) {
    .rhero__cta:hover .text-link-arrow {
      width: 100%;
    }
  }

  .rhero__stats-row {
    display: contents;
  }

  /* hero stats (white, inline — not a band) */
  .rhero__stats {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    flex-wrap: nowrap;
  }

  .rhero__stats .stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
  }

  .rhero__stats .stat b {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
  }

  .rhero__stats .stat .stat__pct {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
  }

  .rhero__stats .stat>span {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: #fff;
  }

  .rhero__stats .stat--reviews {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
  }

  .rhero__stats .g-mark {
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: relative;
    flex: none;
  }

  .rhero__stats .g-mark img {
    position: static;
    left: auto;
    top: auto;
    width: 50px;
    height: 50px;
    max-width: none;
    display: block;
    object-fit: cover;
  }

  .rhero__stats .stat__reviews {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .rhero__stats .stars {
    display: inline-flex;
    align-items: flex-start;
    gap: 5.47px;
    height: 23px;
    margin: 4px 0 0;
  }

  .rhero__stats .stars img {
    width: 24px;
    height: 21px;
    max-width: none;
    display: block;
  }

  .rhero__stats .stat__label {
    margin: 0;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #fff;
  }

  /* ---------- FEATURE CARDS ---------- */
  .feat {
    position: relative;
    z-index: 3;
    /* above hero photo/overlay (z1/z2) but below hero copy/stats (z4),
                                 so the bleeding wordmark covers the photo yet sits under the stats */
    background: #fff6e7;
    padding: 150px 0 90px;
    height: 826px;
    /* top padding clears the wordmark that bleeds into this band */
  }

  /* exact Figma wordmark ("ulevard" tail of boulevard): bleeds up out of the hero over the
   photo and down into this cream band, with the cards over its lower half + l-descender */
  .feat__wordmark {
    position: absolute;
    left: -9.3%;
    /* Figma: element left edge x=-179 on the 1920 hero */
    width: 106%;
    /* Figma: element width 2050 on the 1920 hero */
    top: 0;
    transform: translateY(-59%);
    /* keeps the letters bleeding into the band while the l/d strokes run up to the header line */
    height: auto;
    max-width: none;
    /* beat .blvd-redesign img{max-width:100%} on specificity */
    z-index: 0;
    pointer-events: none;
  }

  .feat__grid {
    position: relative;
    z-index: 1;
    /* cards paint over the wordmark */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 175px 100px 100px 75px;
  }

  .feat-card {
    display: flex;
    flex-direction: column;
    gap: 50px;
    background: #fffbf4;
    border-radius: 8px;
    padding: 30px 30px 44px;
    box-shadow: 11px 29px 73px rgba(42, 43, 47, .05), 0 11px 11px rgba(0, 0, 0, .02), 0 2px 3px rgba(0, 0, 0, .02);
    width: 309px;
    height: 435px;
    transition: transform .35s ease, box-shadow .35s ease;
  }

  .feat-card__ico img {
    transition: transform .35s ease;
  }

  .feat-card:hover {
    transform: translateY(-8px);
    box-shadow: 11px 40px 90px rgba(42, 43, 47, .1), 0 20px 40px rgba(0, 0, 0, .06), 0 2px 3px rgba(0, 0, 0, .03);
  }

  .feat-card:hover .feat-card__ico img {
    transform: translateY(-4px) scale(1.06);
  }

  @media (prefers-reduced-motion: reduce) {

    .feat-card,
    .feat-card__ico img {
      transition: none;
    }

    .feat-card:hover {
      transform: none;
    }

    .feat-card:hover .feat-card__ico img {
      transform: none;
    }
  }

  .feat-card__ico img {
    display: block;
    /* width: 60px; */
    height: 91px;
    object-fit: contain;
  }

  .feat-card h3 {
    margin: 0;
    font-size: 21.94px;
    font-weight: 800;
    letter-spacing: -.35px;
    color: #823d40;
  }

  .feat-card p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6f6461;
  }

  /* ---------- TOOLKIT (Purchasing your first home) ---------- */
  .toolkit {
    background: #823d40;
    padding: 120px 0;
  }

  .toolkit__inner {
    /* The eyebrow + title sit full-width on top; the copy + booklet form the
       row below (.toolkit__body), so the booklet drops down and the title gets
       the full width to stay on one line. */
    display: block;
  }

  .toolkit__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-right: 3vw;
    /* reduced from the toolkit's old 9vw so the booklet doesn't crowd the row */
  }

  .toolkit__copy {
    flex: 1 1 auto;
    max-width: 560px;
  }

  .toolkit__eyebrow {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.14px;
    color: #fff;
  }

  .toolkit__title {
    /* Full width above the booklet row. The title is split into two lines at its
       first clause boundary in template-parts/loan-page.php (a hard <br>), so each
       line stays intact at this width; the <=800px rule sets 32px for phones. */
    margin: 0 0 40px;
    max-width: none;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
  }

  .toolkit__lead {
    margin: 16px 0 0;
    max-width: 504px;
    font-size: 17px;
    line-height: 1.4;
    color: #fafafa;
  }

  .toolkit__sub {
    margin: 20px 0 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: #fff6e7;
  }

  .toolkit__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .toolkit__list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }

  .toolkit__list img {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
  }

  .toolkit__list span {
    font-size: 16px;
    line-height: 1.25;
    color: #fff6e7;
  }

  .toolkit__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    margin-top: 30px;
  }

  .toolkit__fields {
    display: grid;
    grid-template-columns: repeat(2, 240px);
    gap: 14px 12px;
  }

  .toolkit__form input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    color: #823d40;
    background: #fff;
    box-shadow: 0 2px 4px rgba(18, 25, 97, .1);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  .toolkit__form input:hover,
  .toolkit__form input:focus {
    border-color: #502c2f;
    box-shadow: 0 0 0 3px #efe7db;
  }

  .toolkit__form input::placeholder {
    color: #823d40;
    opacity: 1;
  }

  .toolkit__form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 190px;
    height: 42px;
    padding: 0 14px;
    cursor: pointer;
    border: 1px solid #e2d7c6;
    border-radius: 99px;
    background: rgba(226, 215, 198, .12);
    color: #fff7f1;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .2s ease;
  }

  .toolkit__form button:hover,
  .toolkit__form button:active {
    background: rgba(226, 215, 198, .28);
  }

  .toolkit__form button img {
    display: block;
    width: 14px;
    height: 14px;
  }

  /* ===== Toolkit form rendered as Gravity Form 4 — matched to the toolkit design ===== */
  .toolkit__form--gf {
    margin-top: 30px;
    width: 100%;
    max-width: 492px;
    /* 2 × 240 + 12 gap */
  }

  .toolkit .gform_wrapper {
    margin: 0;
  }

  .toolkit .gform_wrapper .gfield--type-honeypot,
  .toolkit .gform_wrapper .gform_validation_container,
  .toolkit .gform_wrapper .gfield_visibility_hidden {
    display: none !important;
  }

  /* two-column field grid: First+Last, Email+Phone, then full-width select */
  .toolkit .gform_wrapper .gform_fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 14px 12px;
  }

  .toolkit .gform_wrapper .gfield {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
  }

  .toolkit .gform_wrapper .gfield--type-email,
  .toolkit .gform_wrapper .gfield--type-phone {
    grid-column: span 1;
  }

  /* placeholder-only: hide labels/sub-labels visually, keep them for screen readers */
  .toolkit .gform_wrapper .gfield_label,
  .toolkit .gform_wrapper .ginput_complex label,
  .toolkit .gform_wrapper .gform_required_legend {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  /* name: First | Last side by side */
  .toolkit .gform_wrapper .ginput_complex.ginput_container_name {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
  }

  .toolkit .gform_wrapper .ginput_complex.ginput_container_name>span {
    margin: 0;
    padding: 0;
  }

  /* inputs + select — white rounded pills (match .toolkit__form input) */
  .toolkit .gform_wrapper input[type="text"],
  .toolkit .gform_wrapper input[type="email"],
  .toolkit .gform_wrapper input[type="tel"],
  .toolkit .gform_wrapper select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    color: #823d40;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(18, 25, 97, .1);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  /* Safari top-aligns an appearance:none select unless the padding + line-height fill the 42px box */
  .toolkit .gform_wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-block: 10px;
    padding-right: 40px;
    line-height: 18px;
    background-image: url(assets/chevron-maroon.svg);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
  }

  .toolkit .gform_wrapper input:hover,
  .toolkit .gform_wrapper input:focus,
  .toolkit .gform_wrapper select:hover,
  .toolkit .gform_wrapper select:focus {
    border-color: #502c2f;
    box-shadow: 0 0 0 3px #efe7db;
  }

  .toolkit .gform_wrapper input::placeholder {
    color: #823d40;
    opacity: 1;
  }

  /* validation + confirmation messages legible on the maroon band */
  .toolkit .gform_wrapper .gfield_description.validation_message,
  .toolkit .gform_wrapper .gform_validation_errors,
  .toolkit .gform_wrapper .validation_message {
    color: #ffd2c2;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  /* top-of-form summary (shown when something is left blank) */
  .toolkit .gform_wrapper .gform_validation_errors {
    margin: 0 0 16px;
    font-size: 14px;
  }

  /* invalid fields — clear red outline so a blank submit is obvious */
  .toolkit .gform_wrapper .gfield_error input,
  .toolkit .gform_wrapper .gfield_error select {
    border-color: #e5322b;
    box-shadow: 0 0 0 3px rgba(229, 50, 43, .16);
  }

  .toolkit .gform_wrapper .gfield_error input:hover,
  .toolkit .gform_wrapper .gfield_error input:focus,
  .toolkit .gform_wrapper .gfield_error select:hover,
  .toolkit .gform_wrapper .gfield_error select:focus {
    border-color: #e5322b;
    box-shadow: 0 0 0 3px rgba(229, 50, 43, .26);
  }

  .toolkit .gform_confirmation_message {
    color: #fff7f1;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
  }

  /* button — pill with trailing arrow (match .toolkit__form button) */
  .toolkit .gform_wrapper .gform_footer {
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
  }

  .toolkit .gform_wrapper .gform_button {
    display: inline-block;
    box-sizing: border-box;
    width: auto !important;
    flex: 0 0 auto;
    min-width: 190px;
    height: 42px;
    padding: 0 44px 0 20px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e2d7c6;
    border-radius: 99px;
    background-color: rgba(226, 215, 198, .12);
    background-image: url(assets/arrow-cream.svg);
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    color: #fff7f1;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .2s ease;
  }

  .toolkit .gform_wrapper .gform_button:hover,
  .toolkit .gform_wrapper .gform_button:active {
    background-color: rgba(226, 215, 198, .28);
  }

  /* booklet cover */
  .booklet {
    position: relative;
    flex: 0 0 312px;
    width: 312px;
    height: 440px;
    background: #efe7db;
    border-radius: 3px;
    padding: 37px;
    overflow: hidden;
    box-shadow: 0 23px 47px -26px rgba(45, 18, 20, .45), 0 0 0 1px rgba(130, 61, 64, .1);
  }

  .booklet__logo {
    display: block;
    width: 124px;
    height: auto;
  }

  .booklet__title {
    position: absolute;
    left: 34px;
    top: 202px;
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.31px;
    color: #823d40;
  }

  .booklet__desc {
    position: absolute;
    left: 34px;
    top: 246px;
    width: 233px;
    margin: 0;
    font-size: 9.7px;
    line-height: 1.55;
    color: #823d40;
    opacity: .8;
  }

  .booklet__wordmark {
    position: absolute;
    left: -9.05%;
    bottom: -6.75%;
    width: 106.16%;
    height: auto;
  }

  .booklet__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- BORROWING CALCULATOR ---------- */
  .calc {
    background: #502c2f;
    padding: 120px 0;
  }

  .calc__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
  }

  .calc__copy {
    flex: 0 1 627px;
    padding-top: 20px;
    color: #fff6e7;
  }

  .calc__title {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.09px;
    color: #fff6e7;
  }

  .calc__lead {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff6e7;
  }

  .calc__text {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.25;
    color: #fff6e7;
  }

  .calc__text--narrow {
    max-width: 473px;
    margin-top: 11px;
  }

  .calc__sub {
    margin: 50px 0 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: #fff6e7;
  }

  .calc__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .calc__list li {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .calc__list img {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .calc__list span {
    font-size: 16px;
    color: #fff6e7;
  }

  /* calculator card */
  .calc__card {
    flex: 0 0 653px;
    max-width: 653px;
    box-sizing: border-box;
    background: #fff6e7;
    border-radius: 10px;
    padding: 30px;
  }

  /* Quickli widget (home-redesign/quickli.css) brings its own padding and background, set in Quickli to #efe7db. */
  .calc__card.calc__card--quickli {
    background: #efe7db;
    padding: 0;
    overflow: hidden;
  }

  .calc__steps {
    display: flex;
    gap: 8px;
  }

  .calc__steps span {
    flex: 1 1 0;
    height: 6px;
    border-radius: 3px;
    background: #c4b8a8;
  }

  .calc__steps span.is-active {
    background: #823d40;
  }

  .calc__stepno {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #823d40;
  }

  .calc__cardtitle {
    margin: 20px 0 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #1b1614;
  }

  .calc__field {
    margin-top: 18px;
  }

  .calc__field+.calc__field {
    margin-top: 20px;
  }

  .calc__field>label,
  .calc__field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #823d40;
  }

  .calc__row {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .calc__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 50px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #823d40;
    font-size: 15px;
    box-shadow: 0 2px 2.5px rgba(18, 25, 97, .2);
  }

  .calc__select {
    flex: 0 0 auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    padding: 0 36px 0 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff url("assets/chevron-maroon.svg") right 14px center / 14px 14px no-repeat;
    color: #823d40;
    font-size: 15px;
    box-shadow: 0 2px 2.5px rgba(18, 25, 97, .2);
    appearance: none;
    cursor: pointer;
  }

  .calc__input,
  .calc__select {
    outline: none;
    transition: border-color .2s ease;
  }

  .calc__input:hover,
  .calc__input:focus,
  .calc__select:hover,
  .calc__select:focus {
    border-color: #823d40;
  }

  .calc__row .calc__select:nth-child(2) {
    width: 130px;
  }

  .calc__row .calc__select:nth-child(3) {
    width: 140px;
  }

  .calc__select img {
    display: block;
    width: 14px;
    height: 14px;
  }

  .calc__deps {
    display: flex;
    gap: 8px;
  }

  .calc__deps button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    border: 1px solid rgba(92, 31, 46, .08);
    color: #5c1f2e;
    padding: 0;
    cursor: pointer;
    transition: border-color .2s ease;
  }

  .calc__deps button:hover {
    border-color: #823d40;
  }

  .calc__deps button.is-active {
    background: #5c1f2e;
    border-color: #5c1f2e;
    color: #fff;
  }

  .calc__partner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 15px;
    color: #2c1010;
    cursor: pointer;
  }

  .calc__partner-input {
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .calc__check {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 2px solid #823d40;
    border-radius: 4px;
    background: #f5efe6;
    box-sizing: border-box;
  }

  .calc__partner-input:checked+.calc__check {
    background: #823d40;
  }

  .calc__partner-input:checked+.calc__check::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    margin: 2px auto 0;
    border: solid #fff6e7;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .calc__partner-input:focus-visible+.calc__check {
    outline: 2px solid #823d40;
    outline-offset: 2px;
  }

  .calc__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 20px;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: #823d40;
    color: #fff6e7;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: background-color .2s ease;
  }

  .calc__continue:hover,
  .calc__continue:active {
    background: #502c2f;
  }

  .calc__continue img {
    display: block;
    width: 16px;
    height: 12px;
  }

  .calc__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .calc__back {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: #823d40;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }

  .calc__actions .calc__continue {
    margin-top: 0;
  }

  .calc__continue[hidden],
  .calc__back[hidden],
  [data-calc-step][hidden],
  [data-calc-partner][hidden] {
    display: none;
  }

  .calc__result {
    margin: 28px 0 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #823d40;
  }

  .calc__result-note {
    margin: 16px 0 0;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.4;
    color: #2c1010;
  }

  /* ---------- LENDERS + SUBURBS ---------- */
  .lenders {
    background: #fff6e7;
    padding: 94px 0;
  }

  .lenders__inner {
    display: flex;
    flex-direction: column;
    gap: 80px;
  }

  .lenders__block {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .lenders__head {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -.5px;
    color: #1b1614;
  }

  .lenders__head strong {
    font-size: 30px;
    font-weight: 800;
    color: #823d40;
  }

  .lenders__intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .lenders__subhead {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #823d40;
  }

  .suburbs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .suburbs::-webkit-scrollbar {
    display: none;
  }

  .suburb {
    position: relative;
    flex: 0 0 max(240px, calc((100% - 64px) / 5));
    scroll-snap-align: start;
    min-width: 0;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
  }

  .suburb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--img) center/cover no-repeat;
    transition: transform .5s ease;
  }

  .suburb:hover::before,
  .suburb:focus-visible::before {
    transform: scale(1.06);
  }

  @media (prefers-reduced-motion: reduce) {
    .suburb::before {
      transition: none;
    }
  }

  .suburb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
  }

  .suburb span {
    position: relative;
    z-index: 1;
    padding: 0 0 20px 24px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.23px;
    color: #fff;
  }

  /* ---- suburbs carousel (arrows) ---- */
  .suburbs-carousel {
    position: relative;
  }

  .suburbs-nav {
    position: absolute;
    top: 100px;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #823d40;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(42, 43, 47, .22);
    transition: opacity .2s ease, background .2s ease, transform .2s ease;
  }

  .suburbs-nav svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .suburbs-nav--prev {
    left: -14px;
  }

  .suburbs-nav--next {
    right: -14px;
  }

  .suburbs-nav:hover {
    background: #6f3336;
  }

  .suburbs-nav[disabled] {
    opacity: 0;
    pointer-events: none;
  }

  /* ---------- TEAM / BROKERS ---------- */
  .team {
    background: #823d40;
    padding: 20px 0 80px;
  }

  .team__head {
    padding: 60px 0 40px;
  }

  .team__eyebrow {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.14px;
    color: #f3e9dc;
  }

  .team__title {
    margin: 0;
    max-width: 665px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #efe7db;
  }

  .team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .broker__photo {
    height: 559px;
    border-radius: 8px;
    overflow: hidden;
  }

  .broker__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
  }

  .broker__name {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: #efe7db;
  }

  .broker__role {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #efe7db;
  }

  .broker__bio {
    margin: 30px 0 0;
    max-width: 400px;
    font-size: 16px;
    line-height: 1.3;
    color: #efe7db;
  }

  .broker__more {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 29px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
  }

  .broker__more-arrow {
    position: relative;
    display: block;
    width: 86px;
    height: 2px;
    background: #efe7db;
    transition: width 0.3s ease;
  }

  .broker__more-arrow::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5.8px solid transparent;
    border-bottom: 5.8px solid transparent;
    border-left: 10px solid #efe7db;
  }

  .broker__more:hover .broker__more-arrow {
    width: 101px;
  }

  /* ---------- BREADCRUMB ---------- */
  /* Header keeps the shared sticky styling (position:sticky; top:0; z-index:20). The bar stays
   transparent so the wordmark's d (the only stroke this high, on the right) meets the header.
   The text stays above the wordmark so it is not covered. */
  .crumb {
    position: relative;
    z-index: 19;
    background: transparent;
  }

  .crumb__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
  }

  .crumb a {
    color: #6f6461;
    text-decoration: none;
  }

  .crumb a:hover {
    text-decoration: underline;
  }

  .crumb__sep {
    color: #9b8f86;
  }

  .crumb__current {
    color: #823d40;
    font-weight: 700;
  }

  /* ===================== TABLET (<= 1320px) ===================== */
  /* Four 309px feature cards only fit once the viewport is wider than ~1320px.
   Below that, and for the two-column bands, stack or wrap so nothing is clipped. */
  @media (max-width: 1320px) {
    .rhero {
      height: auto;
    }

    .rhero__bg img {
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 35%;
    }

    .rhero__inner {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      width: min(764px, calc(100% - 48px));
      margin-inline: auto;
      padding: 88px 0 56px;
    }

    .rhero__title {
      font-size: 40px;
    }

    /* longest one-line title is ~19.5em wide, so 4.6vw keeps it on one line down to 801px */
    .rhero--one-line .rhero__title {
      font-size: min(40px, 4.6vw);
    }

    .feat {
      height: auto;
      padding: 88px 0 72px;
    }

    .feat__grid {
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      padding: 56px 0 0;
    }

    .feat-card {
      width: auto;
      height: auto;
    }

    .toolkit__body,
    .calc__inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 40px;
    }

    .toolkit__copy,
    .toolkit__title,
    .toolkit__lead,
    .calc__copy,
    .calc__text--narrow {
      max-width: 100%;
    }

    .calc__copy {
      flex: 0 1 auto;
      width: 100%;
      padding-top: 0;
    }

    .calc__card {
      flex: 0 1 auto;
      width: 100%;
      max-width: 720px;
    }

    .booklet {
      flex-basis: auto;
      align-self: center;
    }

    .team__grid {
      grid-template-columns: 1fr 1fr;
    }

    /* suburbs is a horizontal carousel — tile width comes from the base rule */
  }

  /* ===================== PHONE (<= 800px) ===================== */
  @media (max-width: 800px) {
    .rhero {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: auto;
      min-height: 680px;
    }

    /* portrait hero crops to the horizontal centre; anchor left so the subject stays in frame */
    .rhero--smsf .rhero__bg img {
      object-position: 30% 42%;
    }

    .rhero--construct .rhero__bg img {
      object-position: 20% 42%;
    }

    .rhero::after {
      content: "";
      position: absolute;
      top: 0;
      right: 8px;
      width: calc(100% * 0.0428);
      bottom: 0;
      background: #823d40;
      z-index: 3;
      pointer-events: none;
    }

    /* The "d" stem continues up through the (transparent) breadcrumb band to meet the
       maroon header, so it joins the header with no gap — matching the desktop wordmark.
       Same right offset + width as the hero stem above, so the two line up exactly. */
    .crumb::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      right: 8px;
      width: calc(100% * 0.0428);
      background: #823d40;
      pointer-events: none;
    }

    /* fills the hero so the stats sit just above the wordmark's "l" stem: stem top ≈ 18% of the width above the hero edge,
       plus a 24px gap, minus the 50px section padding forced by home-redesign.css */
    .rhero__inner {
      flex: 1 0 auto;
      align-items: flex-start;
      width: calc(100% - 48px);
      max-width: 480px;
      margin-inline: 0;
      margin-left: 15px;
      padding: 36px 0 calc(18% - 26px);
      text-align: left;
    }

    .rhero__copy {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      width: calc(100% - 40px);
      padding-bottom: 0;
      gap: 0;
    }

    .rhero__title {
      font-size: 32px;
      line-height: 1.15;
      font-weight: 700;
      letter-spacing: -1px;
      color: #fff;
      text-align: left;
      margin: 0;
    }

    .rhero--one-line .rhero__title {
      width: 100%;
      font-size: 32px;
      white-space: normal;
    }

    .rhero__copy-desktop {
      display: none;
    }

    .rhero__copy-mobile {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      margin-top: 14px;
    }

    .rhero__copy-mobile .rhero__lead {
      font-size: 15px;
      line-height: 1.45;
      color: #fff;
      font-weight: 400;
      text-align: left;
      margin: 0;
      max-width: 320px;
    }

    .rhero__copy-mobile .text-link,
    .rhero__cta {
      margin-top: 4px;
    }

    .rhero__stats {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      gap: 16px;
      margin: auto 0 0;
      padding-top: 28px;
    }

    .rhero__stats .stat--reviews {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 10px;
      width: 100%;
      justify-content: flex-start;
      padding: 0;
    }

    .rhero__stats .g-mark {
      width: 36px;
      height: 36px;
      flex: 0 0 36px;
    }

    .rhero__stats .g-mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .rhero__stats .stat__reviews {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
    }

    .rhero__stats .stars {
      display: flex;
      align-items: center;
      gap: 4px;
      height: auto;
      margin: 0;
    }

    .rhero__stats .stars img {
      width: 15px;
      height: 14px;
    }

    .rhero__stats .stat__label {
      font-size: 12px;
      font-weight: 500;
      line-height: 1.2;
      color: #fff;
      padding: 0;
      margin: 0;
    }

    .rhero__stats-row {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      /* justify-content: space-between; */
      width: 100%;
      gap: 15px;
    }

    .rhero__stats .stat:not(.stat--reviews) {
      /* flex: 1 1 0; */
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
    }

    .rhero__stats .stat b {
      font-size: 28px;
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.5px;
      color: #fff;
    }

    .rhero__stats .stat>span {
      font-size: 11px;
      line-height: 14px;
      color: #fff;
      opacity: 0.9;
      margin-top: 4px;
    }

    /* ---------- FEATURE CARDS & WORDMARK (mobile) ---------- */
    .feat {
      --wm-left: -28px;
      --wm-width: 105%;
      position: relative;
      background: #fff6e7;
      height: auto;
      padding: 96px 0 60px;
      overflow: visible;
    }

    .feat::before {
      content: "";
      position: absolute;
      top: 0;
      left: calc(var(--wm-left) + var(--wm-width) * 0.1725);
      width: calc(var(--wm-width) * 0.0428);
      bottom: 0;
      background: #823d40;
      z-index: 0;
      pointer-events: none;
    }

    .feat__wordmark {
      display: block;
      position: absolute;
      left: var(--wm-left);
      top: 0;
      width: var(--wm-width);
      transform: translateY(-59%);
      height: auto;
      max-width: none;
      z-index: 1;
      pointer-events: none;
    }

    .feat .wrap,
    .feat__grid {
      display: flex;
      flex-direction: column;
      gap: 16px;
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 35px 20px 0 calc(var(--wm-left) + var(--wm-width) * (0.1725 + 0.0428) + 16px);
      position: relative;
      z-index: 2;
      box-sizing: border-box;
    }

    .feat-card {
      display: flex;
      flex-direction: column;
      gap: 16px;
      background: #fff;
      border-radius: 16px;
      padding: 24px 20px 24px;
      box-shadow: 0 10px 28px rgba(42, 43, 47, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
      width: 100%;
      height: auto;
      box-sizing: border-box;
    }

    .feat-card__ico {
      display: block;
    }

    .feat-card__ico img {
      display: block;
      height: 52px;
      width: auto;
      max-width: 60px;
      object-fit: contain;
    }

    .feat-card__body {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .feat-card h3 {
      margin: 0;
      font-size: 19px;
      font-weight: 800;
      line-height: 1.25;
      letter-spacing: -0.3px;
      color: #823d40;
    }

    .feat-card p {
      margin: 0;
      font-size: 13.5px;
      line-height: 1.5;
      color: #6f6461;
    }

    .toolkit,
    .calc,
    .lenders {
      padding: 64px 0;
    }

    .toolkit__title,
    .calc__title,
    .team__title {
      font-size: 32px;
    }

    .toolkit__form {
      align-items: stretch;
    }

    .toolkit__fields {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolkit__form button {
      width: 100%;
      justify-content: center;
    }

    .booklet {
      flex: 0 0 auto;
      width: min(320px, 100%);
      max-width: 320px;
      height: auto;
      min-height: 420px;
    }

    .calc__card {
      max-width: none;
      padding: 22px;
    }

    .calc__row {
      flex-wrap: wrap;
    }

    .calc__input {
      flex: 1 1 100%;
    }

    .calc__row .calc__select,
    .calc__row .calc__select:nth-child(2),
    .calc__row .calc__select:nth-child(3) {
      flex: 1 1 calc(50% - 6px);
      width: auto;
      min-width: 0;
    }

    .calc__deps {
      flex-wrap: wrap;
    }

    .calc__result {
      font-size: 40px;
    }

    .lenders__inner {
      gap: 48px;
    }

    .lenders__head {
      font-size: 18px;
    }

    .lenders__head strong,
    .lenders__subhead {
      font-size: 26px;
    }

    .suburb {
      flex: 0 0 78%;
      min-width: 0;
      height: 148px;
    }

    .suburb span {
      font-size: 18px;
      padding: 0 12px 14px;
    }

    .team {
      padding: 0 0 48px;
    }

    .team__head {
      padding: 40px 0 28px;
    }

    .team__grid {
      gap: 36px;
    }

    .broker__photo {
      height: 420px;
    }
  }

  @media (max-width: 600px) {

    .team__grid {
      grid-template-columns: 1fr;
    }

    /* Breadcrumb: on phones the full trail no longer fits one line. Let it wrap
       BETWEEN crumbs, and keep each crumb on a single line, so the words stop
       stacking mid-phrase (e.g. "Residential / Loans"). */
    .crumb__inner {
      flex-wrap: wrap;
    }

    .crumb a,
    .crumb__current {
      white-space: nowrap;
    }

    /* Always drop the current page onto its own second line, so every loan page's
       breadcrumb reads the same (trail on line 1, current page on line 2) — a short
       name like "SMSF Loans Melbourne" no longer sits on one line while a long one
       like "Property Development Finance Melbourne" wraps. */
    .crumb__current {
      flex-basis: 100%;
    }
  }
}