/* Bespeak vector loader — layout & sizing helpers.
   Pairs with the animated brand mark at ~/Content/SVG/bespeak-loader-red.svg
   and ~/Content/SVG/bespeak-loader-black.svg (used as an <img> src so the
   SVG's internal styles stay isolated from the page).

   Default size is 80px (page loading). Use --compact (32px) for an element/
   inline loader. Colour is chosen by which SVG you point the <img> at — red
   (#DF3546) is the default, black (#1B1917) for red/busy backgrounds.

   NOTE: this is the brand loader, separate from the legacy ~/assets/css/loader.css
   page-overlay (#load_screen). Not yet documented as a frontend.md rule — that
   is part of the planned rollout, not this foundation file. */

.bespeak-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bespeak-loader {
    /* inline-block (like the old .spinner-border it replaces) so a `text-center`
       wrapper centres it, as well as a `d-flex justify-content-center` one. */
    display: inline-block;
    vertical-align: middle;
    flex: none;
    width: var(--loader-size, 80px);
    height: var(--loader-size, 80px);
    aspect-ratio: 1;
}

.bespeak-loading--compact {
    --loader-size: 32px;
}

.bespeak-loading--page {
    min-height: 60vh;
    flex-direction: column;
    --loader-size: 80px;
}

.bespeak-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
