/* Page-owned anchor navigation. The HTML stays with each individual page. */
.page-subnav {
  position: sticky;
  top: 5.25rem;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  min-height: 2.9rem;
  padding: .72rem var(--pad, 1.25rem);
  overflow-x: auto;
  border-bottom: 1px solid rgba(241, 239, 232, .16);
  background: rgba(8, 8, 8, .94);
  color: #9a9993;
  font: 650 .62rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.page-subnav::-webkit-scrollbar { display: none; }

.page-subnav a {
  flex: 0 0 auto;
  color: inherit;
  white-space: nowrap;
  transition: color .2s ease;
}

.page-subnav a:hover,
.page-subnav a:focus-visible { color: #f1efe8; }

.page-subnav a:focus-visible { outline: 2px solid #ff4a30; outline-offset: 4px; }

.page-subnav ~ main [id] { scroll-margin-top: 9rem; }

@media (max-width: 1050px) {
  .page-subnav {
    justify-content: flex-start;
    gap: 1.5rem;
  }
}
