/* White & Case reference structure with Zeheng's own identity and content. */
html body.has-mega-navigation #zeheng-navigation {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 20001 !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  color: #202123 !important;
}
#zeheng-navigation, #zh-mega-menu { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
#zeheng-navigation *, #zh-mega-menu * { box-sizing: border-box; }
#zeheng-navigation .zh-nav-bar {
  display: flex; align-items: center; gap: 32px;
  width: 100%; height: 68px; padding: 0 32px; margin: 0;
}
#zeheng-navigation .zh-nav-brand {
  display: inline-flex; flex: 0 0 auto; gap: 8px; align-items: center;
  padding: 0; margin: 0; text-decoration: none; color: #292929 !important;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px; font-weight: 500; letter-spacing: .04em; white-space: nowrap;
}
html body #zeheng-navigation .zh-nav-brand img {
  display: block !important; width: auto !important; height: 32px !important;
  min-width: 0 !important; max-width: none !important;
  min-height: 0 !important; max-height: 32px !important;
  object-fit: contain !important; filter: none !important;
}
#zeheng-navigation .zh-top-nav { display: flex; align-items: stretch; gap: 28px; height: 100%; margin-left: auto; }
#zeheng-navigation .zh-top-item {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  margin: 0; padding: 0; min-height: 44px; border: 0; border-radius: 0;
  background: transparent !important; color: #202123 !important; box-shadow: none !important;
  font: 600 16px/1.5 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
}
#zeheng-navigation .zh-top-item::after {
  position: absolute; right: 0; bottom: 0; left: 0;
  height: 2px; background: #79171c; content: "";
  opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity 160ms ease-in-out, transform 280ms cubic-bezier(.4,0,.2,1);
}
#zeheng-navigation .zh-top-item:hover,
#zeheng-navigation .zh-top-item[aria-expanded="true"],
#zeheng-navigation:not(.zh-nav-expanded) .zh-top-item[aria-current="page"] { color: #79171c !important; }
#zeheng-navigation .zh-top-item:hover::after,
#zeheng-navigation .zh-top-item[aria-expanded="true"]::after,
#zeheng-navigation:not(.zh-nav-expanded) .zh-top-item[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
#zeheng-navigation .zh-nav-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
#zeheng-navigation .zh-nav-icon,
#zh-mega-menu .zh-mega-close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 10px;
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
  color: #202123 !important; box-shadow: none !important; cursor: pointer;
}
#zeheng-navigation .zh-nav-icon svg, #zh-mega-menu .zh-mega-close svg { width: 24px; height: 24px; }
#zeheng-navigation .zh-mobile-toggle { display: none; }
#zh-mega-menu {
  position: fixed; z-index: 20000; inset: 68px 0 auto;
  width: 100%; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px);
  overflow-y: auto; overscroll-behavior: contain;
  border-bottom: 1px solid #e5e5e5; background: rgba(244,244,244,.8); color: #202123;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  opacity: 0;
  transform: translateY(-10px);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(.4,0,.2,1), transform 280ms cubic-bezier(.4,0,.2,1), clip-path 280ms cubic-bezier(.4,0,.2,1);
}
#zh-mega-menu.zh-menu-visible { opacity: 1; transform: translateY(0); clip-path: inset(0); pointer-events: auto; }
#zh-mega-menu > .zh-mega-panel,
#zh-mega-menu > .zh-mobile-index { opacity: 1; transform: translateY(0); transition: opacity 200ms ease-in-out, transform 240ms ease-in-out; }
#zh-mega-menu.zh-content-switching > .zh-mega-panel,
#zh-mega-menu.zh-content-switching > .zh-mobile-index { opacity: 0; transform: translateY(-4px); pointer-events: none; transition-duration: 120ms; }
#zh-mega-menu[hidden], #zh-mega-menu [hidden] { display: none !important; }
html body.has-mega-navigation #mobile-menu { display: none !important; }
#zh-mega-menu .zh-mega-close { position: absolute; top: 10px; right: 18px; z-index: 1; }
#zh-mega-menu .zh-mega-grid {
  display: grid; grid-template-columns: 260px 230px minmax(0,1fr); gap: 60px;
  width: calc(100% - 96px); max-width: 1320px; min-height: 530px;
  margin: 0 auto; padding: 48px 0 54px;
}
#zh-mega-menu h2, #zh-mega-menu h3, #zh-mega-menu p { margin: 0; padding: 0; color: inherit; font-family: inherit; }
#zh-mega-menu .zh-mega-intro h2, #zh-mega-menu .zh-search-inner h2 { margin-bottom: 8px; font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
#zh-mega-menu .zh-mega-intro p { max-width: 30ch; font-size: 16px; line-height: 1.55; font-weight: 400; }
#zh-mega-menu .zh-mega-action {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 250px; max-width: 100%; min-height: 52px; margin-top: 18px; padding: 12px 20px;
  border: 1px solid #79171c; background: #79171c; color: #fff;
  text-decoration: none; font-size: 16px; font-weight: 600; line-height: 24px;
}
#zh-mega-menu .zh-mega-action svg { flex: 0 0 22px; width: 22px; height: 22px; }
#zh-mega-menu .zh-mega-action:hover { background: #631317; border-color: #631317; color: #fff; }
#zh-mega-menu .zh-mega-group + .zh-mega-group { margin-top: 30px; }
#zh-mega-menu .zh-mega-group h3 { margin: 6px 0 8px; font-size: 16px; font-weight: 600; line-height: 24px; }
#zh-mega-menu .zh-mega-group ul { padding: 0; margin: 0; list-style: none; }
#zh-mega-menu .zh-mega-group li { margin: 0; padding: 0; }
#zh-mega-menu .zh-mega-group a {
  display: inline-flex; align-items: center; min-height: 34px;
  color: #262626; font-size: 16px; line-height: 24px; text-decoration: none;
}
#zh-mega-menu .zh-mega-group a:hover, #zh-mega-menu .zh-search-shortcuts a:hover { color: #79171c; text-decoration: underline; text-underline-offset: 5px; }
#zh-mega-menu .zh-mega-features { display: flex; flex-direction: column; gap: 16px; padding-top: 10px; }
#zh-mega-menu .zh-nav-card {
  display: grid; grid-template-columns: 42% minmax(0,1fr); gap: 16px; align-items: stretch;
  min-height: 168px; padding: 16px; background: #fff; color: #202123; text-decoration: none;
  box-shadow: 0 5px 16px rgba(0,0,0,.035);
}
#zh-mega-menu .zh-nav-card-image { overflow: hidden; min-width: 0; height: 136px; background: #eee; }
#zh-mega-menu .zh-nav-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: none; }
#zh-mega-menu .zh-nav-card-book { background: #eeeae3; padding: 8px; }
#zh-mega-menu .zh-nav-card-book img { object-fit: contain; }
#zh-mega-menu .zh-nav-card-copy { min-width: 0; }
#zh-mega-menu .zh-nav-card-label { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 500; line-height: 20px; }
#zh-mega-menu .zh-nav-card h3 { color: #79171c; font-size: 19px; line-height: 1.3; font-weight: 600; }
#zh-mega-menu .zh-nav-card-arrow { display: block; margin-top: 16px; }
#zh-mega-menu .zh-nav-card-arrow svg { width: 22px; height: 22px; transition: transform 160ms ease; }
#zh-mega-menu .zh-nav-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
#zh-mega-menu .zh-nav-card:hover .zh-nav-card-arrow svg { transform: translateX(4px); }
#zh-mega-menu .zh-mobile-index, #zh-mega-menu .zh-mobile-back { display: none; }
#zh-mega-menu .zh-search-inner { width: calc(100% - 96px); max-width: 920px; min-height: 330px; padding: 48px 0; margin: 0 auto; }
#zh-mega-menu .zh-search-inner form { margin: 24px 0 0; }
#zh-mega-menu .zh-search-inner label { display: block; margin-bottom: 8px; font-size: 14px; }
#zh-mega-menu .zh-search-field { display: flex; border-bottom: 1px solid #777; }
#zh-mega-menu .zh-search-field input {
  width: 100%; min-width: 0; height: 54px; padding: 10px 0; border: 0; border-radius: 0;
  background: transparent; color: #202123; font: inherit; font-size: 20px; outline: none;
}
#zh-mega-menu .zh-search-field button {
  display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; padding: 12px;
  border: 0; background: transparent; color: #202123; cursor: pointer;
}
#zh-mega-menu .zh-search-field svg { width: 24px; height: 24px; }
#zh-mega-menu .zh-search-shortcuts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 20px; }
#zh-mega-menu .zh-search-shortcuts a { color: #79171c; text-decoration: none; font-size: 15px; }
#zeheng-navigation :is(a,button):focus-visible, #zh-mega-menu :is(a,button,input):focus-visible { outline: 2px solid #79171c !important; outline-offset: 4px; }
html body.team-directory-page.has-mega-navigation main#main-content { padding-top: 68px !important; }
@media (max-width: 1100px) {
  #zeheng-navigation .zh-nav-bar { gap: 20px; padding-inline: 24px; }
  #zeheng-navigation .zh-top-nav { gap: 22px; }
  #zeheng-navigation .zh-nav-brand { font-size: 16px; gap: 8px; }
  #zh-mega-menu .zh-mega-grid { grid-template-columns: 200px 180px minmax(0,1fr); gap: 32px; width: calc(100% - 64px); }
  #zh-mega-menu .zh-nav-card { grid-template-columns: 37% minmax(0,1fr); gap: 12px; }
  #zh-mega-menu .zh-nav-card h3 { font-size: 17px; }
}
@media (max-width: 1000px) {
  html body.has-mega-navigation #zeheng-navigation { height: 64px !important; min-height: 64px !important; max-height: 64px !important; }
  #zeheng-navigation .zh-nav-bar { height: 64px; padding-inline: 16px; gap: 12px; }
  #zeheng-navigation .zh-nav-brand { gap: 8px; font-size: 15px; letter-spacing: 0; }
  html body #zeheng-navigation .zh-nav-brand img { width: auto !important; min-width: 0 !important; max-width: none !important; height: clamp(22px, 7.2vw, 31px) !important; min-height: 0 !important; max-height: 31px !important; }
  #zeheng-navigation .zh-top-nav { display: none; }
  #zeheng-navigation .zh-nav-tools { margin-left: auto; gap: 0; }
  #zeheng-navigation .zh-mobile-toggle { display: grid; }
  #zeheng-navigation .zh-menu-lines { width: 22px; height: 12px; border-block: 1.5px solid currentColor; }
  #zeheng-navigation .zh-mobile-toggle[aria-expanded="true"] .zh-menu-lines { position: relative; height: 22px; border: 0; }
  #zeheng-navigation .zh-mobile-toggle[aria-expanded="true"] .zh-menu-lines::before,
  #zeheng-navigation .zh-mobile-toggle[aria-expanded="true"] .zh-menu-lines::after { position: absolute; top: 10px; left: 0; width: 22px; height: 1.5px; background: currentColor; content: ""; transform: rotate(45deg); }
  #zeheng-navigation .zh-mobile-toggle[aria-expanded="true"] .zh-menu-lines::after { transform: rotate(-45deg); }
  #zh-mega-menu { top: 64px; bottom: 0; max-height: calc(100dvh - 64px); }
  #zh-mega-menu .zh-mega-close { display: none; }
  #zh-mega-menu .zh-mobile-index { display: flex; flex-direction: column; padding: 24px; }
  #zh-mega-menu .zh-mobile-index .zh-top-item {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px;
    border: 0; border-bottom: 1px solid #ddd; border-radius: 0; padding: 16px 0; background: transparent;
    color: #202123; font: inherit; font-size: 22px; font-weight: 500; text-align: left; text-decoration: none;
  }
  #zh-mega-menu .zh-mobile-nav-row { display: flex; align-items: stretch; border-bottom: 1px solid #ddd; }
  #zh-mega-menu .zh-mobile-nav-row .zh-top-item { flex: 1; width: auto; min-width: 0; border: 0; }
  #zh-mega-menu .zh-mobile-submenu {
    display: grid; place-items: center; flex: 0 0 52px; width: 52px; min-height: 64px;
    padding: 0; border: 0; border-radius: 0; background: transparent; color: #202123; cursor: pointer;
  }
  #zh-mega-menu .zh-mobile-index button::after { content: "→"; font-size: 22px; font-weight: 400; }
  #zh-mega-menu .zh-mobile-back { display: block; min-height: 44px; margin: 12px 24px 0; padding: 0; border: 0; background: none; color: #666; font: inherit; font-size: 14px; }
  #zh-mega-menu .zh-mega-grid { display: block; width: auto; min-height: 0; margin: 0; padding: 20px 24px 40px; }
  #zh-mega-menu .zh-mega-intro h2, #zh-mega-menu .zh-search-inner h2 { font-size: 30px; }
  #zh-mega-menu .zh-mega-action { width: 100%; margin-top: 20px; }
  #zh-mega-menu .zh-mega-links { margin-top: 28px; }
  #zh-mega-menu .zh-mega-group a { min-height: 44px; }
  #zh-mega-menu .zh-mega-features { margin-top: 26px; padding: 0; }
  #zh-mega-menu .zh-nav-card { min-height: 132px; padding: 12px; grid-template-columns: 36% minmax(0,1fr); }
  #zh-mega-menu .zh-nav-card-image { height: 112px; }
  #zh-mega-menu .zh-nav-card h3 { font-size: 16px; }
  #zh-mega-menu .zh-search-inner { width: auto; margin: 0; padding: 24px; }
  #zh-mega-menu .zh-search-field input { font-size: 16px; }
  html body.team-directory-page.has-mega-navigation main#main-content { padding-top: 64px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #zeheng-navigation *, #zeheng-navigation *::after, #zh-mega-menu, #zh-mega-menu * { transition: none !important; }
}
