/* GERADO por design/sincronizar.js a partir de design/ — não editar aqui. */
/* =========================================================================
   EmerAlerta — base: reset, tipografia, foco, ícones, utilitários.
   Depende de tokens.css. Seletores de elemento só aqui (especificidade 0-0-1).
   ========================================================================= */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--c-fundo);
    color: var(--c-texto);
    font-family: var(--fonte-texto);
    font-size: var(--tx-16);
    line-height: var(--lh-16);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* O atributo hidden ganha sempre a classes com display próprio (.campo, .botao…). */
[hidden] { display: none !important; }

/* Botões e campos não herdam a fonte por omissão (era a causa do Arial). */
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--fonte-titulo);
    font-weight: 600;
    letter-spacing: 0;
    text-wrap: balance;
}
h1 { font-size: var(--tx-32); line-height: var(--lh-32); }
h2 { font-size: var(--tx-24); line-height: var(--lh-24); }
h3 { font-size: var(--tx-20); line-height: var(--lh-20); }
h4 { font-family: var(--fonte-texto); font-size: var(--tx-16); line-height: var(--lh-16); }

p { margin: 0 0 var(--e-4); }
p:last-child { margin-bottom: 0; }
small { font-size: var(--tx-14); line-height: var(--lh-14); }

a { color: var(--c-ligacao); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }

hr { border: 0; border-top: 1px solid var(--c-borda); margin: var(--e-6) 0; }

/* Foco sempre visível no teclado — anel de 3px, afastado 2px do elemento. */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--c-foco-anel);
    outline-offset: 2px;
}

/* Movimento reduzido: corta transições e animações de uma vez. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Ícones (sprite local, traço 1.75px) -------------------------------- */
/* Uso: <svg class="icone" aria-hidden="true"><use href="…/icones.svg#i-bell"/></svg> */
.icone {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -4px;
}
.icone-14 { width: 14px; height: 14px; vertical-align: -2px; }
.icone-16 { width: 16px; height: 16px; vertical-align: -3px; }
.icone-24 { width: 24px; height: 24px; }
.icone-32 { width: 32px; height: 32px; stroke-width: 1.5; }
.icone-forte { stroke-width: 2.25; }

/* --- Utilitários (poucos, de propósito) --------------------------------- */
.numeros { font-variant-numeric: tabular-nums; }
.texto-suave { color: var(--c-texto-suave); }
.titulo-condensado { font-family: var(--fonte-titulo); }
.so-leitor {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}
