/* Majaa 0.1.0-rc5. Profile navigation only; gallery/media dimensions stay native. */
#profile-content__nav .majaa-profile-link,
#subnav .majaa-profile-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    overflow: visible;
    white-space: nowrap;
}
#profile-content__nav .majaa-profile-link::before,
#subnav .majaa-profile-link::before {
    content: none !important;
    display: none !important;
}
#profile-content__nav .majaa-nav-icon,
#subnav .majaa-nav-icon {
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    color: var(--majaa-color-gold-soft) !important;
    line-height: 1;
    transform: none !important;
    z-index: auto !important;
}
#profile-content__nav .majaa-nav-icon svg,
#subnav .majaa-nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
#profile-content__nav .majaa-icon-heart-handshake,
#subnav .majaa-icon-heart-handshake {
    flex-basis: 28px;
    width: 28px !important;
    height: 28px !important;
}
#profile-content__nav .majaa-nav-label,
#subnav .majaa-nav-label {
    position: relative !important;
    inset: auto !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1.4 !important;
    transform: none !important;
}
/* Reserve room for the floating badge without changing its distance to the final n. */
#profile-content__nav #user-friends,
#profile-content__nav .majaa-mobile-link {
    padding-inline-end: 30px;
}
#profile-content__nav .majaa-request-count {
    position: absolute;
    left: calc(100% - 1px);
    top: -10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 16px;
    width: auto !important;
    height: 16px !important;
    padding: 0 3px !important;
    margin: 0 !important;
    border: 1px solid var(--majaa-color-gold-soft);
    border-radius: 999px;
    background: radial-gradient(circle at 30% 22%, #fffefa 0%, #faf7f1 46%, #ead8b9 100%);
    box-shadow: inset 0 1px 1px #fffefa, inset 0 -1px 2px #b29a6f33, 0 2px 3px #39312d26;
    color: var(--majaa-color-ink);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    pointer-events: none;
}
#profile-content__nav .majaa-native-total,
#subnav .majaa-native-total,
#subnav #requests-personal-li .item-notification-friend-request,
#subnav #requests-personal-li .majaa-request-subcount,
#profile-content__nav .majaa-request-count[hidden] { display: none !important; }
.majaa-request-view:focus-visible,
#profile-content__nav .majaa-menu-toggle:focus-visible,
#profile-content__nav .majaa-mobile-link:focus-visible {
    outline: 2px solid var(--majaa-color-gold-soft);
    outline-offset: 3px;
}
.majaa-connections-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.majaa-request-view-wrapper { display: inline-block; }
.majaa-mobile-navigation { display: none; }
/* Approved navigation: no active underline or new separator below the subtabs. */
#profile-content__nav .majaa-profile-link,
#subnav .majaa-profile-link {
    color: #494641;
    font-family: var(--majaa-font-body);
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: none !important;
    border-bottom-color: transparent !important;
}
#profile-content__nav .majaa-profile-link::after,
#subnav .majaa-profile-link::after { content: none !important; }
#profile-content__nav li:has(> .majaa-profile-link) {
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}
#profile-content__nav .majaa-profile-link {
    font-size: 15.2px;
    min-height: 62px;
    padding: 12px 10px;
    background: none;
}
#subnav .primary-list-tabs:has(.majaa-profile-link),
#subnav .item-list-tabs-ul:has(.majaa-profile-link),
#subnav li:has(> .majaa-profile-link) {
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
}
#subnav .item-list-tabs-ul:has(.majaa-profile-link) {
    display: inline-flex;
    gap: 18px;
    padding: 0;
    margin: 0;
}
#subnav .majaa-profile-link {
    font-size: 14px;
    min-height: 48px;
    padding: 8px 5px 12px;
    background: none !important;
    border: 0 !important;
    gap: 7px;
}
#subnav .majaa-nav-icon { width: 24px !important; height: 24px !important; flex-basis: 24px; }
#subnav .majaa-icon-heart-handshake { width: 28px !important; height: 28px !important; flex-basis: 28px; }
@media (max-width: 599.98px) {
    /* Handy: alle Profil-Reiter in einer wischbaren Reihe (statt Klappmenü, Marcel 05.11.2026).
     * #buddypress: das Theme setzt die Liste mit zwei IDs und !important auf display:block. */
    #buddypress #profile-content__nav.majaa-nav-ready > .majaa-mobile-navigation { display: none !important; }
    #buddypress #profile-content__nav.majaa-nav-ready > .container { display: block !important; padding: 0 4px; }
    #buddypress #profile-content__nav.majaa-nav-ready > .container > .row { margin: 0; }
    #buddypress #profile-content__nav.majaa-nav-ready .profile-content__nav-wrapper { padding: 0; }
    #buddypress #profile-content__nav.majaa-nav-ready .main-nav:not(.settings-nav) {
        display: flex !important;
        flex-flow: row nowrap !important;
        gap: 4px;
        width: 100%;
        max-height: none;
        height: auto;
        margin: 0;
        padding: 0 8px;
        position: static;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    #buddypress #profile-content__nav.majaa-nav-ready .main-nav:not(.settings-nav)::-webkit-scrollbar { display: none; }
    /* Das Theme schiebt Reiter in seine Überlauf-Liste (nav__dropdown-wrapper); die Hülle wird aufgelöst,
     * damit alle Reiter nebeneinander in derselben Reihe stehen. */
    #buddypress #profile-content__nav.majaa-nav-ready .main-nav:not(.settings-nav) .nav__dropdown-wrapper,
    #buddypress #profile-content__nav.majaa-nav-ready .main-nav:not(.settings-nav) .nav__dropdown {
        display: contents !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    #buddypress #profile-content__nav.majaa-nav-ready .main-nav:not(.settings-nav) .nav__dropdown-toggle { display: none !important; }
    #buddypress #profile-content__nav.majaa-nav-ready .main-nav:not(.settings-nav) > li,
    #buddypress #profile-content__nav.majaa-nav-ready .main-nav:not(.settings-nav) li:has(> .majaa-profile-link) {
        display: block;
        flex: 0 0 auto;
        float: none;
        width: auto;
    }
    #buddypress #profile-content__nav.majaa-nav-ready .majaa-profile-link:not(.majaa-mobile-link) {
        display: inline-flex !important;
        width: auto;
        min-height: 52px;
        padding: 10px 10px;
        white-space: nowrap;
    }
    #buddypress #profile-content__nav.majaa-nav-ready li.current > .majaa-profile-link,
    #buddypress #profile-content__nav.majaa-nav-ready li.selected > .majaa-profile-link {
        font-weight: 700;
        box-shadow: inset 0 -2px 0 var(--majaa-color-gold-dark) !important;
    }
    /* Flatten only the theme's overflow menu; links and permissions remain native. */
    #profile-content__nav.majaa-nav-ready .nav__dropdown-wrapper:has(.majaa-profile-link),
    #profile-content__nav.majaa-nav-ready .nav__dropdown:has(.majaa-profile-link) {
        display: contents !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    #profile-content__nav.majaa-nav-ready .nav__dropdown-toggle { display: none !important; }
    #subnav .item-list-tabs-ul:has(.majaa-profile-link) {
        display: grid;
        grid-template-columns: 0.83fr 1.17fr;
        gap: 4px;
        width: 100%;
    }
    #subnav li:has(> .majaa-profile-link) { min-width: 0; }
    #subnav .majaa-profile-link {
        min-height: 58px;
        width: 100%;
        padding: 8px 3px 12px;
        justify-content: center;
        white-space: normal;
        text-align: left;
    }
}
@media (min-width: 600px) and (max-width: 767.98px) {
    #profile-content__nav.majaa-nav-ready .main-nav.priority-ul { display: inline-block !important; }
}
