html {
    overflow-y: auto;
    scrollbar-gutter: stable;
}

html, body {
    font-family: Manrope, "Segoe UI", sans-serif;
    margin: 0;
}

/* MudBlazor adds 8px padding on scroll-lock; with scrollbar-gutter that shifts the layout. */
.scroll-locked {
    padding-right: 0 !important;
}

.scroll-locked .mud-layout .mud-main-content .mud-scroll-to-top {
    padding-right: 0 !important;
}

/* Dialog selects are portaled; keep field and list the same width. */
.book-schedule-dialog {
    width: min(28rem, 92vw) !important;
}

.book-schedule-dialog .mud-dialog-content,
.book-schedule-dialog .mud-input-control,
.book-schedule-dialog .mud-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: inherit;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD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ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.boot-screen {
    --amrita-forest: #1f4d3a;
    --amrita-moss: #3d6b4f;
    --amrita-sage: #6b8f71;
    --amrita-leaf: #a3b18a;

    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 12% 18%, rgba(163, 177, 138, 0.5), transparent 55%),
        radial-gradient(ellipse 70% 50% at 88% 82%, rgba(61, 107, 79, 0.28), transparent 52%),
        linear-gradient(160deg, #eef4eb 0%, #dfead8 45%, #c9d9c4 100%);
}

.boot-screen__glow {
    position: absolute;
    width: min(28rem, 70vw);
    height: min(28rem, 70vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 143, 113, 0.28), transparent 68%);
    animation: boot-pulse 3.6s ease-in-out infinite;
    pointer-events: none;
}

.boot-screen__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: boot-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boot-screen__brand {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.4rem, 11vw, 4.6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--amrita-forest);
}

.boot-screen__tagline {
    margin: 0.7rem 0 0;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amrita-sage);
}

.boot-screen__progress-wrap {
    position: relative;
    width: 7rem;
    height: 7rem;
    margin-top: 2.4rem;
}

.loading-progress {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.loading-progress circle {
    fill: none;
    stroke-width: 0.45rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:first-child {
    stroke: rgba(163, 177, 138, 0.45);
}

.loading-progress circle:last-child {
    stroke: #3d6b4f;
    stroke-linecap: round;
    stroke-dasharray: calc(3.1415926535 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.12s ease-out;
}

.loading-progress-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amrita-forest);
}

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

.boot-screen__hint {
    margin: 1.35rem 0 0;
    min-height: 1.4em;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    color: #4a6356;
    letter-spacing: 0.02em;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.boot-screen__hint--swap {
    opacity: 0;
    transform: translateY(4px);
}

@keyframes boot-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes boot-pulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes boot-fade {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.site-header-mobile-popover .site-header-mobile-item--active {
    background: rgba(61, 107, 79, 0.12) !important;
    color: #1f4d3a !important;
    font-weight: 600;
}

.site-header-mobile-popover .site-header-mobile-item--active .mud-menu-item-icon {
    color: #3d6b4f !important;
}

.site-header a.site-header__nav-link.active,
.site-header a.site-header__nav-link.site-header__nav-link--active {
    color: #1f4d3a !important;
    font-weight: 700;
}

.site-header a.site-header__nav-link.active::after,
.site-header a.site-header__nav-link.site-header__nav-link--active::after {
    transform: scaleX(1);
}