/* =========================
   BOOTSTRAP ICONS UTILITIES
   =========================

   The admin was written against FontAwesome markup but only ever loaded
   Bootstrap Icons, so every <i class="fas fa-*"> rendered as an empty box.
   The markup is now Bootstrap Icons throughout; these are the few FontAwesome
   utility classes that have no Bootstrap Icons counterpart, reimplemented so
   the sizing and spinner behaviour carry over.
*/

/* Bootstrap Icons sit on the text baseline, which leaves them looking a touch
   high next to label text. FontAwesome nudged them down by default; match it
   so icon + label pairs line up the way the layouts were designed for. */
.bi::before {
    vertical-align: -.125em;
}

/* Replaces fa-2x. Used for the large muted glyph in empty-state panels. */
.bi-2x {
    font-size: 2em;
    line-height: 1;
}

/* Replaces fa-spin, used on save/submit buttons while a request is in flight. */
.bi-spin {
    display: inline-block;
    animation: bi-spin 1.4s linear infinite;
}

@keyframes bi-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* A spinner that never stops is the worst case for motion sensitivity, so
   fall back to a static glyph rather than a slower spin. */
@media (prefers-reduced-motion: reduce) {
    .bi-spin {
        animation: none;
    }
}
