/* Review carousel.
 *
 * Every rule here is scoped to .is-carousel, which JavaScript adds. Without the
 * script the reviews render as a plain stacked column: worse layout, complete
 * content. Nothing is hidden by CSS alone. */

.review-carousel {
  position: relative;
}

/* Slides share one grid cell, so the container holds the height of the longest
 * review and the page below it never jumps mid-rotation. */
.is-carousel .review-track {
  display: grid;
}

.is-carousel .review-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease;
}

.is-carousel .review-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.review-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 200ms ease, background-color 200ms ease;
}

.review-dot:hover {
  opacity: 0.8;
}

.review-dot.is-active {
  background: currentColor;
  opacity: 1;
}

.review-dot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .is-carousel .review-slide {
    transition: none;
  }
}
