/* ==========================================================================
   Reset
   A modern, opinionated reset. Strips browser defaults without destroying
   useful semantics (list markers stay for content lists, only removed on
   nav/menu contexts via .list-reset utility later).
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Suppresses the default gray/blue flash Android/iOS browsers show on
     every tap. Interactive elements already have their own :hover/:active
     states, so this default just gets in the way on a touch device. */
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: none;
}

#root,
#app {
  isolation: isolate;
}

/* Focus is restored deliberately in components.css with a visible,
   on-brand focus ring — never remove outline without replacing it. */
:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--color-secondary);
  color: #FFFFFF;
}
