/*
|--------------------------------------------------------------------------
| FILE PATH:
| /home/mahaupsi/public_html/assets/common/css/header.css
|
| FILE PURPOSE:
| Common responsive header styling for Maha Shikshan Awaaz.
|
| USED BY:
| - Public website
| - Teachers
| - Parents
| - Super Admin
| - Internal Co-Admin / Admin
|
| ROLE COLORS:
| - Teacher     -> Green
| - Parent      -> Purple
| - Admin       -> Orange
| - Super Admin -> Blue
|
| Supports both Light and Dark themes.
|--------------------------------------------------------------------------
*/


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: var(--z-header);

    width: 100%;

    background: var(--bg-header);

    border-bottom:
        1px solid
        var(--border-color);

    box-shadow: var(--shadow-xs);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
    min-height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(--space-4);
}


/* =========================================================
   BRAND
   ========================================================= */

.site-brand {
    min-width: 0;

    display: inline-flex;
    align-items: center;

    gap: var(--space-3);

    color: var(--text-primary);

    text-decoration: none;

    flex: 0 1 auto;
}

.site-brand:hover {
    color: var(--text-primary);
}


/* =========================================================
   BRAND LOGO
   ========================================================= */

.site-brand-logo {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: var(--color-primary-soft);

    border:
        1px solid
        var(--border-color);

    border-radius: var(--radius-md);
}

.site-brand-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   TEMPORARY TEXT LOGO
   ========================================================= */

.site-brand-mark {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color-primary);
    color: var(--text-on-primary);

    border-radius: var(--radius-md);

    font-size: var(--font-lg);
    font-weight: 800;
    line-height: 1;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.site-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.site-brand-name {
    color: var(--text-primary);

    font-size: var(--font-lg);
    font-weight: 750;

    white-space: nowrap;
}

.site-brand-tagline {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: var(--font-xs);

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   ROLE PILL
   ========================================================= */

.header-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        4px
        9px;

    border:
        1px solid
        transparent;

    border-radius: var(--radius-pill);

    font-size: 0.68rem;
    font-weight: 750;

    line-height: 1.1;

    letter-spacing: 0.01em;

    white-space: nowrap;
}


/* =========================================================
   ROLE — TEACHER
   GREEN
   ========================================================= */

.header-role--teacher {
    background: #ecfdf3;
    color: #15803d;

    border-color: #bbf7d0;
}


/* =========================================================
   ROLE — PARENT
   PURPLE
   ========================================================= */

.header-role--parent {
    background: #f5f3ff;
    color: #7c3aed;

    border-color: #ddd6fe;
}


/* =========================================================
   ROLE — ADMIN
   ORANGE
   ========================================================= */

.header-role--admin {
    background: #fff7ed;
    color: #c2410c;

    border-color: #fed7aa;
}


/* =========================================================
   ROLE — SUPER ADMIN
   BLUE
   ========================================================= */

.header-role--super-admin {
    background: #eff6ff;
    color: #1d4ed8;

    border-color: #bfdbfe;
}


/* =========================================================
   ROLE COLORS — DARK THEME
   ========================================================= */

:root[data-theme="dark"]
.header-role--teacher {
    background:
        rgba(34, 197, 94, 0.14);

    color: #86efac;

    border-color:
        rgba(34, 197, 94, 0.35);
}


:root[data-theme="dark"]
.header-role--parent {
    background:
        rgba(168, 85, 247, 0.14);

    color: #d8b4fe;

    border-color:
        rgba(168, 85, 247, 0.35);
}


:root[data-theme="dark"]
.header-role--admin {
    background:
        rgba(249, 115, 22, 0.14);

    color: #fdba74;

    border-color:
        rgba(249, 115, 22, 0.35);
}


