/* Draive · Base: reset, tipografia, foco e utilitários mínimos */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--dv-cor-fundo);
  color: var(--dv-cor-texto);
  font-family: var(--dv-fonte-base);
  font-size: var(--dv-texto-md);
  line-height: var(--dv-altura-linha);
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1 { font-size: var(--dv-texto-2xl); line-height: 1.2; }
h2 { font-size: var(--dv-texto-xl); line-height: 1.25; }
h3 { font-size: var(--dv-texto-lg); line-height: 1.3; }
/* :where() zera a especificidade: o padding definido por qualquer classe prevalece */
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

[hidden] { display: none !important; }

/* Foco sempre visível no teclado */
:focus-visible {
  outline: var(--dv-foco);
  outline-offset: 2px;
  border-radius: var(--dv-raio-sm);
}

/* Utilitários */
.dv-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.dv-container {
  width: 100%;
  max-width: var(--dv-largura-max);
  margin-inline: auto;
  padding-inline: var(--dv-gutter);
}

.dv-main { padding-block: var(--dv-esp-5) var(--dv-esp-8); }

.dv-texto-suave { color: var(--dv-cor-texto-suave); }
.dv-texto-sm { font-size: var(--dv-texto-sm); }
.dv-texto-xs { font-size: var(--dv-texto-xs); }
.dv-mono { font-family: var(--dv-fonte-mono); font-size: 0.92em; }
.dv-num { font-variant-numeric: tabular-nums; }

.dv-pular {
  position: absolute;
  left: var(--dv-esp-2); top: var(--dv-esp-2);
  clip-path: inset(50%);
  z-index: 100;
  padding: var(--dv-esp-2) var(--dv-esp-4);
  background: var(--dv-cor-primaria);
  color: var(--dv-cor-primaria-texto);
}
.dv-pular:focus { clip-path: none; }

/* Rodapé */
.dv-rodape {
  border-top: var(--dv-borda);
  padding-block: var(--dv-esp-5);
  color: var(--dv-cor-texto-suave);
  font-size: var(--dv-texto-sm);
}
.dv-rodape .dv-container { display: flex; flex-wrap: wrap; gap: var(--dv-esp-3); justify-content: space-between; }
