/* T054: Bootstrap removed. This file now holds ONLY the pre-Blazor-boot chrome that
   index.html renders before the WASM runtime (and Tailwind's own component styles)
   are attached: the #app splash/spinner and #blazor-error-ui. Everything Bootstrap-era
   (buttons, form-floating, validation outlines, .content, .blazor-error-boundary,
   .app-main) is deleted — none of it is referenced by any remaining markup.
   Token vars (var(--color-*), var(--font-sans)) come from Styles/tailwind.css's
   @theme static block, which is unlayered-safe to reference here as a plain stylesheet. */

#blazor-error-ui {
    color-scheme: light only;
    background: var(--color-hold-tint, lightyellow);
    color: var(--color-ink, #33261A);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    #blazor-error-ui .reload {
        color: var(--color-primary, #3E7A5C);
        font-weight: 700;
        text-decoration: underline;
    }

/* T026: boot splash — canvas/ink tokens + Nunito so the pre-WASM screen already reads as
   Tabletop Warm instead of flashing plain white/Helvetica. Tokens are var()-based (emitted
   by Styles/tailwind.css, loaded before first paint), so light/dark and the `.dark` class
   toggle both apply automatically — no separate media-query fallback needed here. */
.app-splash {
    position: fixed;
    inset: 0;
    background: var(--color-canvas, #F6EFE3);
}

/* 015 US1: brand badge above the wordmark; title/spinner shift down by its height. */
.app-splash-badge {
    position: absolute;
    display: block;
    inset: 8vh 0 auto 0;
    margin: 0 auto;
}

.app-splash-title {
    position: absolute;
    inset: calc(8vh + 6.5rem) 0 auto 0;
    text-align: center;
    font-family: var(--font-sans, 'Helvetica Neue', Helvetica, Arial, sans-serif);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-ink, #33261A);
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: calc(16vh + 6.5rem) 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--color-line, #e0e0e0);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--color-primary, #3E7A5C);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

        /* T057 motion policy: this file sits outside Tailwind's scan, so the reduced-motion
           pairing is a plain media query instead of a `motion-reduce:` utility. */
        @media (prefers-reduced-motion: reduce) {
            .loading-progress circle:last-child {
                transition: none;
            }
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: var(--color-ink, #33261A);
    inset: calc(16vh + 6.5rem + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
