/* Font preload optimization to fix CLS */

/* Predefine FontAwesome fonts with swap to prevent layout shift */
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap; /* Critical for preventing CLS */
  src: url('../vendor/fontawesome-free/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../vendor/fontawesome-free/webfonts/fa-regular-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 5 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../vendor/fontawesome-free/webfonts/fa-brands-400.woff2') format('woff2');
}

/* Ensure icons have reserved space */
.fa, .fas, .far, .fab {
  display: inline-block;
  min-width: 1.125em; /* Reserve space for icons */
  text-align: center;
}