h1:focus {
    outline: none;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    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: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*
 * The startup skeleton in index.html. MudThemeProvider defines MudBlazor's variables only once the app runs,
 * so these are copies of TownTaskR.UI/AppTheme.cs's values; index.html sets data-theme.
 */
.app-skeleton {
    --mud-palette-appbar-background: #FFFFFF;
    --mud-palette-appbar-text: #12161C;
    --mud-palette-background: #F6F7F4;
    --mud-zindex-appbar: 1300;
    --mud-elevation-1: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);
    --mud-typography-h6-family: "Bricolage Grotesque", Geist, system-ui, sans-serif;
    --mud-typography-h6-size: 1.125rem;
    --mud-typography-h6-weight: 700;
    --mud-typography-h6-lineheight: 1.6;
    --mud-typography-h6-letterspacing: normal;
    --mud-typography-h6-text-transform: none;
    position: fixed;
    inset: 0;
    background-color: var(--mud-palette-background);
}

html[data-theme="dark"] .app-skeleton {
    --mud-palette-appbar-background: #1A1F26;
    --mud-palette-appbar-text: #F3F4F1;
    --mud-palette-background: #12161C;
}

/* Blazor sets --blazor-load-percentage while it downloads the app. */
.app-skeleton-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: var(--blazor-load-percentage, 0%);
    background-color: currentColor;
    opacity: 0.5;
    transition: width 0.1s ease-out;
}
