#menu-selection {
    color: var(--sinoColNormBG);
    margin: 0 var(--spaceLeftRight) 0 var(--spaceLeftRight);
}

/* Line under tabs */
.tab-divider {
    margin: 1px 0 0 0;
    border: none;
    border-top: 1px solid var(--sinoColBlue);
    width: 100%;
}

/* --- Wrapper & Layout --- */
.nav-container-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    width: 100%;
    gap: 1rem 1.5rem;
    /* row-gap gap-x */
    justify-content: space-between;
}

.nav-left-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    flex-grow: 1;
    max-width: 90%;
}

/* --- Navigation Groups --- */
.navigationgroup {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: fit-content;
}

.navigationgroup label {
    text-align: center;
    font-size: 1.0rem;
    color: var(--sinoColBlue);
    font-weight: bold;
    padding-bottom: 0.5rem;
    letter-spacing: 0.05em;
    /* Reset side borders and set only bottom */
    border: none;
    border-bottom: 6px solid var(--sinoColGreen);
}

.navigationgroup.baader label {    
    font-variant: small-caps;
}

/* --- Buttons --- */
.navigationgroup a {
    flex: 1 1 auto;
    min-width: fit-content;
    background-color: var(--sinoColNavBG);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    font-weight: bold;
}

.navigationgroup a:hover {
    background-color: var(--sinoColSelBGHover);
}

/* Logic for the "checked" class injected by your template */
.navigationgroup a.checked {
    background-color: var(--sinoColSelBG) !important;
}

/* --- Right Side (Session/Exit) --- */
.nav-right-side {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 0.25rem;
    margin-left: auto;
}

.session-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 2.5rem;
    /* Fixed height to prevent jumping */
    font-size: 0.875rem;
    color: var(--sinoColBlue);
    font-weight: 500;
    font-style: italic;
    text-align: right;
    white-space: nowrap;
}

.nav-btn-exit {
    background: var(--sinoColGradientBlueGreen);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
/* navigation for tabs end */