/* A compact section navigator above the homepage canvas. */
.section-progress {
  position: fixed;
  inset: 8px 12px auto;
  z-index: 1010;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(229, 223, 240, 0.13);
  border-radius: 10px;
  background: rgba(18, 14, 25, 0.95);
  color: #91869f;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-sizing: border-box;
  font-family:
    "Instrument Sans", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
.section-progress-tabs {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.section-progress-tabs::-webkit-scrollbar {
  display: none;
}
.section-progress .section-progress-tabs a {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 19px 2px;
  border: 0;
  border-radius: 0;
  color: #91869f;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s;
}
.section-progress .section-progress-tabs a[data-past] {
  color: #b6a5c5;
}
.section-progress .section-progress-tabs a[aria-current="location"] {
  color: #ead9f5;
  background: rgba(148, 145, 255, 0.075);
}
.section-progress .section-progress-tabs a:hover,
.section-progress .section-progress-tabs a:focus-visible {
  color: #f5edf8;
  background: rgba(229, 223, 240, 0.06);
}
.section-progress .section-progress-tabs a:focus-visible {
  outline: 1px solid #d4a5a5;
  outline-offset: -4px;
}
.section-progress-track {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: rgba(229, 223, 240, 0.06);
  pointer-events: none;
}
.section-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #d4a5a5, #9491ff);
  transform: scaleX(0);
  transform-origin: left center;
}
html[lang="ar"] .section-progress-fill {
  transform-origin: right center;
}
.has-section-progress .site-reading-line {
  display: none;
}
.has-section-progress .life-hero {
  padding-top: 56px;
}
.has-section-progress .life-hero .hero-stage {
  height: calc(100svh - 68px);
}
@media (max-width: 600px) {
  .section-progress {
    inset: 6px 8px auto;
    height: 34px;
    border-radius: 9px;
  }
  .section-progress .section-progress-tabs a {
    padding-inline: 15px;
    font-size: 12px;
  }
  .has-section-progress .life-hero {
    padding-top: 48px;
  }
  .has-section-progress .life-hero .hero-stage {
    height: calc(100svh - 56px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .section-progress .section-progress-tabs a {
    transition: none;
  }
}
