/* Shared drawer, isolated from Jannah entry/menu/list styles on every route. */
body.moh2-menu-open { overflow: hidden; }
:is(#mo-home2, #mo-category) #moh2-mobile-drawer { z-index: 10000; }
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__panel {
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 24px));
    height: 100%;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    box-shadow: -12px 0 40px rgba(15, 23, 42, .15);
    color: var(--moh2-ink);
    font: 400 14px/1.5 var(--moh2-sans);
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__head {
    flex: 0 0 auto;
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__brand {
    color: var(--moh2-ink);
    font: 700 26px/1.1 var(--moh2-serif);
    text-decoration: none;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-icon-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 11px;
    border: 1px solid var(--moh2-line);
    border-radius: 50%;
    background: #f7f8fa;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px 24px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer h2 {
    margin: 0 0 12px;
    padding: 0;
    font: 800 11px/1.5 var(--moh2-sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--moh2-muted);
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-nav a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e4e7eb;
    background: #f7f8fa;
    color: var(--moh2-ink);
    font: 700 13px/1.4 var(--moh2-sans);
    text-decoration: none;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-network,
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-institutional,
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__market {
    margin: 24px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--moh2-line);
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer ul,
:is(#mo-home2, #mo-category) #moh2-mobile-drawer li {
    display: block;
    position: static;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    background: none;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer li::before,
:is(#mo-home2, #mo-category) #moh2-mobile-drawer li::after { content: none; }
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-network-menu > li {
    padding: 5px 0;
    border-bottom: 1px solid #edf0f3;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-network-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    color: var(--moh2-ink);
    font: 700 14px/1.4 var(--moh2-sans);
    text-decoration: none;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .sub-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .sub-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e4e7eb;
    border-radius: 3px;
    background: #f7f8fa;
    color: #465162;
    font: 650 11px/1.4 var(--moh2-sans);
    text-decoration: none;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-stats {
    margin: 0;
    border: 0;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-stats tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-stats tr {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f7f8fa;
    border: 1px solid #e4e7eb;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-stats th,
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-stats td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-stats th {
    color: var(--moh2-muted);
    font: 700 10px/1.5 var(--moh2-sans);
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-stats td {
    margin-top: 4px;
    color: var(--moh2-ink);
    font: 750 20px/1.3 var(--moh2-sans);
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer a:hover {
    color: var(--moh2-red);
}
:is(#mo-home2, #mo-category) #moh2-mobile-drawer :is(a, button):focus-visible {
    outline: 2px solid var(--moh2-red);
    outline-offset: 2px;
}
@media (max-width: 420px) {
    :is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__head { padding: 14px 18px; }
    :is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__body { padding: 20px 18px max(24px, env(safe-area-inset-bottom)); }
    :is(#mo-home2, #mo-category) #moh2-mobile-drawer .moh2-mobile-drawer__brand { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    :is(#mo-home2, #mo-category) #moh2-mobile-drawer :is(.moh2-mobile-drawer__panel, .moh2-mobile-drawer__backdrop) { transition: none; }
}
