/** Custom Styles for Design 1 Theme - By Fatehi */

/* By Fatehi: Assignment field hints - readable in both light & dark mode */
.assignment-field-hint {
    color: #5c6574;
    font-size: 12px;
}
.dark-mode .assignment-field-hint {
    color: rgba(255, 255, 255, 0.6);
}

/* By Fatehi: desktop navigation is replaced by the mobile header through 1199px. */
.theme-header-mobile,
.theme-header-mobile__main-menu-drawer {
    display: none !important;
}

/* By Fatehi: only show the duplicate user menu while the desktop navigation is fixed. */
.namae-header__auth-sticky {
    display: none;
}

.namae-header__main.sticky .namae-header__auth-sticky {
    display: block;
}

.namae-header__main.sticky .namae-header__col-cta > .btn-flip-effect {
    display: none;
}

/* By Fatehi: show the mobile header and menu drawer instead of desktop navigation below wide desktop width. */
@media (max-width: 1199.98px) {
    .namae-header {
        display: none !important;
    }

    .theme-header-mobile,
    .theme-header-mobile__main-menu-drawer {
        display: block !important;
    }
}

/* By Fatehi: avoid duplicating the account identity before the mobile header sticks. */
.theme-header-mobile__sticky-user {
    display: none;
}

.theme-header-mobile__sticky.sticky .theme-header-mobile__sticky-user {
    display: flex;
}

.theme-header-mobile__sticky-user > span {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* By Fatehi: keep the mobile menu as a dismissible drawer with a clickable backdrop. */
.theme-header-mobile__main-menu-drawer {
    background: transparent !important;
    pointer-events: none;
}

.theme-header-mobile__main-menu-drawer.show {
    pointer-events: auto;
}

.theme-header-mobile__main-menu-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(17, 24, 39, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.theme-header-mobile__main-menu-drawer.show .theme-header-mobile__main-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.theme-header-mobile__main-menu-panel {
    position: relative;
    z-index: 2;
    width: calc(100vw - 32px);
    max-width: 440px;
    height: 100%;
    overflow-y: auto;
    background: var(--white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.rtl .theme-header-mobile__main-menu-panel {
    margin-inline-start: auto;
    margin-inline-end: 0;
}
