:root {
  --md-primary-fg-color: #263f74;
  --md-primary-fg-color--light: #38568f;
  --md-primary-fg-color--dark: #17294d;
  --course-border: color-mix(in srgb, currentColor 16%, transparent);
}

.md-grid {
  max-width: 72rem;
}

.course-hero {
  margin: 1.5rem 0 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(135deg, #17294d, #31558e);
  border-radius: 0.75rem;
}

.course-hero h1 {
  margin: 0 0 0.6rem;
  color: inherit;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.course-hero p {
  max-width: 48rem;
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.9;
}

.course-meta,
.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.course-meta > div,
.course-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--course-border);
  border-radius: 0.5rem;
}

.course-meta strong {
  display: block;
  margin-bottom: 0.2rem;
}

.course-card h3 {
  margin-top: 0;
}

.embed-frame {
  width: 100%;
  border: 1px solid var(--course-border);
  border-radius: 0.4rem;
  background: #f5f7fa;
}

.embed-frame--slides {
  aspect-ratio: 16 / 9;
  min-height: 18rem;
}

.embed-frame--notes {
  height: min(75vh, 52rem);
  min-height: 32rem;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .course-hero {
    border-radius: 0;
    margin-inline: -0.8rem;
  }

  .embed-frame--slides {
    min-height: 12rem;
  }

  .embed-frame--notes {
    min-height: 26rem;
  }
}

@media print {
  .embed-frame {
    display: none;
  }
}
