/*
 * FIX — PageSpeed "Font display" audit (Est savings of 3,000ms).
 *
 * Confirmed via PowerShell:
 *   Select-String -Path combined-plugins.min.css -Pattern fa-solid-900
 * returned:
 *   @font-face{font-family:"fontawesome";font-style:normal;
 *   font-weight:900;...src:url(../fonts/fa-solid-900.woff2)...}
 *
 * Two things that were wrong in the first version of this file:
 * 1. Font family is "fontawesome" (lowercase, one word) — not
 *    "Font Awesome 5 Free". A font-display override only takes effect
 *    if font-family + font-weight + font-style match the original
 *    @font-face exactly, so the old version silently did nothing.
 * 2. The files live in assets/fonts/, not assets/webfonts/ — fixed
 *    below and in the two <link rel="preload"> tags in
 *    headerPlugins.blade.php.
 *
 * This file must load AFTER combined-plugins.min.css so these rules
 * win the cascade (same family+weight+style = later @font-face wins,
 * no !important needed).
 */

@font-face {
    font-family: "fontawesome";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/fa-solid-900.woff2") format("woff2"),
    url("../fonts/fa-solid-900.woff") format("woff");
}

@font-face {
    font-family: "fontawesome";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/fa-regular-400.woff2") format("woff2"),
    url("../fonts/fa-regular-400.woff") format("woff");
}

/*
 * TODO — fa-brands-400 rule intentionally left out for now.
 * I don't yet know its real font-family/font-weight/font-style from
 * your CSS (brands icons in Font Awesome 5 are sometimes registered
 * under a DIFFERENT family name than "fontawesome", e.g. "Font
 * Awesome 5 Brands" — or they might share "fontawesome" with a
 * different weight/unicode-range in this bundle). Guessing here would
 * repeat the same mistake as the path guess above.
 *
 * Run this and send me the result:
 *   (Get-Content "public\assets\css\combined-plugins.min.css" -Raw) `
 *     -split '(?=@font-face)' | Select-String "fa-brands-400"
 *
 * Once I have the exact font-family/font-weight/font-style, I'll add
 * the matching swap override here and also drop the redundant .woff
 * fallback (only .woff2 is needed for any browser except IE11).
 */
