/* Shared Neurospace masthead. Desktop dimensions follow the approved homepage. */
#neurospace-header,#neurospace-header *{box-sizing:border-box;margin:0;padding:0}
#neurospace-header{position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;width:100%;height:auto;min-height:0;padding:2rem 4rem;gap:2rem;z-index:10000;backdrop-filter:blur(10px);background:linear-gradient(to bottom,rgba(5,7,10,.8),rgba(5,7,10,0));font-family:Inter,Arial,sans-serif;line-height:normal;pointer-events:auto;color:#fff}
#neurospace-header .ns-brand{display:flex;align-items:center;line-height:0;flex-shrink:0}
#neurospace-header .ns-brand img{display:block;width:260px;height:auto;object-fit:contain;filter:drop-shadow(0 0 12px rgba(0,217,255,.12))}
#neurospace-header nav{position:static;display:block;background:none;width:auto;height:auto;max-height:none;overflow:visible;transform:none;opacity:1}
#neurospace-header nav ul{display:flex;align-items:center;gap:3.25rem;list-style:none;flex-flow:row nowrap;justify-content:normal}
#neurospace-header nav li{display:list-item;position:relative;list-style:none}
#neurospace-header nav a,#neurospace-header .ns-space-trigger{color:rgba(255,255,255,.88);text-decoration:none;font-family:Inter,Arial,sans-serif;font-size:.9rem;font-weight:400;line-height:normal;text-transform:uppercase;letter-spacing:1.5px;white-space:nowrap;position:relative;transition:color .25s,text-shadow .25s}
#neurospace-header nav a::after{content:'';position:absolute;bottom:-5px;left:0;width:0;height:1px;background:#00d9ff;transition:width .3s}
#neurospace-header nav a:hover::after{width:100%}
#neurospace-header nav a:hover,#neurospace-header .ns-space-trigger:hover{color:#00d9ff;text-shadow:0 0 8px rgba(0,217,255,.18)}
#neurospace-header .ns-mission{color:rgba(255,255,255,.72)}
#neurospace-header nav .ns-contact{display:inline-flex;align-items:center;justify-content:center;padding:.85rem 1.5rem;border:1px solid rgba(0,217,255,.42);border-radius:4px;background:rgba(0,217,255,.035)}
#neurospace-header nav .ns-contact::after{display:none}
#neurospace-header nav .ns-contact:hover{border-color:#00d9ff;background:rgba(0,217,255,.08)}
#neurospace-header .ns-space-trigger{display:inline-flex;align-items:center;gap:.3rem;border:0;background:none;cursor:pointer}
#neurospace-header .ns-space-trigger span{font-size:1rem;transition:transform .25s}
#neurospace-header .ns-dropdown{position:absolute;top:calc(100% + 18px);left:50%;min-width:265px;padding:.65rem;transform:translate(-50%,10px);opacity:0;visibility:hidden;pointer-events:none;border:1px solid rgba(0,217,255,.18);background:rgba(5,7,10,.94);backdrop-filter:blur(18px);box-shadow:0 18px 55px rgba(0,0,0,.42),0 0 30px rgba(0,217,255,.08);transition:opacity .22s,transform .22s,visibility .22s;z-index:1200}
#neurospace-header .ns-dropdown::before{content:'';position:absolute;left:0;right:0;top:-18px;height:18px}
#neurospace-header .ns-dropdown a{display:block;padding:.78rem .9rem;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.055);color:rgba(255,255,255,.76);font-family:Rajdhani,Arial,sans-serif;font-size:.82rem;letter-spacing:1.2px}
#neurospace-header .ns-dropdown a:last-child{border-bottom:0}
#neurospace-header .ns-dropdown a::after{display:none}
#neurospace-header .ns-dropdown a:hover{color:#fff;background:linear-gradient(90deg,rgba(0,217,255,.09),rgba(124,92,255,.05));text-shadow:0 0 10px rgba(0,217,255,.42)}
#neurospace-header .ns-space-menu:focus-within .ns-dropdown,#neurospace-header .ns-space-menu[data-open] .ns-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
@media(hover:hover){#neurospace-header .ns-space-menu:hover .ns-dropdown{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}}
#neurospace-header .ns-space-menu[data-open] .ns-space-trigger span{transform:rotate(180deg)}
#neurospace-header :focus-visible{outline:2px solid #00d9ff;outline-offset:6px}
#neurospace-header .ns-mobile-toggle{display:none}
body[data-site-page] :is(.footer,.page-footer){flex-wrap:wrap}
body[data-site-page] .ns-footer-routes{display:flex;gap:1rem 1.5rem;flex-wrap:wrap;flex:0 0 100%;width:100%;margin-bottom:1.5rem;font:500 14px/1.5 Rajdhani,Arial,sans-serif;letter-spacing:1px;color:#a5c6d5}
body[data-site-page] .ns-footer-routes a{color:inherit;text-decoration:none;font:inherit;letter-spacing:inherit;transition:color .25s}
body[data-site-page] .ns-footer-routes a:hover,body[data-site-page] .ns-footer-routes a:focus-visible{color:#00d9ff}
body[data-site-page] .ns-footer-routes a:focus-visible{outline:1px solid #00d9ff;outline-offset:5px}
body[data-site-page="global-neuro-network.html"] .page-footer{gap:1rem 1.5rem}
body[data-site-page="global-neuro-network.html"] .page-footer .ns-footer-routes{margin-bottom:0}
@media(max-width:600px){
 body[data-site-page="global-neuro-network.html"] .connect-stage .contact-block{top:330px}
 body[data-site-page="global-neuro-network.html"] .page-footer .ns-footer-routes{gap:.5rem 1.5rem}
}
/* Contact typography follows the large Rajdhani surgical-context heading. */
.ns-contact-email{display:inline-block;position:relative;max-width:100%;margin:0 0 2rem;padding:.15em 0 .25em;font:600 clamp(1.4rem,7vw,4.5rem)/1.2 Rajdhani,Arial,sans-serif;letter-spacing:.02em;text-decoration:none;color:#d4e8ef;background:linear-gradient(to right,#fff,#a5c6d5);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;border-bottom:1px solid rgba(0,217,255,.35)}
.ns-contact-email:hover{background-image:linear-gradient(to right,#fff,#00d9ff);border-bottom-color:#00d9ff}
.ns-contact-email:focus-visible{outline:2px solid #00d9ff;outline-offset:8px}
body[data-site-page]{width:100%;min-width:0;overflow-x:clip}
body[data-site-page] :target{scroll-margin-top:140px}
body[data-site-page] .nav-ring-container{width:min(1400px,100%)}
@media(max-width:1300px){#neurospace-header{padding:1.5rem 2rem}#neurospace-header nav ul{gap:1.6rem}#neurospace-header .ns-brand img{width:220px}#neurospace-header nav a,#neurospace-header .ns-space-trigger{font-size:.8rem;letter-spacing:1px}}
@media(max-width:1080px){
 #neurospace-header{padding:1rem 1.5rem;background:rgba(5,7,10,.94);min-height:84px}
 #neurospace-header .ns-brand img{width:200px}
 #neurospace-header .ns-mobile-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;background:none;border:1px solid rgba(0,217,255,.4);border-radius:4px;cursor:pointer;padding:10px}
 #neurospace-header .ns-mobile-toggle span{display:block;height:1px;width:100%;background:#d4f6ff}
 #neurospace-header #ns-navigation{display:none;position:absolute;top:100%;left:0;right:0;width:100%;max-height:calc(100svh - 84px);overflow-y:auto;padding:1rem 1.5rem 1.5rem;background:rgba(5,7,10,.98);border-bottom:1px solid rgba(0,217,255,.2)}
 #neurospace-header[data-mobile-open] #ns-navigation{display:block}
 #neurospace-header nav ul{flex-direction:column;align-items:stretch;gap:0}
 #neurospace-header nav li>a,#neurospace-header .ns-space-trigger{display:flex;width:100%;min-height:48px;padding:.8rem 0;font-size:.9rem;justify-content:space-between}
 #neurospace-header .ns-dropdown{position:static;display:none;min-width:0;transform:none;opacity:1;visibility:visible;pointer-events:auto;box-shadow:none;background:rgba(0,217,255,.025);border:0;border-left:1px solid rgba(0,217,255,.2)}
 #neurospace-header .ns-space-menu[data-open] .ns-dropdown{display:block;transform:none}
 #neurospace-header .ns-dropdown a{min-height:44px;padding:.85rem 1rem;font-size:.9rem;white-space:normal}
 #neurospace-header nav .ns-contact{margin-top:.8rem;justify-content:center}
 body[data-site-page] :target{scroll-margin-top:100px}
 body[data-site-page] .nav-ring-container{flex-wrap:wrap;gap:1.2rem;justify-content:center}
}
@media(max-width:760px){
 body[data-site-page] section:not(.chapter){padding-left:1.25rem!important;padding-right:1.25rem!important}
 body[data-site-page] .suite-container,body[data-site-page] .hero-grid,body[data-site-page] .context-grid,body[data-site-page] .atlas-shell,body[data-site-page] .map-grid,body[data-site-page] .electrode-wrap,body[data-site-page] .pathway-grid,body[data-site-page] .xr-panel,body[data-site-page] .workflow-grid,body[data-site-page] .why-grid,body[data-site-page] .audience-grid,body[data-site-page] .education-grid,body[data-site-page] .xr-hero-grid,body[data-site-page] .xr-workflow-grid,body[data-site-page] .xr-field-layout,body[data-site-page] .xr-command-split,body[data-site-page] .xr-integration-grid,body[data-site-page] .xr-view-logic{grid-template-columns:minmax(0,1fr)!important;gap:1.5rem}
 body[data-site-page] .xr-problem-grid,body[data-site-page] .xr-scenario-grid,body[data-site-page] .xr-integration-stack{grid-template-columns:1fr!important}
 body[data-site-page] .xr-layer-grid,body[data-site-page] .xr-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-site-page] .hero-content{margin-top:260px;max-width:100%}
 body[data-site-page] .hero h1,body[data-site-page] .xr-hero h1{font-size:clamp(2.2rem,10vw,3.5rem)!important;line-height:1.05}
 body[data-site-page] .suite-info h2,body[data-site-page] .section-title,body[data-site-page] .cta-section h2{font-size:clamp(2rem,8vw,3rem)!important;line-height:1.1}
 body[data-site-page] .hero-console,body[data-site-page] .visual-interface{max-width:100%;min-width:0}
 body[data-site-page] .hero-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem}
 body[data-site-page] .hero-btns .btn-glass{font-size:1rem!important;padding:1rem 1.3rem!important}
 body[data-site-page] .footer{flex-wrap:wrap;padding:2rem 1.25rem!important;gap:2rem}
 body[data-site-page] .footer-links{display:flex;flex-wrap:wrap;gap:1rem}
 body[data-site-page] .nav-node{width:140px;height:140px;flex-shrink:0}
 body[data-site-page] .nav-node span{font-size:12px}
 body[data-site-page] .xr-copy{padding:1.5rem}
 body[data-site-page] .xr-anchor-nav{grid-template-columns:1fr 1fr;gap:0}
 body[data-site-page] .program-media{max-width:100%}
}
@media(prefers-reduced-motion:reduce){#neurospace-header *{transition:none!important}html{scroll-behavior:auto!important}}
/* Contain decorative backgrounds and restore usable narrow-screen content widths. */
html:has(body[data-site-page]){overflow-x:hidden}
@media(max-width:760px){
 body[data-site-page] .suite-section{overflow:hidden}
 body[data-site-page] .suite-container>*{min-width:0;transform:none!important}
 body[data-site-page] .xr-spatial-core{transform:none!important;min-width:0}
 body[data-site-page] .edu-hero{grid-template-columns:minmax(0,1fr);gap:2rem;min-height:auto;padding-top:130px;padding-bottom:3rem}
 body[data-site-page] .edu-hero-copy,body[data-site-page] .edu-hero-visual{min-width:0;width:100%}
 body[data-site-page] .edu-hero h1{font-size:clamp(2.2rem,10vw,3.5rem);line-height:1.08}
 body[data-site-page] .edu-hero-visual .visual-interface{height:520px}
 body[data-site-page] .cta-section>div{min-width:0;max-width:100%;width:100%}
 body[data-site-page] .cta-actions{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}
 body[data-site-page] .interface-header{padding-left:.8rem;padding-right:.8rem;gap:.6rem}
 body[data-site-page] .interface-header>span{min-width:0;font-size:.7rem;white-space:normal}
 body[data-site-page] .suite-bg-text{max-width:100%;overflow:hidden}
}

/* Retained functional-page header transition and scroll border. */
:where(body[data-site-page="functional-neurosurgery.html"]) #neurospace-header{transition:padding .3s ease,background .3s ease}
:where(body[data-site-page="functional-neurosurgery.html"]) #neurospace-header.scrolled{border-bottom:1px solid rgba(255,255,255,.045)}

/* Common header accent, formerly repeated in page masthead overrides. */
#neurospace-header{--neural-blue:#00D9FF}
