/* base.css - ajustes gerais: zera diferenças entre navegadores e define o texto padrão. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 var(--e-3); line-height: 1.25; color: var(--verde-escuro); }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 var(--e-3); }
a { color: var(--verde-escuro); text-underline-offset: .15em; }
a:hover { color: var(--verde-escuro-2); }
img, svg { max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Números alinhados em colunas (notas, valores) */
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }

/* Anel de foco bem visível para quem navega pelo teclado */
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: var(--raio-sm); }

/* Só para leitores de tela */
.so-leitor {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Link "pular para o conteúdo" (aparece ao apertar Tab) */
.pular {
  position: absolute; left: var(--e-3); top: -4rem; z-index: 100;
  background: var(--verde-escuro); color: #fff; padding: var(--e-2) var(--e-4);
  border-radius: var(--raio-sm); text-decoration: none;
}
.pular:focus { top: var(--e-3); }

.icone { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor;
         stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