:root[data-theme="dark"]
.header-role--super-admin {
    background:
        rgba(59, 130, 246, 0.14);

    color: #93c5fd;

    border-color:
        rgba(59, 130, 246, 0.35);
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.site-nav {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: var(--space-1);

    flex: 1 1 auto;
}

.site-nav-link {
    min-height: 38px;

    padding:
        8px
        12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: var(--nav-text);

    border:
        1px solid
        transparent;

    border-radius: var(--radius-md);

    font-size: var(--font-sm);
    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.site-nav-link:hover {
    background: var(--bg-surface-2);
    color: var(--nav-text-hover);
}

.site-nav-link.active,
.site-nav-link[aria-current="page"] {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);

    border-color: var(--border-color);
}


/* =========================================================
   FEATURED REELS NAVIGATION
   ========================================================= */

.site-nav-link--featured {
    position: relative;

    padding-left: 13px;
    padding-right: 14px;

    background:
        linear-gradient(
            135deg,
            #ff0033 0%,
            #dc2626 100%
        );

    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.16);

    box-shadow:
        0 6px 16px
        rgba(220, 38, 38, 0.24);

    font-weight: 800;

    letter-spacing: 0.01em;
}

.site-nav-link--featured::before {
    content: "▶";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.72rem;
    line-height: 1;
}

.site-nav-link--featured:hover,
.site-nav-link--featured:focus-visible,
.site-nav-link--featured.active,
.site-nav-link--featured[aria-current="page"] {
    background:
        linear-gradient(
            135deg,
            #e6002e 0%,
            #b91c1c 100%
        );

    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.28);

    box-shadow:
        0 8px 20px
        rgba(220, 38, 38, 0.32);
}



/* =========================================================
   DESKTOP PUBLIC PAGES DROPDOWN
   ========================================================= */

.site-nav-dropdown {
    position: relative;

    flex: 0 0 auto;
}

.site-nav-dropdown > summary {
    list-style: none;

    cursor: pointer;

    user-select: none;
}

.site-nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.site-nav-dropdown-summary {
    gap: 5px;
}

.site-nav-dropdown-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 0.7rem;

    transition:
        transform
        var(--transition-fast);
}

.site-nav-dropdown[open]
.site-nav-dropdown-arrow {
    transform:
        rotate(
            180deg
        );
}

.site-nav-dropdown[open]
.site-nav-dropdown-summary {
    background:
        var(
            --bg-surface-2
        );

    color:
        var(
            --nav-text-hover
        );

    border-color:
        var(
            --border-color
        );
}

.site-nav-dropdown-menu {
    position: absolute;

    z-index:
        calc(
            var(--z-header)
            +
            10
        );

    top:
        calc(
            100%
            +
            8px
        );

    right: 0;

    width: max-content;

    min-width: 210px;

    padding: 8px;

    display: grid;

    gap: 3px;

    border:
        1px solid
        var(
            --border-color
        );

    border-radius:
        var(
            --radius-lg
        );

    background:
        var(
            --bg-surface
        );

    box-shadow:
        0 18px 45px
        rgba(
            15,
            23,
            42,
            0.16
        );
}

.site-nav-dropdown-link {
    min-height: 38px;

    padding:
        8px
        11px;

    display: flex;

    align-items: center;

    border:
        1px solid
        transparent;

    border-radius:
        var(
            --radius-md
        );

    color:
        var(
            --nav-text
        );

    font-size:
        var(
            --font-sm
        );

    font-weight: 650;

    white-space: nowrap;

    text-decoration: none;
}

.site-nav-dropdown-link:hover,
.site-nav-dropdown-link:focus-visible {
    background:
        var(
            --bg-surface-2
        );

    color:
        var(
            --nav-text-hover
        );
}

.site-nav-dropdown-link--featured {
    margin-top: 3px;

    background:
        linear-gradient(
            135deg,
            #ff0033,
            #dc2626
        );

    color: #ffffff;

    font-weight: 850;

    box-shadow:
        0 6px 16px
        rgba(
            220,
            38,
            38,
            0.2
        );
}

.site-nav-dropdown-link--featured::before {
    content: "▶";

    margin-right: 7px;

    font-size: 0.68rem;
}

.site-nav-dropdown-link--featured:hover,
.site-nav-dropdown-link--featured:focus-visible {
    background:
        linear-gradient(
            135deg,
            #e6002e,
            #b91c1c
        );

    color: #ffffff;
}


/* =========================================================
   MOBILE PUBLIC PAGES GROUP
   ========================================================= */

.mobile-nav-public-group {
    display: grid;

    gap:
        var(
            --space-1
        );

    margin-top: 8px;

    padding-top: 10px;

    border-top:
        1px solid
        var(
            --border-color
        );
}

