/*
 * Century Gothic — обязательный шрифт для всех клиентских страниц.
 * Загружается из папки темы assets/fonts/.
 * Не применяется в админке.
 */

@font-face {
    font-family: 'CenturyGothic';
    src: url('../fonts/CenturyGothic.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CenturyGothic';
    src: url('../fonts/CenturyGothic-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'CenturyGothic';
    src: url('../fonts/CenturyGothic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CenturyGothic';
    src: url('../fonts/CenturyGothic-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/*
 * Применяем шрифт ко всем элементам сайта принудительно.
 * !important гарантирует приоритет над Bootstrap, Google Fonts и любыми другими стилями.
 */
html,
body,
body *:not(i):not([class*="fa-"]):not([class*="dashicons"]):not([class*="genericons"]):not([class*="icon"]),
body *:not(i):not([class*="fa-"]):not([class*="dashicons"]):not([class*="genericons"]):not([class*="icon"])::before,
body *:not(i):not([class*="fa-"]):not([class*="dashicons"]):not([class*="genericons"]):not([class*="icon"])::after {
    font-family: 'CenturyGothic', 'Century Gothic', CenturyGothic, sans-serif !important;
}

/* Явно восстанавливаем шрифты для иконочных шрифтов — они не должны наследовать CenturyGothic */
i.fa, i.fas, i.far, i.fal, i.fab, i.fad,
.fa, .fas, .far, .fal, .fab, .fad,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

span.dashicons, [class^="dashicons-"], [class*=" dashicons-"] {
    font-family: dashicons !important;
}

span.genericon, [class^="genericons-"], [class*=" genericons-"] {
    font-family: Genericons !important;
}
