/* "Our Lenders" panel — standalone copy for pages that use the original page
   styles (e.g. the Calculators template) and therefore do NOT load
   home-redesign.css. The homepage keeps these exact rules inside
   home-redesign.css, so KEEP THE TWO IN SYNC when editing the lenders panel
   (the ".panel" / ".logo-grid" / ".logo-tile" blocks).

   The section is wrapped in a bare .blvd-redesign element on these pages so the
   scoped selectors below match; chrome.css does not define .blvd-redesign, so
   the minimal base (vars, font, box-sizing, .wrap) is re-declared here. */

.blvd-redesign {
  --maroon: #823d40;
  --ink-cream: #efe7db;
  --sand: #f3e9dc;
  --cream: #fff6e7;
  font-family: "Aeonik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.blvd-redesign .wrap {
  width: min(1400px, calc(100% - 40px));
  margin-inline: auto;
}

/* ===== section head ===== */
.blvd-redesign .eyebrow {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.14px;
  color: #803d40;
}

.blvd-redesign .section-head {
  /* The section head is a <header>; the old site CSS (style.css, loaded on
     these pages) makes every <header> position:sticky z-index:99999, which
     would float it over the real site header. Reset it. */
  position: static;
  z-index: auto;
  padding: 60px 0 28px;
}

.blvd-redesign .section-head h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--maroon);
}

/* ===== lenders panel ===== */
.panel {
  background: var(--cream);
  padding: 100px 0;
}

.panel .section-head {
  padding: 0 0 30px;
}

.blvd-redesign .panel .eyebrow {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: #803d40;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.logo-tile {
  height: 84px;
  border-radius: 8px;
  background: rgba(26, 26, 26, .03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 23px 24px;
  overflow: hidden;
}

.blvd-redesign .logo-tile img {
  display: block;
  max-width: 100%;
  height: auto;
}

.blvd-redesign .logo-img--cba {
  width: 131px;
}

.blvd-redesign .logo-img--nab {
  width: 64px;
}

.blvd-redesign .logo-img--westpac {
  width: 102.701px;
}

.blvd-redesign .logo-img--anz {
  width: 81px;
}

.blvd-redesign .logo-img--macq {
  width: 152px;
}

.blvd-redesign .logo-img--ing {
  width: 102.599px;
}

.blvd-redesign .logo-img--bendigo {
  width: 142px;
}

.blvd-redesign .logo-img--bom {
  width: 104px;
}

.blvd-redesign .logo-img--stgeorge {
  width: 117px;
}

.blvd-redesign .logo-img--suncorp {
  width: 126.222px;
}

.blvd-redesign .logo-img--pepper {
  width: 124px;
}

.logo-tile--more span {
  color: #823d40;
  font-size: 14px;
  font-weight: 500;
  line-height: 21.7px;
  letter-spacing: -0.14px;
}

.logo-grid__dots {
  display: none;
}

/* ===== tablet / mobile ===== */
@media screen and (max-width: 1024px) {
  .blvd-redesign .section-head {
    padding-top: 0;
  }

  .panel .wrap {
    overflow: visible;
  }

  .logo-grid {
    display: grid;
    grid-template-columns: repeat(6, clamp(135px, calc((100vw - 60px) / 2.3), 180px));
    grid-template-rows: repeat(3, auto);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: 0;
    margin-right: -24px;
    padding-left: 0;
    padding-right: 24px;
    padding-bottom: 6px;
  }

  .logo-grid::-webkit-scrollbar {
    display: none;
  }

  .logo-tile {
    height: 66px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(26, 26, 26, .03);
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .logo-grid__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
  }

  .logo-grid__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #ded6c9;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .logo-grid__dot.is-active {
    width: 24px;
    border-radius: 999px;
    background-color: #823d40;
  }

  .panel {
    overflow: hidden;
  }
}

@media screen and (max-width: 800px) {
  .blvd-redesign .section-head h2 {
    font-size: 28px;
  }
}
