.nav-hierarchy {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  margin-left: auto;
  overflow: visible;
}

.nav-hierarchy.nav-pending { visibility: hidden; }

.nav-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-direct {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #425049;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.nav-trigger::after {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  content: "";
}

.nav-direct:hover,
.nav-direct.is-current {
  color: #ff6b2c;
}

.nav-group.is-open .nav-trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 80;
  width: 340px;
  padding: 12px;
  border: 1px solid #dbe2dd;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 22px 48px rgba(20, 33, 28, .12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .16s ease, transform .2s ease;
}

.nav-group:hover .nav-panel,
.nav-group.is-open .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-panel-label {
  display: block;
  padding: 7px 10px 10px;
  color: #87938d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-panel a {
  display: grid !important;
  height: auto !important;
  padding: 11px 10px !important;
  border-radius: 5px;
  color: #1b2c25 !important;
  line-height: 1.35 !important;
}

.nav-panel a:hover {
  background: #edf6f2;
}

.nav-panel strong {
  font-size: 13px;
  font-weight: 700;
}

.nav-panel small {
  margin-top: 3px;
  color: #74817b;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}

.nexpal-clean-links.nav-hierarchy {
  gap: 26px;
  overflow: visible;
}

.nexpal-clean-links .nav-direct {
  color: #050505;
  font-size: 16px;
  font-weight: 500;
}

.nexpal-clean-links .nav-panel a {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.nav-mobile-toggle,
.nav-mobile-home { display: none; }

.nav-mobile-toggle {
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #17221e;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-mobile-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
  .nexpal-clean-links.nav-hierarchy { display: none; }
  .nexpal-clean-nav { grid-template-columns: 1fr auto auto !important; }
  .nav-mobile-toggle { display: block; grid-column: 3; }
  .nav-mobile-home {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 20px 18px;
    border-top: 1px solid #e1e6e3;
    border-bottom: 1px solid #d9e0dc;
    background: #fff;
    box-shadow: 0 18px 34px rgba(20, 33, 28, .1);
  }
  .nav-mobile-home.is-open { display: grid; }
  .nav-mobile-home a {
    height: auto !important;
    padding: 13px 4px;
    border-bottom: 1px solid #edf0ee;
    color: #1b2c25 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }
  .nav-mobile-home a:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .nexpal-clean-nav { grid-template-columns: 1fr auto !important; }
  .nav-mobile-toggle { grid-column: 2; }
}

@media (max-width: 850px) {
  .nav-links.nav-hierarchy { display: none; }
}
