/* route-spine.css -- the sections of a page as a quiet text list of anchors that stays under the header, with the section in view
 * marked, and the room a section needs when a link jumps to it. Plain text and colour tokens: no line, no marker, nothing animated. */

.route-nav {
  position: sticky;
  top: 5rem;
  z-index: 30;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}
.route-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0 clamp(var(--space-5), 4vw, var(--space-8));
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.route-nav-list li { flex: 0 0 auto; }
.route-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-4);
  font-weight: var(--fw-1);
  color: var(--muted-strong);
  text-decoration: none;
}
.route-nav-list a:hover { color: var(--heading); }
.route-nav-list a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.route-nav-list a[aria-current="location"] {
  font-weight: var(--fw-3);
  color: var(--heading);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}

/* a jump leaves room under the sticky list; more specific than the shared section[id] rule of style.css */
section[id].route-stop { scroll-margin-top: 9rem; }
