/* html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.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;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}
*/

/* @JOER Added */

/* Target the dark mode specifically */
/*:root[data-theme="dark"] {
/*    --neutral-fill-layer-rest: #1a2634; /* Dark navy blue */
/*    --neutral-fill-rest: #1a2634; /* Slightly lighter navy for components */
/*    /* FIX: Forces all text strings to use highest contrast white text in dark mode */
/*    --neutral-foreground-rest: #ffffff;
/*}

/* Optional: Subtle blue tint for light mode backgrounds */
/*:root[data-theme="light"] {
/*    --neutral-fill-layer-rest: #C6DFFF; /* Very faint ice blue */
/*}

/* Ensure Fluent UI components are visible */
#app {
    position: relative;
    z-index: 1 !important;
}

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    font-weight: var(--font-weight, 400);
    color: var(--neutral-foreground-rest);
    background: var(--neutral-fill-layer-rest);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto !important;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
    
    /* Faded photo overlay */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/Site/BkgrndMRVS.jpg');
        background-size: cover;
        background-position: center;
        opacity: 0.4; /* Adjust fade strength here */
        z-index: -1; /* Keeps it behind all content */
    }

.header {
    height: 86px !important; /* @JOER  84px SiteHeader: override default 50px +2px for border-bottom */
    background-color: #99CCFF !important; /* var(--neutral-layer-1) !important; /* override header background color*/

    border-bottom: calc(var(--stroke-width) * 2px) solid var(--accent-fill-rest);
    margin-bottom: 0 !important;
}

.navmenu-mobile-toggle,
.navmenu-backdrop {
    display: none;
}

/* --- DESKTOP REFINEMENTS (Ensures sticky footer layout works natively) --- */
.master-site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100dvh; /* Forces wrapper to span full monitor viewport height */
}
    /* Tells the core Microsoft Fluent layout tree to fill that wrapper space completely */
    .master-site-wrapper fluent-layout {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

.main {
    display: flex;
    flex-direction: row;
    flex: 1 0 auto !important;
    align-items: stretch;
    position: relative;
    z-index: 1 !important;
    padding-top: 1rem; /* Aligns the top of the NavBar menu perfectly with your pages */
}

.body-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    flex: 1; /* Allows the container to naturally stretch alongside your page content */
    height: auto !important; /* Removes the rigid 100dvh restriction cutting off your content */
    min-height: 0;
}

.content {
    padding: 0 8px 1rem 8px;
    align-self: stretch !important;
    width: 100%;
    /* THE FIX: Re-enables standard page scrolling for longer text grids */
    overflow-y: auto !important;
    max-height: calc(100dvh - 130px); /* Restricts the interior view box so the main footer stays sticky */
}

.manage {
    width: 100%;
}

footer {
    background: var(--neutral-layer-4);
    color: var(--neutral-foreground-rest);
    padding: 10px 16px;
    align-items: center;
}
    footer a {
        color: var(--neutral-foreground-rest);
        text-decoration: none;
    }

        footer a:focus {
            outline: 1px dashed;
            outline-offset: 3px;
        }

        footer a:hover {
            text-decoration: underline;
        }

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem 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: #1b6ec2;
            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, "Loading");
    }

code {
    color: #c02d76;
}

/* Reaches past the component container to force a bold font weight */
fluent-nav-link {
    font-weight: 600 !important;
}

/* Forces the cookie banner to layer elegantly at the bottom of the monitor */
#cookieconsent {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    /* Forces it in front of everything else, including your background photo layers */
    z-index: 999999 !important;
    /* Theme-safe solid background layer variables */
    /* background-color: var(--neutral-layer-1) !important; */
    border-top: calc(var(--stroke-width) * 2px) solid var(--accent-fill-rest) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35) !important;
    /* Safe padding spacing container boundaries */
    /* padding: 16px !important; */
    box-sizing: border-box !important;
}

@media (min-width: 641px) {
    .navmenu {
        /* Deepened from layer-2 to layer-3 for distinct contrast across all monitors */
        background-color: var(--neutral-layer-3) !important;
        border-right: 1px solid var(--neutral-stroke-rest) !important;
        box-shadow: var(--elevation-card-rest);
        /* --- ADD THESE CORNER ROUNDING PROPERTIES --- */
        border-top-left-radius: 8px !important; /* Matches the 8px curve of your page cards */
        border-top-right-radius: 8px !important; /* Elegant matching curve on the interior edge */
        border-bottom-left-radius: 8px !important; /* Matches the 8px curve of your page cards */
        border-bottom-right-radius: 8px !important; /* Elegant matching curve on the interior edge */
        overflow: hidden !important; /* Keeps child links inside the rounded box */
    }
}

@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    /* Force the custom class container to let its child links grow */
    .mobile-expand-menu {
        width: 100% !important;
        max-width: 100% !important;
    }

        /* Target the Web Component elements directly to break the 210px restriction */
        .mobile-expand-menu fluent-nav-link,
        .mobile-expand-menu fluent-nav-group {
            width: 100% !important;
            max-width: 100% !important;
            display: flex !important;
        }

            /* Deep dive into the Shadow DOM to force the link box and background hover color to stretch wide */
            .mobile-expand-menu fluent-nav-link ::part(link),
            .mobile-expand-menu fluent-nav-group ::part(expand-button) {
                width: 100% !important;
                display: flex !important;
                flex: 1 1 100% !important;
                box-sizing: border-box !important;
                padding-right: 24px !important; /* Elegant right padding buffer */
            }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    /* Fully hide layout containers by default on mobile devices */
    .navmenu {
        display: none;
        width: 100%;
    }

        .navmenu.menuOpen {
            display: block;
        }

    /* FORCE MOBIL TOGGLE BUTTON VISIBLE */
    .navmenu-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(0, 0, 0, 0.25);
        background: rgba(250, 250, 250, 0.1);
        border-radius: 4px;
        cursor: pointer;
    }

        .navmenu-mobile-toggle:hover {
            background: rgba(250, 250, 250, 0.4);
        }

    /* FULL CANVAS DISMISSAL SHIELD BACKDROP */
    .navmenu.menuOpen .navmenu-backdrop {
        display: block;
        position: fixed;
        top: 86px;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.4) !important;
        z-index: 9999; /* Sits over body, but behind active dropdown panel */
        pointer-events: auto;
    }

    /* THE DROPDOWN POSITIONING FIX */
    .sitenav {
        /* FIXED coordinates tell the browser to ignore parent layout container offsets */
        position: fixed !important;
        top: 86px !important; /* Locks dropdown right beneath 84px header height + 2px border */
        left: 0 !important;
        width: 100% !important;
        max-height: calc(100dvh - 86px); /* Prevents menu from growing past bottom of screen */
        overflow-y: auto !important; /* Adds a vertical scrollbar if links overflow */
        height: auto !important; /* Keep this or remove it, max-height handles the limit */
        background: var(--neutral-layer-1) !important; /* Solid color blocks page body text bleed-through */
        z-index: 10000 !important; /* Higher than backdrop overlay layer so links stay interactive */
        pointer-events: auto;
    }

    .navmenu.menuOpen fluent-nav-menu {
        width: 100% !important;
        max-width: 100% !important;
    }
}