/*
 * Mobile off-canvas sidebar.
 *
 * The theme's own [data-sidebar-style] rules in style.css never activate —
 * nothing in this app sets that attribute on <body> — so .deznav and
 * .content-body stay at their fixed desktop widths at every viewport, and
 * the hamburger toggle (custom.js just flips #main-wrapper.menu-toggle) has
 * no CSS to act on. These rules give that existing toggle a mobile effect:
 * below md, the sidebar becomes an off-canvas drawer instead of a fixed
 * 15rem rail that permanently eats the screen.
 */
@media only screen and (max-width: 47.9375rem) {
    .content-body {
        margin-left: 0;
    }

    .header {
        padding-left: 4.5rem;
    }

    .nav-header {
        width: 4.5rem;
    }

    .nav-header .brand-title {
        display: none;
    }

    .deznav {
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1030;
    }

    #main-wrapper.menu-toggle .deznav {
        transform: translateX(0);
        box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, .25);
    }

    #main-wrapper.menu-toggle::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 1020;
    }
}
