/* Local icon-font isolation layer.
   Font Awesome Free is bundled locally under /assets/vendor/fontawesome/.
   The platform text font must never override Font Awesome or Bootstrap Icons. */

/* Font Awesome solid (including legacy .fas / .fa aliases). */
body.fd-app-body :is(.fa, .fas, .fa-solid),
body.fd-public-body :is(.fa, .fas, .fa-solid),
:is(.fa, .fas, .fa-solid) {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal;
  font-weight: 900 !important;
}

/* Font Awesome regular. */
body.fd-app-body :is(.far, .fa-regular),
body.fd-public-body :is(.far, .fa-regular),
:is(.far, .fa-regular) {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal;
  font-weight: 400 !important;
}

/* Font Awesome brands. */
body.fd-app-body :is(.fab, .fa-brands),
body.fd-public-body :is(.fab, .fa-brands),
:is(.fab, .fa-brands) {
  font-family: "Font Awesome 6 Brands" !important;
  font-style: normal;
  font-weight: 400 !important;
}

/* Keep Bootstrap Icons independent as well; the app shell still uses .bi. */
body.fd-app-body .bi::before,
body.fd-public-body .bi::before,
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  font-family: "bootstrap-icons" !important;
}
