/* Motion module "reveal": content glides in 9 px from below (it uses `translate`, so the element's own transform stays free).
   The start state only exists while the module runs.

   Real pages, first paint: the stylesheet is linked in <head> (render-blocking) and the loader script is not, so the module
   starts after the first paint. To avoid a flash of visible-then-hidden content, the targets are hidden by this stylesheet from
   the very start (html.js = scripts run; data-motion lists "reveal"; prefers-reduced-motion: no-preference) until the module
   takes over (it sets html.motion-reveal, then data-reveal="wait" on the same elements in the same task). Safety nets: the
   paused state shows everything, and an animation shows everything after 2.5 s even if the module never starts (blocked or
   broken script). The cost: with a slow script the text appears a moment later than it would without this module.
   The lists below are the same as TARGETS and SKIP in reveal.js; a test compares what both select. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js[data-motion~="reveal"]:not(.motion-reveal, .motion-paused, .motion-reduced) main :is(h1, h2, h3, h4, h5, h6, p, blockquote, li, dl, table, pre, details, figure, img, video, iframe, svg, a, button, form, .section-head, .info-row, .press-row, .date-row, .event-row, .image, .video-card, .topic-card, .event-card, .archive-card, .partner-card, .person-card, .join-item, .download-item, .faq-item, .notice, .event-facts, .newsletter-signup, .registration-form, .empty-state, .archive-teaser, .pinned-album, .slider, .topic-slider, .filter-bar, .filter-status, .archive-filters, .press__filter, .pagination, .breadcrumb, .toc, .page-head__links, :is(div, span, section, article, aside, nav, ul, ol):not(:has(*))):not(:is(header, footer, [hidden], [aria-hidden="true"], .visually-hidden, .motion-item__head, .map, .lightbox, .load-more, .sticky-bar, .bottom-sheet, .motion-demo__parts), :is(header, footer, [hidden], [aria-hidden="true"], .visually-hidden, .motion-item__head, .map, .lightbox, .load-more, .sticky-bar, .bottom-sheet, .motion-demo__parts) *, :is(h1, h2, h3, h4, h5, h6, p, blockquote, li, dl, table, pre, details, figure, img, video, iframe, svg, a, button, form, .section-head, .info-row, .press-row, .date-row, .event-row, .image, .video-card, .topic-card, .event-card, .archive-card, .partner-card, .person-card, .join-item, .download-item, .faq-item, .notice, .event-facts, .newsletter-signup, .registration-form, .empty-state, .archive-teaser, .pinned-album, .slider, .topic-slider, .filter-bar, .filter-status, .archive-filters, .press__filter, .pagination, .breadcrumb, .toc, .page-head__links, :is(div, span, section, article, aside, nav, ul, ol):not(:has(*))) *) {
    opacity: 0;
    translate: 0 9px;
    animation: motion-reveal-failsafe 1ms linear 2.5s forwards;
  }
}

@keyframes motion-reveal-failsafe {
  to {
    opacity: 1;
    translate: none;
  }
}

.motion-reveal [data-reveal="wait"] {
  opacity: 0;
  translate: 0 9px;
}

.motion-reveal [data-reveal="in"] {
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms), translate 450ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    box-shadow var(--duration-hover-in, 280ms) var(--ease-hover, ease-out), transform var(--duration-hover-in, 280ms) var(--ease-hover, ease-out),
    color var(--duration-hover-in, 280ms) var(--ease-hover, ease-out), background-color var(--duration-hover-in, 280ms) var(--ease-hover, ease-out), border-color var(--duration-hover-in, 280ms) var(--ease-hover, ease-out); /* this list replaces the element's own, so the hover motion stays while it glides in */
}

@media print {
  .motion-reveal [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
  }
}
