/* Alt Academy site header: hand-written parts (loaded on WordPress pages AND Webflow pages).
   - Signed-in account menu ("Hi, Sara ▾") that replaces "Sign in".
   - Drawer account block for signed-in visitors.
   Matches the Webflow header: Inter 13px/500, square corners, ink #1A141F, accent #CE1257.
   Selectors carry :is(#alt-site-header, #mobile-menu, body) so they outrank both Astra and the
   generated header.css generic rules (one id), on WordPress and Webflow pages alike. */

:is(#alt-site-header, #mobile-menu, body) .alt-acct { position: relative; display: inline-flex; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__btn {
	display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin: 0; padding: 10px;
	border: 0; background: transparent; color: #5D5866; cursor: pointer; white-space: nowrap;
	font: 500 13px/1 Inter, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: none;
}
:is(#alt-site-header, #mobile-menu, body) .alt-acct__btn:hover, :is(#alt-site-header, #mobile-menu, body) .alt-acct__btn[aria-expanded="true"] { color: #1A141F; background: transparent; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__btn:focus-visible { outline: 2px solid #CE1257; outline-offset: 2px; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__chev {
	width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); transition: transform 150ms ease;
}
:is(#alt-site-header, #mobile-menu, body) .alt-acct__btn[aria-expanded="true"] .alt-acct__chev { margin-top: 3px; transform: rotate(-135deg); }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__menu {
	position: absolute; top: calc(100% + 10px); right: 0; z-index: 1005; min-width: 220px; padding: 6px 0;
	border: 1px solid #DCDFE5; background: #fff; box-shadow: 0 18px 40px rgba(29, 23, 36, 0.14);
	font-family: Inter, sans-serif; text-align: left;
}
:is(#alt-site-header, #mobile-menu, body) .alt-acct__menu[hidden] { display: none; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__who {
	margin: 0; padding: 10px 16px 12px; border-bottom: 1px solid #ECEDEF;
	color: #5D5866; font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
:is(#alt-site-header, #mobile-menu, body) .alt-acct__who b { display: block; color: #1A141F; font-weight: 600; font-size: 13px; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__menu a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px;
	color: #1A141F; font-size: 13px; font-weight: 500; line-height: 1.2; text-decoration: none;
}
:is(#alt-site-header, #mobile-menu, body) .alt-acct__menu a:hover, :is(#alt-site-header, #mobile-menu, body) .alt-acct__menu a:focus-visible { background: #F4F5F6; color: #CE1257; outline: none; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct__menu .alt-acct__out { border-top: 1px solid #ECEDEF; margin-top: 6px; padding-top: 13px; color: #5D5866; }

/* Drawer (phones / tablets) */
:is(#alt-site-header, #mobile-menu, body) .alt-acct-drawer__who { margin: 0 0 4px; color: #5D5866; font: 400 13px/1.4 Inter, sans-serif; }
:is(#alt-site-header, #mobile-menu, body) .alt-acct-drawer__who b { color: #1A141F; font-weight: 600; }

/* Our header on WordPress pages */
body.menu-locked { overflow: hidden; }
.admin-bar #alt-site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #alt-site-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar #alt-site-header { top: 0; } }
#alt-site-header a, #mobile-menu.alt-sh a { text-decoration: none; }

/* Slim checkout bar (checkout + order pay): logo + "Secure checkout", nothing to click away to. */
#alt-site-header .alt-sh-slim { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
#alt-site-header .alt-sh-slim__secure {
	display: inline-flex; align-items: center; gap: 8px; color: #5D5866;
	font: 500 12px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
