/* Canonical global navigation contract.
   Load this file after page-specific styles so every top-level page keeps
   the same typography, logo dimensions, spacing, and responsive behavior. */
#nav {
  --nav-ink: #1a1b22;
  --nav-gray: #6a6a72;
  --nav-gray-2: #8c8c96;
  --nav-line: #ece6dc;
  --nav-line-2: #e0d8cb;
  --nav-red: #e72427;
  --nav-red-dark: #c01d20;
  position: sticky;
  top: 0;
  z-index: 60;
  height: 68px;
  display: flex;
  align-items: center;
  font-family: var(--font-official, "Open Sans", "PingFang SC", "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif);
  background: rgba(251, 250, 247, .7);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  transition: background .25s, border-color .25s;
}

#nav.solid {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: var(--nav-line);
}

#nav .nav-inner {
  width: 100%;
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  min-width: 0;
}

#nav .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  min-width: 0;
}

#nav .st-logo,
#nav .brand > .st-logo {
  display: block;
  width: auto;
  max-width: none;
  height: 27px;
  object-fit: contain;
  flex: none;
}

#nav .brand-div {
  width: 1px;
  height: 22px;
  background: var(--nav-line-2);
  flex: none;
}

#nav .fde-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

#nav .fde-word {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .16em;
  background: linear-gradient(115deg, #e72427 0%, #f7831f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#nav .fde-cap {
  color: var(--nav-gray);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

#nav .nav-links {
  display: grid;
  grid-template-columns: 5em 5.52em repeat(4, 4em);
  column-gap: clamp(12px, 1.7vw, 32px);
  min-width: 0;
  overflow: visible;
  color: var(--nav-gray);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.7;
}

#nav .nav-links a {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  transition: color .2s;
}

#nav .nav-links a:hover,
#nav .nav-links a.cur {
  color: var(--nav-ink);
}

#nav .nav-links a.cur {
  font-weight: 700;
}

#nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--nav-red);
  transition: width .25s;
}

#nav .nav-links a:hover::after,
#nav .nav-links a.cur::after {
  width: 100%;
}

#nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--nav-red);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  text-decoration: none;
  white-space: nowrap;
}

#nav .nav-cta:hover {
  color: #fff;
  background: var(--nav-red-dark);
}

#nav .user-login {
  color: var(--nav-gray);
  border-color: var(--nav-line-2);
}

#nav .user-login:hover {
  color: var(--nav-ink);
  border-color: var(--nav-ink);
}

#nav .user-chip {
  border-color: var(--nav-line-2);
  background: #fff;
}

#nav .user-chip i {
  color: var(--nav-red);
  background: rgba(231, 36, 39, .08);
}

#nav .user-chip b {
  color: var(--nav-ink);
  display: none;
}

#nav .user-chip button {
  color: var(--nav-gray-2);
}

#nav .user-chip button:hover {
  color: var(--nav-red);
}

@media (max-width: 1240px) {
  #nav .fde-cap { display: none; }
}

@media (max-width: 1060px) {
  #navUser { display: none; }
}

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

@media (max-width: 600px) {
  #nav .nav-inner { padding: 0 16px; gap: 12px; }
  #nav .brand { gap: 0; }
  #nav .brand-div,
  #nav .fde-lockup { display: none; }
  #nav .st-logo,
  #nav .brand > .st-logo { height: 24px; max-width: 150px; }
  #nav .nav-cta { padding: 8px 14px; font-size: 12.5px; }
}
