/* Site additions on top of the reference CSS. Keep this file small: it must not change the
   reference look, only add behaviour-level styling the reference achieved with runtime JS. */

/* WCAG 2.2 target size: enlarge the hit area of the small carousel dots without changing
   their appearance. */
button[aria-label^="Go to slide"] { box-sizing: content-box; padding: 8px; margin: -8px; background-clip: content-box; }

/* Keyboard focus stays visible on custom controls (reference relies on browser defaults). */
[role="button"]:focus-visible, [data-er-gbtn]:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

/* Reduced motion: stop decorative transitions and smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Viewport-specific components captured from the reference's phone and desktop renders. */
@media (max-width: 767px) { [data-er-vp="desktop"] { display: none !important; } }
@media (min-width: 768px) { [data-er-vp="mobile"] { display: none !important; } }

/* Certificate pages: the 70vh banner holds ~200px of content; on phones it left an empty band. */
@media (max-width: 767px) {
  main section.relative.flex.items-center.justify-center[class*="h-[70vh]"] { height: auto; padding: 72px 0 40px; }
}
