/* Fully expanded workspace navigation. Keep the approved FPD sidebar design;
   group headings are non-interactive and every permitted link stays visible.
   The site-only mobile menu may still use its native account details section. */
body.wh-v4 .hub-accordion {
    gap: 7px;
}

body.wh-v4 .hub-sidebar .hub-accordion > details.hub-sidebar-group,
body.wh-v4 .hub-mobile-drawer .hub-accordion > details.hub-sidebar-group {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.wh-v4 .hub-accordion .hub-sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
    padding: 11px 12px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

body.wh-v4 .hub-accordion .hub-sidebar-group-toggle::-webkit-details-marker {
    display: none;
}

body.wh-v4 .hub-accordion .hub-sidebar-group-toggle::marker {
    content: "";
}

body.wh-v4 .hub-accordion .hub-sidebar-group-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.45;
    text-transform: none;
}

body.wh-v4 .hub-accordion details.is-current-group > summary .hub-sidebar-group-label {
    font-weight: 850;
}

body.wh-v4 .hub-accordion .hub-sidebar-chevron {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .14s ease;
    opacity: .75;
}

body.wh-v4 .hub-accordion details[open] > summary .hub-sidebar-chevron {
    transform: rotate(45deg);
}

body.wh-v4 .hub-accordion .hub-sidebar-group-toggle:focus-visible {
    outline: 3px solid var(--hub-nav-accent);
    outline-offset: 2px;
}

body.wh-v4 .hub-accordion .hub-sidebar-submenu {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 4px 0 8px 13px;
    margin: 3px 0 7px 17px;
    border-left: 2px solid var(--hub-nav-border);
}

body.wh-v4 .app-shell.hub-workspace-shell > .hub-sidebar .hub-sidebar-group .hub-sidebar-submenu a,
body.wh-v4 .hub-mobile-drawer .hub-sidebar-group .hub-sidebar-submenu a {
    min-height: 40px;
    padding: 9px 10px !important;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
}

body.wh-v4 .hub-mobile-drawer .hub-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.wh-v4 .hub-mobile-drawer .hub-accordion > details.hub-sidebar-group {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

body.wh-v4 .hub-mobile-drawer .hub-accordion .hub-sidebar-group-toggle {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    text-align: left;
}

body.wh-v4 .hub-mobile-drawer .hub-accordion .hub-sidebar-group-label {
    text-align: left;
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    body.wh-v4 .hub-accordion .hub-sidebar-chevron {
        transition: none;
    }
}

/* The workspace groups are sections, not accordions: no extra clicks to
   reveal links. The whole drawer/sidebar scrolls when navigation is long. */
body.wh-v4 .hub-sidebar .hub-accordion > section.hub-sidebar-group,
body.wh-v4 .hub-mobile-drawer .hub-accordion > section.hub-sidebar-group {
    display: block;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.wh-v4 .hub-sidebar .hub-accordion > section .hub-sidebar-group-toggle,
body.wh-v4 .hub-mobile-drawer .hub-accordion > section .hub-sidebar-group-toggle {
    margin: 0;
    cursor: default;
    user-select: text;
}

body.wh-v4 .hub-sidebar .hub-accordion > section .hub-sidebar-submenu,
body.wh-v4 .hub-mobile-drawer .hub-accordion > section .hub-sidebar-submenu {
    display: grid;
    visibility: visible;
}
