.global-header {
    width: min(1180px, calc(100% - 40px));
    min-height: 92px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 28px;

    border-bottom: 1px solid rgba(12, 93, 158, 0.10);
}


.global-brand {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;

    color: #0c5d9e;

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size: 0.95rem;
    font-weight: 700;

    text-decoration: none;
}


.global-brand img {
    width: 58px;
    height: 58px;

    object-fit: contain;
}


.global-navigation {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-left: auto;
}


.global-nav-link {
    color: #253746;

    font-size: 0.84rem;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    padding: 8px 12px;

    border: 1px solid transparent;
    border-radius: 999px;

    transition:
        color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


a.global-nav-link:hover {
    color: #0c5d9e;

    background:
        rgba(12, 93, 158, 0.045);

    transform: translateY(-1px);
}


.global-nav-active {
    color: #0c5d9e;

    background:
        rgba(12, 93, 158, 0.08);

    border-color:
        rgba(12, 93, 158, 0.14);

    box-shadow:
        inset 0 -2px 0 rgba(238, 154, 43, 0.55);
}


.global-nav-future {
    color: #8793a0;

    cursor: default;
}


.global-nav-external {
    color: #0c5d9e;
}


.global-account {
    flex-shrink: 0;
}


.global-account form {
    margin: 0;
}


.global-account-action {
    min-height: 44px;

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

    padding: 0 18px;

    border: 1px solid #0c5d9e;
    border-radius: 9px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1873b7,
            #0c5d9e
        );

    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(12, 93, 158, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.global-account-action:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(12, 93, 158, 0.22);
}


.global-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

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

    flex-direction: column;

    gap: 5px;

    padding: 0;

    border:
        1px solid rgba(12, 93, 158, 0.18);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.92);

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(20, 40, 60, 0.08);
}


