



/* ==========================================================
   PRIMARY MENU ACCOUNT AREA
   ========================================================== */

/* Allow the navigation to use the full menu-row width */
.ast-desktop .site-header-primary-section-center,
.ast-desktop .ast-builder-menu-1,
.ast-desktop .ast-main-header-bar-alignment,
.ast-desktop .main-header-bar-navigation,
.ast-desktop .main-navigation {
    width: 100%;
}

/* Keep the ordinary menu centered */
.ast-desktop .main-header-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Position only the account or login item at the far right */
.ast-desktop .main-header-menu > .allagash-menu-profile,
.ast-desktop .main-header-menu > .allagash-menu-login {
    position: absolute;
    top: 0;
    right: 0;

    height: 30px;
    margin: 0 !important;
}

/* Account-menu width */
.ast-desktop .allagash-menu-profile {
    width: 180px;
}


/* ==========================================================
   TOP-LEVEL ACCOUNT / LOGIN LINK
   ========================================================== */

.ast-desktop .allagash-menu-profile > .menu-link,
.ast-desktop .allagash-menu-login > .menu-link {
    display: flex;
    align-items: center;

    height: 30px !important;
    min-height: 30px !important;

    margin: 0 !important;
    padding: 0 0.65em !important;

    background: var(--pine) !important;
    color: var(--light-mist) !important;

    border: 0 !important;
    border-radius: 0 !important;
}

/* Reverse colors on hover or while the submenu is open */
.ast-desktop .allagash-menu-profile:hover > .menu-link,
.ast-desktop .allagash-menu-profile:focus-within > .menu-link,
.ast-desktop .allagash-menu-login > .menu-link:hover,
.ast-desktop .allagash-menu-login > .menu-link:focus {
    background: var(--light-mist) !important;
    color: var(--pine) !important;
	
}




/* ==========================================================
   ACCOUNT DROPDOWN
   ========================================================== */

.ast-desktop .allagash-menu-profile > .sub-menu {
    top: 30px !important;
    right: 0;
    left: auto;

    width: 100%;
    min-width: 100%;

    margin: 0 !important;
    padding: 0;

    background: var(--pine);

    border: 0;
    border-radius: 0;
    box-shadow: none;

}

.ast-desktop .allagash-menu-profile > .sub-menu .menu-link {
    padding: 10px 0.65em !important;

    background: var(--pine) !important;
    color: var(--light-mist) !important;
}


/* Reverse dropdown colors on hover */
.ast-desktop .allagash-menu-profile > .sub-menu .menu-link:hover,
.ast-desktop .allagash-menu-profile > .sub-menu .menu-link:focus {
    background: var(--light-mist) !important;
    color: var(--pine) !important;
}

/* Make only the top-level account button taller */
.ast-desktop .allagash-menu-profile:hover > .menu-link,
.ast-desktop .allagash-menu-profile:focus-within > .menu-link {
    height: 50px !important;
    min-height: 50px !important;
	background: var(--pine) !important;
    color: var(--light-mist) !important;

    border-bottom: 3px solid var(--river-blue)!important;
	transition: none !important;
	
}

/* Account item active */
.ast-desktop .allagash-menu-profile:hover > .menu-link,
.ast-desktop .allagash-menu-profile:focus-within > .menu-link {
    background: var(--pine) !important;
    color: var(--light-mist) !important;

    /* Blue accent only on the account item */
    box-shadow: inset 0 -3px 0 var(--river-blue);
}


.ast-desktop .allagash-menu-profile > .sub-menu {
    top: 40px !important;
	
	
}

/* Fine divider above Sign Out */
.ast-desktop .allagash-menu-logout {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}


/* ==========================================================
   AVATAR, NAME, AND ARROW
   ========================================================== */

.allagash-account-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
		height: 30px!important;
   

}

.allagash-account-avatar {
    display: block;
    flex: 0 0 28px;

    width: 28px !important;
    height: 28px!important;
    
    object-fit: cover;
}

.allagash-account-name {
    white-space: nowrap;
		
}

.allagash-account-arrow {
    width: 6px;
    height: 6px;

    margin-left: auto;
    margin-bottom: 3px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg);
}

/* Hide Astra’s additional desktop dropdown arrow */
.allagash-menu-profile > .menu-link .ast-icon {
    display: none !important;
}

/* ==========================================================
   TABLET / NARROW DESKTOP
   ========================================================== */

@media (min-width: 1026px) and (max-width: 1150px) {

    /* More compact account control */
    .ast-desktop .allagash-menu-profile {
        width: 150px;
    }

    .ast-desktop .allagash-menu-profile > .menu-link,
    .ast-desktop .allagash-menu-login > .menu-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .allagash-account-identity {
        
			  font-size: 18px !important;
    }

    .allagash-account-avatar {
        position: relative;
        top: -1px;

      
    }

    .allagash-account-arrow {
        width: 5px;
        height: 5px;
        margin-bottom: 2px;
    }

    .ast-desktop .allagash-menu-profile > .sub-menu .menu-link {
        padding: 6px 10px !important;
    }

    /* Tighten the ordinary menu links */
    .ast-desktop
    .main-header-menu
    > li:not(.allagash-menu-profile):not(.allagash-menu-login)
    > .menu-link {
        padding-left: 7px !important;
        padding-right: 7px !important;
			  font-size: 18px !important;
    }

}

/* ==========================================================
   TABLET / NARROW DESKTOP
   ========================================================== */

@media (min-width: 922px) and (max-width: 1025px) {

    /* More compact account control */
    .ast-desktop .allagash-menu-profile {
        width: 150px;
    }

    .ast-desktop .allagash-menu-profile > .menu-link,
    .ast-desktop .allagash-menu-login > .menu-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .allagash-account-identity {
        
			  font-size: 18px !important;
    }

    .allagash-account-avatar {
        position: relative;
        top: -1px;

      
    }

    .allagash-account-arrow {
        width: 5px;
        height: 5px;
        margin-bottom: 2px;
    }

    .ast-desktop .allagash-menu-profile > .sub-menu .menu-link {
        padding: 6px 10px !important;
    }

    /* Tighten the ordinary menu links */
    .ast-desktop
    .main-header-menu
    > li:not(.allagash-menu-profile):not(.allagash-menu-login)
    > .menu-link {
        padding-left: 5px !important;
        padding-right: 5px !important;
			  font-size: 18px !important;
    }



}

/* ==========================================================
   MOBILE
   Leave Astra’s native mobile menu behavior intact
   ========================================================== */

@media (max-width: 921px) {

    /* Astra supplies its own mobile submenu button */
    .allagash-account-arrow {
        display: none !important;
    }


/* Mobile Account submenu hover and focus */
body.ast-header-break-point
.allagash-menu-profile
> .sub-menu
.menu-link:hover,
body.ast-header-break-point
.allagash-menu-profile
> .sub-menu
.menu-link:focus,
body.ast-header-break-point
.allagash-menu-profile
> .sub-menu
.menu-link:focus-visible,
body.ast-header-break-point
.allagash-menu-profile
> .sub-menu
.menu-link:active {
    background: var(--pine) !important;
    color: var(--light-mist) !important;
}

}
