.mf-timetable {
  --mf-timetable-blue: #087fc5;
  --mf-timetable-gold: #d2a64f;
  --mf-timetable-ink: #252525;
  --mf-timetable-muted: #747b84;
  --mf-timetable-surface: #f5f6fa;
  color: var(--mf-timetable-ink);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.mf-timetable *,
.mf-timetable *::before,
.mf-timetable *::after {
  box-sizing: border-box;
}

.mf-timetable .mf-schedule-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e0e4e8;
}

.mf-timetable .mf-schedule-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--mf-timetable-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.mf-timetable .mf-schedule-nav a:hover,
.mf-timetable .mf-schedule-nav a:focus-visible,
.mf-timetable .mf-schedule-nav a[aria-current="page"] {
  color: var(--mf-timetable-blue);
}

.mf-timetable .mf-schedule-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 3px;
  background: var(--mf-timetable-gold);
  content: "";
}

.mf-timetable-intro {
  max-width: 820px;
  margin-bottom: 48px;
}

.mf-timetable-eyebrow {
  margin: 0 0 8px;
  color: var(--mf-timetable-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mf-timetable-intro h2,
.mf-timetable-more > h2,
.mf-timetable-poster h2,
.mf-timetable-cta h2 {
  margin: 0;
  color: var(--mf-timetable-ink);
  font-family: "Spicy Rice", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}

.mf-timetable-intro h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.mf-timetable-intro h2 span {
  display: block;
  color: var(--mf-timetable-gold);
}

.mf-timetable-lead {
  max-width: 750px;
  margin-top: 18px;
  color: var(--mf-timetable-muted);
  font-size: 18px;
}

.mf-timetable-lead > :first-child {
  margin-top: 0;
}

.mf-timetable-lead > :last-child {
  margin-bottom: 0;
}

.mf-timetable-day {
  margin-bottom: 24px;
  border: 1px solid #dfe3e7;
  border-top: 4px solid var(--mf-day-accent, var(--mf-timetable-blue));
  background: #fff;
}

.mf-timetable-day summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: var(--mf-timetable-surface);
  color: var(--mf-timetable-ink);
  list-style-position: inside;
}

.mf-timetable-day summary::marker {
  color: var(--mf-day-accent, var(--mf-timetable-blue));
}

.mf-timetable-day summary span {
  font-family: "Spicy Rice", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.mf-timetable-day summary small {
  color: var(--mf-timetable-muted);
  font-size: 13px;
  font-weight: 600;
}

.mf-timetable-day summary:focus-visible {
  outline: 3px solid var(--mf-timetable-blue);
  outline-offset: 2px;
}

.mf-timetable-class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid #e1e5e8;
  background: #e1e5e8;
}

.mf-timetable-class {
  min-width: 0;
  min-height: 218px;
  padding: 20px 18px;
  background: #fff;
}

.mf-timetable-time {
  margin: 0 0 12px;
  color: var(--mf-day-accent, var(--mf-timetable-blue));
  font-size: 14px;
  font-weight: 800;
}

.mf-timetable-class h3 {
  margin: 0 0 7px;
  color: var(--mf-timetable-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.34;
}

.mf-timetable-class p {
  margin: 5px 0 0;
}

.mf-timetable-level {
  color: var(--mf-timetable-ink);
  font-size: 14px;
  font-weight: 650;
}

.mf-timetable-meta,
.mf-timetable-note {
  color: var(--mf-timetable-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mf-timetable-meta strong {
  color: #555d65;
}

.mf-timetable-note {
  padding-top: 6px;
  border-top: 1px solid #eceff1;
}

.mf-timetable-more {
  margin-top: 58px;
}

.mf-timetable-more > h2,
.mf-timetable-poster h2,
.mf-timetable-cta h2 {
  font-size: 30px;
}

.mf-timetable-more-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid #e1e5e8;
  background: #e1e5e8;
}

.mf-timetable-more-grid article {
  min-width: 0;
  padding: 22px 18px;
  background: #fff8f2;
}

.mf-timetable-more-grid h3 {
  margin: 0 0 8px;
  color: var(--mf-timetable-ink);
  font-size: 15px;
  line-height: 1.35;
}

.mf-timetable-more-grid p {
  margin: 0;
  color: var(--mf-timetable-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mf-timetable-poster {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 46px;
  padding: 28px 30px;
  border-left: 5px solid var(--mf-timetable-gold);
  background: var(--mf-timetable-surface);
}

.mf-timetable-poster p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--mf-timetable-muted);
}

.mf-timetable-poster a {
  flex: 0 0 auto;
  color: var(--mf-timetable-blue);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mf-timetable-cta {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
  padding: 32px 36px;
  background: #76828c;
  color: #fff;
}

.mf-timetable-cta h2 {
  color: #fff;
}

.mf-timetable-cta p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.mf-timetable-button {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 3px;
  background: var(--mf-timetable-gold);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
}

.mf-timetable-button:hover,
.mf-timetable-button:focus-visible {
  background: #b98b32;
}

.mf-timetable-empty {
  padding: 20px;
  border: 1px dashed #c7ccd1;
  background: #fff;
  color: #6b7178;
}

@media (max-width: 1100px) {
  .mf-timetable-class-grid,
  .mf-timetable-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .mf-timetable {
    font-size: 15px;
  }

  .mf-timetable-intro {
    margin-bottom: 38px;
  }

  .mf-timetable-day {
    margin-bottom: 14px;
  }

  .mf-timetable-day summary {
    padding: 16px 17px;
  }

  .mf-timetable-day summary span {
    font-size: 24px;
  }

  .mf-timetable-class-grid,
  .mf-timetable-more-grid {
    grid-template-columns: 1fr;
  }

  .mf-timetable-class {
    min-height: 0;
    padding: 18px;
  }

  .mf-timetable-time {
    margin-bottom: 8px;
  }

  .mf-timetable-more {
    margin-top: 42px;
  }

  .mf-timetable-poster,
  .mf-timetable-cta {
    display: block;
    padding: 25px 22px;
  }

  .mf-timetable-poster a,
  .mf-timetable-button {
    display: inline-flex;
    width: 100%;
    margin-top: 18px;
    justify-content: center;
  }
}
