/* ============================================================
   ScolerAI Home — deck-carousel.css (2026-11-25)
   Panels side by side inside a deck slide, moved by a sideways swipe,
   the arrows or the dots: the cover (ask the coach · build a sample
   plan) and the curricula slide (national curricula · context-based
   questions). Behaviour: js/deck_carousel.js.

   Same materials as the cover: Layer 3 glass for the arrows, plain
   white for the dots.
   ============================================================ */

/* The track runs the slide's full width (the slide gives up its side
   padding), so a swipe moves the whole screen, and each panel brings
   its own gutter back. */
.slide--carousel { padding-left: 0; padding-right: 0; }
.deck-carousel { position: relative; width: 100%; }
.deck-carousel__track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  transition: height 380ms var(--ease);
}
.deck-carousel__track::-webkit-scrollbar { display: none; }
.deck-carousel__panel {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 6px 24px 8px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Without scripting there are no dots or arrows to say a second panel
   exists: the first panel stands alone. */
html:not(.carousel-js) .deck-carousel__panel + .deck-carousel__panel,
html:not(.carousel-js) .deck-carousel__dots,
html:not(.carousel-js) .deck-carousel__arrow { display: none; }

.deck-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: clamp(14px, 2.2vh, 22px);
}
.deck-carousel__dot {
  width: 34px; height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.deck-carousel__dot::before {
  content: '';
  display: block;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 260ms var(--ease), background 260ms var(--ease);
}
.deck-carousel__dot[aria-selected="true"]::before { width: 26px; background: #FFFFFF; }
.deck-carousel__dot:hover::before { background: rgba(255, 255, 255, 0.75); }
.deck-carousel__dot:focus-visible { outline: 2px solid var(--lilac); outline-offset: -2px; border-radius: 999px; }

.deck-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px; height: 48px;
  margin-top: -40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  color: #FFFFFF;
  display: none;
  place-items: center;
  cursor: pointer;
  transition: background 180ms var(--ease), opacity 220ms var(--ease);
}
.deck-carousel__arrow:hover { background: rgba(255, 255, 255, 0.22); }
.deck-carousel__arrow:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.deck-carousel__arrow:disabled { opacity: 0; pointer-events: none; }
.deck-carousel__arrow--prev { left: clamp(12px, 2.4vw, 40px); }
.deck-carousel__arrow--next { right: clamp(12px, 2.4vw, 40px); }
@media (min-width: 900px) { .deck-carousel__arrow { display: grid; } }

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

@media (max-width: 899px) {
  .deck-carousel__panel { padding-left: 16px; padding-right: 16px; }
}
