/* =========================================================
   RESET CSS (SAFE)
   - neutro (sem estilos do site)
   - não mata scroll
   - não usa 100dvh global
========================================================= */

/* 1) Box model confiável */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2) Remove margens padrão */
html, body {
  margin: 0;
  padding: 0;
}

/* 3) Base de leitura + zoom mobile */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* só impede scroll lateral */
  overflow-x: hidden;
}

/* 4) Corpo sem travar rolagem */
body {
  line-height: 1.4;
  overflow-x: hidden;
  /* ❌ NÃO coloque height/min-height 100dvh aqui */
}

/* 5) Imagens e mídia não estouram container */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6) Links neutros */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* 7) Listas sem padding/marcador */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 8) Remove margens padrão de texto */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
  font-weight: inherit;
}

/* 9) Form elements: mantém fonte consistente */
button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Botões sem estilo nativo */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Textarea controlada */
textarea {
  resize: vertical;
}

/* Tabelas consistentes */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Fieldset/legend neutros */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}

/* 10) Acessibilidade do foco */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .25);
  outline-offset: 2px;
}

/* 11) Mobile tap highlight */
button, a, input, label {
  -webkit-tap-highlight-color: transparent;
}
