/* Bank for Good design refresh: new homepage, header and footer (Lovable-inspired). */

.bfg-header, .bfg-home, .bfg-footer {
  --bfg-bg: #f9f6f0;
  --bfg-fg: #122b27;
  --bfg-primary: #35bf99;
  --bfg-primary-hover: #2aa886;
  --bfg-primary-fg: #091f1b;
  --bfg-mint: #aee6d4;
  --bfg-border: #c4d4cd;
  --bfg-card: #fefefc;
  --bfg-muted-fg: #52625e;
  --bfg-lavender: #a1aefb;
  --bfg-pink: #fbb7c8;
  --bfg-yellow: #fbb62a;
  --bfg-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --bfg-text: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--bfg-fg);
  font-family: var(--bfg-text);
  -webkit-font-smoothing: antialiased;
}
.bfg-header *, .bfg-home *, .bfg-footer * { box-sizing: border-box; }
.bfg-home p, .bfg-home li, .bfg-header li, .bfg-footer p, .bfg-footer li { font-family: var(--bfg-text); }
.bfg-home ul, .bfg-home ol, .bfg-header ul, .bfg-footer ul { list-style: none; margin: 0; padding: 0; }
.bfg-home h1, .bfg-home h2, .bfg-home h3, .bfg-footer h2 { margin: 0; color: var(--bfg-fg); }
.bfg-home a, .bfg-header a, .bfg-footer a { color: inherit; }

.bfg-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bfg-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .bfg-wrap { padding: 0 32px; } }

.bfg-i { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */
.bfg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.25rem;
  background: var(--bfg-primary); color: var(--bfg-primary-fg) !important;
  border: 2px solid var(--bfg-primary); border-radius: 3px;
  font: 700 1rem/1.2 var(--bfg-text); text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}
.bfg-btn:hover { background: var(--bfg-primary-hover); border-color: var(--bfg-primary-hover); }
.bfg-btn:focus-visible, .bfg-move:focus-visible, .bfg-header a:focus-visible, .bfg-footer a:focus-visible,
.bfg-home a:focus-visible, .bfg-menu-btn:focus-visible {
  outline: 3px solid var(--bfg-fg); outline-offset: 3px;
}
.bfg-btn--sm { min-height: 40px; padding: .55rem .95rem; font-size: .875rem; }
.bfg-btn--mint { background: var(--bfg-mint); border-color: var(--bfg-mint); }
.bfg-btn--mint:hover { background: #c5eee1; border-color: #c5eee1; }
.bfg-btn--outline { background: transparent; border-color: var(--bfg-fg); color: var(--bfg-fg) !important; }
.bfg-btn--outline:hover { background: rgba(18, 43, 39, .06); border-color: var(--bfg-fg); }

.bfg-eyebrow {
  margin: 0 0 .9rem; font: 700 .75rem/1.3 var(--bfg-text) !important;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bfg-fg);
}
.bfg-display {
  font-family: var(--bfg-display) !important; font-weight: 800 !important;
  letter-spacing: -.025em; line-height: 1.02 !important; text-transform: none !important;
}

/* ---------- Header ---------- */
.bfg-header { position: relative; z-index: 50; background: var(--bfg-bg); }
.bfg-header__bar {
  display: flex; align-items: center; gap: 1rem; min-height: 76px;
  border-bottom: 2px solid var(--bfg-fg);
}
.bfg-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--bfg-fg) !important; text-decoration: none !important; flex: none; }
.bfg-logo__mark { width: 29px; height: 34px; display: block; flex: none; color: var(--bfg-primary); overflow: visible; }
.bfg-logo__chev { stroke: var(--bfg-fg); }
.bfg-logo__text { display: flex; flex-direction: column; font: 800 20px/18px var(--bfg-display) !important; letter-spacing: 0; text-transform: none; color: inherit; }
.bfg-logo__text > span { display: block; font: inherit !important; color: inherit; }
.bfg-nav { display: none; margin: 0 auto; }
.bfg-nav ul { display: flex; gap: 2rem; }
.bfg-nav a { font: 600 .92rem/1.2 var(--bfg-text); text-decoration: none; }
.bfg-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bfg-header__cta { margin-left: auto; }
.bfg-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; padding: 0;
  background: none; border: 0; color: var(--bfg-fg); cursor: pointer; font-size: 1.5rem;
}
.bfg-menu-btn__close { display: none; }
.bfg-menu-btn[aria-expanded="true"] .bfg-menu-btn__open { display: none; }
.bfg-menu-btn[aria-expanded="true"] .bfg-menu-btn__close { display: inline-flex; }
.bfg-mobile { border-bottom: 2px solid var(--bfg-fg); background: var(--bfg-bg); }
.bfg-mobile ul { padding: .5rem 0 1.25rem; }
.bfg-mobile a {
  display: block; padding: .8rem 0; font: 700 1.15rem/1.2 var(--bfg-display); text-decoration: none;
  border-bottom: 1px solid var(--bfg-border);
}
@media (max-width: 420px) { .bfg-header__cta { display: none; } .bfg-menu-btn { margin-left: auto; } }
@media (min-width: 1024px) {
  .bfg-nav { display: block; }
  .bfg-header__cta { margin-left: 0; }
  .bfg-menu-btn, .bfg-mobile { display: none !important; }
}

