/**
 * Fuente única de la aplicación Kontify (frontend).
 *
 * Inter variable (SIL OFL, ver public/fonts/LICENSE-Inter.txt), incluida en
 * el plugin para no depender del tema activo ni de servicios externos. Se
 * fuerza con !important porque muchas vistas traen font-family propio en
 * línea (tema Cardo/serif en títulos, -apple-system en modales, etc.) y la
 * idea es que toda la app se vea con una sola tipografía.
 *
 * Excepciones: fuentes de íconos (Dashicons, Font Awesome…) y código.
 */

@font-face {
    font-family: "Kontify Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/inter-latin-wght-normal.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;
}

@font-face {
    font-family: "Kontify Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/inter-latin-ext-wght-normal.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;
}

:root {
    --scwp-font-app: "Kontify Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --scwp-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html body {
    font-family: var(--scwp-font-app) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Todo el contenido (títulos, tablas, formularios, botones, modales, menú),
   menos los elementos de íconos y de código. */
html body *:not(.dashicons):not([class^="dashicons"]):not([class*=" dashicons"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="fa-"]):not([class*=" fa-"]):not(.material-icons):not(.material-symbols-outlined):not([class^="icon-"]):not([class*=" icon-"]):not(code):not(pre):not(kbd):not(samp) {
    font-family: var(--scwp-font-app) !important;
}

html body code,
html body pre,
html body kbd,
html body samp {
    font-family: var(--scwp-font-mono) !important;
}

/* Los controles de formulario no heredan la fuente por defecto en todos
   los navegadores. */
html body input,
html body select,
html body textarea,
html body button {
    font-family: var(--scwp-font-app) !important;
}

/* Títulos: el tema (p. ej. Twenty Twenty-Four con Cardo) los ponía en serif
   y con peso fino; en la app van en la misma familia, algo más marcados. */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Cifras alineadas en tablas y reportes. */
html body table,
html body .scwp-table {
    font-variant-numeric: tabular-nums;
}
