/**
 * Shared Explainability Lab simulator canvas — matches wrapper zoom (980px base width).
 * Link from lab/sim/*.html files loaded inside iframe wrappers.
 */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-width: 980px;
}

button:focus-visible,
[role="button"]:focus-visible,
a.lab-sim-control:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}

.control-row button,
.scenario-bar button,
[role="toolbar"] button {
  min-height: 44px;
  padding: 8px 12px;
}

.sim-scroll-region {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
