/* Keep each course family recognizable in the table and the mobile cards. */
#schedule {
  background:
    radial-gradient(ellipse at 100% 0%, #dceaff 0%, transparent 48%),
    linear-gradient(155deg, #edf4ff 0%, #f3f6ff 54%, #e9f7f3 100%);
}

#schedule .schedule-filter-shell {
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  border-color: #c5d5f1;
  box-shadow: 0 12px 28px #1737670b;
}

#schedule .schedule-filter-layout {
  flex-wrap: wrap;
  align-items: flex-end;
}

#schedule .schedule-filter-selects {
  min-width: 0;
  max-width: 100%;
}

#schedule .schedule-filter-select {
  min-height: 42px;
}

#schedule .schedule-filter-label,
#schedule .schedule-select-field label {
  color: var(--navy-700);
  font-weight: 700;
}

#schedule .schedule-filter-button {
  min-height: 42px;
  background: #f6f9ff;
  border-color: #b6c9eb;
  font-weight: 650;
}

#schedule .schedule-filter-button:hover {
  background: #e7efff;
  border-color: #7697d4;
}

#schedule .schedule-filter-button.active {
  background: #1f4fbd;
  border-color: #1f4fbd;
  color: #fff;
}

#schedule .schedule-filter-result {
  color: #3b5076;
}

#schedule .course-inclusions {
  border-color: #d4caea;
  background: linear-gradient(145deg, #f6f1ff, #fbfaff 72%);
}

#schedule .schedule-category {
  --schedule-ink: #183b82;
  --schedule-edge: #bfd1ee;
  --schedule-tint: #e1edff;
  --schedule-stripe: #f2f7ff;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--schedule-edge);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--schedule-tint), var(--schedule-stripe) 64%);
}

#schedule [data-schedule-category="master-write"] {
  --schedule-ink: #473779;
  --schedule-edge: #d5caee;
  --schedule-tint: #eae4fb;
  --schedule-stripe: #f6f3fd;
}

#schedule [data-schedule-category="speaking"] {
  --schedule-ink: #145749;
  --schedule-edge: #abd8ca;
  --schedule-tint: #d8f0e8;
  --schedule-stripe: #eef9f5;
}

#schedule .category-header {
  margin-bottom: 16px;
  color: var(--schedule-ink);
  font-size: clamp(21px, 3vw, 28px);
}

#schedule .speaking-brand {
  color: var(--schedule-ink);
}

#schedule .table-responsive {
  border-color: var(--schedule-edge);
  background: #fff;
}

#schedule th {
  background: var(--schedule-ink);
}

#schedule tbody tr:nth-child(even) {
  background: var(--schedule-stripe);
}

#schedule tbody tr:hover {
  background: var(--schedule-tint);
}

@media (max-width: 1150px) {
  #schedule .table-responsive {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  #schedule table {
    display: block;
    min-width: 0;
  }

  #schedule thead {
    display: none;
  }

  #schedule tbody {
    display: grid;
    gap: 12px;
  }

  #schedule tbody tr {
    display: block;
    min-width: 0;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--schedule-edge);
    border-radius: 14px;
  }

  #schedule td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
    padding: 10px 0;
    text-align: right;
  }

  #schedule td::before {
    content: attr(data-label);
    color: #3b5076;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
  }

  #schedule tbody td:last-child {
    border-bottom: 0;
  }

  #schedule td[colspan] {
    display: block;
    text-align: center;
  }

  #schedule td[colspan]::before {
    display: none;
  }
}

@media (min-width: 760px) and (max-width: 1150px) {
  #schedule tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #schedule tbody tr:only-child {
    grid-column: 1 / -1;
  }
}