.mobile-nav-group-label {
    padding:
        3px
        12px
        5px;

    color:
        var(
            --text-muted
        );

    font-size: 0.68rem;

    font-weight: 850;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: var(--space-2);

    flex: 0 0 auto;
}


/* =========================================================
   THEME TOGGLE
   ========================================================= */

.theme-toggle {
    min-width: 42px;
    height: 40px;

    padding:
        0
        11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: var(--bg-surface-2);
    color: var(--text-secondary);

    border:
        1px solid
        var(--border-color);

    border-radius: var(--radius-md);

    cursor: pointer;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);

    border-color: var(--border-color-hover);
}

.theme-toggle:focus-visible {
    outline: none;

    box-shadow: var(--input-focus-ring);
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    line-height: 1;
}

.theme-toggle-label {
    font-size: var(--font-xs);
    font-weight: 650;
}


/* =========================================================
   LANGUAGE SWITCH
   ========================================================= */

.language-switch {
    display: inline-flex;
    align-items: center;

    padding: 3px;

    background: var(--bg-surface-2);

    border:
        1px solid
        var(--border-color);

    border-radius: var(--radius-md);
}

.language-link {
    min-width: 38px;
    height: 32px;

    padding:
        0
        8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--text-secondary);

    border-radius: var(--radius-sm);

    font-size: var(--font-xs);
    font-weight: 700;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.language-link:hover {
    color: var(--text-primary);
}

.language-link.active,
.language-link[aria-current="true"] {
    background: var(--bg-surface);
    color: var(--color-primary);

    box-shadow: var(--shadow-xs);
}


/* =========================================================
   USER / ADMIN AREA
   ========================================================= */

.header-user {
    display: flex;
    align-items: center;

    gap: var(--space-2);
}


/*
|--------------------------------------------------------------------------
| These classes remain available for future account-menu use.
|--------------------------------------------------------------------------
*/

.header-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-end;

    line-height: 1.15;
}

.header-user-name {
    max-width: 160px;

    color: var(--text-primary);

    font-size: var(--font-sm);
    font-weight: 650;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-role {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 600;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
    width: 42px;
    height: 40px;

    padding: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: var(--bg-surface-2);
    color: var(--text-primary);

    border:
        1px solid
        var(--border-color);

    border-radius: var(--radius-md);

    cursor: pointer;

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--bg-surface-hover);

    border-color: var(--border-color-hover);
}

