/*
 * MaLuce.Web app styles. Loaded AFTER the design tokens (maluce-tokens.css), the guide's component styles
 * (maluce-components.css) and the base layer (maluce-base.css), so it may only USE tokens. The Blazor
 * template's original stock colors were replaced with tokens (AB#323); no color literal belongs in this file.
 */
h1:focus {
    outline: none;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--status-compliant);
}

.invalid {
    outline: 1px solid var(--status-blocked);
}

.validation-message {
    color: var(--status-blocked);
}

#blazor-error-ui {
    color-scheme: dark only;
    background: var(--status-pending-surface);
    color: var(--ink);
    border-top: 1px solid var(--status-pending);
    bottom: 0;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1200;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: var(--status-blocked-surface);
    border: 1px solid var(--status-blocked);
    padding: 1rem;
    color: var(--ink);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--border-strong);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--brand-fill);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--ink-muted);
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* System strings (ids, numbers, payloads) are mono, per the guide. */
code {
    color: var(--brand);
    font-family: var(--font-mono);
}

/* The nav wordmark: at least 120px wide, never recolored or restyled (guide, Logos). */
.brand-wordmark {
    display: block;
    width: 132px;
    height: auto;
}
