:root {
  --bpa-header-height: 72px;
  --bpa-banner-title-size: clamp(1.15rem, 1.9vw, 1.7rem);
  --bpa-header-center-bg: #224c42;
  --bpa-header-side-bg: #0f2742;
}

.bpa-header {
  position: relative;
  height: var(--bpa-header-height);
  overflow: hidden;
  background: var(--bpa-header-center-bg);
}

.bpa-header .md-header__inner {
  display: grid;
  grid-template-columns: 32px 400px minmax(0, 1fr) 400px;
  position: relative;
  z-index: 1;
  height: 100%;
  align-items: stretch;
}

.bpa-header__cell {
  min-width: 0;
}

.bpa-header__cell--menu {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bpa-header-center-bg);
}

.bpa-header__cell--left,
.bpa-header__cell--right {
  background-color: var(--bpa-header-side-bg);
  background-repeat: no-repeat;
  background-size: cover;
}

.bpa-header__cell--left {
  background-image: image-set(
    url("../assets/shared/img/bannerleft_400.webp") 1x,
    url("../assets/shared/img/bannerleft_800.webp") 2x
  );
  background-position: left center;
}

.bpa-header__cell--right {
  background-image: image-set(
    url("../assets/shared/img/banneright_400.webp") 1x,
    url("../assets/shared/img/banneright_800.webp") 2x
  );
  background-position: right center;
}

.bpa-header__cell--title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bpa-header-center-bg);
}

.bpa-header .md-header__button.md-icon:first-child {
  position: relative;
  z-index: 3;
  margin: 0;
}

.bpa-header .md-header__title {
  display: none;
}

.bpa-header__title-link {
  width: 100%;
  padding: 0 1rem;
  color: #fff;
  font-size: var(--bpa-banner-title-size);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  text-align: center;
  text-decoration: none;
}

.md-tabs {
  background: var(--md-default-bg-color);
  border-bottom: 1px solid rgba(15, 39, 66, 0.12);
  height: 36px;
}

.md-tabs__item {
  color: #224c42;
}

.md-tabs__list {
  height: 36px;
  justify-content: flex-start;
}

.md-tabs__link {
  color: #224c42;
  font-weight: 600;
  line-height: 36px;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 2px solid transparent;
}

.md-tabs__link:hover {
  color: var(--md-accent-fg-color);
}

.md-tabs__link--active {
  color: var(--md-accent-fg-color);
  border-bottom-color: var(--md-accent-fg-color);
}

.md-header {
  box-shadow: none;
}

.md-main {
  padding-top: 0;
}

.md-main__inner {
  margin-top: 1.25rem;
}

.md-footer,
.md-footer-meta {
  background-color: var(--md-default-bg-color);
  border-top: 1px solid #cfcfcf;
}

.bpa-footer-meta {
  position: relative;
  display: flex !important;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
}

.bpa-footer-meta__contact {
  position: absolute;
  left: 0;
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  z-index: 1;
}

.bpa-footer-meta__contact a {
  color: #0b57d0;
  text-decoration: none;
}

.bpa-footer-meta__contact a:hover {
  text-decoration: underline;
}

.bpa-footer-meta__copyright {
  display: flex;
  justify-content: center;
}

.md-copyright {
  text-align: center;
  color: #4a4a4a;
}

.md-copyright__highlight {
  color: inherit;
}

a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' stroke='currentColor' fill='none' stroke-width='2'/%3E%3Cpath d='M15 3h6v6' stroke='currentColor' fill='none' stroke-width='2'/%3E%3Cpath d='M10 14L21 3' stroke='currentColor' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.md-content img.phone-shot,
.md-content img.wide-shot {
  display: block;
  max-width: 100%;
  height: 400px;
  margin: 1rem auto;
  object-fit: contain;
}

.md-content img.phone-shot {
  width: 225px;
}

.md-content img.wide-shot {
  width: 450px;
}

@media screen and (max-width: 76.2344em) {
  .bpa-header__title-link {
    width: 100%;
  }
}

@media screen and (max-width: 44.9844em) {
  :root {
    --bpa-header-height: 48px;
    --bpa-banner-title-size: clamp(1rem, 3.7vw, 1.3rem);
  }

  .bpa-header .md-header__inner {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .bpa-header__cell--left,
  .bpa-header__cell--right {
    display: none;
  }

  .bpa-header__cell--title {
    justify-content: center;
  }

  .bpa-header__title-link {
    width: min(92%, 18rem);
    font-size: 1rem;
  }

  .bpa-footer-meta {
    position: static;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  .bpa-footer-meta__contact,
  .bpa-footer-meta__copyright {
    position: static;
    text-align: center;
  }

  .md-content img.phone-shot,
  .md-content img.wide-shot {
    width: 100%;
    height: auto;
    max-width: min(100%, 28rem);
  }
}
