/* Mobile sidebar: expand submenus in the document flow. */
.side-widget .show-mobile .site-menu ul li ul.dropdown-menu {
    display: none;
    position: static;
    top: auto;
    left: auto;
    float: none;
    transform: none;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    margin: 5px 0 10px;
    padding-left: 16px;
    box-shadow: none;
    border: 0;
}

.side-widget .show-mobile .site-menu ul li ul.dropdown-menu.show {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Keep long menus in one column and scroll the sidebar as a whole. */
.side-widget .inner:has(.show-mobile) {
    flex-wrap: nowrap;
    height: auto !important;
    min-height: 100%;
    overflow: visible;
}

.side-widget .inner > .show-mobile {
    width: 100%;
    flex-shrink: 0;
}
