/* base.css : reset, tipografia e body. Nada de componente aqui. */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* CRITICO: sem esta linha, form vai pra Arial no Windows ou -apple-system no Mac,
   porque o browser NAO herda font-family do body nesses elementos, e a
   identidade visual colapsa. Regra de Font_Inherit_em_Form. */
button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-titulo);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-3); }

a { color: var(--azul-rrgk-3); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* foco visivel: guardrail de acessibilidade, nao entra na poda */
:focus-visible {
  outline: 2px solid var(--azul-rrgk-3);
  outline-offset: 2px;
}

/* numero em coluna alinha pela casa decimal em qualquer lugar do sistema */
.num, td.num, .valor { font-variant-numeric: tabular-nums; }

.oculto { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