/* ---------- Hero and the four moves ---------- */
.bfg-home { background: var(--bfg-bg); }
.bfg-hero { padding: 1.75rem 0 1.25rem; }
.bfg-hero__top { display: grid; gap: 1rem; align-items: end; }
.bfg-hero__title {
  font: 800 clamp(3rem, 9vw, 5.5rem)/0.98 var(--bfg-display) !important;
  letter-spacing: -.035em; color: var(--bfg-fg);
}
.bfg-u { box-shadow: inset 0 -0.11em 0 var(--bfg-primary); }
.bfg-hero__aside { max-width: 30rem; }
.bfg-hero__tagline { margin: 0 0 .5rem; font: 700 1rem/1.35 var(--bfg-text); }
.bfg-hero__intro { margin: 0 0 .5rem; font-size: 1.125rem; line-height: 1.5; }
.bfg-hero__small { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--bfg-muted-fg); }
.bfg-hero__sub {
  margin: 1.75rem 0 .9rem !important;
  font: 700 clamp(1.3rem, 2.4vw, 1.6rem)/1.2 var(--bfg-display) !important; letter-spacing: -.01em;
}
@media (min-width: 900px) {
  .bfg-hero { padding: 2.5rem 0 1.5rem; }
  .bfg-hero__top { grid-template-columns: 1fr minmax(18rem, 26rem); }
  .bfg-hero__aside { justify-self: end; text-align: left; }
}

.bfg-moves { display: grid; border-top: 2px solid var(--bfg-fg); border-bottom: 2px solid var(--bfg-fg); }
.bfg-move {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.1rem 1.1rem 1.25rem; color: var(--bfg-fg) !important; text-decoration: none !important;
  border-bottom: 2px solid var(--bfg-fg);
}
.bfg-move:last-child { border-bottom: 0; }
.bfg-move--mint { background: var(--bfg-mint) !important; }
.bfg-move--yellow { background: var(--bfg-yellow); }
.bfg-move--lavender { background: var(--bfg-lavender); }
.bfg-move--pink { background: var(--bfg-pink); }
.bfg-move__num { font: 700 .75rem/1 var(--bfg-text); }
.bfg-move__title { font: 700 clamp(1.35rem, 2.2vw, 1.6rem)/1.15 var(--bfg-display) !important; letter-spacing: -.015em; }
.bfg-move__desc { margin: 0; font-size: 1rem; line-height: 1.5; max-width: 30rem; }
.bfg-move__link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .9rem;
  font: 700 .9375rem/1.2 var(--bfg-text); text-decoration: underline; text-underline-offset: 4px;
}
a.bfg-move:hover .bfg-move__link { text-decoration-thickness: 2px; }
a.bfg-move:hover { filter: saturate(1.08) brightness(1.02); }
@media (min-width: 768px) {
  .bfg-moves { grid-template-columns: 1fr 1fr; }
  .bfg-move { border-bottom: 2px solid var(--bfg-fg); min-height: 15rem; padding: 1.25rem; }
  .bfg-move:nth-child(odd) { border-right: 2px solid var(--bfg-fg); }
  .bfg-move:nth-child(n+3) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .bfg-moves { grid-template-columns: repeat(4, 1fr); }
  .bfg-move { border-bottom: 0; border-right: 2px solid var(--bfg-fg); min-height: 17rem; }
  .bfg-move:last-child { border-right: 0; }
}

