/* <smart-slider>: one slide at a time, dots and arrows below. Before the
   script runs (or without it) every slide shows. */
smart-slider {
  display: block;
}

.smart-slider-slide[hidden] {
  display: none;
}

.smart-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.smart-slider-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Small to see, 32 x 44 to hit. */
.smart-slider-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.smart-slider-dot-mark {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sf-text-disabled);
  transition: width 0.2s ease;
}

.smart-slider-dot[aria-current="true"] .smart-slider-dot-mark {
  width: 26px;
  background: var(--sf-accent-hover);
}

.smart-slider-arrows {
  display: flex;
  gap: 8px;
}

.smart-slider-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--sf-border-strong);
  border-radius: 999px;
  background: var(--sf-surface);
  color: var(--sf-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.smart-slider-arrow:hover {
  border-color: var(--sf-text);
}

.smart-slider-dot:focus-visible,
.smart-slider-arrow:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .smart-slider-dot-mark {
    transition: none;
  }
}
