/* Carousel — horizontal track + rocker nav (My Stuff subsections, Explore) */

/* Horizontal carousel for the My Stuff subsections. The rocker (reusing the
   Explore nav buttons) is revealed by updateCarousels() only when overflowing. */
.carousel-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Explore + Topics use wide tiles (graphs / thread previews); Threads + Spaces
   use narrower tiles so three fit with a peek of the fourth. The wide width is
   sized so ~2 1/4 tiles show within the 980 content — the next tile
   peeks at the edge to signal the row scrolls. Empty topic placeholders inherit
   the wide width; .is-narrow placeholders match narrow. */
.carousel-track > .episode-row,
.carousel-track > .explore-tile {
  width: min(396px, 85vw);
}

.carousel-track > .idea-row,
.carousel-track > .space-card,
.carousel-track > .episode-row-empty.is-narrow {
  width: min(292px, 85vw);
}

.carousel-rocker[hidden] {
  display: none;
}

.explore-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-track > .episode-row-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  cursor: default;
  text-align: center;
}

.episode-row-empty p {
  margin: 0;
}

/* Inline bookmark cue in the empty-state copy. */
.episode-row-empty .bookmark-glyph {
  vertical-align: -4px;
  margin: 0 -3px 0 0;
}

.episode-row-empty .bookmark-glyph svg {
  width: 16px;
  height: 16px;
}

/* Explore / carousel nav buttons (the rocker reuses these) */

.explore-nav-group {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.explore-nav {
  appearance: none;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.explore-nav:focus-visible {
  background: var(--soft);
  color: var(--ink);
  outline: 0;
}

@media (hover: hover) {
  .explore-nav:hover {
    background: var(--soft);
    color: var(--ink);
  }
}
