/* History restoration must be immediate. Enable native CSS smoothing only
   during an intentional anchor click, never while a document is loading. */
html {
  scroll-behavior: auto;
}

html.is-anchor-scrolling {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html,
  html.is-anchor-scrolling {
    scroll-behavior: auto;
  }
}
