/* A folded route on the same open, white canvas as the device scenes. */
.roadmap-scene {
  --roadmap-ink: #292927;
  --roadmap-muted: #70706b;
  position: absolute;
  inset: 0;
  min-width: 0;
  color: var(--roadmap-ink);
  container-type: inline-size;
  isolation: isolate;
}

.roadmap-heading {
  position: absolute;
  top: 7%;
  left: 9%;
  right: 9%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--roadmap-muted);
  font: 11px/1.4 'Courier New', monospace;
}

.roadmap-position { white-space: nowrap; font-variant-numeric: tabular-nums; }
.roadmap-visual { position: absolute; inset: 10% 0 25%; }
.roadmap-wire { display: block; width: 100%; height: 100%; overflow: visible; }
.roadmap-wire path, .roadmap-wire ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roadmap-construction { color: #d5d5d0; }
.roadmap-construction path { stroke-width: .6; }
.roadmap-lower-rail { opacity: .18; }
.roadmap-upper-rail { opacity: .42; }
.roadmap-checked-rail { opacity: .78; }
.roadmap-rib { opacity: .14; stroke-width: .65!important; }
.roadmap-major-rib { opacity: .24; }
.roadmap-edge { opacity: .2; }
.roadmap-centerline { opacity: .42; stroke-dasharray: 1 8; }
.roadmap-footprint { stroke-width: .65!important; opacity: .36; }
.roadmap-marker-tick { opacity: .42; stroke-width: .7!important; }
.roadmap-inspection-ring { opacity: .85; }
.roadmap-inspection-shadow { opacity: .27; }
.roadmap-inspection-cross { opacity: .3; stroke-width: .75!important; }

.roadmap-stations { position: absolute; inset: 0; pointer-events: none; }
.home-scene .roadmap-station, .roadmap-station {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--roadmap-ink);
  font: 10px/1 'Courier New', monospace;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.roadmap-station-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #969690;
  border-radius: 50%;
  background: #fff;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.roadmap-station[data-evidence="pending"] .roadmap-station-number,
.roadmap-station[data-evidence="open"] .roadmap-station-number { border-style: dashed; }
.roadmap-station[aria-pressed="true"] .roadmap-station-number {
  border: 1px solid var(--roadmap-ink);
  background: var(--roadmap-ink);
  color: #fff;
}

.roadmap-station-label {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  padding: 3px 5px;
  transform: translateX(-50%);
  background: #fff;
  color: var(--roadmap-muted);
  font: 11px/1.3 'Courier New', monospace;
  white-space: nowrap;
}

.roadmap-station[aria-pressed="true"] .roadmap-station-label {
  color: var(--roadmap-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.roadmap-station:hover .roadmap-station-number { border-color: var(--roadmap-ink); }
.roadmap-station:hover .roadmap-station-label { color: var(--roadmap-ink); }
.home-scene .roadmap-station:focus-visible, .roadmap-station:focus-visible {
  outline: 1px solid var(--roadmap-ink);
  outline-offset: 1px;
  border-radius: 50%;
}

.roadmap-detail {
  position: absolute;
  bottom: 7%;
  left: 15%;
  right: 15%;
  min-width: 0;
}

.roadmap-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roadmap-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 36px;
  color: var(--roadmap-ink);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-decoration: none;
}

.roadmap-detail-link > span:last-child { font-size: 13px; }
.roadmap-detail-link:hover .roadmap-detail-name { text-decoration: underline; text-underline-offset: 4px; }
.roadmap-detail-link:focus-visible { outline: 2px solid var(--roadmap-ink); outline-offset: 4px; }
.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: var(--roadmap-muted);
  font: 10px/1.3 'Courier New', monospace;
  white-space: nowrap;
}

.roadmap-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.roadmap-status[data-evidence="checked"]::before { background: currentColor; }
.roadmap-description {
  max-width: none;
  margin: 1px 0 0;
  color: var(--roadmap-muted);
  font-size: 12px;
  line-height: 1.55;
}

.roadmap-instructions {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@container (max-width: 580px) {
  .roadmap-heading { top: 3%; left: 7%; right: 7%; font-size: 10px; }
  .roadmap-visual { inset: 7% 0 32%; }
  .roadmap-detail { left: 7%; right: 7%; bottom: 3%; }
  .roadmap-detail-link { font-size: 14px; gap: 8px; }
  .roadmap-station-label { font-size: 10px; }
  .roadmap-description { font-size: 11px; line-height: 1.45; }
}

@container (max-width: 390px) {
  .roadmap-heading { top: 0; left: 5%; right: 5%; font-size: 9px; gap: 8px; }
  .roadmap-visual { inset: 5% 0 35%; }
  .roadmap-station-label { display: none; }
  .roadmap-station-number { width: 24px; height: 24px; font-size: 9px; }
  .roadmap-detail { left: 5%; right: 5%; bottom: 0; }
  .roadmap-detail-heading { gap: 7px; }
  .roadmap-detail-link { min-height: 30px; font-size: 12px; gap: 6px; }
  .roadmap-detail-link > span:last-child { font-size: 11px; }
  .roadmap-status { font-size: 9px; gap: 5px; }
  .roadmap-description { margin-top: 0; font-size: 10px; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-station-number { transition: none; }
}

html[data-reduced-motion] .roadmap-station-number,
body[data-reduced-motion] .roadmap-station-number,
.roadmap-scene[data-active="false"] .roadmap-station-number { transition: none; }
