@charset "UTF-8";

.bank-profile-hero {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 20px 0 28px;
  padding: 28px;
  border-block: 1px solid #d8e2dd;
  background: #f7faf8;
}

.bank-profile-hero__logo {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 20px;
  border: 1px solid #dfe7e3;
  border-radius: 6px;
  background: #fff;
}

.bank-profile-hero__logo img,
.bank-card__logo img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.bank-profile-hero__logo img {
  max-width: 230px;
  max-height: 72px;
}

.bank-profile-hero__eyebrow,
.bank-card__category {
  margin: 0 0 8px;
  color: #53635b;
  font-size: 12px;
  font-weight: 700;
}

.bank-profile-hero__name {
  margin: 0 0 10px;
  color: #123f32;
  font-size: 27px;
  line-height: 1.35;
}

.bank-profile-hero__former,
.bank-card__former {
  margin: -4px 0 10px;
  color: #626b67;
  font-size: 13px;
}

.bank-profile-hero__summary {
  margin: 0;
  color: #26332d;
  line-height: 1.8;
}

.bank-profile-tags,
.bank-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-profile-tags {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bank-profile-tags li {
  padding: 5px 9px;
  border: 1px solid #cfdcd6;
  border-radius: 4px;
  background: #fff;
  color: #264f41;
  font-size: 12px;
  font-weight: 700;
}

.bank-profile-links {
  margin-top: 18px;
}

.bank-profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #1b6450;
  border-radius: 5px;
  color: #155440;
  font-weight: 700;
  text-decoration: none;
}

.bank-profile-links a:first-child {
  background: #155440;
  color: #fff;
}

.bank-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 28px;
  border: 1px solid #d9e3de;
  background: #d9e3de;
}

.bank-profile-facts > div {
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.bank-profile-facts dt {
  margin-bottom: 8px;
  color: #5b6761;
  font-size: 12px;
  font-weight: 700;
}

.bank-profile-facts dd {
  margin: 0;
  color: #153f33;
  font-weight: 700;
  line-height: 1.65;
}

.bank-profile-facts small {
  display: block;
  margin-top: 4px;
  color: #64706a;
  font-weight: 400;
}

.bank-profile-cautions {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 4px solid #d6a729;
  background: #fffaf0;
}

.bank-directory {
  margin: 30px 0 38px;
}

.bank-directory__intro {
  max-width: 760px;
  margin-bottom: 20px;
  color: #46514c;
}

.bank-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bank-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #dce5e0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.bank-card__logo {
  display: grid;
  place-items: center;
  height: 98px;
  padding: 18px 22px;
  border-bottom: 1px solid #e5ebe8;
  background: #f8faf9;
}

.bank-card__logo img {
  max-width: 190px;
  max-height: 58px;
}

.bank-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.bank-card h3 {
  margin: 0 0 9px;
  color: #143f32;
  font-size: 18px;
  line-height: 1.45;
}

.bank-card__summary {
  margin: 0 0 14px;
  color: #45514b;
  font-size: 14px;
  line-height: 1.75;
}

.bank-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: #155440;
  font-weight: 700;
  text-decoration: none;
}

.bank-card__link::after {
  content: "›";
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 900px) {
  .bank-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bank-profile-hero,
  .bank-profile-facts,
  .bank-directory__grid {
    grid-template-columns: 1fr;
  }

  .bank-profile-hero {
    gap: 18px;
    padding: 20px 16px;
  }

  .bank-profile-hero__logo {
    min-height: 96px;
  }

  .bank-profile-hero__name {
    font-size: 23px;
  }

  .bank-profile-links {
    display: grid;
  }

  .bank-profile-links a {
    justify-content: center;
    text-align: center;
  }
}
