/* Keep the server-rendered page usable before optional interactions initialize. */
dialog:not([open]) {
  display: none !important;
}

#intro[hidden] {
  display: none !important;
}

/* Independent fallback if the script that closes the intro never completes. */
#intro:not([hidden]) {
  animation: mb-intro-fail-open 4s step-end forwards;
}

@keyframes mb-intro-fail-open {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

body.intro-running {
  overflow-y: auto;
}

html:not(.mb-motion-ready) .reveal.pending {
  opacity: 1 !important;
  transform: none !important;
}

#footer-navigation {
  scroll-margin-top: 8rem;
}
