/* reset.css — load FIRST (engineering skill §2). Includes the EtqanShop hard-won fixes. */

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

body {
  min-block-size: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-inline-size: 100%; }

ul[class], ol[class] { list-style: none; }

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

h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }

p { overflow-wrap: break-word; }

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;        /* browsers do NOT inherit font on buttons */
  color: inherit;
}

/* EtqanShop Wave A — form elements do not inherit font-family */
input, select, textarea, optgroup { font: inherit; color: inherit; }

/* EtqanShop Wave A — strip WebKit/Blink search decorations */
input[type="search"] { -webkit-appearance: none; appearance: none; }

/* EtqanShop Wave A — <address> renders italic by default */
address { font-style: normal; }

/* EtqanShop Wave B — [hidden] must beat display:flex/grid */
[hidden] { display: none !important; }

/* EtqanShop Wave D — predictable <legend> box model */
legend { display: table; max-inline-size: 100%; padding: 0; white-space: normal; }

fieldset { border: none; padding: 0; }
table { border-collapse: collapse; border-spacing: 0; }
textarea { resize: vertical; }

:focus:not(:focus-visible) { outline: none; }

hr { border: none; border-block-start: 1px solid var(--color-border); margin-block: var(--space-lg); }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

@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;
  }
}