/* Bank search inside move 01 (works with the theme's search script) */
.bfg-home .bfg-search { position: relative; margin: .5rem 0 0; padding: 0 !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
.bfg-search__box {
  position: relative; display: flex; align-items: center; gap: .5rem;
  background: var(--bfg-card); border-radius: 3px; padding: .35rem .35rem .35rem .8rem;
}
.bfg-search__icon { display: inline-flex; color: var(--bfg-muted-fg); font-size: 1.05rem; }
.bfg-home .bfg-search .input-bank {
  flex: 1; min-width: 0; height: 40px; margin: 0 !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font: 500 .98rem/1.2 var(--bfg-text) !important; color: var(--bfg-fg) !important;
}
.bfg-home .bfg-search .input-bank:focus { outline: none !important; }
.bfg-search__box:focus-within { outline: 3px solid var(--bfg-fg); outline-offset: 2px; }
.bfg-search__go {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  background: var(--bfg-primary); color: var(--bfg-primary-fg); border-radius: 3px; font-size: 1.1rem;
}
.bfg-home .bfg-search .suggestions-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 18rem; overflow: auto;
  margin: 0; padding: 0; background: var(--bfg-card) !important; border: 2px solid var(--bfg-fg); border-radius: 3px;
}
.bfg-home .bfg-search .suggestions-list:empty { display: none; }
.bfg-home .bfg-search .suggestions-list li {
  padding: .65rem .8rem; cursor: pointer; font: 500 .95rem/1.3 var(--bfg-text); color: var(--bfg-fg);
  border-bottom: 1px solid var(--bfg-border);
}
.bfg-home .bfg-search .suggestions-list li:last-child { border-bottom: 0; }
.bfg-home .bfg-search .suggestions-list li:hover,
.bfg-home .bfg-search .suggestions-list li.selected { background: var(--bfg-mint); }
.bfg-home .bfg-search .result-funding:not(:empty) {
  margin-top: .75rem; font: 800 1.15rem/1.25 var(--bfg-display) !important; color: var(--bfg-fg) !important;
}
.bfg-home .bfg-search .result-description { font-size: .9375rem; line-height: 1.5; color: var(--bfg-fg) !important; }
.bfg-home .bfg-search .result-description.show:not(:empty) {
  margin-top: .5rem; padding: .85rem; background: var(--bfg-card); border-radius: 3px;
}
.bfg-home .bfg-search .result-description p { margin: 0 0 .5rem; color: var(--bfg-fg) !important; }
.bfg-home .bfg-search .result-description p span { color: inherit !important; }
.bfg-home .bfg-search .result-description a { font-weight: 700; text-decoration: underline; }
.bfg-home .bfg-search .result-description a.cta {
  display: inline-flex; margin-top: .4rem; padding: .55rem .9rem; background: var(--bfg-primary);
  color: var(--bfg-primary-fg); border-radius: 3px; text-decoration: none;
}

.bfg-trust {
  display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.1rem 0 0;
  font-size: .875rem; line-height: 1.4; text-align: center; color: var(--bfg-fg);
}
.bfg-trust .bfg-i { font-size: 1rem; }

/* ---------- Photo band ---------- */
.bfg-band { position: relative; overflow: hidden; background: var(--bfg-pink); padding: 2rem 0 1.5rem; }
.bfg-band__stage { position: relative; width: min(92%, 980px); margin: 0 auto; }
.bfg-band__paper { position: absolute; display: block; }
.bfg-band__paper--mint { inset: -6% 12% 18% -6%; background: var(--bfg-mint); transform: rotate(-2deg); }
.bfg-band__paper--yellow { inset: 30% -5% -4% 55%; background: #d9a434; transform: rotate(1.5deg); }
.bfg-band__img {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border: 6px solid var(--bfg-card); box-shadow: 0 12px 30px rgba(18, 43, 39, .18);
}
.bfg-band__overlay { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: -2.5rem; }
.bfg-band__title {
  display: inline-block; background: var(--bfg-pink); padding: .6rem .9rem .7rem;
  font: 800 clamp(2rem, 6vw, 4.25rem)/1.02 var(--bfg-display) !important; letter-spacing: -.03em;
}
.bfg-band__title span { display: block; }
@media (min-width: 1024px) {
  .bfg-band { padding: 3rem 0; min-height: 34rem; }
  .bfg-band__stage { width: 58%; margin-left: 30%; }
  .bfg-band__overlay {
    position: absolute; inset: auto 0 2.5rem 0; margin: 0 auto; flex-direction: row;
    align-items: flex-end; justify-content: space-between;
  }
}

/* ---------- Ticker ---------- */
.bfg-ticker { overflow: hidden; background: var(--bfg-yellow); border-top: 2px solid var(--bfg-fg); border-bottom: 2px solid var(--bfg-fg); }
.bfg-ticker__track {
  display: flex; align-items: center; gap: 2rem; width: max-content; padding: .85rem 0;
  animation: bfg-ticker 40s linear infinite;
}
.bfg-ticker__track span { font: 700 .75rem/1 var(--bfg-text); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.bfg-i--spark { font-size: 1rem; }
.bfg-ticker:hover .bfg-ticker__track { animation-play-state: paused; }
@keyframes bfg-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .bfg-ticker__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: .85rem 1rem; }
}

