/* Letra propia (20-10-2026). Servida desde CORE (sin pedirla a Google).
   - CORE Texto: Inter afinada (a de un piso, l con cola, cifras de ancho fijo). Letra de todo CORE.
     El cero tachado solo en tablas, matrículas y VIN (donde se confunde con la O).
   - Core Display: Bricolage Grotesque renombrada. Solo títulos de pantalla y cifras grandes.
   Licencias (SIL OFL 1.1) junto a las fuentes: public/assets/fonts/core/OFL-*.txt
 */

@font-face {
    font-family: "CORE Texto";
    src: url("../fonts/core/CoreTexto-Variable.woff2?v=3") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "CORE Texto";
    src: url("../fonts/core/CoreTexto-Variable-Italic.woff2?v=3") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Core Display";
    src: url("../fonts/core/CoreDisplay-Variable.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

:root {
    --dx-font-sans: "CORE Texto", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --dx-font-display: "Core Display", "CORE Texto", system-ui, sans-serif;
}

/* Títulos de pantalla y cifras grandes en Core Display. CORE fija letras con !important dentro de
   @layer cm-color-mode: se gana en esa misma capa. */
@layer cm-color-mode {
    html body.app-body .app-content :is(h1, .app-page-title),
    html body.app-body :is(
        .dxp-hero-big b, .dxp-num, .dxp-rank-big b, .dxp-split-n, .dxp-tiles b,
        .dxr-big, .dxf-big strong, .pave-now-figure strong, .audit-person-stats strong,
        .fleet-summary-card strong.fs-4, .dashboard-kpi-value
    ) {
        font-family: var(--dx-font-display) !important;
        font-optical-sizing: auto;
    }
}

/* cero tachado donde se confunde con la O: tablas, matrículas y VIN */
html body.app-body .app-content :is(table td, .van-identity, [class*="plate"], [class*="vin"]) { font-variant-numeric: tabular-nums slashed-zero; }
