/* site-a11y — site-wide accessibility helpers loaded after index.css.
   Kept separate so the approved homepage bundle (index.css) stays untouched. */

/* .resources__slide[hidden] — slides filtered out by resources-filter.js
   (Swiper sets display on .swiper-slide, so the attribute needs this rule). */
.resources__slide[hidden] {
  display: none;
}

/* video[data-autoplay-blocked] — autoplay refused (iOS Low Power Mode): hide the video and
   Safari's play button over it, the cover photo underneath shows (video-sources.js). */
video[data-autoplay-blocked] {
  visibility: hidden;
}

/* .hero__video, .hero__badge-video — first-screen videos stay hidden until they really play, so
   Safari's play button never flashes before the script above runs (Pavlo, 2026-11-18); the cover
   photo underneath shows meanwhile. data-playing is set by video-sources.js. Only [autoplay]:
   under reduced motion site-a11y.js drops it and the paused video stays visible, as before. */
.hero__video[autoplay]:not([data-playing]),
.hero__badge-video[autoplay]:not([data-playing]) {
  visibility: hidden;
}

/* Reduced motion: show reveal-on-scroll elements immediately, no smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  .fade-up-slow,
  .fade-up-soft,
  .fade-left {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* .screen-reader-text — WordPress convention: text for assistive tech only
   (used by the fallback templates and the tag-page listing heading). */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
