/* base.css - reset, tipografia e helpers. */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  color: var(--texto);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.01em;
}
a { color: var(--cor-primaria); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
p { margin: 0 0 12px; }

/* Numeros: fonte tabular, alinhados a direita (frontend-design 11.4). */
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.entrada { color: var(--entrada); }
.saida { color: var(--saida); }

.text-dim { color: var(--texto-suave); }
.text-fraco { color: var(--texto-fraco); }
.mono { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
:focus-visible { outline: 2px solid var(--cor-primaria); outline-offset: 2px; }

input, button, select, textarea { font-family: inherit; }

/* Icones Phosphor (auto-hospedados). Tamanho/cor via CSS, nunca inline. */
.icon { display: inline-flex; vertical-align: middle; line-height: 1; }
.icon-ok { color: var(--ok); }
