/* nav-groups-v2 — collapsible groups for the v2 sidebar / mobile drawer.
   Pairs with _nav-items-v2.ejs + /js/nav-groups-v2.js. Themed for the dark
   gradient sidebar (white-on-dark), matching .nav-v2__link. */

.navg { display: flex; flex-direction: column; }

.navg__hd {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 44px;
    padding: 0 .75rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, .70);
    font-size: .875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.navg__hd:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.navg__ic { width: 1.25rem; text-align: center; font-size: 1rem; }
.navg__arrow { margin-left: auto; font-size: .72rem; opacity: .8; transition: transform .18s ease; }

.navg.open > .navg__hd { color: #fff; background: rgba(255, 255, 255, .08); }
.navg.open > .navg__hd .navg__arrow { transform: rotate(90deg); }

/* body: hidden until the group is open */
.navg__body { display: none; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.navg.open > .navg__body { display: flex; }

/* sub-links: indented, slightly smaller than top-level nav-v2 links */
.navg__body .nav-v2__link {
    min-height: 38px;
    padding-left: 2.4rem;
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .62);
}
.navg__body .nav-v2__link i { width: 1.1rem; font-size: .9rem; }
.navg__body .nav-v2__link:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.navg__body .nav-v2__link--active { color: #fff; background: rgba(255, 255, 255, .16); }
