/* MAZEFOLD GWEB – UNIVERSAL NAV 0.3. ONE shared site navigation component.
   Neither GOLD JS nor CSS is modified. This file affects the site shell only. */
:root{--gweb-site-nav-height:60px}
html{scroll-padding-top:calc(var(--gweb-site-nav-height) + 18px)}
/* Reserve the shared navigation height BEFORE its deferred script inserts the header.
   Hide legacy navigation on first paint so there is no old-to-new header flash. */
body{padding-top:var(--gweb-site-nav-height)!important}
body:not(.gweb-nav-ready) header.topbar,
body:not(.gweb-nav-ready) header.top,
body:not(.gweb-nav-ready) .castle-nav,
body:not(.gweb-nav-ready) .castle-back,
body:not(.gweb-nav-ready) .gweb-footer-links,
body:not(.gweb-nav-ready) nav.footer-links,
body:not(.gweb-nav-ready) .rest-links,
body:not(.gweb-nav-ready) .attention-cta,
body:not(.gweb-nav-ready) .lab-next,
body:not(.gweb-nav-ready) .info-return{display:none!important}
/* When scripting is disabled, let the native page headers provide navigation. */
@media (scripting:none){
 body{padding-top:0!important}
 body:not(.gweb-nav-ready) header.topbar,
 body:not(.gweb-nav-ready) header.top{display:revert!important}
 body:not(.gweb-nav-ready) .castle-nav,
 body:not(.gweb-nav-ready) .castle-back,
 body:not(.gweb-nav-ready) .gweb-footer-links,
 body:not(.gweb-nav-ready) nav.footer-links,
 body:not(.gweb-nav-ready) .rest-links,
 body:not(.gweb-nav-ready) .attention-cta,
 body:not(.gweb-nav-ready) .lab-next,
 body:not(.gweb-nav-ready) .info-return{display:revert!important}
}
body.gweb-nav-ready{padding-top:var(--gweb-site-nav-height)!important}
#mazefold-site-nav{position:fixed;top:0;left:0;right:0;z-index:2147483000;box-sizing:border-box;display:flex;align-items:center;gap:12px;height:var(--gweb-site-nav-height);padding:7px clamp(10px,2.1vw,28px);background:#09191bdd;border-bottom:1px solid #47786c75;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 3px 16px #0004;color:#e9f5ed;font:600 12px/1.3 system-ui,-apple-system,Segoe UI,sans-serif;isolation:isolate}
#mazefold-site-nav, #mazefold-site-nav *{box-sizing:border-box}
#mazefold-site-nav a,#mazefold-site-nav button,#mazefold-site-nav summary{font:inherit;color:inherit;text-decoration:none}
#mazefold-site-nav a:focus-visible,#mazefold-site-nav button:focus-visible,#mazefold-site-nav summary:focus-visible{outline:2px solid #a9f5d5;outline-offset:2px}
#mazefold-site-nav .mz-logo{white-space:nowrap;flex:none;display:flex;align-items:center;gap:11px;letter-spacing:.24em;font-size:.84rem;font-weight:750;padding:7px 8px 7px 2px}
#mazefold-site-nav .mz-logo svg{width:25px;height:25px;stroke:none;color:#b8f0cf;flex:none}
#mazefold-site-nav .mz-logo .diamond-outline{opacity:.70}
#mazefold-site-nav .mz-logo .diamond-inner{opacity:.76}
#mazefold-site-nav .mz-logo strong{color:#a6f4ce}
#mazefold-site-nav .mz-links{display:flex;align-items:center;min-width:0;overflow-x:auto;scrollbar-width:thin;white-space:nowrap;gap:2px;flex:1;padding:3px 1px}
#mazefold-site-nav .mz-links a{border-radius:7px;padding:9px clamp(7px,.85vw,13px);white-space:nowrap;font-size:11px;letter-spacing:.015em;flex:none}
#mazefold-site-nav .mz-links a[aria-current="page"]{background:#20463b;color:#c2ffe4;border:1px solid #58977b;padding:8px clamp(6px,.85vw,12px)}
#mazefold-site-nav .mz-links a:hover{background:#19392f}
#mazefold-site-nav .mz-tools{display:flex;align-items:center;gap:8px;flex:none;min-width:0}
#mazefold-site-nav .mz-lang-slot{display:flex;align-items:center}
#mazefold-site-nav .mz-lang-slot [role="group"]{display:flex;gap:3px;align-items:center;background:#10292a;border:1px solid #47685e;border-radius:8px;padding:3px;margin:0}
#mazefold-site-nav .mz-lang-slot button{border:0!important;border-radius:5px!important;background:transparent!important;color:#d8e9e2!important;padding:5px 7px!important;font-size:11px!important;min-width:30px;line-height:1.15!important;min-height:27px!important}
#mazefold-site-nav .mz-lang-slot button[aria-pressed="true"]{background:#a9f1cc!important;color:#0c2921!important;font-weight:800}
#mazefold-site-nav .mz-more{position:relative;flex:none}
#mazefold-site-nav .mz-more>summary{list-style:none;padding:9px 10px;border:1px solid #42695b;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:11px}
#mazefold-site-nav .mz-more>summary::-webkit-details-marker{display:none}
#mazefold-site-nav .mz-more[open]>summary,#mazefold-site-nav .mz-more>summary:hover{background:#1b4435}
#mazefold-site-nav .mz-more-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:180px;background:#0e2524;border:1px solid #518574;border-radius:12px;box-shadow:0 12px 32px #0009;padding:5px;display:grid;gap:2px}
#mazefold-site-nav .mz-more-menu a{display:block;padding:11px 12px;border-radius:8px;font-size:12px}
#mazefold-site-nav .mz-more-menu a[aria-current="page"]{background:#20463b;color:#c2ffe4}
#mazefold-site-nav .mz-more-menu a:hover{background:#28513e}
/* The Library's real browser-connectivity indicator stays alive, but only
   its tiny LED is visible. The live label remains available to screen readers. */
