/**
 * Fallbacks for Safari before flex gap, inset, color-mix, and clamp.
 *
 * Modern browsers keep the existing gap rules. The margin fallback is
 * removed once inset is supported, which shipped with flex gap.
 */

.ach-header {
  background: #f7f4ef;
  background: color-mix(in srgb, var(--ach-color-canvas) 94%, white);
}

.ach-container,
.ach-container-narrow {
  margin-left: auto;
  margin-right: auto;
}

.ach-campaign,
.ach-campaign-slide,
.ach-campaign-slide.is-photo {
  min-height: 34rem;
  min-height: clamp(34rem, 72vh, 50rem);
}

.ach-campaign-slide.is-photo .ach-campaign-image {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.ach-campaign-slide.is-photo > picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  min-height: 0;
}

.ach-campaign-slide.is-photo > picture > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: cover;
}

.ach-split-grid > picture {
  display: block;
  width: 100%;
  min-width: 0;
}

.ach-split-grid > picture > img {
  display: block;
  width: 100%;
  height: auto;
}

.ach-section h2,
.ach-prose h2 {
  font-size: 1.75rem;
  font-size: var(--ach-size-700);
  line-height: 1.2;
}

.ach-header-actions > * + * {
  margin-left: 0.5rem;
}

.ach-cta-row > * + *,
.ach-cta > * + * {
  margin-left: 0.75rem;
}

.ach-campaign-controls > * + * {
  margin-left: 0.5rem;
}

.ach-campaign-dots > * + * {
  margin-left: 0.4rem;
}

@media (max-width: 991px) {
  .ach-nav.is-open .ach-menu > li + li {
    margin-top: 0.5rem;
  }
}

@media (min-width: 992px) {
  .ach-header-inner > * + * {
    margin-left: 1.5rem;
  }

  .ach-menu > li + li,
  .ach-footer-menu > li + li {
    margin-left: 1.35rem;
  }
}

@supports (inset: 0) {
  .ach-header-actions > * + *,
  .ach-cta-row > * + *,
  .ach-cta > * + *,
  .ach-campaign-controls > * + *,
  .ach-campaign-dots > * + * {
    margin-left: 0;
  }

  @media (max-width: 991px) {
    .ach-nav.is-open .ach-menu > li + li {
      margin-top: 0;
    }
  }

  @media (min-width: 992px) {
    .ach-header-inner > * + *,
    .ach-menu > li + li,
    .ach-footer-menu > li + li {
      margin-left: 0;
    }
  }
}
