/* Tipografia única da interface web. Reutiliza a Inter já distribuída no projeto. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/filament/filament/inter/inter-latin-ext-wght-normal-HA22NDSG.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/filament/filament/inter/inter-latin-wght-normal-NRMW37G5.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --cjf-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cjf-font-normal: 400;
    --cjf-font-medium: 500;
    --cjf-font-semibold: 600;
    /* Compatibilidade com componentes antigos, sem voltar aos pesos 700–900. */
    --cjf-font-light: 400;
    --cjf-font-bold: 600;
    --cjf-font-extrabold: 600;
    --cjf-font-black: 600;
}

html,
body {
    font-family: var(--cjf-font-sans);
    font-weight: 400;
}

/* Especificidade intencional para uniformizar os layouts e o preflight antigo. */
html body,
html body :is(button, input, select, textarea, .font-sans, .font-serif, .font-display, .font-mono:not(pre):not(code)) {
    font-family: var(--cjf-font-sans) !important;
}

html body :is(h1, h2, h3, h4, h5, h6, button, [role='button'], strong, b, th),
html body :is(.font-bold, .font-extrabold, .font-black) {
    font-weight: 600 !important;
}

html body :is(label, label[class]) {
    font-weight: 500 !important;
}

html body :is(input, input[class], select, select[class], textarea, textarea[class]) {
    font-weight: 400 !important;
}

/* Códigos em campos continuam legíveis sem uma segunda fonte na interface. */
html body .font-mono:not(pre):not(code) {
    font-variant-numeric: tabular-nums;
}

#cjfSidebar :is(.s-parent-btn, .s-link, .s-profile-name) {
    font-weight: 500 !important;
    letter-spacing: normal;
}

#cjfSidebar :is(.s-parent-btn.is-active, .s-link.is-active) {
    font-weight: 600 !important;
}
