.bpz-footer,
.bpz-footer * {
  box-sizing: border-box;
}

.bpz-footer {
  --footer-blue: #073d67;
  --footer-blue-deep: #052f50;
  --footer-gold: #f0c52e;
  width: 100%;
  color: #fff;
  background: var(--footer-blue);
  border-top: 4px solid var(--footer-gold);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bpz-footer__inner,
.bpz-footer__bottom-inner {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
}

.bpz-footer__inner {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(300px, 1fr) minmax(210px, .72fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  padding: 44px 0 40px;
}

.bpz-footer__brand {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.bpz-footer__crest {
  width: 72px;
  height: auto;
  flex: 0 0 72px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.14));
}

.bpz-footer__eyebrow,
.bpz-footer__label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.bpz-footer__name {
  display: block;
  max-width: 430px;
  color: #fff;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: -.025em;
}

.bpz-footer__contact,
.bpz-footer__official {
  min-width: 0;
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid rgba(255,255,255,.16);
}

.bpz-footer__address {
  margin: 0 0 10px;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
}

.bpz-footer__contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.45;
}

.bpz-footer__contact-line a,
.bpz-footer__email {
  color: #fff;
  text-decoration: none;
}

.bpz-footer__contact-line a:hover,
.bpz-footer__contact-line a:focus-visible,
.bpz-footer__email:hover,
.bpz-footer__email:focus-visible {
  color: var(--footer-gold);
  text-decoration: none;
}

.bpz-footer__email {
  display: inline-block;
  margin-top: 7px;
  font-size: 13px;
}

.bpz-footer__ids {
  display: grid;
  gap: 7px;
  margin: 0;
}

.bpz-footer__ids > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: baseline;
}

.bpz-footer__ids dt,
.bpz-footer__ids dd {
  margin: 0;
}

.bpz-footer__ids dt {
  color: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.bpz-footer__ids dd {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.bpz-footer__bottom {
  background: var(--footer-blue-deep);
  border-top: 1px solid rgba(255,255,255,.09);
}

.bpz-footer__bottom-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  line-height: 1.4;
}

.bpz-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.bpz-footer__links a {
  color: rgba(255,255,255,.82);
  font-weight: 650;
  text-decoration: none;
}

.bpz-footer__links a:hover,
.bpz-footer__links a:focus-visible {
  color: var(--footer-gold);
  text-decoration: none;
}

/* Remove Cassiopeia's own footer chrome when this module is used. */
.container-footer:has(.bpz-footer),
.container-footer:has(.bpz-footer) > .grid-child {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.container-footer:has(.bpz-footer) {
  display: block;
}

@media (max-width: 900px) {
  .bpz-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 34px;
    align-items: start;
  }

  .bpz-footer__brand {
    grid-column: 1 / -1;
  }

  .bpz-footer__contact {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .bpz-footer__inner,
  .bpz-footer__bottom-inner {
    width: min(100% - 32px, 1360px);
  }

  .bpz-footer__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 30px 0 26px;
  }

  .bpz-footer__brand {
    gap: 16px;
    padding-bottom: 24px;
  }

  .bpz-footer__crest {
    width: 58px;
    flex-basis: 58px;
  }

  .bpz-footer__name {
    font-size: 21px;
  }

  .bpz-footer__contact,
  .bpz-footer__official {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .bpz-footer__bottom-inner {
    min-height: 0;
    padding: 15px 0 17px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bpz-footer__links {
    justify-content: flex-start;
    gap: 8px 18px;
  }
}
