/* .highlights-section {
  padding-bottom: var(--block-space-lg);
} */

@media (prefers-reduced-motion: reduce) {
  :root {
    --ease: linear;
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-highlights__active-body {
  height: 100%;
}

.feature-highlights__active-body.is-entering {
  animation: panel-enter 0.35s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .feature-highlights__active-body.is-entering {
    animation: none;
  }
}

/* =========================================================
   Component
   ========================================================= */
/* .feature-highlights__stack {
  display: flex;
  flex-direction: column;
} */

.feature-highlights__row {
  @media (min-width: 860px) {
    display: flex;
    flex-direction: row;
    min-height: 600px;
  }
}

@media (min-width: 860px) {
  .feature-highlights--flipped .feature-highlights__row {
    flex-direction: row-reverse;
  }

  .feature-highlights--flipped .feature-highlights__active {
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  }

  .feature-highlights--flipped .feature-highlights__visual {
    border-left: 1px solid var(--neutral-300);
    border-right: none;
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
  }

  .feature-highlights--flipped .feature-highlight-item {
    border-radius: 0 0 var(--border-radius-lg) 0;
  }
}

.feature-highlights__left {
  display: flex;
  flex-direction: column;
  flex-basis: 50%;
  /* border-right: 1px solid var(--neutral-300); */
}
.feature-highlights__active {
  background-color: #fff;
  z-index: 40;
  border-bottom-left-radius: var(--border-radius-lg);
  border-top-left-radius: var(--border-radius-lg);
  /* border-bottom: 1px solid var(--neutral-300); */
  flex-grow: 1;
  overflow: hidden;
  border: 1px solid var(--neutral-300);
}

.feature-highlight-content {
  display: flex;
  flex-direction: column;
  gap: var(--block-space-sm);
  padding: 30px;

  @media (min-width: 860px) {
    justify-content: space-between;
    padding: 60px 60px 16px 60px;
  }
}

.feature-highlight-content__title {
  font-size: 24px;
}

/* .feature-highlight-content__description {
  max-width: 42ch;
} */

.feature-highlight-content__visual {
  position: relative;

  overflow: hidden;
}

.feature-highlights__visual {
  display: none;

  @media (min-width: 860px) {
    display: block;
    border-right: 1px solid var(--neutral-300);
    border-top: 1px solid var(--neutral-300);
    border-bottom: 1px solid var(--neutral-300);
    border-bottom-right-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    overflow: hidden;
    flex-basis: 50%;
  }
}

.feature-highlight-content__mobile-visual {
  display: block;
  width: 100%;
  border-radius: var(--border-radius-md);
  object-fit: cover;

  @media (min-width: 860px) {
    display: none;
  }
}

.feature-highlights__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-highlights__list {
  display: flex;
  flex-direction: column;
}

.feature-highlight-item {
  position: relative;
  border-bottom: 1px solid var(--neutral-300);
  border-left: 1px solid var(--neutral-300);
  border-right: 1px solid var(--neutral-300);
  border-radius: 0 0 0 var(--border-radius-lg);
  margin-top: calc(-1 * var(--block-space-md));
  overflow: hidden;
  background-color: #fff;
}

/* z-index is assigned dynamically in slides.js based on item count */

.feature-highlight-item__header {
  appearance: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 42px 30px 10px;

  @media (min-width: 860px) {
    padding: calc(var(--block-space-sm) + 16px) 10px 10px 60px;
  }
}

.feature-highlight-item:hover {
  button {
    background-color: var(--neutral-75);
  }
}

/* .feature-highlight-item__header:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: -2px;
} */

.feature-highlight-item.is-current {
  button {
    color: #009d61;
  }
}

.feature-highlight-item__title {
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
  /* font-weight: 400; */
  font-size: 0.875rem;
}

/* Full content lives here for SEO. Note: no <img src> tags — image
   URLs are on data-image attributes so the browser never fetches
   them until an item is actually shown. A <noscript><img></noscript>
   fallback keeps things visible to no-JS visitors and crawlers that
   don't run JS. */
.feature-highlight-item__seo-body {
  display: none;
}
