.nd-skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 50;
  padding: 12px;
  background: #e9b95e;
  color: #21190c;
}

.nd-skip-link:focus { top: 12px; }

.nd-header {
  --nd-gold: #e9b95e;
  --nd-header-height: 76px;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--nd-header-height);
  padding: 0 clamp(16px, 4vw, 64px);
  background: rgba(4, 9, 16, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px);
  color: #f5f6f8;
  line-height: 1.6;
}

.nd-header .nd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 220px;
  color: #f5f6f8;
  text-decoration: none;
}

.nd-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nd-gold);
  color: var(--nd-gold);
  font: 28px/1 Georgia, serif;
  transform: skew(-8deg);
  box-shadow: 0 0 24px rgba(233, 185, 94, .14);
}

.nd-brand-name {
  white-space: nowrap;
}

.nd-brand-name strong {
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: .08em;
}

.nd-brand-name em {
  margin-left: 5px;
  color: var(--nd-gold);
  font-size: 18px;
  font-style: normal;
}

.nd-brand-name small {
  display: block;
  margin-top: -3px;
  color: #aeb6c3;
  font-size: 8px;
  letter-spacing: .32em;
}

.nd-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 14px;
  min-width: 0;
  font-size: 12px;
}

.nd-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  color: #c5ccd6;
  text-decoration: none;
  white-space: nowrap;
}

.nd-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--nd-gold);
  transition: right .2s;
}

.nd-nav a:hover,
.nd-nav a[aria-current="page"] {
  color: var(--nd-gold);
  text-decoration: none;
}

.nd-nav a:hover::after,
.nd-nav a[aria-current="page"]::after {
  right: 0;
}

.nd-nav .nd-engineer-link {
  padding: 9px 13px;
  border: 1px solid rgba(116, 193, 255, .65);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(33, 105, 169, .28), rgba(233, 185, 94, .15));
  color: #f6d58d;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(83, 169, 255, .28);
}

.nd-nav .nd-payment-link {
  padding: 9px 13px;
  border: 1px solid #ad863b;
  border-radius: 8px;
  color: #f2ca75;
}

.nd-nav .nd-engineer-link::after,
.nd-nav .nd-payment-link::after {
  display: none;
}

.nd-menu-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #f5f6f8;
  cursor: pointer;
}

.nd-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nd-header a:focus-visible,
.nd-menu-toggle:focus-visible {
  outline: 2px solid var(--nd-gold);
  outline-offset: 4px;
}

@media (min-width: 1101px) and (max-width: 1499px) {
  .nd-nav { font-size: 11px; }
  .nd-nav .nd-engineer-link { padding: 9px 10px; }
}

@media (max-width: 1100px) {
  .nd-header {
    --nd-header-height: 72px;
    flex-wrap: wrap;
    gap: 0 18px;
    padding-block: 14px;
  }
  .nd-nav {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
    padding: 8px 18px 18px;
    text-align: center;
    font-size: 13px;
  }
  .nd-nav a { padding: 13px 5px; }
  .nd-nav a::after { right: 30%; left: 30%; opacity: 0; }
  .nd-nav a:hover::after,
  .nd-nav a[aria-current="page"]::after { right: 30%; opacity: 1; }
  .nd-nav .nd-engineer-link,
  .nd-nav .nd-payment-link { margin: 8px auto; padding: 12px 22px; }
  .nd-header.nd-enhanced { flex-wrap: nowrap; padding-block: 0; }
  .nd-enhanced .nd-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .nd-enhanced .nd-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: calc(100vh - var(--nd-header-height));
    max-height: calc(100dvh - var(--nd-header-height));
    overflow-y: auto;
    background: rgba(4, 9, 16, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    visibility: hidden;
    pointer-events: none;
  }
  .nd-enhanced.nd-open .nd-nav { visibility: visible; pointer-events: auto; }
}

@media (max-width: 560px) {
  .nd-header { --nd-header-height: 68px; padding-inline: 14px; }
  .nd-header .nd-brand { min-width: 0; gap: 9px; }
  .nd-brand-mark { flex-basis: 38px; width: 38px; height: 38px; font-size: 24px; }
  .nd-brand-name strong { font-size: 16px; }
  .nd-brand-name em { font-size: 14px; }
  .nd-brand-name small { font-size: 6px; letter-spacing: .22em; }
}

@media (prefers-reduced-motion: reduce) {
  .nd-nav a::after { transition: none; }
}

/* Match the centered public-site header. */
@media(min-width:1101px){
.nd-header{display:grid;grid-template-columns:minmax(230px,1fr) auto minmax(110px,1fr);column-gap:18px;min-height:76px}
.nd-header>.nd-nav{grid-column:2;justify-content:center;flex-wrap:nowrap;position:static;margin:0;gap:0 14px}
.nd-header>.nd-nav>.nd-engineer-link{position:absolute;right:clamp(16px,4vw,64px);top:50%;transform:translateY(-50%);margin:0;padding:10px 16px}
.nd-header .nd-brand-name small{line-height:normal}
.nd-header .nd-nav a[aria-current="page"]{color:#fff}
}
@media(min-width:1101px) and (max-width:1499px){.nd-header>.nd-nav>.nd-engineer-link{padding:9px 10px}}

@media(min-width:1101px){.site-header #mainNav>.pc-nav-link,.nd-header .nd-nav>.pc-nav-link{max-width:135px;white-space:normal;text-align:center;line-height:1.3}}@media(min-width:1101px) and (max-width:1240px){.site-header>#mainNav,.nd-header>.nd-nav{font-size:10px;gap:0 9px}}
