/* ==========================================================================
   reset.css
   Modern browser reset / normalize
   Target: modern Chrome, Firefox, Safari, Edge
   ========================================================================== */

/* 1. More predictable sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Improve text rendering and prevent iOS font size adjustment */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 4. Basic body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Avoid image distortion when width/height attributes are used */
img,
picture,
video {
  height: auto;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Remove default button styles where appropriate */
button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* 9. Restore pointer behavior only for disabled controls */
button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
}

/* 10. Make textareas easier to use */
textarea {
  resize: vertical;
}

/* 11. Avoid overflow from long words/URLs */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 12. Improve heading text wrapping in supporting browsers */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* 13. Lists without explicit role should keep semantics.
   Visual list styling is removed only when a class is provided. */
ul[class],
ol[class] {
  list-style: none;
}

/* 14. Anchor defaults */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

/* 15. Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 16. Form field consistency */
fieldset {
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

legend {
  padding: 0;
}

/* 17. Dialog consistency */
dialog {
  padding: 0;
  border: 0;
}

/* 18. Hidden attribute */
[hidden] {
  display: none !important;
}

/* 19. Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}