/* ---------- Green section ---------- */
.bfg-green { background: var(--bfg-primary); padding: 3.5rem 0; }
.bfg-green__grid { display: grid; gap: 2.5rem; }
.bfg-green .bfg-display { font-size: clamp(2.25rem, 3.4vw + 1rem, 3.75rem); margin-bottom: 1.25rem; }
.bfg-green__text { margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.55; max-width: 34rem; color: var(--bfg-fg); }
.bfg-list li {
  display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: 1rem;
  padding: 1.15rem 0; border-top: 2px solid var(--bfg-fg);
}
.bfg-list li:last-child { border-bottom: 2px solid var(--bfg-fg); }
.bfg-list__num { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--bfg-display); }
.bfg-list__text { font: 700 clamp(1.1rem, 1.8vw, 1.35rem)/1.2 var(--bfg-display); letter-spacing: -.01em; }
.bfg-list .bfg-i { font-size: 1.5rem; }
@media (min-width: 1024px) {
  .bfg-green { padding: 5rem 0; }
  .bfg-green__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

/* ---------- Featured banks ---------- */
.bfg-banks, .bfg-steps { padding: 3.5rem 0; }
.bfg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.bfg-head .bfg-display { font-size: clamp(2.25rem, 3.4vw + 1rem, 3.75rem); }
.bfg-lead { margin: .75rem 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--bfg-muted-fg); }
.bfg-bankcards { display: grid; gap: 1.25rem; }
.bfg-bankcards:empty { display: none; }
.bfg-bank {
  display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem;
  background: var(--bfg-card); border: 2px solid var(--bfg-fg); border-radius: 3px;
}
.bfg-bank__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bfg-bank__badge {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  font: 800 1.1rem/1 var(--bfg-display); border-radius: 3px; background: var(--bfg-mint);
}
.bfg-bank:nth-child(2) .bfg-bank__badge { background: var(--bfg-yellow); }
.bfg-bank:nth-child(3) .bfg-bank__badge { background: var(--bfg-pink); }
.bfg-bank__rating {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem;
  background: var(--bfg-mint); border-radius: 3px; font: 700 .75rem/1.2 var(--bfg-text);
}
.bfg-bank__name { margin: .3rem 0 0 !important; font: 700 1.45rem/1.15 var(--bfg-display) !important; letter-spacing: -.015em; }
.bfg-bank__meta { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--bfg-muted-fg); }
.bfg-bank__link {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .9rem;
  border-top: 1px solid var(--bfg-border); font: 700 .9375rem/1.2 var(--bfg-text); text-decoration: none;
}
.bfg-bank__link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.bfg-note { margin: 1.25rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--bfg-muted-fg); }
.bfg-note a { color: var(--bfg-fg); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .bfg-bankcards { grid-template-columns: repeat(2, minmax(0, 24rem)); }
  .bfg-banks, .bfg-steps { padding: 4.5rem 0; }
}

/* ---------- Switching steps ---------- */
.bfg-steps .bfg-wrap { border-top: 1px solid var(--bfg-border); padding-top: 3.5rem; }
.bfg-steplist { display: grid; gap: 1.75rem; }
.bfg-steplist li { border-top: 1px solid var(--bfg-border); padding-top: 1.25rem; }
.bfg-steplist__num { display: block; font: 800 clamp(2.6rem, 5vw, 3.6rem)/1 var(--bfg-display); color: #1f8f70; margin-bottom: 1.1rem; }
.bfg-steplist h3 { font: 700 1.25rem/1.2 var(--bfg-display) !important; letter-spacing: -.01em; margin-bottom: .6rem !important; }
.bfg-steplist p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--bfg-muted-fg); }
@media (min-width: 768px) { .bfg-steplist { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- Closing call to action ---------- */
.bfg-cta { background: var(--bfg-pink); padding: 3.5rem 0; text-align: center; }
.bfg-cta .bfg-display { font-size: clamp(2.4rem, 6vw, 4.5rem); margin: 0 auto 1.75rem; max-width: 16ch; }
@media (min-width: 1024px) { .bfg-cta { padding: 5rem 0; } .bfg-cta .bfg-display { max-width: none; } }

/* ---------- Footer ---------- */
.bfg-footer { background: var(--bfg-bg); padding: 2.5rem 0 1.5rem; border-top: 2px solid var(--bfg-fg); }
.bfg-footer__top { display: grid; gap: 2rem; }
.bfg-footer__brand p { margin: .75rem 0 0; font-size: .9375rem; line-height: 1.5; }
.bfg-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.bfg-footer__h { margin: 0 0 .75rem !important; font: 700 .75rem/1.3 var(--bfg-text) !important; letter-spacing: .08em; text-transform: uppercase; }
.bfg-footer__cols li { margin-bottom: .55rem; }
.bfg-footer__cols a, .bfg-footer__bottom a { font-size: .9375rem; text-decoration: none; }
.bfg-footer__cols a:hover, .bfg-footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bfg-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--bfg-border);
}
.bfg-footer__bottom p { margin: 0; font-size: .8125rem; color: var(--bfg-muted-fg); }
.bfg-footer__bottom ul { display: flex; gap: 1.25rem; }
.bfg-footer__bottom a { font-size: .8125rem; }
@media (min-width: 900px) {
  .bfg-footer__top { grid-template-columns: 1fr auto; }
  .bfg-footer__cols { grid-template-columns: repeat(3, minmax(9rem, auto)); gap: 3rem; }
}