.mobile-menu-toggle:focus-visible {
    outline: none;

    box-shadow: var(--input-focus-ring);
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.mobile-menu-icon {
    position: relative;

    width: 19px;
    height: 14px;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after,
.mobile-menu-icon span {
    position: absolute;
    left: 0;

    width: 100%;
    height: 2px;

    background: currentColor;

    border-radius: var(--radius-pill);

    transition:
        transform var(--transition-fast),
        top var(--transition-fast),
        opacity var(--transition-fast);
}

.mobile-menu-icon::before {
    content: "";

    top: 0;
}

.mobile-menu-icon span {
    top: 6px;
}

.mobile-menu-icon::after {
    content: "";

    top: 12px;
}


/* =========================================================
   HAMBURGER OPEN STATE
   ========================================================= */

.mobile-menu-toggle[aria-expanded="true"]
.mobile-menu-icon::before {
    top: 6px;

    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"]
.mobile-menu-icon span {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"]
.mobile-menu-icon::after {
    top: 6px;

    transform: rotate(-45deg);
}


/* =========================================================
   MOBILE NAVIGATION PANEL
   ========================================================= */

.mobile-nav {
    display: none;

    background: var(--bg-surface);

    border-top:
        1px solid
        var(--border-color);

    box-shadow: var(--shadow-sm);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-inner {
    padding:
        var(--space-3)
        var(--mobile-padding)
        var(--space-4);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;

    gap: var(--space-1);
}

.mobile-nav-link {
    min-height: 42px;

    padding:
        9px
        12px;

    display: flex;
    align-items: center;

    color: var(--nav-text);

    border:
        1px solid
        transparent;

    border-radius: var(--radius-md);

    font-size: var(--font-sm);
    font-weight: 600;
}

.mobile-nav-link:hover {
    background: var(--bg-surface-2);
    color: var(--nav-text-hover);
}

.mobile-nav-link.active,
.mobile-nav-link[aria-current="page"] {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);

    border-color: var(--border-color);
}


/* =========================================================
   MOBILE FEATURED REELS LINK
   ========================================================= */

.mobile-nav-link--featured {
    position: relative;

    justify-content: center;

    gap: 8px;

    background:
        linear-gradient(
            135deg,
            #ff0033 0%,
            #dc2626 100%
        );

    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.16);

    box-shadow:
        0 6px 16px
        rgba(220, 38, 38, 0.2);

    font-weight: 800;

    letter-spacing: 0.01em;
}

.mobile-nav-link--featured::before {
    content: "▶";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.72rem;
    line-height: 1;
}

.mobile-nav-link--featured:hover,
.mobile-nav-link--featured:focus-visible,
.mobile-nav-link--featured.active,
.mobile-nav-link--featured[aria-current="page"] {
    background:
        linear-gradient(
            135deg,
            #e6002e 0%,
            #b91c1c 100%
        );

    color: #ffffff;

    border-color:
        rgba(255, 255, 255, 0.28);
}

.mobile-nav-actions {
    margin-top: var(--space-3);

    padding-top: var(--space-3);

    display: flex;
    flex-wrap: wrap;

    gap: var(--space-2);

    border-top:
        1px solid
        var(--border-color);
}


/* =========================================================
   PUBLIC INDEPENDENCE NOTICE
   ========================================================= */

.header-notice {
    width: 100%;

    padding:
        6px
        var(--desktop-padding);

    background: var(--info-bg);
    color: var(--info-text);

    border-bottom:
        1px solid
        var(--border-color);

    text-align: center;

    font-size: var(--font-xs);
    font-weight: 600;

    line-height: 1.35;
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .site-header,
    .mobile-nav,
    .header-notice {
        display: none !important;
    }
}


/* =========================================================
   DESKTOP
   >= 1024px
   ========================================================= */

@media (min-width: 1024px) {

    /*
    |--------------------------------------------------------------------------
    | Keep the full desktop header on one clean line.
    |--------------------------------------------------------------------------
    */

    .site-header-inner {
        gap: 8px;
    }

    .site-brand {
        flex: 0 0 auto;
        min-width: max-content;
        max-width: none;
        gap: 8px;
    }

    .site-brand-text,
    .header-role {
        flex: 0 0 auto;
    }

    /*
    |--------------------------------------------------------------------------
    | Admin role pills sit beside the brand text, so give those areas enough
    | room to display the full "Maha Shikshan Awaaz" name.
    |--------------------------------------------------------------------------
    */

    .msa-area-admin .site-brand,
    .msa-area-coadmin .site-brand {
        flex:
            0
            0
            auto;

        max-width: none;
    }

    .site-brand-logo,
    .site-brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .site-brand-name {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        font-size: 1rem;
    }

    .site-brand-tagline {
        max-width: 185px;
        font-size: 0.68rem;
    }

    .msa-area-admin .site-brand-name,
    .msa-area-coadmin .site-brand-name {
        max-width: none;

        overflow: visible;
        text-overflow: clip;

        font-size: 0.98rem;
    }

    .msa-area-admin .site-brand-tagline,
    .msa-area-coadmin .site-brand-tagline {
        max-width: 210px;
    }

    .site-nav {
        gap: 2px;
    }

    .site-nav-link {
        min-height: 36px;
        padding: 7px 8px;
        font-size: 0.81rem;
    }

    .site-nav-link--featured {
        padding-left: 10px;
        padding-right: 11px;
    }

    .header-actions {
        gap: 6px;
    }

    .theme-toggle {
        min-width: 40px;
        height: 38px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .language-link {
        min-width: 35px;
        padding-left: 6px;
        padding-right: 6px;
    }
}


/* =========================================================
   TABLET
   600px - 1023px
   ========================================================= */

@media (min-width: 600px) and (max-width: 1023px) {

    .site-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .site-brand-tagline {
        max-width: 220px;
    }

    .header-user-info {
        display: none;
    }

    .header-notice {
        padding-left: var(--tablet-padding);
        padding-right: var(--tablet-padding);
    }

    /*
    |--------------------------------------------------------------------------
    | Compact floating navigation instead of full-width panel.
    |--------------------------------------------------------------------------
    */

    .mobile-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: var(--tablet-padding);
        left: auto;

        /*
        |--------------------------------------------------------------------------
        | Absolutely positioned + width:auto gives true shrink-to-fit behaviour.
        | The menu now wraps its real content instead of growing to viewport width.
        |--------------------------------------------------------------------------
        */

        width: auto;
        max-width: calc(100vw - (2 * var(--tablet-padding)));

        border: 1px solid var(--border-color);
        border-radius: 16px;

        box-shadow: var(--shadow-lg);

        overflow: hidden;
    }

    .mobile-nav-inner {
        width: auto;
        max-width: none;

        padding: 12px;
    }

    .mobile-nav-links {
        width: auto;
        max-width: none;
    }

    .mobile-nav-link {
        width: auto;
    }
}


/* =========================================================
   MOBILE
   <= 599px
   ========================================================= */

@media (max-width: 599px) {

    .site-header-inner {
        min-height: 62px;

        gap: var(--space-2);
    }

    .site-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }


    /* =====================================================
       BRAND
       ===================================================== */

    .site-brand {
        gap: var(--space-2);
    }

    .site-brand-logo,
    .site-brand-mark {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .site-brand-name {
        max-width: clamp(145px, 52vw, 210px);

        font-size: 0.95rem;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-brand-tagline {
        display: block;

        max-width: clamp(145px, 52vw, 210px);

        margin-top: 2px;

        font-size: 0.68rem;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =====================================================
       CLEAN MOBILE TOP HEADER
       ===================================================== */

    .header-actions > .language-switch,
    .header-actions > .theme-toggle,
    .header-actions > .header-user,
    .header-actions > a.btn {
        display: none;
    }

    .header-user-info {
        display: none;
    }

    .header-role {
        display: none;
    }

    .header-notice {
        padding:
            6px
            var(--mobile-padding);

        font-size: 0.7rem;
    }


    /* =====================================================
       COMPACT FLOATING MOBILE MENU
       ===================================================== */

    .mobile-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: auto;

        /*
        |--------------------------------------------------------------------------
        | Important:
        | Do NOT use width:max-content here.
        |
        | The menu contains flex/grid children. On Chrome Android the previous
        | max-content + child width:100% combination expanded to the max-width,
        | which is why the menu looked almost full-screen.
        |
        | An absolutely positioned element with width:auto and one horizontal
        | edge fixed uses shrink-to-fit sizing, which is exactly what we need.
        |--------------------------------------------------------------------------
        */

        width: auto;
        max-width: calc(100vw - 24px);

        background: var(--bg-surface);

        border: 1px solid var(--border-color);
        border-radius: 16px;

        box-shadow:
            0 18px 50px
            rgba(15, 23, 42, 0.18);

        overflow: hidden;
    }

    .mobile-nav-inner {
        width: auto;
        max-width: none;

        padding: 12px;
    }

    .mobile-nav-links {
        width: auto;
        max-width: none;
    }

    .mobile-nav-link {
        width: auto;
        min-height: 40px;

        padding:
            9px
            13px;
    }

    /*
    |--------------------------------------------------------------------------
    | Reels stays prominent, but the entire menu is now compact.
    |--------------------------------------------------------------------------
    */

    .mobile-nav-link--featured {
        margin-top: 5px;
        min-height: 42px;
    }


    /* =====================================================
       MOBILE ACTIONS
       ===================================================== */

    .mobile-nav-actions {
        width: auto;

        margin-top: 10px;
        padding-top: 10px;

        display: grid;
        grid-template-columns: auto auto;

        gap: 8px;
    }

    .mobile-nav-actions
    .language-switch {
        display: inline-flex;
    }

    .mobile-nav-actions
    .theme-toggle {
        width: auto;
        min-width: 90px;

        padding:
            0
            11px;
    }

    .mobile-nav-actions
    .theme-toggle-label {
        display: inline;
    }


    /* =====================================================
       MOBILE AUTH BUTTONS
       ===================================================== */

    .mobile-auth-actions {
        grid-column: 1 / -1;

        width: auto;

        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;

        gap: 8px;

        margin-top: 1px;
    }

    .mobile-auth-actions > .btn {
        width: auto;
        min-width: 96px;
    }

    .mobile-auth-actions form {
        width: auto;
        margin: 0;
    }

    .mobile-auth-actions form .btn {
        width: 100%;
        min-width: 100px;
    }
}
