*,
*::before,
*::after {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--colorBrandStroke1, #0078d4);
  outline-offset: 2px;
}

/*
 * Zero the UA heading margin (UI33). Titles are rendered as real headings
 * (h1/h2) for Narrator heading-navigation, but they carry Fluent's typography
 * classes for their visual ramp (font size/weight/line-height); those classes
 * out-specify this element selector, so only the browser's default heading
 * margin needs removing to keep the layout identical to the former span titles.
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100vh;
}

/*
 * One motion policy (UI26): honor the OS "reduce motion" preference everywhere.
 * The app's transitions are subtle (see MOTION in components/ui/tokens.ts), but a
 * user who asks for less motion gets none — this near-instant override covers any
 * current or future transition/animation without each component opting in.
 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
