/* Job reel carousel — stacked until JS adds .is-ready */

.job-carousel__track {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.job-carousel.is-ready .job-carousel__track {
  flex-direction: row;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.job-carousel.is-ready .job-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.job-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.job-carousel__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.25s ease, background 0.25s ease;
}

.job-carousel__dot:hover,
.job-carousel__dot:focus-visible {
  background: #94a3b8;
  outline: 2px solid #0284c7;
  outline-offset: 3px;
}

.job-carousel__dot[aria-current="true"] {
  width: 1.75rem;
  background: #e2e8f0;
}

.job-carousel__fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: #0284c7;
  border-radius: inherit;
}

.job-carousel__dot[aria-current="true"] .job-carousel__fill {
  animation: job-carousel-fill 5s linear forwards;
}

.job-carousel.is-paused .job-carousel__fill {
  animation-play-state: paused;
}

@keyframes job-carousel-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-carousel.is-ready .job-carousel__track {
    transition: none;
  }

  .job-carousel__dot[aria-current="true"] .job-carousel__fill {
    animation: none;
    transform: scaleX(1);
  }
}
