#station-walk-controls:empty,
#station-walk-controls [hidden],
.has-place .journey-tracks,
.has-place .journey-beacon,
.journey-beacon[hidden] {
  display: none;
}
.journey-card {
  margin: 16px 0 4px;
  padding: 16px 0 12px;
  color: var(--fir);
  border-block: 1px solid var(--line);
}
.journey-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.journey-emblem {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--paper);
  background: var(--fir);
  border-radius: 15px 15px 15px 3px;
}
.journey-emblem svg {
  width: 25px;
}
.journey-count {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
  color: var(--muted);
}
#journey-title {
  margin: 3px 0;
  font-size: clamp(23px, 2.3vw, 31px);
  letter-spacing: -0.032em;
  line-height: 1.16;
}
.journey-note,
.journey-status,
.journey-details,
.journey-links {
  font-size: 13px;
  line-height: 1.45;
}
.journey-note {
  margin: 9px 0;
  color: var(--muted);
}
.journey-note a,
.journey-links a {
  text-underline-offset: 3px;
}
.journey-status {
  margin: 10px 0 5px;
  font-weight: 700;
}
.journey-progress {
  display: flex;
  gap: 3px;
  margin: 10px 0 12px;
}
.journey-progress i {
  flex: 1;
  height: 3px;
  background: var(--line);
}
.journey-progress .filled {
  background: var(--clay);
}
.journey-access {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0 11px;
  color: #633917;
  font-size: 13px;
  line-height: 1.45;
}
.journey-access svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.journey-stair-sources {
  margin: 1px 0 6px;
  color: var(--muted);
  font-size: 12px;
}
.journey-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.journey-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--fir);
  background: transparent;
  border: 1px solid #adb5a5;
  border-radius: 4px;
  cursor: pointer;
}
.journey-actions svg {
  width: 17px;
  height: 17px;
}
.journey-actions button[data-journey='toggle'] {
  padding-inline: 12px;
  gap: 7px;
  color: var(--paper);
  background: var(--fir);
  border-color: var(--fir);
  font-size: 13px;
  font-weight: 650;
}
.journey-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
.journey-actions button:enabled:hover {
  box-shadow: 0 0 0 1px var(--fir);
}
.journey-details {
  margin-top: 3px;
}
.journey-details summary {
  padding-block: 10px;
  width: fit-content;
  cursor: pointer;
  font-weight: 650;
}
.journey-details ol {
  padding-inline-start: 25px;
  margin: 0 0 8px;
}
.journey-details li::marker {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.journey-details button,
.journey-links button {
  color: var(--fir);
  border: none;
  background: transparent;
  padding: 6px 2px;
  text-align: start;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.journey-details button[aria-current] {
  color: var(--clay);
  font-weight: 700;
}
.journey-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}
body:not(.has-place) .city-pin.journey-place .city-name {
  color: #fffaf0;
  background: var(--fir);
  border-color: var(--fir);
}
.journey-tracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.journey-path {
  fill: none;
  stroke: var(--fir);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.66;
  paint-order: stroke;
}
.journey-path.is-current {
  stroke: var(--clay);
  stroke-width: 4;
  opacity: 1;
}
.journey-beacon {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  width: 0;
  height: 0;
  pointer-events: none;
}
.journey-beacon b,
.journey-beacon i {
  position: absolute;
  display: grid;
  place-items: center;
  top: calc(var(--dy, 0px) - 15px);
  left: calc(var(--dx, 0px) - 15px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.journey-beacon::before {
  content: '';
  position: absolute;
  width: var(--leader-length, 0px);
  height: 1.5px;
  background: var(--fir);
  transform: rotate(var(--leader-angle, 0rad));
  transform-origin: left center;
}
.journey-beacon::after {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  z-index: -1;
  border-radius: 50%;
  background: var(--fir);
}
.journey-beacon b {
  background: #9e4227;
  color: white;
  border: 2px solid #fffaf0;
  box-shadow: 0 1px 5px #252d2955;
}
.journey-beacon i {
  border: 1.5px solid #a34429;
  background: #fbf2df55;
  transform: scale(1.34);
}
.journey-beacon svg {
  width: 18px;
  height: 18px;
}
.journey-beacon.at-station .station-walker,
.journey-beacon:not(.at-station) .station-train {
  display: none;
}
.journey-beacon.at-station b {
  background: var(--fir);
}
.journey-beacon.at-station i {
  border-color: var(--fir);
}
@keyframes journey-step {
  from {
    transform: translateY(0.5px) rotate(-4deg);
  }
  to {
    transform: translateY(-0.7px) rotate(3deg);
  }
}
@keyframes journey-arrival {
  from {
    transform: translateY(-3px);
    opacity: 0.3;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .journey-beacon.in-motion svg {
    animation: journey-step 0.38s ease-in-out infinite alternate;
  }
  .journey-beacon.arriving svg {
    animation: journey-arrival 0.65s ease-out;
  }
}
@media (max-width: 760px) {
  .journey-card {
    margin: 12px 0 2px;
    padding: 13px 0 4px;
  }
}
