.guide-topbar {
  gap: 12px;
}

.series-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  color: var(--ink-soft);
  white-space: nowrap;
}

.series-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: var(--control-radius);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.series-link:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.series-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.series-link:active {
  transform: translateY(1px);
}

.series-link.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.series-arrow,
.series-home-symbol,
.external-cue {
  font-family: var(--mono);
  font-weight: 800;
}

.series-arrow,
.series-home-symbol {
  font-size: 0.94rem;
}

.series-home {
  color: var(--ink);
  font-weight: 800;
}

.series-divider {
  width: 1px;
  height: 22px;
  margin: 0 5px;
  background: var(--line);
}

.series-blog {
  color: var(--ink-soft);
}

.external-cue {
  color: var(--ink-faint);
  font-size: 0.76em;
}

.collection-topbar .nav-links {
  margin-left: auto;
}

@media (max-width: 800px) {
  .home-page .collection-topbar .nav-links {
    display: flex;
  }

  .home-page .collection-topbar .nav-links a[href^="#"] {
    display: none;
  }

  .guide-topbar .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .guide-topbar .brand-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guide-topbar .brand-copy small {
    display: none;
  }

  .series-nav,
  .guide-topbar .theme-toggle {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .guide-topbar {
    gap: 7px;
    padding-left: 12px;
  }

  .guide-topbar .brand-copy small {
    display: none;
  }

  .series-link {
    padding-inline: 8px;
  }
}

@media (max-width: 560px) {
  .guide-topbar {
    gap: 4px;
    padding: 7px 7px 7px 12px;
  }

  .guide-topbar .brand {
    flex: 0 0 auto;
  }

  .guide-topbar .brand-copy {
    display: none;
  }

  .series-nav {
    gap: 0;
  }

  .series-link {
    min-width: 44px;
    padding-inline: 7px;
  }

  .series-direction {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .series-divider {
    margin-inline: 2px;
  }
}

@media (max-width: 340px) {
  .guide-topbar {
    padding-inline: 7px;
  }

  .guide-topbar .brand-mark::before,
  .guide-topbar .brand-mark::after,
  .series-blog,
  .series-blog + .series-divider {
    display: none;
  }

  .series-home-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .series-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .series-link {
    transition: none;
  }
}
