/* ---------------------------------------------------------------------------
   CSS-only application shell state.

   The layout is rendered with static SSR, so the sidebar pin and mobile drawer
   use native checkbox state instead of Blazor event handlers. These selectors
   cross the MainLayout/NavMenu component boundary, which is why they live in a
   global stylesheet rather than in a scoped component stylesheet.
   --------------------------------------------------------------------------- */

@media (min-width: 901px) {
    .app-shell:has(#sidebar-pin-state:checked) .app-main {
        margin-left: var(--sidebar-width);
    }
}

@media (max-width: 900px) {
    .app-shell:has(#sidebar-drawer-state:checked) .sidebar {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .app-shell:has(#sidebar-drawer-state:checked) .layout-backdrop {
        display: block;
    }
}
