/* Set-scoped navigation in the Classic library preview. */
body.site .preview-backdrop.is-set-step { animation: none; }
body.site .has-set-navigation .preview-stage {
  width: min(100%,calc((100dvh - 175px) * .72 + 144px),680px);
  box-sizing: border-box;
  grid-template-columns: minmax(0,1fr);
  justify-self: center;
  padding-inline: 64px;
}
body.site .has-set-navigation .preview-card {
  max-width: calc(100% - 16px);
  flex-shrink: 0;
}
body.site .preview-set-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  min-width: 44px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  translate: 0 -50%; /* not transform: .ghost hover/press transforms would drop the centring */
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .15s ease, background-color .15s ease;
}
.preview-set-arrow.previous { left: 12px; }
.preview-set-arrow.next { right: 12px; }
body.site .preview-set-arrow .btn-ico { width: 23px; height: 23px; }
body.site .preview-set-arrow:not(:disabled):hover { border-color: var(--accent); }
body.site .preview-set-arrow:disabled { opacity: .3; cursor: default; }
body.site .preview-set-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.site .preview-set-position { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width:700px) {
  body.site .has-set-navigation .preview-stage { padding-inline: 52px; }
  body.site .preview-set-arrow { width: 40px; min-width: 40px; height: 44px; }
  .preview-set-arrow.previous { left: 6px; }
  .preview-set-arrow.next { right: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  body.site .preview-set-arrow { transition: none; }
}
