/* RTD + Semantic UI compatibility for local Font Awesome 6 */

i.fa.icon,
i.fas.icon,
i.fa-solid.icon,
i.far.icon,
i.fa-regular.icon,
i.fa-duotone.icon,
span.fa.icon,
span.fas.icon,
span.fa-solid.icon,
span.far.icon,
span.fa-regular.icon,
span.fa-duotone.icon {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
}

i.fab.icon,
i.fa-brands.icon,
span.fab.icon,
span.fa-brands.icon {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Make FA pseudo-elements win over Semantic UI .icon */
i.fa.icon::before,
i.fas.icon::before,
i.fa-solid.icon::before,
i.far.icon::before,
i.fa-regular.icon::before,
i.fa-duotone.icon::before,
span.fa.icon::before,
span.fas.icon::before,
span.fa-solid.icon::before,
span.far.icon::before,
span.fa-regular.icon::before,
span.fa-duotone.icon::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

i.fab.icon::before,
i.fa-brands.icon::before,
span.fab.icon::before,
span.fa-brands.icon::before {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* FA Pro/Duotone fallback to Free Solid */
i.fa-duotone.icon,
span.fa-duotone.icon,
i.fa-duotone.icon::before,
span.fa-duotone.icon::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Explicit icon mappings used in RTD/ext-theme */
.fa-cloud::before {
  content: "\f0c2" !important;
}

.fa-envelope::before {
  content: "\f0e0" !important;
}

.fa-info-circle::before {
  content: "\f05a" !important;
}

.fa-circle-question::before {
  content: "\f059" !important;
}

.fa-github::before {
  content: "\f09b" !important;
}

.fa-gitlab::before {
  content: "\f296" !important;
}

.fa-bitbucket::before {
  content: "\f171" !important;
}
