/*
  Normalisation only. No colour, no spacing decision, no component rule -
  those belong to app.css and to the per-component .razor.css files.
*/

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
}

a {
  color: inherit;
}

/*
  Accessibility gate, not a preference: when the visitor asks for reduced
  motion, nothing animates. Kept here rather than in each component so a new
  component cannot forget it.

  This is the one deliberate "!important" in the codebase, and the reason is
  specificity, not a cascade the author lost control of: these rules use the
  universal selector (specificity 0,0,0) and must override component-scoped
  transitions, which always score higher. Without it the guard would silently
  fail for every component that declares a transition - the exact failure it
  exists to prevent. See validation-log.md, gate G6.
*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
