/* Our Impact page styles
   ================================================== */

/* The OneEthos chart paints #ffffff and that color cannot be changed
   from this page. Match the mission band to the chart. */
.cfb-impact-page .cfb-impact-mission {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: #ffffff;
}

.cfb-impact-page .cfb-impact-mission .new-universal-content-div {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Charts use the page width. The 60px / 20px inset matches the live
   Our Impact content padding without also locking them to the text column. */
.cfb-impact-page .cfb-impact-embed {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 60px;
  padding-right: 60px;
}

@media (max-width: 479px) {
  .cfb-impact-page .cfb-impact-embed {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.cfb-impact-page .cfb-impact-embed::before,
.cfb-impact-page .cfb-impact-embed::after {
  content: none;
  display: none;
}

.cfb-impact-page #oe-impact-chart-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 36rem;
  min-height: 28rem;
  border: 0;
  background-color: #ffffff;
}

@media (max-width: 1023px) {
  .cfb-impact-page #oe-impact-chart-iframe {
    height: 52rem;
    min-height: 40rem;
  }
}

/* ---------- Mission section: left-align text ---------- */
.cfb-impact-page .new-paragraph-header-2,
.cfb-impact-page .new-paragraph-text {
  text-align: left;
}

/* ---------- Section headers: center-align ---------- */
.cfb-impact-page .section-header-white,
.cfb-impact-page .new-paragraph-header-2.new-center-alignment {
  text-align: center;
}

/* ---------- Data disclosure link: larger, more readable ---------- */
.cfb-impact-page .new-impact-disclosure-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(1, 36, 39, 0.75);
}

.cfb-impact-page .new-impact-disclosure-text a,
.cfb-impact-page .new-impact-disclosure-text .link-28 {
  font-size: 0.875rem;
  text-decoration: underline;
  color: var(--cfb-shadow);
}

.cfb-impact-page .new-impact-disclosure-text a:hover {
  color: var(--cfb-sky);
}

/* ---------- Impact Report Highlights cards: uniform size ---------- */
.cfb-impact-page .grid-12.impact-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.cfb-impact-page .new-stats-card.impact-highlights {
  width: 100% !important;
  height: 100% !important;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.cfb-impact-page .new-stats-card.impact-highlights .div-block-320 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 5rem;
}

.cfb-impact-page .new-stats-card.impact-highlights .center-align {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.cfb-impact-page .new-stats-card.impact-highlights p.new-body {
  flex-grow: 1;
}

/* ---------- Bank like tomorrow CTA: center-align and constrain width ---------- */
.cfb-impact-page .cfb-biz-cta .cfb-shell {
  align-items: center;
  text-align: center;
  max-width: 72rem;
}

.cfb-impact-page .cfb-biz-cta__title {
  text-align: center !important;
}

.cfb-impact-page .cfb-biz-cta__body {
  text-align: center !important;
  max-width: 56rem;
}

.cfb-impact-page .cfb-biz-cta .btn-light--lg {
  align-self: center;
}

/* ---------- Partnerships section: center header ---------- */
.cfb-impact-page .new-universal-content-div.center .section-header {
  text-align: center;
}

/* ---------- Partnership blocks: prevent 1% for Planet overflow ---------- */
.cfb-impact-page .new-partnership-block {
  overflow: visible;
}

.cfb-impact-page .new-partnerships-text-block {
  overflow: visible;
  word-wrap: break-word;
}

/* ---------- Tablet: 2-column grid for highlights ---------- */
@media (max-width: 1023px) {
  .cfb-impact-page .grid-12.impact-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cfb-impact-page .new-stats-card.impact-highlights {
    min-height: 20rem;
  }
}

/* ---------- Mobile: single column for highlights ---------- */
@media (max-width: 767px) {
  .cfb-impact-page .grid-12.impact-highlights {
    grid-template-columns: 1fr;
  }
  
  .cfb-impact-page .new-stats-card.impact-highlights {
    min-height: auto;
    padding: 1.5rem 1rem;
  }
  
  .cfb-impact-page .new-paragraph-header-2,
  .cfb-impact-page .new-paragraph-text {
    text-align: left;
  }
  
  .cfb-impact-page .cfb-biz-cta__body {
    max-width: 100%;
  }
}
