/* Base: fontes do proprio projeto, zerar margens, corpo, leitor de tela, foco e toque. */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/central/estatico/fontes/Geist-300.woff2") format("woff2");
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/central/estatico/fontes/Geist-400.woff2") format("woff2");
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/central/estatico/fontes/Geist-500.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/central/estatico/fontes/GeistMono-400.woff2") format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--fundo); color-scheme: dark;
  /* o salto para o topo da aba (rotas.js) nao esconde o titulo atras da area segura */
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--e-heroi));
  /* controle que recebe o foco pelo teclado nao fica escondido atras da barra de abas */
  scroll-padding-bottom: calc(var(--abas-alt) + env(safe-area-inset-bottom, 0px) + var(--e-5));
}

body {
  font-family: var(--fonte); font-size: var(--t-14); line-height: var(--a-20); font-weight: 400;
  color: var(--texto); background: var(--fundo);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}

button { font: inherit; font-variant-numeric: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

.so-leitor {
  position: absolute; width: var(--v-1); height: var(--v-1); overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* foco visivel em todo controle, em qualquer navegador */
:focus { outline: none; }
:focus-visible { outline: var(--foco) solid var(--brasa-clara); outline-offset: var(--foco); border-radius: var(--r-selo); }
h1:focus-visible { outline: none; }

/* toque pressionado: todo alvo afunda 1 px e escurece 8% */
button:active, a:active, [role="button"]:active, summary:active {
  transform: translateY(var(--v-1)); filter: brightness(var(--aperta));
}
/* com ponteiro de verdade (computador), o controle clareia ao passar por cima */
@media (hover: hover) {
  button:hover, a:hover, [role="button"]:hover { filter: brightness(var(--realce)); }
}
button[aria-disabled="true"]:active, button:disabled:active { transform: none; filter: none; }
button[aria-disabled="true"]:hover, button:disabled:hover { filter: none; }
