/* Alias shim to prefer an older Bootstrap Icons font while keeping the new CDN for exceptions (e.g., bi-floppy)
   Loads old font files directly from jsDelivr (v1.10.5) and exposes it as 'bootstrap-icons-old'.
   This file must be included AFTER the main bootstrap-icons CSS so it can override .bi font-family.
*/
@font-face {
  font-family: 'bootstrap-icons-old';
  src: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/fonts/bootstrap-icons.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/fonts/bootstrap-icons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* Default to old icons for elements that use the explicit `bi` class */
.bi {
  font-family: 'bootstrap-icons-old' !important;
}

/* Also cover icons that use the `bi-*` class pattern (e.g., bi-trophy-fill) by targeting their ::before pseudo elements */
[class^="bi-"]::before,
[class*=" bi-"]::before {
  font-family: 'bootstrap-icons-old' !important;
}

/* Explicitly use the canonical (new) bootstrap-icons font for icons that should come from the new set */
.bi-floppy::before,
.bi-floppy-fill::before,
.bi-floppy,
.bi-floppy-fill {
  font-family: 'bootstrap-icons' !important;
}

/* If you later want to force a given icon to use the old set, add .bi-old on that element:
   .bi-old { font-family: 'bootstrap-icons-old' !important; }
*/
