/* ==========================================================================
   BASE — reset, tipografia global, foco, utilitários.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--slate-50);
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
/* Nada passa da borda da tela na horizontal (cartões chegando, página deslizando).
   Sem isso o celular alarga a área visível no meio da transição: cabeçalho e gráfico
   ficam deslocados para a direita e a dock desce. "clip" (não "hidden") mantém a rolagem e o sticky. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--slate-50);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
button:disabled { cursor: not-allowed; opacity: .45; }

/* Ícones: traço consistente, herda a cor do texto */
.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Foco visível apenas por teclado — anel da marca */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 8px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