/* ---------- Neutralise theme styles meant for the old search module ---------- */
.bfg-moves .bfg-move { min-height: 0; }
.bfg-home .bfg-search .selection-wrapper { margin: 0 !important; }
.bfg-home .bfg-search .result-funding { margin: 0 !important; }
.bfg-home .bfg-search .result-funding:not(:empty) { margin-top: .75rem !important; }
@media (min-width: 768px) { .bfg-moves .bfg-move { min-height: 15rem; } }
@media (min-width: 1100px) { .bfg-moves .bfg-move { min-height: 17rem; } }
.bfg-home .bfg-search .result-description a.cta {
  display: inline-flex !important; align-items: center; width: auto !important; min-height: 0 !important;
  margin: .5rem .5rem 0 0 !important; padding: .6rem .95rem !important;
  background: var(--bfg-primary) !important; color: var(--bfg-primary-fg) !important;
  border: 2px solid var(--bfg-primary) !important; border-radius: 3px !important; box-shadow: none !important;
  font: 700 .9375rem/1.2 var(--bfg-text) !important; text-decoration: none !important; text-transform: none !important;
}
.bfg-home .bfg-search .result-description a.cta-secondary {
  background: transparent !important; border-color: var(--bfg-fg) !important; color: var(--bfg-fg) !important;
}
.bfg-home .bfg-search .rating-scale { margin-top: .6rem; font-family: var(--bfg-text); }
.bfg-home .bfg-search .rating-scale-title { font: 500 .9rem/1.3 var(--bfg-text); margin-bottom: .35rem; }
.bfg-home .bfg-search .rating-scale-labels span { font-family: var(--bfg-text); }
.bfg-home .bfg-search { top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; width: auto !important; max-width: none !important; }
.bfg-home .bfg-search .autocomplete-container,
.bfg-home .bfg-search .selection-wrapper,
.bfg-home .bfg-search .result-funding,
.bfg-home .bfg-search .result-description { width: auto !important; max-width: none !important; }
.bfg-steps { padding-top: 0 !important; }
.bfg-footer h2.bfg-footer__h { font: 700 .75rem/1.3 var(--bfg-text) !important; letter-spacing: .08em !important; text-transform: uppercase !important; }

/* ---------- Content pages built on the homepage system (Why it matters) ---------- */
.bfg-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.bfg-why-hero { padding: 2.5rem 0 3rem; border-bottom: 2px solid var(--bfg-fg); }
.bfg-why-hero__grid { display: grid; gap: 2rem; align-items: center; }
.bfg-home .bfg-why-hero__title { font: 800 clamp(2.5rem, 4.6vw + 1rem, 5rem)/1.02 var(--bfg-display); letter-spacing: -.03em; margin: 0 0 2rem; max-width: 13ch; }
.bfg-why-hero__lead { font-size: 1.125rem; line-height: 1.55; max-width: 34rem; margin: 0; }
.bfg-why-hero__media { margin: 0; border: 2px solid var(--bfg-fg); border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bfg-mint); }
.bfg-why-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .bfg-why-hero { padding: 4rem 0 4.5rem; }
  .bfg-why-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
}