.global-menu-icon {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.global-menu-icon > span {
    width: 20px;
    height: 2px;

    display: block;

    border-radius: 999px;

    background: #0c5d9e;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.global-menu-label {
    color: #0c5d9e;

    font-size: 0.82rem;
    font-weight: 600;

    line-height: 1;
}


.global-menu-toggle[aria-expanded="true"] .global-menu-icon > span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.global-menu-toggle[aria-expanded="true"] .global-menu-icon > span:nth-child(2) {
    opacity: 0;
}


.global-menu-toggle[aria-expanded="true"] .global-menu-icon > span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


.global-mobile-menu {
    display: none;
}


.global-brand:focus-visible,
.global-nav-link:focus-visible,
.global-mobile-link:focus-visible,
.global-menu-toggle:focus-visible,
.global-account-action:focus-visible {
    outline:
        3px solid rgba(238, 154, 43, 0.72);

    outline-offset: 4px;
}


/* Tablet */
@media (max-width: 1050px) {

    .global-header {
        gap: 20px;
    }

    .global-navigation {
        gap: 14px;
    }

    .global-brand span {
        display: none;
    }
}


/* Mobile */
@media (max-width: 800px) {

    .global-header {
        width:
            min(
                calc(100% - 24px),
                1180px
            );

        min-height: 80px;

        gap: 12px;
    }


    .global-brand img {
        width: 52px;
        height: 52px;
    }


    .global-navigation {
        display: none;
    }


    .global-menu-toggle {
        display: inline-flex;

        width: auto;
        min-width: 92px;
        height: 44px;

        flex-direction: row;

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

        gap: 10px;

        padding: 0 14px;

        margin-left: auto;
    }


    .global-account {
        margin-left: 0;
    }


    .global-account-action {
        min-height: 42px;

        padding: 0 14px;

        font-size: 0.78rem;
    }


    .global-mobile-menu {
        width:
            min(
                calc(100% - 24px),
                1180px
            );

        margin: 0 auto 20px;

        padding: 10px;

        border:
            1px solid rgba(12, 93, 158, 0.12);

        border-radius: 14px;

        background:
            rgba(255, 255, 255, 0.97);

        box-shadow:
            0 14px 32px rgba(20, 40, 60, 0.10);
    }


    .global-mobile-menu.open {
        display: grid;

        gap: 4px;
    }


    .global-mobile-link {
        display: block;

        padding: 11px 13px;

        border:
            1px solid transparent;

        border-radius: 10px;

        color: #253746;

        font-size: 0.9rem;
        font-weight: 600;

        text-decoration: none;
    }


    a.global-mobile-link:hover {
        color: #0c5d9e;

        background:
            rgba(12, 93, 158, 0.05);
    }


    .global-mobile-link.global-nav-active {
        color: #0c5d9e;

        background:
            rgba(12, 93, 158, 0.08);

        border-color:
            rgba(12, 93, 158, 0.14);

        box-shadow:
            inset 3px 0 0 rgba(238, 154, 43, 0.70);
    }


    .global-mobile-link.global-nav-future {
        color: #8793a0;
    }
}

/* =========================================================
   MEMBER PROFILE AVATAR
   ========================================================= */

.global-account {
    gap: 10px;
}

.global-profile-link {
    flex: 0 0 auto;

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

    border-radius: 50%;

    text-decoration: none;
}

.global-profile-avatar {
    width: 42px;
    height: 42px;

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

    overflow: hidden;

    border: 2px solid #b97822;
    border-radius: 50%;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #073f6e,
            #0c5d9e
        );

    font-family:
        "Cinzel",
        Georgia,
        serif;

    font-size: 1.05rem;
    font-weight: 700;

    box-shadow:
        0 5px 14px rgba(17, 45, 70, 0.14);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.global-profile-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.global-profile-link:hover .global-profile-avatar {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(17, 45, 70, 0.20);
}

.global-profile-link:focus-visible {
    outline: 3px solid rgba(238, 154, 43, 0.38);
    outline-offset: 3px;
}


@media (max-width: 760px) {

    .global-profile-avatar {
        width: 38px;
        height: 38px;

        font-size: 0.95rem;
    }

}


/* =========================================================
   MEMBER ACCOUNT DROPDOWN
   ========================================================= */

.global-account {
    position: relative;

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

    gap: 0;
}

.global-profile-menu {
    position: relative;

    display: flex;
    align-items: center;
}

.global-profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.global-profile-trigger:hover .global-profile-avatar {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(17, 45, 70, 0.20);
}

.global-profile-trigger:focus-visible {
    outline:
        3px solid rgba(238, 154, 43, 0.38);

    outline-offset: 3px;
}

.global-profile-dropdown {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    z-index: 1000;

    width: 230px;

    overflow: hidden;

    border:
        1px solid rgba(12, 93, 158, 0.14);

    border-radius: 13px;

    background: #ffffff;

    box-shadow:
        0 18px 40px rgba(17, 45, 70, 0.16);
}

.global-profile-dropdown[hidden] {
    display: none;
}

.global-profile-summary {
    padding: 15px 16px 13px;

    border-bottom:
        1px solid rgba(12, 93, 158, 0.10);
}

.global-profile-summary strong,
.global-profile-summary span {
    display: block;
}

.global-profile-summary strong {
    color: #17395b;

    font-size: 0.86rem;
}

.global-profile-summary span {
    margin-top: 3px;

    overflow-wrap: anywhere;

    color: #66717d;

    font-size: 0.72rem;
}

.global-profile-menu-link,
.global-profile-signout {
    width: 100%;

    min-height: 43px;

    display: flex;
    align-items: center;

    padding: 0 16px;

    border: 0;

    color: #17395b;
    background: #ffffff;

    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;

    text-align: left;
    text-decoration: none;

    cursor: pointer;
}

.global-profile-menu-link:hover,
.global-profile-signout:hover {
    color: #0c5d9e;

    background:
        rgba(12, 93, 158, 0.06);
}

.global-profile-signout {
    border-top:
        1px solid rgba(12, 93, 158, 0.08);
}

.global-profile-dropdown form {
    margin: 0;
}


@media (max-width: 760px) {

    .global-profile-dropdown {
        right: 0;

        width:
            min(
                230px,
                calc(100vw - 24px)
            );
    }

}
