/* Local approval build: performance safeguards that preserve the approved visual. */

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reserve the final image space before lazy media decodes. */
img:not([width]):not([height]) {
  aspect-ratio: var(--tc-media-ratio, auto);
}
