/* Service photograph slideshows; unused simulation styles removed. */
.demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  /* Matte: a solid surface and a border, no drop shadow. */
  background: var(--color-surface);
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.demo-stat {
  font-variant-numeric: tabular-nums;
}

.demo-stat strong {
  color: var(--color-cream);
  font-weight: 600;
}

.demo-stage {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-ink-2);
}

.demo-caption {
  color: var(--color-muted-2);
  font-size: 0.6875rem;
  line-height: 1.6;
  text-align: center;
}

.sl-stage {
  aspect-ratio: 4 / 3;
}

.sl-track,
.sl-slide {
  height: 100%;
}

/* The server marks one slide active, so the panel is a finished picture
   before demos.js runs — the same contract the other demos keep. */
.sl-slide:not([data-active]) {
  display: none;
}

.sl-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-label {
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Controls sit on the photograph as solid discs. Matte: no translucent panel
   and no blur behind them. */
.sl-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-cream);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.sl-nav:hover {
  border-color: var(--color-accent-500);
  background: var(--color-surface-2);
}

.sl-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-nav--prev {
  inset-inline-start: 0.625rem;
}

.sl-nav--next {
  inset-inline-end: 0.625rem;
}

/* The chevrons are drawn pointing left and right, so they flip with the
   document direction. */
[dir="rtl"] .sl-nav svg {
  scale: -1 1;
}

.sl-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.sl-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--color-line-strong);
  cursor: pointer;
  transition: background-color 0.2s, scale 0.2s;
}

.sl-dot[aria-pressed="true"] {
  background: var(--color-accent-600);
  scale: 1.25;
}

@media (prefers-reduced-motion: reduce) {
  .sl-nav,
  .sl-dot {
    transition: none;
  }
}

