/* /Layout/MainLayout.razor.rz.scp.css */
/* Shell geometry only. Every colour the shell paints lives in wwwroot/css/app.css, inside the
   --odin-* token block, because AccessibilityContrastTests measures that file: a colour declared here
   would be a colour nothing measures. The one apparent exception below is a rgba() white overlay on
   the header buttons' hover state, which changes no text colour and carries no meaning. */

.app-header[b-l1fw52yd7y] {
    /* height comes from app.css (var(--odin-header-height)), alongside the header's colours. */
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1rem 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .app-header[b-l1fw52yd7y]  .app-header-brand,
    .app-header .app-header-brand[b-l1fw52yd7y] {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        text-decoration: none;
        white-space: nowrap;
    }

.app-header-mark[b-l1fw52yd7y] {
    display: block;
}

.app-header-actions[b-l1fw52yd7y] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

    .app-header-actions[b-l1fw52yd7y]  a {
        text-decoration: none;
        white-space: nowrap;
    }

    .app-header-actions[b-l1fw52yd7y]  a:hover {
        text-decoration: underline;
    }

    /* The session buttons (log in / log out) sit on the dark header, where Bootstrap's gray outline
       variants disappear. Repainted with the header tokens in app.css; this only sizes them. */
    .app-header-actions[b-l1fw52yd7y]  .btn {
        white-space: nowrap;
    }

.page[b-l1fw52yd7y] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-l1fw52yd7y] {
    flex: 1;
    min-width: 0;
}

.content[b-l1fw52yd7y] {
    padding-top: 1.1rem;
}

@media (max-width: 640.98px) {
    /* Small screens: header, then the sitemap strip (NavMenu's own toggler row), then content. */
    .app-header[b-l1fw52yd7y] {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
}

@media (min-width: 641px) {
    .page[b-l1fw52yd7y] {
        flex-direction: row;
    }

    .sidebar[b-l1fw52yd7y] {
        width: 248px;
        flex-shrink: 0;
        height: calc(100vh - var(--odin-header-height));
        position: sticky;
        top: var(--odin-header-height);
    }

    article[b-l1fw52yd7y] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* Sitemap geometry and the mobile strip. Every colour with a contrast obligation (link text, hover,
   active, headings, the accent bar) lives in wwwroot/css/app.css inside the --odin-* token block,
   where AccessibilityContrastTests measures it. This file may REFERENCE those global tokens (var()
   resolves fine from a scoped sheet) but declares no colour of its own. */

/* The strip exists only on narrow screens: it carries the toggler that reopens the collapsed sitemap.
   On desktop the app header (MainLayout) owns the brand and this row hides entirely. */
.top-row[b-sjixp9k8h6] {
    height: 3rem;
    background-color: var(--odin-nav-surface);
    border-bottom: 1px solid var(--odin-nav-border);
}

.navbar-brand[b-sjixp9k8h6] {
    font-size: 0.95rem;
    color: var(--odin-nav-text);
}

.navbar-toggler[b-sjixp9k8h6] {
    border: 1px solid var(--odin-nav-border);
}

.navbar-toggler:focus-visible[b-sjixp9k8h6] {
    outline: 3px solid var(--odin-focus-ring);
    outline-offset: 2px;
}

/* Icons come from css/icons.css (Fluent UI System Icons drawn in currentColor), so the sitemap
   declares none of its own: an entry's icon is always the colour of its label, including the accent on
   the current page. */

.nav-item[b-sjixp9k8h6] {
    padding-bottom: 0.125rem;
}

@media (min-width: 641px) {
    .top-row[b-sjixp9k8h6] {
        /* Desktop: the app header owns the brand; the strip (and its toggler) has no job. */
        display: none;
    }

    .collapse[b-sjixp9k8h6] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-sjixp9k8h6] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - var(--odin-header-height));
        overflow-y: auto;
    }
}
