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

html, body { margin: 0; }

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select { font: inherit; color: inherit; }

a { color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); }

/* O atributo hidden sempre vence estilos de layout (display:flex/grid) */
[hidden] { display: none !important; }

.num { text-align: right; font-variant-numeric: tabular-nums; }

.muted { color: var(--text-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

kbd {
  font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 6px;
  background: rgba(0, 0, 0, .08);
}
