@font-face{font-family:'Noto Sans SC';font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/noto-sans-sc-variable.ttf') format('truetype')}
:root{--nav-fill-light:#f7f7f7;--nav-fill-dark:#666;--nav-ink-light:#000;--nav-ink-dark:#fff}
/* Geometry mirrors official 2:59. Colour is resolved for each covered position. */
#header[data-navigation]{position:fixed;inset:0 0 auto;height:68px;padding:12px;gap:1px;background:transparent;border:0;z-index:30;pointer-events:none;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box}
#header[data-navigation]>*{pointer-events:auto}
#header .brand{width:67.486px;min-height:44px;display:flex;justify-content:flex-start}
#header .brand span{width:55.486px;height:27.929px;background:var(--nav-ink-light);mask:url('brand/uxen-logo.svg') center/contain no-repeat;-webkit-mask:url('brand/uxen-logo.svg') center/contain no-repeat}
#header .brand img{display:none}
#header [data-theme=dark]{--nav-ink-light:#fff;--nav-fill-light:var(--nav-fill-dark)}
#navigation{gap:1px;font-size:12px;line-height:18px}
#navigation a,.menu-toggle{border:0;border-radius:2px;padding:3px 10px;min-height:24px;background:var(--nav-fill-light);color:var(--nav-ink-light);white-space:nowrap}
#navigation a:hover,#navigation a[aria-current]{background:var(--nav-fill-light)}
#navigation .quote-nav{margin:0;width:32px;padding:6px 10px;display:flex;align-items:center;justify-content:center}
.nav-cart-icon{width:12px;height:12px;background:currentColor;mask:url('brand/cart.svg') center/contain no-repeat;-webkit-mask:url('brand/cart.svg') center/contain no-repeat}
.nav-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Official mobile menu 4076:12036: four 41×22 rows directly below the toggle. */
.mobile-menu{display:none}
@media(max-width:800px){#header[data-navigation]{height:68px}#navigation{display:flex;gap:1px}#navigation .desktop-link{display:none}#header .menu-toggle{display:block;margin-left:auto;font-size:12px;line-height:18px}.mobile-menu{position:fixed;top:39px;right:90px;width:41px;display:grid;gap:2px;z-index:32;padding:0;background:transparent;color:#474747}.mobile-menu[hidden]{display:none}.mobile-menu a{display:flex;align-items:center;justify-content:center;height:22px;min-height:22px;padding:0;background:#f0f0f0;color:#474747;font-size:13px;font-weight:400;line-height:20px;border-radius:0}}
/* Reset legacy mobile-dropdown rules on the persistent navigation row. */
#header[data-navigation] #navigation{position:static;inset:auto;width:auto;max-height:none;overflow:visible;padding:0;background:transparent;border:0;align-self:center;font-size:12px;line-height:18px}
#header[data-navigation] #navigation a{min-height:24px;padding:3px 10px}
#header[data-navigation] #navigation .quote-nav{padding:6px 10px}
#header[data-navigation] .menu-toggle{min-width:44px;min-height:24px;align-self:center}

#header[data-navigation] .brand{flex-shrink:0}#header[data-navigation] .menu-toggle{display:none}@media(max-width:800px){#header[data-navigation] .menu-toggle{display:block}}

/* Formal mobile navigation: transparent 44px hit areas, separate 22px fills. */
@media(max-width:800px){
 #header[data-navigation]{padding:0 12px 16px}
 #header[data-navigation] .brand{width:68.255px}
 #header[data-navigation] .brand span{width:48px;height:12.553px;mask-image:url('brand/uxen-logo-ink.svg');-webkit-mask-image:url('brand/uxen-logo-ink.svg')}
 #header[data-navigation] #navigation a,#header[data-navigation] .menu-toggle{position:relative;display:flex;align-items:center;justify-content:center;height:44px;min-height:44px;min-width:0;width:41px;padding:0;background:transparent;isolation:isolate;font-size:12px;line-height:20px}
 #header[data-navigation] #navigation .desktop-link{display:none}
 #header[data-navigation] #navigation .quote-nav{width:35px;padding:0}
 #header[data-navigation] #navigation a::before,#header[data-navigation] .menu-toggle::before{content:'';position:absolute;inset:11px 0;z-index:-1;border-radius:2px;background:var(--nav-fill-light)}
}

@media(min-width:801px){#header[data-navigation] .brand span{width:53.76px;height:14.0598px;mask-image:url('brand/uxen-logo-ink.svg');-webkit-mask-image:url('brand/uxen-logo-ink.svg')}}

/* Formal light desktop navigation: bound interaction overlay over the base fill. */
@media(min-width:801px){
 #header[data-navigation] #navigation a[aria-current]:not([data-theme=dark]){background:var(--nav-current-fill,#222)}
 #header[data-navigation] #navigation a:not([data-theme=dark]):hover{box-shadow:inset 0 0 0 100px rgb(0 0 0 / 12%)}
 #header[data-navigation] #navigation a:not([data-theme=dark]):active{box-shadow:inset 0 0 0 100px rgb(0 0 0 / 38%)}
}

/* User override 2026-11-18: site headings 10px / darker; keep desktop/mobile geometry. */
body :is(h1,h2,h3,[role=heading]):not(.about-direction){color:#000!important}
/* About lead title keeps its pre-unification desktop/mobile type sizes per user. */

/* User-approved ZETR reference: 48px logo width, preserving UXEN proportions. */
#header[data-navigation] .brand span{width:48px;height:12.553px}
@media(min-width:801px){#header[data-navigation] .brand{transform:translateY(-7.3px)}}
@media(max-width:800px){#header[data-navigation] .brand{transform:translateY(-4.3px)}}

/* Background switching recolours only the logo glyph, never its hit-area fill. */
#header[data-navigation] .brand,#header[data-navigation] .brand:is(:hover,:active,:focus){background:transparent;box-shadow:none}
#header[data-navigation] .brand[data-theme=dark] span{background:#fff}
#header[data-navigation] .brand[data-theme=light] span{background:#000}

/* Logo is an unfilled link in every pointer and keyboard state. */
#header[data-navigation] .brand:is(:link,:visited,:hover,:active,:focus,:focus-visible){background:transparent!important;box-shadow:none!important;outline:none}
#header[data-navigation] .brand::before,#header[data-navigation] .brand::after{content:none;background:transparent}

/* Mobile logo stays unfilled during touch; preserve glyph mask and home link. */
@media(max-width:800px){#header[data-navigation] .brand{-webkit-tap-highlight-color:transparent}#header[data-navigation] .brand:is(:link,:visited,:hover,:active,:focus,:focus-visible){background:transparent!important;border-color:transparent;box-shadow:none!important}}

/* Mobile navigation: no touch fill; current page is indicated by darker text. */
@media(max-width:800px){#header[data-navigation] :is(#navigation a,.menu-toggle,.mobile-menu a){-webkit-tap-highlight-color:transparent}#header[data-navigation] #navigation a:is(:active,:focus,:focus-visible){background:transparent;box-shadow:none;outline:none}#header[data-navigation] .mobile-menu a:is(:active,:focus,:focus-visible){box-shadow:none;outline:none}#header[data-navigation] :is(#navigation,.mobile-menu) a[aria-current="page"]{color:#000}#header[data-navigation] #navigation a[aria-current="page"]{background:transparent}}

/* Approved ZETR top spacing: visible logo 20/15px, navigation fill 15/10px. */
#header[data-navigation]{padding:0 12px;align-items:flex-start}
#header[data-navigation] .brand{position:relative;height:44px;transform:none}
#header[data-navigation] .brand span{position:absolute;left:0;top:20px}
#header[data-navigation] #navigation{align-self:flex-start;margin-top:15px}
@media(max-width:800px){
 #header[data-navigation] .brand span{top:15px}
 #header[data-navigation] #navigation{margin-top:0}
 #header[data-navigation] .menu-toggle{align-self:flex-start}
 #header[data-navigation] #navigation a::before,#header[data-navigation] .menu-toggle::before{inset:10px 0 auto;height:22px}
}

/* User-approved ZETR navigation fill geometry, 2026-11-19. */
@media(min-width:801px){
 #header[data-navigation] #navigation a{height:24px;min-height:24px;padding:5px 10px;line-height:14px}
 #header[data-navigation] #navigation .quote-nav{width:32px;padding:5px 10px}
}
@media(max-width:800px){
 #header[data-navigation] #navigation a,#header[data-navigation] .menu-toggle{width:auto;padding:0 10px}
 #header[data-navigation] #navigation .quote-nav{width:32px;padding:0 10px}
 #header[data-navigation] #navigation a::before,#header[data-navigation] .menu-toggle::before{height:24px;top:10px;bottom:auto}
 #header[data-navigation] .mobile-menu{width:44px}
 #header[data-navigation] .mobile-menu a{height:24px;min-height:24px}
}

/* Expanded mobile menu follows the navigation's existing light/dark palette. */
@media(max-width:800px){
 .mobile-menu a{background:var(--nav-fill-light);color:var(--nav-ink-light)}
 body:has(#header[data-navigation] .menu-toggle[data-theme=dark]) .mobile-menu a{background:var(--nav-button-fill);color:var(--nav-button-ink)}
 body:has(#header[data-navigation] .menu-toggle[data-theme=light]) .mobile-menu a{background:var(--nav-button-fill);color:var(--nav-button-ink)}
}

/* Navigation palette follows the logo; current route has a distinct fill. */
body:has(#header[data-navigation] .brand[data-theme=dark]){--nav-button-fill:#f7f7f7;--nav-button-ink:#000;--nav-current-fill:#c7c7c7}
body:has(#header[data-navigation] .brand[data-theme=light]){--nav-button-fill:#666;--nav-button-ink:#fff;--nav-current-fill:#222}
#header[data-navigation] #navigation a{background:var(--nav-button-fill,#666);color:var(--nav-button-ink,#fff)}
#header[data-navigation] #navigation a[aria-current="page"]{background:var(--nav-current-fill,#222);color:var(--nav-button-ink,#fff)}
@media(max-width:800px){
 #header[data-navigation] #navigation a,#header[data-navigation] #navigation a:is(:hover,:active,:focus,:focus-visible){background:transparent;color:var(--nav-button-ink,#fff)}
 #header[data-navigation] #navigation a::before,#header[data-navigation] .menu-toggle::before{background:var(--nav-button-fill,#666)}
 #header[data-navigation] #navigation a[aria-current="page"]::before{background:var(--nav-current-fill,#222)}
 #header[data-navigation] .menu-toggle{color:var(--nav-button-ink,#fff)}
 body:has(#header[data-navigation]) .mobile-menu a{background:var(--nav-button-fill,#666);color:var(--nav-button-ink,#fff)}
 body:has(#header[data-navigation] .menu-toggle[data-theme]) .mobile-menu a[aria-current="page"]{background:var(--nav-current-fill,#222)}
}

/* Mobile dropdown buttons match the top navigation geometry and typography. */
@media(max-width:800px){
 body #mobile-menu.mobile-menu{width:44px;right:90px;top:35px;gap:1px}
 body #mobile-menu.mobile-menu a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:44px;height:24px;min-height:24px;padding:5px 10px;font-size:12px;line-height:14px;font-weight:400;border-radius:2px}
}

@media(max-width:800px){#header[data-navigation] #navigation a[aria-current="page"]{background:transparent}}

/* Mobile painted navigation bounds restored from measured reference, 2026-11-21.
   Mobile logo uses supplied final PDF vector paths; padded viewBox preserves complete edges. */
@media(min-width:320px) and (max-width:767px){
 #header[data-navigation]{--uxen-nav-safe-offset:env(safe-area-inset-top,0px);top:var(--uxen-nav-safe-offset);transform:none}
 #header[data-navigation] .brand span{top:11.5px;left:-0.240657120px;width:55.751314240px;height:21px;mask-image:url('brand/uxen-logo-final-vector.svg');-webkit-mask-image:url('brand/uxen-logo-final-vector.svg')}
 #header[data-navigation] .menu-toggle{width:42px;padding:0 5.6328125px;--uxen-nav-font-size:12px}
 #header[data-navigation] #navigation{height:24px;min-height:24px;align-self:flex-start;margin-top:10px}
 #header[data-navigation] #navigation a,#header[data-navigation] .menu-toggle{height:24px;min-height:24px;padding:5px 6px;font-size:12px;line-height:12px;font-weight:400}
 #header[data-navigation] .menu-toggle{padding-inline:5.6328125px;margin-top:10px;align-self:flex-start}
 #header[data-navigation] #navigation a::before,#header[data-navigation] .menu-toggle::before{top:0;bottom:auto;height:24px}
 #header[data-navigation] #navigation a::after,#header[data-navigation] .menu-toggle::after{content:'';position:absolute;left:0;right:0;top:-10px;height:44px;background:transparent}
 #header[data-navigation] #navigation .quote-nav{width:29px;padding:5px 6.8125px}
 body #mobile-menu.mobile-menu{width:42px;right:calc(12px + 29px + 1px + 36px + 1px);top:calc(35px + env(safe-area-inset-top,0px))}
 body #mobile-menu.mobile-menu a{width:42px;padding-inline:5.6328125px;line-height:12px}
}

/* Desktop-only centering; preserve existing button geometry and states. */
@media(min-width:801px){
 #header[data-navigation] #navigation a{display:flex;align-items:center;justify-content:center}
 /* Same final vector as accepted mobile; preserve its native viewBox ratio. */
 #header[data-navigation] .brand span{width:55.751314240px;height:15.051367px;mask-image:url('brand/uxen-logo-final-vector.svg');-webkit-mask-image:url('brand/uxen-logo-final-vector.svg')}
}

/* Use the actual CJK font metrics, rather than Latin fallback line metrics. */
@media(min-width:801px){html body #header[data-navigation] #navigation a:not(.quote-nav){font-family:"Noto Sans SC",sans-serif!important;line-height:1;padding-block:0}}
