/* The route marker follows the three preparation stops, not a shipment. */
.lane-board[data-active] {
  grid-template-columns: minmax(248px, 1fr) minmax(0, 2fr);
}
.dispatch-route {
  position: relative;
  min-width: 0;
  margin: 16px 20px 16px 0;
}
.dispatch-route:has(.dispatch-stops[hidden]) .dispatch-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.dispatch-stops:not([hidden]) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dispatch-stops::before,
.dispatch-stops::after {
  position: absolute;
  content: "";
  top: 15px;
  left: calc(100% / 6);
  z-index: -1;
  height: 2px;
  background: #81959c;
  width: calc(100% * 2 / 3);
}
.dispatch-stops::after {
  background: #f3a670;
  transform: scaleX(var(--route-progress, 0));
  transform-origin: left;
}
.dispatch-marker {
  width: 8px;
  height: 8px;
  position: absolute;
  left: var(--route-marker, calc(100% / 6));
  top: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #f3a670;
}
.dispatch-stops button {
  display: grid;
  min-height: 48px;
  justify-items: center;
  grid-template-rows: 26px 1fr;
  padding: 9px 3px 5px;
  border: 0;
  background: transparent;
  color: #e6edec;
  font: 700 11px/1.25 'Courier New', monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.dispatch-stops button::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #81959c;
  background: #263941;
}
.dispatch-stops button[aria-pressed="true"] { color: #ffc294; }
.dispatch-stops button[aria-pressed="true"]::before { border-color: #f3a670; }
.dispatch-details { margin: 8px 0 0; }
.dispatch-details > div { min-width: 0; padding: 8px 12px; border-left: 2px solid #b97449; }
.dispatch-details dt { color: #ffbb86; font: 700 11px/1.4 'Courier New', monospace; text-transform: uppercase; }
.dispatch-details dd { color: #f2f6f5; margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) {
  .lane-board[data-active] { grid-template-columns: minmax(0, 1fr); }
  .dispatch-route { margin: 0 12px 12px; border-top: 1px solid #657c85; padding-top: 5px; }
  .dispatch-route:has(.dispatch-stops[hidden]) .dispatch-details { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .dispatch-marker { transition: left 510ms cubic-bezier(.24,.72,.25,1); }
  .dispatch-stops::after { transition: transform 510ms cubic-bezier(.24,.72,.25,1); }
  .dispatch-details > div:not([hidden]) { animation: dispatch-slip 300ms ease-out; }
  @keyframes dispatch-slip {
    from { transform: translateX(-6px); }
    to { transform: none; }
  }
}
