/* Homepage expectation-card repair — paired with drain-relief-carousel-fix.js. */
.section_expectations .swiper {
  overflow: hidden;
}

.section_expectations .expectation_cards {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  transition: transform 320ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.section_expectations .expectation_card {
  position: relative;
  isolation: isolate;
  min-height: 31rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--bg-color--bg-dark);
  flex: 0 0 calc((100% - 3rem) / 3);
  width: calc((100% - 3rem) / 3);
}

.section_expectations .expectation_card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section_expectations .expectation_card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(7, 23, 33, .04) 24%, rgba(7, 23, 33, .22) 47%, rgba(7, 23, 33, .94) 100%);
}

.section_expectations .expectation-card_panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 44%;
  padding: 2rem;
  align-items: flex-end;
  color: var(--text-color--text-on-primary);
}

.section_expectations .expectation-card_statement {
  max-width: 25ch;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
}

/* The source has a desktop control pair and a phone control pair. Keep only
   the appropriate pair visible at each breakpoint. */
.section_expectations .expectation_arrows {
  display: flex;
  width: 100%;
  gap: .75rem;
  justify-content: flex-end;
  align-items: center;
}

.section_expectations .expectation_arrows_phone {
  display: none;
}

.section_expectations .arrow_container[aria-disabled="true"] {
  cursor: default;
  opacity: .45;
}

.section_expectations .arrow_container:focus-visible {
  outline: 3px solid var(--bg-color--bg-dark);
  outline-offset: 3px;
}

@media screen and (max-width: 991px) {
  .section_expectations .expectation_card {
    flex-basis: calc((100% - 1.5rem) / 2);
    width: calc((100% - 1.5rem) / 2);
  }
}

@media screen and (max-width: 767px) {
  .section_expectations .expectation_arrows_desktop {
    display: none;
  }

  .section_expectations .expectation_arrows_phone {
    display: flex;
  }

  .section_expectations .expectation_card {
    flex-basis: 100%;
    width: 100%;
    min-height: 27rem;
  }

  .section_expectations .expectation-card_panel {
    min-height: 40%;
    padding: 1.5rem;
  }

  .section_expectations .expectation-card_statement {
    max-width: 26ch;
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section_expectations .expectation_cards {
    transition: none;
  }
}
