/* reset e elementos base */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: var(--txt-base);
  line-height: 1.45;
  color: var(--cor-texto);
  background: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }

a { color: var(--cor-primaria); text-decoration: none; }
a:hover { text-decoration: underline; }

/* foco visível em tudo — o Galileu não tem, nós temos */
:focus-visible {
  outline: 2px solid var(--cor-foco);
  outline-offset: 1px;
}

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

input, select, textarea {
  font: inherit;
  color: var(--cor-texto);
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda-forte);
  border-radius: var(--raio);
  padding: 5px 8px;
  width: 100%;
  min-height: 30px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cor-primaria);
  outline: 2px solid color-mix(in srgb, var(--cor-primaria) 30%, transparent);
  outline-offset: 0;
}
input[type="checkbox"], input[type="radio"] {
  width: auto; min-height: 0; margin: 0;
  accent-color: var(--cor-primaria);
}
textarea { min-height: 72px; resize: vertical; }

table { border-collapse: collapse; width: 100%; }

/* utilitários */
.oculto { display: none !important; }
.visualmente-oculto {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.texto-fraco { color: var(--cor-texto-fraco); }
.texto-dir { text-align: right; }
.texto-centro { text-align: center; }
