.timetable-main {
  padding-top: var(--header-height);
  color: var(--color-text);
}

.timetable-heading {
  max-width: var(--section-max-w);
  margin: 0 auto;
  padding: 5rem var(--section-pad-x) 0;
}

.timetable-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 7rem);
  max-width: var(--section-max-w);
  margin: 0 auto;
  padding: 3rem var(--section-pad-x) 8rem;
}

.timetable-day {
  min-width: 0;
}

.timetable-day h2 {
  margin: 0;
  padding: 0 0 1.25rem;
  border-bottom: 2px solid var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-item {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9rem) minmax(0, 1fr);
  gap: 1.5rem;
  min-height: 8.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(80, 78, 77, 0.25);
}

.schedule-item > time {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  white-space: nowrap;
}

.schedule-item h3 {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

.schedule-item h3 a {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.schedule-item h3 a:hover,
.schedule-item h3 a:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.schedule-item p {
  margin: 0.55rem 0 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
}

.schedule-item--boundary {
  min-height: 5rem;
  align-items: center;
}

@media (max-width: 1050px) {
  .timetable-days {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .timetable-heading {
    padding-right: var(--section-pad-x-mobile);
    padding-left: var(--section-pad-x-mobile);
  }

  .timetable-days {
    gap: 5rem;
    padding: 3rem var(--section-pad-x-mobile) 6rem;
  }

  .timetable-day h2 {
    font-size: var(--font-size-lg);
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    min-height: 0;
  }

  .schedule-item--boundary {
    min-height: 0;
  }
}
