.topnav {
    cursor: pointer;
}

    .topnav :hover {
        font-weight: bolder;
    }

.topnavcontextcontainer {
    position: fixed;
    display: none;
    z-index: 9999;
    border: 1px solid red;
    padding-right: 2px;
    padding-left: 2px;
    cursor: pointer;
    max-height: calc(100vh - 56px);
}

    .topnavcontextcontainer a {
        text-decoration: none;
        color: inherit;
    }

        .topnavcontextcontainer a:hover {
            text-decoration: none;
            font-weight: bolder;
        }

.menucontainer {
    padding-left: 1em;
}

/* Professional visual hierarchy for nested menus */
.menucontainer {
    border-left: 1px solid #e9ecef;
    margin-left: 0.5em;
    padding-left: 0.75em;
}

/* Level 2: Direct child of topnavcontextcontainer */
.topnavcontextcontainer > .menuitem > .menucontainer {
    border-left: 2px solid #dee2e6;
    margin-left: 0.5em;
    padding-left: 0.75em;
}

/* Level 3: Nested one level deeper */
.topnavcontextcontainer .menucontainer .menucontainer {
    border-left: 2px solid #ced4da;
    margin-left: 0.75em;
    padding-left: 0.75em;
}

/* Level 4+: Even deeper nesting */
.topnavcontextcontainer .menucontainer .menucontainer .menucontainer {
    border-left: 2px solid #adb5bd;
    margin-left: 1em;
    padding-left: 0.75em;
}

/* Progressive font size scaling for better hierarchy */
.topnavcontextcontainer .menuitem {
    font-size: 14px;
}

.topnavcontextcontainer .menucontainer .menuitem {
    font-size: 13px;
}

.topnavcontextcontainer .menucontainer .menucontainer .menuitem {
    font-size: 12px;
    background-color: rgba(248, 249, 250, 0.6);
    border-radius: 3px;
    padding: 2px 4px;
    margin: 1px 0;
}

.topnavcontextcontainer .menucontainer .menucontainer .menucontainer .menuitem {
    font-size: 11px;
    background-color: rgba(233, 236, 239, 0.5);
    border-radius: 3px;
    padding: 2px 4px;
    margin: 1px 0;
}

/* Subtle toggle icon variations */
.topnavcontextcontainer .menutoggle {
    opacity: 1;
    font-size: 14px;
}

.topnavcontextcontainer .menucontainer .menutoggle {
    opacity: 0.9;
    font-size: 13px;
}

.topnavcontextcontainer .menucontainer .menucontainer .menutoggle {
    opacity: 0.8;
    font-size: 12px;
}

.topnavcontextcontainer .menucontainer .menucontainer .menucontainer .menutoggle {
    opacity: 0.7;
    font-size: 11px;
}