#mazefold-site-nav .mz-status{
 display:inline-flex;align-items:center;justify-content:center;
 flex:none;position:relative;width:16px;min-width:16px;height:32px;
 gap:0;overflow:visible;white-space:nowrap;
}
#mazefold-site-nav .mz-status .connection-dot{display:block;flex:none;width:9px;height:9px;border-radius:50%}
#mazefold-site-nav .mz-status #network-label{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;
 overflow:hidden;white-space:nowrap;clip-path:inset(50%);border:0;
}
/* Old page-specific headers remain in the DOM for existing JS IDs and events, but are never rendered as second nav bars. */
body.gweb-nav-ready header.gweb-legacy-header{display:none!important}
body.gweb-nav-ready .gweb-footer-links,body.gweb-nav-ready .castle-nav,body.gweb-nav-ready .castle-back,body.gweb-nav-ready .rest-links{display:none!important}
body.gweb-nav-ready nav.footer-links,body.gweb-nav-ready .attention-cta,body.gweb-nav-ready .lab-next,body.gweb-nav-ready .info-return{display:none!important}
body.gweb-nav-ready .gweb-local-about{display:flex;justify-content:flex-end;max-width:1160px;margin:0 auto;padding:5px 32px}
body.gweb-nav-ready .gweb-local-about button{font-size:12px;cursor:pointer;border:1px solid #53796e;border-radius:8px;background:#132d2a;color:#d3f7e2;padding:7px 11px}
@media(max-width:990px){#mazefold-site-nav .mz-logo{font-size:.84rem}#mazefold-site-nav .mz-links a{font-size:11px;padding:8px 9px}}
@media(max-width:710px){:root{--gweb-site-nav-height:92px}
 #mazefold-site-nav{flex-wrap:wrap;height:92px;row-gap:1px;column-gap:6px;padding:5px 9px}
 #mazefold-site-nav .mz-logo{height:34px;font-size:.84rem}
 #mazefold-site-nav .mz-tools{margin-left:auto;height:34px}
 #mazefold-site-nav .mz-links{order:3;flex-basis:100%;width:100%;height:43px;gap:3px;border-top:1px solid #3f5e524d}
 #mazefold-site-nav .mz-links a{padding:8px 10px}
 #mazefold-site-nav .mz-links a[aria-current="page"]{padding:7px 9px}
 #mazefold-site-nav .mz-status{display:inline-flex}
 #mazefold-site-nav .mz-more-menu{top:calc(100% + 8px)}
}
@media(prefers-reduced-motion:reduce){#mazefold-site-nav{backdrop-filter:none;-webkit-backdrop-filter:none;background:#09191b}}

#mazefold-site-nav .mz-links{overflow:visible}
#mazefold-site-nav .mz-links a,#mazefold-site-nav .mz-more>summary{
 display:flex;align-items:center;min-height:40px;font-size:14px;
}
#mazefold-site-nav .mz-more-menu a{font-size:15px;min-height:44px}
#mazefold-site-nav .mz-lang-slot button{font-size:12px!important;min-height:32px!important}
@media(max-width:710px){
 :root{--gweb-site-nav-height:100px}
 #mazefold-site-nav{height:100px}
 #mazefold-site-nav .mz-links{height:auto;justify-content:space-around}
 #mazefold-site-nav .mz-links a{min-height:44px}
 #mazefold-site-nav .mz-more>summary{font-size:12px;padding:6px}
 #mazefold-site-nav .mz-tools{gap:4px}
}
