/*
 * Capitan FA compatibility shim (self-hosted Font Awesome Free 6).
 *
 * The agency build targets Font Awesome PRO in two ways that free FA needs help
 * with. On production the Pro kit handled both; with self-hosted Free we bridge
 * them here so rendering is identical.
 */

/*
 * (1) custom.css draws several icons via CSS ::before/::after using
 *     font-family:"Font Awesome 6 Pro" (back-arrow \f060, dropdown chevrons
 *     \f078, form-validation icon). Those glyphs are all free-solid, and the
 *     rules carry no font-weight (default 400), so we alias the "Pro" family to
 *     the self-hosted solid font at both 400 and 900 — matching how the Pro kit
 *     fell back to solid on production.
 */
@font-face {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url(../webfonts/fa-solid-900.woff2) format("woff2"),
       url(../webfonts/fa-solid-900.ttf) format("truetype");
}
@font-face {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(../webfonts/fa-solid-900.woff2) format("woff2"),
       url(../webfonts/fa-solid-900.ttf) format("truetype");
}

/*
 * (2) A few <i> icons reference solid-only glyphs with the regular (far) or
 *     legacy bare (fa) prefix (check, plus, minus, search, chevron-right —
 *     none have a regular variant even in Pro). Force the solid font so they
 *     render, matching production's fallback.
 */
.far.fa-check, .fa.fa-check,
.far.fa-plus, .fa.fa-plus,
.far.fa-minus, .fa.fa-minus,
.far.fa-search, .fa.fa-search,
.far.fa-chevron-right, .fa.fa-chevron-right {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
