html:has(.section-nav) { scroll-padding-top: 140px; }

.section-nav {
  --sn-gold: #f1a502;
  --sn-gold-dim: #c98a00;
  --sn-gold-soft: #fff8e6;
  --sn-rule: #e8e8e8;
  --sn-bg: #f7f7f5;
  --sn-white: #fff;
  --sn-ink: #1a1a1a;
  --sn-ink-light: #666;
  position: fixed;
  background: var(--sn-white);
  border: 1px solid var(--sn-rule);
  display: flex;
  font-family: inherit;
  z-index: 1001;
}

.section-nav[hidden],
.section-nav__item[hidden] { display: none !important; }

.section-nav__item {
  display: flex;
  align-items: center;
  gap: 9.5px;
  cursor: pointer;
  color: var(--sn-ink-light);
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .2s !important;
}

.section-nav__item:hover { color: var(--sn-ink); }
.section-nav__item.active { color: var(--sn-gold-dim); }

.section-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .15s, transform .15s, background .15s;
}

.section-nav__item.active .section-nav__dot {
  opacity: 1;
  background: var(--sn-gold);
  transform: scale(1.4);
}

.section-nav__icon { display: none; }
.section-nav__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  max-width: unset !important;
}

.section-nav__label {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
}

.section-nav__item.active .section-nav__label {
  font-weight: 700;
  color: var(--sn-gold-dim);
}

@media (min-width: 1201px) {
  .section-nav {
    left: auto;
    right: calc(50% + 800px + 16px);
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 2px;
    padding: 6.5px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  }
  .section-nav__item {
    padding: 7px 11px;
    border-radius: 8px;
  }
  .section-nav__item:hover { background: var(--sn-bg); }
  .section-nav__item.active { background: var(--sn-gold-soft); }
}

@media (min-width: 1201px) and (max-width: 1969px) {
  .section-nav {
    left: 20px;
    right: auto;
  }
}

@media (max-width: 1200px) {
  .section-nav {
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
    border-top: 1px solid var(--sn-rule);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
    padding: 0 .5rem env(safe-area-inset-bottom) .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    height: 58px;
    align-items: stretch;
  }
  .section-nav::-webkit-scrollbar { display: none; }

  .section-nav__item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 11px;
    flex-shrink: 0;
    min-width: 60px;
    border-top: 2px solid transparent;
  }
  .section-nav__item.active { border-top-color: var(--sn-gold); }

  .section-nav__dot { display: none; }
  .section-nav__icon { display: block; }

  .section-nav__label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .02em;
  }
}
