/* Legacy banner structure, styled with the MIE Solutions design foundation. */
.banner__wrapper {
  padding-block: clamp(24px, 4vw, 64px);
}

.banner {
  overflow: hidden;
  position: relative;
  background: var(--mie-ink, #17304d);
  color: #fff;
  border: 0;
  border-radius: clamp(22px, 2.6vw, 48px);
}

.banner__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.banner__layout > * {
  min-width: 0;
  box-sizing: border-box;
}

.banner__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 72px);
}

.banner__content h2 {
  max-width: 15ch;
  margin: 0 0 .65em;
  color: #fff;
  font-family: 'Babcock', Arial, sans-serif;
  font-size: clamp(30px, 3.1vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.banner__content h2 em {
  color: var(--mie-cyan, #00d9ff);
  font-style: normal;
}

.banner__text {
  max-width: 38rem;
  margin-bottom: clamp(24px, 2.5vw, 40px);
}

.banner__text,
.banner__text p {
  color: #fff;
  font-size: clamp(17px, 1.4vw, 24px);
  line-height: 1.5;
}

.banner__text > :first-child { margin-top: 0; }
.banner__text > :last-child { margin-bottom: 0; }

.banner__content .mie-button {
  max-width: 100%;
  padding: 16px 26px;
  border: 1px solid var(--mie-red, #cf2030);
  border-radius: var(--mie-button-radius, 100px);
  background: var(--mie-red, #cf2030);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 160ms ease;
}

.banner__content .mie-button:hover {
  background: #ae1725;
  border-color: #ae1725;
}

.banner a:focus-visible {
  outline: 3px solid var(--mie-cyan, #00d9ff);
  outline-offset: 5px;
}

.banner__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.banner__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.banner--image-left .banner__media img {
  object-position: right center;
}

@media (min-width: 1025px) {
  .banner__media img {
    position: absolute;
    inset: 0;
  }
  .banner--with-image .banner__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner--ratio-30-70 .banner__layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  }
  .banner--ratio-30-70.banner--image-left .banner__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  }
  .banner--image-left .banner__media {
    grid-column: 1;
    grid-row: 1;
  }
  .banner--image-left .banner__content {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  .banner__content .mie-button { width: 100%; }
}
