.jump-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 0 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.jump-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  min-height: 44px;
}

.jump-nav-label {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding-right: 0.5rem;
  border-right: 1px solid #e2e8f0;
}

.jump-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.15rem 0;
}

.jump-nav-links::-webkit-scrollbar {
  display: none;
}

.jump-nav-links a {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jump-nav-links a:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.jump-nav-links a.is-active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
}

.jump-nav-home {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.jump-nav-home:hover {
  background: #eff6ff;
}

[id].jump-target {
  scroll-margin-top: 4.5rem;
}

@media (max-width: 640px) {
  .jump-nav-label {
    display: none;
  }
  .jump-nav-inner {
    padding: 0.45rem 0.55rem;
  }
}
