/* ========== Mobile drawer ========== */
.menu-toggle {
    width: 44px; height: 44px;
    flex-direction: column; gap: 5px;
    align-items: center; justify-content: center;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 8px;
    transition: background .2s;
    display: none;
}
.menu-toggle:hover { background: var(--paper-2); }
.menu-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
    .menu-toggle { display: inline-flex; }
    .nav { display: none; }
    .header__tools { gap: .25rem; }
    .header__tools .btn { display: none; }
    .brand__logo { height: 40px; }
    .brand__logo--small { height: 36px; }
    .brand__text small { display: none; }
}

.mobile-drawer {
    position: fixed; inset: 0;
    z-index: 200;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    animation: drawerFade .25s var(--ease);
}
@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }

.mobile-drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    background: var(--paper-elev);
    box-shadow: -16px 0 40px rgba(0, 0, 0, .25);
    display: flex; flex-direction: column;
    overflow-y: auto;
    animation: drawerSlide .3s var(--ease-out);
}
@keyframes drawerSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }

.mobile-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.mobile-drawer__head strong {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 800;
    color: var(--pr6-primary);
    letter-spacing: -.01em;
}
.mobile-drawer__close {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--ink-soft);
    display: grid; place-items: center;
    cursor: pointer; border: 0;
}
.mobile-drawer__close:hover { background: var(--pr6-accent-soft); color: var(--pr6-primary); }
.mobile-drawer__close svg { width: 18px; height: 18px; }

.mobile-drawer__search {
    margin: 1rem 1.25rem;
    display: flex; align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .25rem .25rem .25rem 1rem;
}
.mobile-drawer__search input {
    flex: 1; border: 0; background: transparent;
    color: inherit; padding: .65rem 0;
    font-size: 14.5px; outline: none;
}
.mobile-drawer__search button {
    width: 40px; height: 40px;
    background: var(--pr6-primary); color: #fff;
    border-radius: 999px; border: 0;
    display: grid; place-items: center;
    cursor: pointer;
}
.mobile-drawer__search svg { width: 16px; height: 16px; }

.mobile-drawer__list {
    list-style: none; padding: 0; margin: 0;
    flex: 1;
}
.mobile-drawer__list > li > a {
    display: block;
    padding: .85rem 1.25rem;
    font-size: 16px; font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: background .2s, color .2s;
    min-height: 44px;
}
.mobile-drawer__list > li > a:hover, .mobile-drawer__list > li > a.is-active {
    background: var(--pr6-accent-soft);
    color: var(--pr6-primary);
}
.mobile-drawer__group {
    border-bottom: 1px solid var(--line);
    padding: .85rem 0;
}
.mobile-drawer__group > span {
    display: block;
    padding: .25rem 1.25rem .5rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-mute);
    font-weight: 700;
}
.mobile-drawer__group > a {
    display: block;
    padding: .65rem 1.25rem .65rem 2rem;
    font-size: 14.5px;
    color: var(--ink-soft);
    transition: background .2s, color .2s;
    min-height: 44px;
}
.mobile-drawer__group > a:hover {
    background: var(--pr6-accent-soft);
    color: var(--pr6-primary);
}

.mobile-drawer__footer {
    padding: 1rem 1.25rem;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}
.mobile-drawer__footer strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-mute);
    font-weight: 700;
    margin-bottom: .65rem;
}
.mobile-drawer__verticals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .35rem;
    margin-bottom: 1rem;
}
.mobile-drawer__verticals a {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem .85rem;
    background: var(--paper-elev);
    border-radius: 8px;
    font-size: 13px; font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--line);
    min-height: 44px;
    box-sizing: border-box;
}
.mobile-drawer__verticals a:hover {
    background: var(--accent);
    color: #fff;
}
.mobile-drawer__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.mobile-drawer__verticals a:hover .mobile-drawer__dot { background: #fff; }

.mobile-drawer__admin {
    display: block;
    text-align: center;
    padding: .85rem;
    background: var(--pr6-primary);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    min-height: 44px;
    box-sizing: border-box;
}
