/* MudBlazor aporta el resto de estilos: aquí solo va el arranque de Blazor y
   lo que no cubre ningún componente, siempre con las variables del tema para
   que siga los modos claro y oscuro. */

html, body {
    margin: 0;
}

.section-heading {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: .35rem;
}

.code-block-caption {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: .4rem .9rem;
}

.code-block-body {
    position: relative;
}

.code-block-pre {
    margin: 0;
    padding: .9rem 3rem .9rem .9rem;
    overflow-x: auto;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .85rem;
    line-height: 1.6;
}

.code-block-copy {
    position: absolute;
    top: .35rem;
    right: .35rem;
}

:not(pre) > code {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    padding: .1em .35em;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .88em;
}

table code {
    white-space: nowrap;
}

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

.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: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #0a58ca;
            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;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Cargando");
    }

.site-appbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.hero-section {
    padding: 2rem 0 1rem;
}

.hero-subtitle {
    max-width: 40ch;
}

.credential-period {
    white-space: nowrap;
    vertical-align: top;
    width: 1%;
}
