/* Shared brand masthead. Text follows the site-wide YaHei typography. */
.nhc-header{background:#fffffff7;border-bottom:1px solid #dce5f0;box-shadow:0 2px 12px #0f172a04}
.nhc-header>.nhc-container{max-width:1360px;padding:0 40px}
.nhc-header .nhc-nav-inner{position:relative;height:80px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:30px}
.nhc-header .nhc-logo{gap:0;min-width:0;white-space:nowrap}
.nhc-header .nhc-brand-home{display:flex;align-items:center;gap:12px;min-height:48px;color:#0f172a}
.nhc-header .nhc-brand-symbol{display:block;width:36px;height:48px;flex-shrink:0;background:url('../images/brand/nhc-logo-color.svg') center/auto 100% no-repeat}
.nhc-header .nhc-logo-brand{gap:3px;display:flex;flex-direction:column}
.nhc-header .nhc-logo-text{font-size:25px;line-height:1.2;letter-spacing:3px;font-weight:700;color:#0f172a}
.nhc-header .nhc-logo-sub{font-size:10px;line-height:1.3;letter-spacing:2px;color:#475569;font-weight:500}
.nhc-header .nhc-brand-descriptor{display:flex;flex-direction:column;gap:5px;margin-left:20px;padding-left:20px;border-left:1px solid #d7e0eb;color:#334155;font-size:12px;line-height:1.5;letter-spacing:1px}
.nhc-brand-descriptor small{font-size:9px;color:#64748b;letter-spacing:1px}
.nhc-header .nhc-main-nav{display:flex;align-items:center;height:80px}
.nhc-header .nhc-nav-menu{display:flex;align-items:center;gap:27px;margin:0;padding:0;height:100%}
.nhc-header .nhc-nav-menu>li{position:static;height:100%;display:flex;align-items:center}
.nhc-header .nhc-nav-link{font-size:14px;line-height:1.5;letter-spacing:.3px;display:inline-flex;align-items:center;gap:5px;min-height:80px;padding:0;white-space:nowrap}
.nhc-header .nhc-nav-link::after{bottom:16px;height:2px;border-radius:1px}
.nhc-header .nhc-nav-link:hover::after,.nhc-header .nhc-nav-link.active::after,.nhc-header .nhc-nav-link:focus-visible::after{width:18px}
.nhc-header .nhc-caret{width:11px;height:11px;opacity:.85}
.nhc-header .nhc-nav-actions{justify-self:end;padding-left:24px;border-left:1px solid #e2e8f0;gap:0}
.nhc-header .nhc-nav-actions .nhc-btn{min-height:42px;padding:9px 17px;border-radius:4px;font-size:12px;gap:15px;box-shadow:none;white-space:nowrap}
.nhc-header .nhc-mega-panel{top:100%;left:50%;width:1100px;max-width:100%;border-radius:0 0 6px 6px;padding:28px 30px}
.nhc-header .nhc-has-dropdown:focus-within .nhc-mega-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.nhc-header .nhc-has-dropdown:focus-within>.nhc-nav-link{color:#2563eb}
.nhc-header .nhc-compact-menu{display:none}
/* The supplied official logo is shared by desktop and mobile headers. */
body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header){gap:18px;background:#fffffff7;border-bottom:1px solid #dce5f0;box-shadow:0 2px 12px #0f172a04}
body :is(.hn-mobile-brand,.sw2-brand,.sw-brand,.ap-brand,.av-brand,.cs-brand){position:relative;padding-left:36px;font-size:22px!important;letter-spacing:2px;font-weight:700!important;line-height:1.2}
body :is(.hn-mobile-brand,.sw2-brand,.sw-brand,.ap-brand,.av-brand,.cs-brand)::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:26px;height:36px;background:url('../images/brand/nhc-logo-color.svg') center/auto 100% no-repeat}
body :is(.hn-mobile-brand,.sw2-brand,.sw-brand,.ap-brand,.av-brand,.cs-brand)>span{display:none!important}
@media(max-width:1200px){.nhc-header .nhc-brand-descriptor{display:none}.nhc-header .nhc-nav-inner{gap:24px}.nhc-header .nhc-nav-menu{gap:24px}}
@media(min-width:769px) and (max-width:1000px){.nhc-header>.nhc-container{padding-inline:28px}.nhc-header .nhc-nav-inner{gap:18px}.nhc-header .nhc-nav-menu{gap:18px}.nhc-header .nhc-logo-text{font-size:23px}.nhc-header .nhc-logo-sub{font-size:8px;letter-spacing:1.5px}.nhc-header .nhc-brand-symbol{width:30px;height:42px}.nhc-header .nhc-brand-home{gap:10px}.nhc-header .nhc-nav-link{font-size:13px}.nhc-header .nhc-nav-actions{padding-left:18px}.nhc-header .nhc-nav-actions .nhc-btn{padding-inline:13px;gap:10px}}
@media(max-width:768px){.nhc-header>.nhc-container{padding-inline:22px}.nhc-header .nhc-nav-inner{height:68px;grid-template-columns:1fr auto;gap:18px}.nhc-header .nhc-main-nav,.nhc-header .nhc-nav-actions{display:none}.nhc-header .nhc-brand-symbol{width:26px;height:36px}.nhc-header .nhc-brand-home{gap:10px}.nhc-header .nhc-logo-text{font-size:22px;letter-spacing:2px}.nhc-header .nhc-logo-sub{font-size:7px;letter-spacing:1.1px}.nhc-header .nhc-compact-menu{display:block}.nhc-compact-menu summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;font-size:12px;color:#334155}.nhc-compact-menu summary::-webkit-details-marker{display:none}.nhc-compact-menu summary svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5}.nhc-header .nhc-compact-menu nav{position:absolute;top:68px;left:-22px;width:calc(100% + 44px);height:auto;line-height:1.5;background:#fff;border-bottom:1px solid #dce5f0;box-shadow:0 12px 20px #0f172a0a;display:grid;grid-template-columns:1fr 1fr;padding:12px 22px 20px;gap:0 24px}.nhc-compact-menu nav a{display:flex;align-items:center;min-height:50px;border-bottom:1px solid #e2e8f0;color:#334155;font-size:14px}.nhc-compact-menu :is(a,summary):focus-visible{outline:2px solid #2563eb;outline-offset:3px}}
@media(max-width:360px){body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header){gap:12px;padding-inline:18px}body :is(.hn-mobile-brand,.sw2-brand,.sw-brand,.ap-brand,.av-brand,.cs-brand){padding-left:34px;font-size:20px!important}body :is(.hn-mobile-brand,.sw2-brand,.sw-brand,.ap-brand,.av-brand,.cs-brand)::before{width:24px;height:34px}}

/* Scrolled masthead: navy ground, light type, a white logo with preserved alpha. */
html.nhc-nav-scrolled .nhc-header,
html.nhc-nav-scrolled body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header),
html.nhc-nav-scrolled body>.navbar {
  background:#0f172af7;
  border-bottom-color:#2d3b51;
  box-shadow:0 5px 20px #02061726;
}
html.nhc-nav-scrolled .nhc-header :is(.nhc-brand-home,.nhc-logo-text){color:#fff}
html.nhc-nav-scrolled .nhc-header .nhc-logo-sub{color:#cbd5e1}
html.nhc-nav-scrolled .nhc-header .nhc-nav-link,
html.nhc-nav-scrolled .nhc-header .nhc-nav-link:visited{color:#e2e8f0}
html.nhc-nav-scrolled .nhc-header .nhc-nav-link:is(:hover,:focus-visible,.active),
html.nhc-nav-scrolled .nhc-header .nhc-nav-link.active:visited,
html.nhc-nav-scrolled .nhc-header .nhc-has-dropdown:focus-within>.nhc-nav-link{color:#93c5fd}
html.nhc-nav-scrolled .nhc-header .nhc-nav-link::after{background:#93c5fd}
html.nhc-nav-scrolled .nhc-header .nhc-nav-actions{border-left-color:#334155}
html.nhc-nav-scrolled .nhc-header .nhc-compact-menu summary{color:#e2e8f0}
html.nhc-nav-scrolled .nhc-header .nhc-brand-symbol,
html.nhc-nav-scrolled body :is(.hn-mobile-brand,.sw2-brand,.sw-brand,.ap-brand,.av-brand,.cs-brand)::before{background-color:transparent;background-image:url('../images/brand/nhc-logo-white.svg');background-size:auto 100%;border-radius:0;filter:none;box-shadow:none}
html.nhc-nav-scrolled body :is(.hn-mobile-brand,.sw2-brand,.sw-brand,.ap-brand,.av-brand,.cs-brand){color:#fff!important}
html.nhc-nav-scrolled body :is(.hn-mobile-contact,.sw2-header-contact,.sw-header-contact,.ap-header-contact,.av-header-contact,.cs-header-contact){color:#dbeafe!important}
html.nhc-nav-scrolled body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header) summary{color:#e2e8f0}
html.nhc-nav-scrolled body>.navbar :is(.content-left a,.content-center h1,.content-right a){color:#fff}

/* Expanded mobile panels stay white, including when the masthead is dark. */
body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header,.ab-mobile-header,.ct-mobile-header,.nhc-header) details nav{color:#334155;background:#fff}
body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header,.ab-mobile-header,.ct-mobile-header,.nhc-header) details nav a,
body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header,.ab-mobile-header,.ct-mobile-header,.nhc-header) details nav a:visited{color:#334155}
body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header,.ab-mobile-header,.ct-mobile-header,.nhc-header) details nav a:is([aria-current],:hover,:focus-visible){color:#2563eb}

/* Mobile dropdowns retain their white panels and dark menu text. */
html.nhc-nav-scrolled body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header) nav,
html.nhc-nav-scrolled body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header) nav a{color:#334155}
html.nhc-nav-scrolled body :is(.hn-mobile-header,.sw2-mobile-header,.sw-mobile-header,.ap-mobile-header,.av-mobile-header,.cs-mobile-header) nav a:is([aria-current],:hover,:focus-visible){color:#2563eb}

/* Anchored dropdown: the panel opens first, followed by its content. */
@media(min-width:769px){
 .nhc-header .nhc-mega-panel{
  background:#fff;
  transform-origin:50% 0;
  transform:translateX(-50%) translateY(-10px) scale(.985,.96);
  opacity:0;visibility:hidden;pointer-events:none;
  box-shadow:0 24px 64px -16px #0f172a2e,0 4px 12px #0f172a08;
  transition:opacity 180ms ease,transform 240ms cubic-bezier(.4,0,.8,.4),visibility 0s linear 240ms;
 }
 .nhc-header .nhc-has-dropdown:is(:hover,:focus-within,.active)>.nhc-mega-panel{
  opacity:1;visibility:visible;pointer-events:auto;z-index:1000;
  transform:translateX(-50%) translateY(0) scale(1);
  transition:opacity 240ms ease,transform 460ms cubic-bezier(.16,1,.3,1),visibility 0s;
 }
 .nhc-header .nhc-mega-panel :is(.nhc-mega-header,.nhc-mega-card,.nhc-mega-sidebar){
  opacity:0;translate:0 12px;
  transition:opacity 120ms ease,translate 180ms ease,transform 250ms ease,background-color 250ms,border-color 250ms,box-shadow 250ms;
 }
 .nhc-header .nhc-has-dropdown:is(:hover,:focus-within,.active)>.nhc-mega-panel :is(.nhc-mega-header,.nhc-mega-card,.nhc-mega-sidebar){
  opacity:1;translate:0 0;
  transition:opacity 280ms ease var(--nhc-menu-delay,80ms),translate 420ms cubic-bezier(.16,1,.3,1) var(--nhc-menu-delay,80ms),transform 250ms ease,background-color 250ms,border-color 250ms,box-shadow 250ms;
 }
 .nhc-header .nhc-mega-header{--nhc-menu-delay:40ms}
 .nhc-header .nhc-mega-card:nth-child(2){--nhc-menu-delay:115ms}
 .nhc-header .nhc-mega-card:nth-child(3){--nhc-menu-delay:150ms}
 .nhc-header .nhc-mega-card:nth-child(4){--nhc-menu-delay:185ms}
 .nhc-header .nhc-mega-sidebar{--nhc-menu-delay:135ms}
 .nhc-header .nhc-has-dropdown:focus-within>.nhc-nav-link .nhc-caret{transform:rotate(180deg)}
 .nhc-header .nhc-mega-card:focus-visible{opacity:1!important;translate:0 0!important;transition-delay:0s!important;outline:2px solid #2563eb;outline-offset:3px}
}
@media(min-width:769px) and (prefers-reduced-motion:reduce){
 .nhc-header .nhc-mega-panel{transform:translateX(-50%);transition:none}
 .nhc-header .nhc-has-dropdown:is(:hover,:focus-within,.active)>.nhc-mega-panel{transform:translateX(-50%);transition:none}
 .nhc-header .nhc-mega-panel :is(.nhc-mega-header,.nhc-mega-card,.nhc-mega-sidebar){opacity:1;translate:none;transition:none!important}
 .nhc-header .nhc-caret{transition:none}
}
