/* One set of native anchor links: a margin index on desktop, a compact bar below it. */
@media screen {
  .nav-slot { position: static; height: 44px; margin-top: 12px; }
  .nav-slot .top-nav { width: 100%; gap: clamp(4px, 2vw, 24px); justify-content: space-between; }
  .nav-slot .top-nav.is-docked { width: auto; gap: clamp(4px, 2vw, 24px); justify-content: space-between; }
  .top-nav a { white-space: nowrap; }
}
@media screen and (min-width: 1000px) {
  html { scroll-padding-top: 24px; }
  .page {
    width: min(1200px, calc(100% - 232px));
    margin-left: max(200px, calc((100% - 1368px) / 2 + 168px));
    margin-right: 32px;
  }
  .nav-slot { position: absolute; height: 0; margin: 0; }
  .nav-slot .top-nav,
  .nav-slot .top-nav.is-docked {
    position: fixed;
    top: 84px;
    left: max(24px, calc((100% - 1368px) / 2));
    right: auto;
    z-index: 20;
    width: 132px;
    height: auto;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    font-size: 16px;
    box-shadow: none;
  }
  .top-nav a { padding: 0 8px 0 17px; min-height: 44px; }
  .top-nav a[aria-current="location"] { color: var(--link); font-weight: 600; }
  .top-nav a::before {
    left: -2px;
    right: auto;
    top: 11px;
    bottom: 11px;
    width: 3px;
    height: auto;
    border-radius: 2px;
    background: var(--link);
    transform: scaleY(0);
  }
  .top-nav a[aria-current="location"]::before,
  .top-nav a:hover::before,
  .top-nav a:focus-visible::before { transform: scaleY(1); }
  .top-nav .theme-toggle { align-self: flex-start; margin: 12px 0 0 5px; }
}
@media screen and (max-width: 360px) {
  .nav-slot .top-nav { font-size: 13px; }
  .nav-slot .top-nav.is-docked { padding-inline: 16px; }
}
