/* The header pass (owner, 11-07, RULEBOOK 52). Loaded last, so it decides the header on every surface: the site, sign-in, My
   Axium and the admin hub.
   - No marquee. One ran above the header for part of 11-07; the owner found it made the top of the page busy, and it was
     removed with its styles and script.
   - The header is one thin row (60 px, 56 on a phone) of glass: the page at 74% under a 12 px blur, so whatever scrolls under it
     shows as a haze. The owner asked for the blur; it is the one exception to rule 1 (see entry 52 for its cost).
   - On a wide screen the search sits in the middle of that row (site.js moves the one search form there); on a narrower one it
     keeps its own glass row under the header. Either way it leaves while reading down and returns on the way up (site.js).
   - The header's words and icons glow in the theme accent. */

/* The header: one thin glass row. */
html .ax-header{height:60px;min-height:0;padding:0 18px!important;gap:12px!important;flex-wrap:nowrap;background:color-mix(in srgb,var(--page) 74%,transparent);-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);border-bottom:1px solid var(--line);box-shadow:none}
html body.workspace-shell>.ax-header{background:color-mix(in srgb,var(--page) 74%,transparent)!important;-webkit-backdrop-filter:blur(12px) saturate(140%)!important;backdrop-filter:blur(12px) saturate(140%)!important}
html .ax-header .brand .brand-orb{width:44px;height:48px}
html .ax-header nav,html .ax-header .header-actions{gap:8px!important}
@media(min-width:761px){html .ax-header nav{order:0;width:auto;margin:0;padding:0;border:0;justify-content:flex-start}html .ax-header .header-actions{margin-left:auto}}
html .ax-header :is(nav>a,.help-nav>summary,.header-actions>.small-button){min-height:36px;height:36px;padding:0 13px!important;display:inline-flex;align-items:center;font-size:14px;border-radius:9px;color:var(--accent);text-shadow:0 0 8px color-mix(in srgb,var(--accent) 42%,transparent)}
html .ax-header .header-actions .cart-link{flex-direction:row;gap:6px;min-width:0;margin-left:0}
html .ax-header .cart-link svg{width:19px;height:19px}
html .ax-header .cart-link .cart-label{font-size:13px;line-height:1}
html .ax-header :is(.cart-link svg,.mobile-nav-toggle svg){filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent) 55%,transparent))}
html .ax-header .mobile-nav-toggle{color:var(--accent)}
/* The Help menu opens over the centred search where the two meet (about 1100 to 1300 px wide). */
html .ax-header .help-nav{position:relative;z-index:3}
/* Help's caret follows the word. It sat at a fixed 17 px from the right edge, and this row's 13 px padding put it on the "p". */
html .ax-header .help-nav>summary::-webkit-details-marker{display:none}
html .ax-header .help-nav>summary::after{position:static;flex:none;margin:0 0 0 8px;transform:translateY(-2px) rotate(45deg)}
html .ax-header .help-nav[open]>summary::after{transform:translateY(2px) rotate(225deg)}

/* The search: in the middle of the header on a wide screen, in its own glass row under it on a narrower one. */
.header-search{display:none}
@media(min-width:1100px){
 html body:not(.workspace-shell) .header-search{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:clamp(240px,calc(100vw - 860px),420px)}
 body:not(.workspace-shell)>.search-row{display:none}
}
@media(min-width:900px){
 html body.workspace-shell .header-search{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:clamp(280px,40vw,480px)}
 body.workspace-shell>.search-row{display:none}
}
html .header-search .search{display:flex!important;width:100%;height:38px;padding:0 14px;box-sizing:border-box;align-items:center;gap:9px}
html .header-search .search input{flex:1;min-width:0;width:auto;font-size:14px}
html .header-search{transition:opacity .26s ease,visibility 0s}
html[data-search-hidden=true] .header-search{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .38s ease,visibility 0s linear .38s}
/* Sign-in has no search, in its row or in the header. */
html body.signin-shell .header-search{display:none!important}
html body>.search-row{padding:7px 14px;background:color-mix(in srgb,var(--page) 74%,transparent);-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);border-bottom:1px solid var(--line)}
html body.workspace-shell>.search-row{background:color-mix(in srgb,var(--page) 74%,transparent)!important;-webkit-backdrop-filter:blur(12px) saturate(140%)!important;backdrop-filter:blur(12px) saturate(140%)!important}
html body>.search-row .search{width:min(560px,100%);height:40px;padding:0 14px;box-sizing:border-box}

/* The AX mark alone in the top right corner, in the theme (owner, 11-07). */
html .page-signature{padding:8px 20px 0;opacity:.85}
html .page-signature img{width:40px;height:26px}

/* The home hero: the headline, then the maker on one line. */
.hero-brandline{margin:16px 0 0;font-size:14px;line-height:1.4;font-weight:650;letter-spacing:.24em;text-transform:uppercase;color:var(--ink)}
.hero-brandline em{font-style:normal;font-size:16px;font-weight:600;letter-spacing:.02em;text-transform:none;color:var(--accent)}

/* A phone: the same row, smaller. */
@media(max-width:760px){
 html .ax-header{height:56px;padding:0 10px!important;gap:6px!important}
 html .ax-header .brand .brand-orb{width:40px;height:44px}
 html .ax-header .header-actions{gap:6px!important}
 html .ax-header :is(.header-actions>.small-button,.mobile-nav-toggle){min-height:38px;height:38px;padding:0 10px!important;font-size:13px}
 html .ax-header .mobile-nav-toggle{width:40px;min-width:40px;padding:0!important;justify-content:center}
 html .ax-header .header-actions .cart-link{flex-direction:column;gap:1px;min-width:44px;padding:0 8px!important}
 html .ax-header .cart-link svg{width:17px;height:17px}
 html .ax-header .cart-link .cart-label{font-size:10px}
 html body>.search-row{padding:6px 10px}
 html body.workspace-shell .ax-header .header-actions{margin-left:auto}
 .hero-brandline{font-size:12px;letter-spacing:.16em}
 .hero-brandline em{font-size:14px}
}

/* The phone menu (owner, 11-07): four equal buttons, two by two, labels centred. Help's four links open as a second two by two
   under the first, inside the same panel: the list hangs from the Help button across both columns, and the panel grows by its
   two rows (12 px padding + 8 px gap + two 40 px rows and their 8 px gap). */
@media(max-width:760px){
 html .ax-header #public-navigation :is(a,.help-nav>summary){display:flex;align-items:center;justify-content:center;width:100%;height:40px;min-height:40px;padding:0 10px!important;box-sizing:border-box;white-space:nowrap}
 html .ax-header #public-navigation .help-nav{grid-column:auto;min-width:0}
 html .ax-header #public-navigation .help-nav>div{position:absolute;top:calc(100% + 8px);left:auto;right:0;width:calc(200% + 8px);display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
 html .ax-header #public-navigation .help-nav>div>a{font-size:13px}
 html .ax-header #public-navigation:has(.help-nav[open]){padding-bottom:108px}
}
