/* The chapter rule draws in from the left and clears toward the right. */
#journey .city-tabs button::after {
  transform-origin: right center;
}
#journey .city-tabs button:is(.active, :focus-visible)::after {
  transform: scaleX(1);
  transform-origin: left center;
}
#journey .city-tabs button:focus-visible span {
  color: var(--gold);
}

#contact .contact-links a > span:last-child {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
#contact .contact-links a:focus-visible > span:last-child {
  color: var(--gold);
  text-decoration-color: currentColor;
}

@media (hover: hover) {
  #journey .city-tabs button:hover::after {
    transform-origin: left center;
  }
  #journey .city-tabs button:hover span {
    color: var(--gold);
  }
  #contact .contact-links a:hover > span:last-child {
    text-decoration-color: currentColor;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #journey .city-tabs button::after {
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  }
  #journey .city-tabs button span {
    transition: color .2s ease;
  }
  #contact .contact-links a > span:last-child {
    transition: color .2s ease, text-decoration-color .2s ease;
  }
}

#journey .language-list small {
  font-size: .75rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
