.board-scroll {
  overflow-x: auto;
}

.route-board {
  min-width: 920px;
}

.station-row,
.itinerary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.station-row {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.station-name {
  position: relative;
  height: 1.75rem;
}

.station-name span {
  display: inline-block;
  white-space: nowrap;
}

.station-name:nth-child(1) {
  grid-column: 1;
}

.station-name:nth-child(2) {
  grid-column: 2;
}

.station-name:nth-child(3) {
  grid-column: 3;
}

.station-name:nth-child(4),
.station-name:nth-child(5) {
  grid-column: 4;
}

.station-name:nth-child(2) span,
.station-name:nth-child(3) span,
.station-name:nth-child(4) span {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
}

.station-name:nth-child(5) {
  text-align: right;
}

.itinerary {
  margin-bottom: 0.6rem;
}

.ride {
  margin-right: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  line-height: 1.35;
}

.ride:last-child {
  margin-right: 0;
}

.ride.span-2 {
  grid-column: span 2;
}

.ride.span-3 {
  grid-column: span 3;
}

.ride-type {
  font-weight: 700;
}

.ride-times {
  font-variant-numeric: tabular-nums;
}

.ride-meta {
  opacity: 0.85;
}

.ride-odakyu {
  background: #e7f4fb;
  color: #04527a;
}

.ride-nambu {
  background: #fff6cc;
  color: #5c4b00;
}

.ride-keihin {
  background: #e5f7fc;
  color: #0a5f73;
}

.summary {
  min-width: 920px;
}