.bfg-flowsec { padding: 3.5rem 0; background: var(--bfg-card); border-bottom: 2px solid var(--bfg-fg); }
.bfg-flowsec__grid { display: grid; gap: 2rem; }
.bfg-home .bfg-flowsec .bfg-display { font-size: clamp(2.25rem, 3.4vw + 1rem, 3.75rem); margin-bottom: .75rem; }
@media (min-width: 1024px) { .bfg-flowsec { padding: 5rem 0; } .bfg-flowsec__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.bfg-flow { margin: 0; }
.bfg-flow__cap { font: 700 .75rem/1.3 var(--bfg-text); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; color: var(--bfg-fg); }
.bfg-flow__list { display: grid; gap: .9rem; }
.bfg-flow__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label amt" "track track"; gap: .35rem .75rem; align-items: baseline; }
.bfg-flow__label { grid-area: label; font: 600 1rem/1.3 var(--bfg-text); }
.bfg-flow__amt { grid-area: amt; font: 800 1.25rem/1 var(--bfg-display); letter-spacing: -.01em; }
.bfg-flow__track { grid-area: track; display: block; height: 22px; background: var(--bfg-muted); border-radius: 2px; overflow: hidden; }
.bfg-flow__bar { display: block; height: 100%; min-width: 6px; border-right: 2px solid var(--bfg-fg); }
.bfg-flow__row--lavender .bfg-flow__bar { background: var(--bfg-lavender); }
.bfg-flow__row--yellow .bfg-flow__bar { background: var(--bfg-yellow); }
.bfg-flow__row--pink .bfg-flow__bar { background: var(--bfg-pink); }
.bfg-flow__row--grey .bfg-flow__bar { background: #c9cfcc; }
.bfg-flow__row--green .bfg-flow__bar { background: var(--bfg-primary); }
.bfg-flow__row--mint .bfg-flow__bar { background: var(--bfg-mint); }
.bfg-flow__note { margin: 1.25rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--bfg-muted-fg); }
@media (min-width: 640px) {
  .bfg-flow__row { grid-template-columns: 11rem 1fr 4.5rem; grid-template-areas: "label track amt"; align-items: center; }
  .bfg-flow__amt { text-align: right; }
}

.bfg-shape { padding: 3.5rem 0; }
@media (min-width: 1024px) { .bfg-shape { padding: 5rem 0; } }
.bfg-cards3 { display: grid; gap: 1rem; }
@media (min-width: 900px) { .bfg-cards3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.bfg-card3 { border: 2px solid var(--bfg-fg); border-radius: 3px; padding: 1.5rem; }
.bfg-card3--mint { background: var(--bfg-mint); }
.bfg-card3--yellow { background: var(--bfg-yellow); }
.bfg-card3--lavender { background: var(--bfg-lavender); }
.bfg-card3__icon { display: inline-flex; font-size: 1.75rem; margin-bottom: 1rem; }
.bfg-home .bfg-card3 h3 { font: 700 1.375rem/1.2 var(--bfg-display); letter-spacing: -.01em; margin: 0 0 .6rem; }
.bfg-card3 p { margin: 0; font-size: 1rem; line-height: 1.55; }

.bfg-stories { padding: 3.5rem 0; background: var(--bfg-fg); color: var(--bfg-bg); }
@media (min-width: 1024px) { .bfg-stories { padding: 5rem 0; } }
.bfg-stories .bfg-head .bfg-display, .bfg-stories .bfg-head .bfg-eyebrow { color: var(--bfg-bg) !important; }
.bfg-stories .bfg-head .bfg-lead { color: #d9e3df !important; max-width: 40rem; }

/* Real examples carousel: scrolls sideways (touch, trackpad, keyboard); buttons appear once the script runs. */
.bfg-carousel__nav { display: none; align-items: center; gap: .5rem; }
[data-bfg-carousel].is-ready .bfg-carousel__nav { display: flex; }
.bfg-carousel__status { order: 3; font: 600 .875rem/1 var(--bfg-text); color: #d9e3df; margin-left: .5rem; }
@media (min-width: 900px) { .bfg-carousel__status { order: 0; margin: 0 .5rem 0 0; min-width: 4.5rem; text-align: right; } }
.bfg-carousel__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--bfg-bg); border-radius: 999px; background: transparent; color: var(--bfg-bg); font-size: 1.375rem; cursor: pointer; transition: background-color .15s, color .15s; }
.bfg-carousel__btn:hover:not(:disabled) { background: var(--bfg-bg); color: var(--bfg-fg); }
.bfg-carousel__btn:focus-visible { outline: 3px solid var(--bfg-mint); outline-offset: 3px; }
.bfg-carousel__btn:disabled { opacity: .35; cursor: default; }
.bfg-carousel__track { position: relative; list-style: none; margin: 0; padding: 0 0 .75rem; display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(249, 246, 240, .45) transparent; }
.bfg-carousel__track:focus-visible { outline: 3px solid var(--bfg-mint); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { .bfg-carousel__track { scroll-behavior: smooth; } }
@media (min-width: 640px) { .bfg-carousel__track { grid-auto-columns: calc((100% - 1.25rem) / 2.15); gap: 1.25rem; } }
@media (min-width: 1100px) { .bfg-carousel__track { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
.bfg-home .bfg-slide { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; padding: 1.5rem; border-radius: 3px; color: var(--bfg-fg); list-style: none; }
.bfg-slide::before, .bfg-slide::marker { content: none; }
.bfg-slide--mint { background: var(--bfg-mint); }
.bfg-slide--yellow { background: var(--bfg-yellow); }
.bfg-slide--lavender { background: var(--bfg-lavender); }
.bfg-slide--pink { background: var(--bfg-pink); }
.bfg-slide--card { background: var(--bfg-bg); }
.bfg-home .bfg-slide p, .bfg-home .bfg-slide h3, .bfg-home .bfg-slide a { color: var(--bfg-fg) !important; }
.bfg-home .bfg-slide .bfg-slide__cat { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; margin: 0 0 1.25rem; padding: .375rem .75rem .375rem .5rem; border: 2px solid var(--bfg-fg); border-radius: 999px; font: 700 .8125rem/1 var(--bfg-text); }
.bfg-slide__icon { display: inline-flex; font-size: 1.125rem; }
.bfg-home .bfg-slide .bfg-slide__place { margin: 0 0 .375rem; font: 700 .75rem/1.3 var(--bfg-text); letter-spacing: .08em; text-transform: uppercase; }
.bfg-home .bfg-slide h3 { font: 700 1.375rem/1.2 var(--bfg-display); letter-spacing: -.01em; margin: 0 0 .625rem; }
.bfg-home .bfg-slide .bfg-slide__text { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.55; }
.bfg-home .bfg-slide .bfg-slide__text .bfg-slide__bank { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bfg-home .bfg-slide .bfg-slide__text .bfg-slide__bank:hover { text-decoration-thickness: 3px; }
.bfg-home .bfg-slide .bfg-slide__text .bfg-slide__bank:focus-visible { outline: 3px solid var(--bfg-fg); outline-offset: 2px; }
.bfg-home .bfg-slide .bfg-slide__fact { margin: auto 0 0; padding-top: 1rem; border-top: 2px solid var(--bfg-fg); font-size: 1rem; line-height: 1.4; }
.bfg-slide__fact strong { display: block; font: 800 1.75rem/1.1 var(--bfg-display); letter-spacing: -.02em; margin-bottom: .25rem; }
.bfg-home .bfg-slide .bfg-slide__by { margin: 1rem 0 0; font-size: .875rem; line-height: 1.5; }
.bfg-home .bfg-slide .bfg-slide__by a { display: inline-block; padding: .5rem 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bfg-home .bfg-slide .bfg-slide__by a:focus-visible { outline: 3px solid var(--bfg-fg); outline-offset: 2px; }

.bfg-steplist h3 a { color: inherit; text-decoration: none; }
.bfg-steplist h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bfg-cta__small { margin: 1.25rem auto 0; font-size: .875rem; max-width: 36rem; }

/* ---------- How we look at each bank (/why-these-banks/) ---------- */
.bfg-cards2 { display: grid; gap: 1rem; }
@media (min-width: 768px) { .bfg-cards2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.bfg-home .bfg-card3 .bfg-card3__src { margin: 1.25rem 0 0; padding-top: .75rem; border-top: 2px solid var(--bfg-fg); font: 700 .875rem/1.4 var(--bfg-text); }
.bfg-how-scale { border-top: 2px solid var(--bfg-fg); }
.bfg-how-scale .bfg-lead + .bfg-lead { margin-top: 1rem; }
.bfg-scale { display: grid; gap: .75rem; }
.bfg-home .bfg-scale__row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "meter label" "line line" "bg bg"; gap: .4rem .75rem; align-items: center; margin: 0; padding: 1rem 1.25rem; background: var(--bfg-bg); border: 2px solid var(--bfg-fg); border-radius: 3px; }
.bfg-scale__row::before, .bfg-scale__row::marker, .bfg-tile::before, .bfg-tile::marker, .bfg-rule::before, .bfg-rule::marker { content: none !important; }
.bfg-scale__meter { grid-area: meter; display: inline-flex; gap: 3px; }
.bfg-scale__meter span { display: block; width: 12px; height: 18px; border: 2px solid var(--bfg-fg); border-radius: 2px; background: transparent; }
.bfg-scale__meter--5 span, .bfg-scale__meter--4 span:nth-child(-n+4), .bfg-scale__meter--3 span:nth-child(-n+3),
.bfg-scale__meter--2 span:nth-child(-n+2), .bfg-scale__meter--1 span:nth-child(1) { background: var(--bfg-primary); }
.bfg-scale__label { grid-area: label; font: 800 1.25rem/1.15 var(--bfg-display); letter-spacing: -.01em; }
.bfg-scale__line { grid-area: line; font-size: 1rem; line-height: 1.5; }
.bfg-scale__bg { grid-area: bg; font: 600 .8125rem/1.3 var(--bfg-text); color: var(--bfg-muted-fg); }
@media (min-width: 560px) {
  .bfg-home .bfg-scale__row { grid-template-columns: auto 1fr auto; grid-template-areas: "meter label bg" "line line line"; gap: .5rem .75rem; }
  .bfg-scale__bg { text-align: right; }
}
.bfg-steplist--4 h3 { margin-top: 0; }
@media (min-width: 768px) { .bfg-steplist--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bfg-steplist--4 { grid-template-columns: repeat(4, 1fr); } }
.bfg-how-notes { margin-top: 2rem; max-width: 46rem; }
.bfg-home .bfg-how-notes p { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.55; color: var(--bfg-muted-fg); }
.bfg-how-areas .bfg-actions { margin-top: 1.25rem; }
.bfg-tiles { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bfg-tiles { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .bfg-tiles { grid-template-columns: repeat(3, 1fr); } }
.bfg-home .bfg-tile { margin: 0; padding: 1.5rem; border-radius: 3px; color: var(--bfg-fg); }
.bfg-tile--mint { background: var(--bfg-mint); }
.bfg-tile--yellow { background: var(--bfg-yellow); }
.bfg-tile--lavender { background: var(--bfg-lavender); }
.bfg-tile--pink { background: var(--bfg-pink); }
.bfg-tile--card { background: var(--bfg-bg); }
.bfg-home .bfg-tile h3 { font: 700 1.25rem/1.2 var(--bfg-display); letter-spacing: -.01em; margin: 0 0 .5rem; color: var(--bfg-fg) !important; }
.bfg-home .bfg-tile p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--bfg-fg) !important; }
.bfg-rules { margin-bottom: 1.75rem; }
.bfg-home .bfg-rule { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin: 0; padding: 1.25rem 0; border-top: 2px solid var(--bfg-fg); }
.bfg-home .bfg-rule:last-child { border-bottom: 2px solid var(--bfg-fg); }
.bfg-rule__mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--bfg-fg); border-radius: 999px; font-size: 1.375rem; }
.bfg-rule--yes .bfg-rule__mark { background: var(--bfg-primary); }
.bfg-rule--maybe .bfg-rule__mark { background: var(--bfg-mint); }
.bfg-rule--no .bfg-rule__mark { background: var(--bfg-pink); }
.bfg-home .bfg-rule h3 { font: 700 1.375rem/1.2 var(--bfg-display); letter-spacing: -.01em; margin: .45rem 0 .35rem; }
.bfg-home .bfg-rule p { margin: 0; font-size: 1rem; line-height: 1.55; max-width: 44rem; }
.bfg-home .bfg-rule .bfg-rule__small { margin-top: .5rem; font-size: .875rem; color: var(--bfg-muted-fg); }
.bfg-home .bfg-how-side { margin: 1rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--bfg-muted-fg); max-width: 34rem; }

/* ---------- Type scale: one set of sizes across the new pages ---------- */
.bfg-home { --bfg-fs-h2: clamp(2.25rem, 3.4vw + 1rem, 3.75rem); --bfg-fs-h3: 1.375rem; --bfg-fs-lead: 1.125rem; --bfg-fs-body: 1rem; --bfg-fs-small: .875rem; --bfg-fs-num: 2.5rem; }
.bfg-home .bfg-display, .bfg-home .bfg-band__title { font-size: var(--bfg-fs-h2) !important; }
.bfg-home .bfg-hero__sub, .bfg-home .bfg-move__title, .bfg-home .bfg-card3 h3, .bfg-home .bfg-slide h3, .bfg-home .bfg-steplist h3,
.bfg-home .bfg-bank__name, .bfg-home .bfg-list__text, .bfg-home .bfg-tile h3, .bfg-home .bfg-rule h3, .bfg-home .bfg-scale__label { font-size: var(--bfg-fs-h3) !important; line-height: 1.2 !important; }
.bfg-home .bfg-hero__tagline, .bfg-home .bfg-hero__intro, .bfg-home .bfg-why-hero__lead, .bfg-home .bfg-lead, .bfg-home .bfg-green__text { font-size: var(--bfg-fs-lead) !important; line-height: 1.55 !important; }
.bfg-home .bfg-move__desc, .bfg-home .bfg-move__link, .bfg-home .bfg-bank__meta, .bfg-home .bfg-steplist p, .bfg-home .bfg-card3 p, .bfg-home .bfg-tile p,
.bfg-home .bfg-rule p, .bfg-home .bfg-scale__line, .bfg-home .bfg-slide .bfg-slide__text, .bfg-home .bfg-how-notes p, .bfg-home .bfg-flow__label { font-size: var(--bfg-fs-body) !important; }
.bfg-home .bfg-note, .bfg-home .bfg-trust, .bfg-home .bfg-cta__small, .bfg-home .bfg-flow__note, .bfg-home .bfg-card3 .bfg-card3__src, .bfg-home .bfg-how-side,
.bfg-home .bfg-rule .bfg-rule__small, .bfg-home .bfg-slide .bfg-slide__by { font-size: var(--bfg-fs-small) !important; }
.bfg-home .bfg-list__num, .bfg-home .bfg-steplist__num { font-size: var(--bfg-fs-num) !important; line-height: 1 !important; }
.bfg-home .bfg-hero__intro { margin-bottom: 0; }

/* Homepage search result: the rating name and bar, then the next step. */
.bfg-home .bfg-search .rating-scale-labels, .bfg-home .bfg-search .rating-scale-note { display: none !important; }
.bfg-home .bfg-search .rating-scale-title { font: 400 1.0625rem/1.35 var(--bfg-text) !important; margin-bottom: .5rem !important; }
.bfg-home .bfg-search .result-description.show:not(:empty) { margin-top: 1rem; padding: 0; background: none; }
.bfg-home .bfg-search .result-description a.cta { margin: 0 .5rem .5rem 0 !important; }
.bfg-home .bfg-search .bfg-impactline { margin-top: .9rem; font: 400 1.0625rem/1.4 var(--bfg-text) !important; color: var(--bfg-fg); }
.bfg-home .bfg-search .bfg-impactline strong { font-weight: 700; }

/* Homepage bank cards: both views, as badges. */
.bfg-home .bfg-bank__views { display: grid; gap: .75rem; margin: 0; }
.bfg-home .bfg-bank__view { display: grid; gap: .4rem; padding: .85rem 1rem; border-radius: 3px; }
.bfg-home .bfg-bank__view--env { background: #e1f5ee; }
.bfg-home .bfg-bank__view--social { background: #eceffd; }
.bfg-home .bfg-bank__view dt { margin: 0; font: 700 .6875rem/1.3 var(--bfg-text); letter-spacing: .08em; text-transform: uppercase; }
.bfg-home .bfg-bank__view dd { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; }
.bfg-home .bfg-pill { display: inline-block; padding: .25rem .6rem; border: 1px solid rgba(18, 43, 39, .15); border-radius: 999px; background: #fff; font: 600 .75rem/1.25 var(--bfg-text); color: var(--bfg-fg); }
.bfg-home .bfg-pill--muted { font-weight: 500; color: var(--bfg-muted-fg); }
@media (min-width: 640px) { .bfg-home .bfg-bank__views { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
