/* Timetable: JR departure-board structure, V3 track colors only. */

.rt-timetable {
  border: var(--rt-border-sign) solid var(--rt-color-rail);
  background: var(--rt-color-screen);
  color: var(--rt-v3-white);
}

.rt-timetable__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--rt-space-4);
  padding: var(--rt-space-4);
  border-bottom: 1px solid var(--rt-v3-white);
}

.rt-timetable__title {
  margin: 0;
  font-size: var(--rt-text-title);
  line-height: var(--rt-leading-title);
}

.rt-timetable__title small {
  display: block;
  margin-top: var(--rt-space-1);
  color: var(--rt-v3-white);
  font-family: var(--rt-font-data);
  font-size: var(--rt-text-micro);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.rt-timetable__clock {
  color: var(--rt-v3-white);
  font-family: var(--rt-font-data);
  font-size: var(--rt-text-small);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rt-timetable__cols,
.rt-timetable__row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.7fr) minmax(6rem, 0.9fr) minmax(0, 2fr) minmax(5rem, 0.8fr);
  gap: var(--rt-space-4);
  align-items: center;
}

.rt-timetable__cols {
  padding: var(--rt-space-2) var(--rt-space-4);
  border-bottom: 1px solid var(--rt-v3-white);
  color: var(--rt-v3-white);
  font-family: var(--rt-font-data);
  font-size: var(--rt-text-micro);
}

.rt-timetable__row {
  padding: var(--rt-space-3) var(--rt-space-4);
  border-bottom: 1px solid var(--rt-v3-white);
  color: inherit;
  text-decoration: none;
}

.rt-timetable__row:last-child { border-bottom: 0; }
.rt-timetable__row:hover { background: var(--rt-color-screen-soft); }

.rt-timetable__time {
  font-family: var(--rt-font-data);
  font-size: var(--rt-text-lead);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rt-timetable__type {
  justify-self: start;
  padding: 0.125rem var(--rt-space-2);
  background: var(--rt-row-color, var(--rt-track-accent, var(--rt-v3-orange)));
  color: var(--rt-row-ink, var(--rt-track-accent-ink, var(--rt-v3-ink)));
  font-size: var(--rt-text-small);
  font-weight: 700;
}

.rt-timetable__name { min-width: 0; font-weight: 700; }

.rt-timetable__name small {
  display: block;
  margin-top: 0.125rem;
  color: var(--rt-v3-white);
  font-size: var(--rt-text-small);
  font-weight: 400;
}

.rt-timetable__platform {
  color: var(--rt-v3-white);
  font-family: var(--rt-font-data);
  font-size: var(--rt-text-small);
  font-weight: 600;
  white-space: nowrap;
}

.rt-timetable__note {
  padding: var(--rt-space-2) var(--rt-space-4) var(--rt-space-3);
  color: var(--rt-v3-white);
  font-size: var(--rt-text-small);
}

@media (max-width: 680px) {
  .rt-timetable__cols { display: none; }
  .rt-timetable__row { grid-template-columns: auto 1fr; gap: var(--rt-space-2) var(--rt-space-3); }
  .rt-timetable__name { grid-column: 1 / -1; grid-row: 2; }
  .rt-timetable__platform { justify-self: end; }
}
