/* Andy Bell Modern CSS Reset — VetMapa Warsaw
   https://andy-bell.co.uk/a-more-modern-css-reset/
   Inlined for zero HTTP round-trips.
   ============================================================ */

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

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

/* 3. Root font & text-size */
html {
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}

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

/* 5. Heading balance */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* 6. Readable prose */
p,
li,
figcaption {
  text-wrap: pretty;
  max-inline-size: 65ch;
}

/* 7. Media — block-level & responsive */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-inline-size: 100%;
}

/* 8. Form controls inherit font */
input,
button,
textarea,
select {
  font: inherit;
}

/* 9. Textarea resize axis */
textarea {
  resize: vertical; /* fallback */
  resize: block;
}

/* 10. Scroll offset for anchor targets */
:target {
  scroll-margin-block: 3ex;
}

/* 11. Remove list styles on ul/ol with role="list"
       (opt-in: apply [role="list"] where semantics matter) */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* 12. Smooth scrolling — honour motion preference */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* 13. Short animation duration for reduced-motion users */
@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;
  }
}

/* 14. Remove default button styles */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

/* 16. Inherit text decoration */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

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

/* 18. Accessible focus outline — never remove, only restyle */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* 19. Remove number input spinners */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 20. Fieldset / legend normalisation */
fieldset {
  border: none;
  padding: 0;
}

legend {
  padding: 0;
}
