/* ── Global reset ────────────────────────────────────── */

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#app {
    height: 100%;
}

/* ── Accessibility (skip navigation) ────────────────── */

.skip-nav {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1800;
    padding: 0.75rem 1.5rem;
    background: var(--mud-palette-primary, #1b6ec2);
    color: var(--mud-palette-white, #fff);
    font-weight: bold;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-nav:focus {
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

h1:focus {
    outline: none;
}

/* ── Blazor error UI ────────────────────────────────── */

#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: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    #blazor-error-ui .reload {
        color: inherit;
    }

/* ── Inline code styling ────────────────────────────── */

code {
    color: var(--mud-palette-tertiary, #9c1d5a);
}

/* ── Modal dialog sidebar disabled state ────────── */
.starter-rail.disabled,
.starter-appbar.disabled {
    pointer-events: none;
    opacity: 0.4;
}
