/* Shared SmartWills Academy typography. Keep the existing Segoe UI system font. */
:root {
  --font-family-base: "Segoe UI", Arial, sans-serif;
  --font-size-page-title: clamp(1.75rem, 2.2vw, 2.25rem);
  --font-size-section-title: clamp(1.375rem, 1.8vw, 1.75rem);
  --font-size-subsection: 1.375rem;
  --font-size-card-title: 1.25rem;
  --font-size-body: 1rem;
  --font-size-secondary: 0.875rem;
  --font-size-small: 0.8125rem;
  --line-height-heading: 1.25;
  --line-height-body: 1.65;
  --letter-spacing-heading: -0.015em;
  --text-color-primary: #17324f;
  --text-color-secondary: #60758c;
}

html { font-size: 16px; }

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--text-color-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color-primary);
  font-family: var(--font-family-base);
  letter-spacing: var(--letter-spacing-heading);
  line-height: var(--line-height-heading);
}

h1 { font-size: var(--font-size-page-title); font-weight: 700; }
h2 { font-size: var(--font-size-section-title); font-weight: 700; }
h3 { font-size: var(--font-size-subsection); font-weight: 600; }
h4 { font-size: var(--font-size-card-title); font-weight: 600; }
h5, h6 { font-size: 1rem; font-weight: 600; }

p { line-height: var(--line-height-body); }

.card-header {
  font-size: var(--font-size-card-title);
  font-weight: 600;
  line-height: var(--line-height-heading);
}

input, select, textarea, button {
  font-family: var(--font-family-base);
}

.form-group label { font-size: var(--font-size-secondary); }
.form-group input, .form-group select, .form-group textarea { font-size: var(--font-size-body); }
table { font-size: var(--font-size-secondary); }

/* Learning, Workshop and Materials area in the course player. */
.course-player-page .course-hub-nav a {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: 500;
  line-height: 1.4;
}

.course-player-page .class-recording-header .eyebrow,
.workshop-page .class-recording-header .eyebrow,
.course-player-page .materials-hub-eyebrow {
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.course-player-page .class-recording-header h1,
.workshop-page .class-recording-header h1,
.course-player-page .materials-hub-title {
  font-size: var(--font-size-page-title);
  font-weight: 700;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
}

.course-player-page .class-recording-header p:not(.eyebrow),
.workshop-page .class-recording-header p:not(.eyebrow),
.course-player-page .materials-hub-subtitle {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--text-color-secondary);
}

.class-recording .csps-workshop-note,
.class-recording .class-schedule-footnote {
  font-size: var(--font-size-secondary);
  line-height: var(--line-height-body);
  color: var(--text-color-secondary);
}

.course-player-page .class-recording .class-schedule-title {
  font-size: var(--font-size-subsection);
  font-weight: 600;
}

.course-player-page .class-session h3,
.course-player-page .materials-module-heading {
  font-size: var(--font-size-card-title);
  font-weight: 600;
  line-height: var(--line-height-heading);
  letter-spacing: normal;
}

.course-player-page .class-session-copy p,
.course-player-page .class-session-bottom > span,
.course-player-page .class-session-action,
.course-player-page .materials-view-button {
  font-size: var(--font-size-secondary);
}

.course-player-page .class-session-status,
.course-player-page .class-demo-label,
.course-player-page .class-pagination > span {
  font-size: var(--font-size-small);
}

small, .text-muted, .text-secondary { font-size: var(--font-size-secondary); }

@media (max-width: 768px) {
  :root {
    --font-size-page-title: clamp(1.5rem, 6vw, 1.875rem);
    --font-size-section-title: clamp(1.25rem, 4.5vw, 1.5rem);
    --font-size-subsection: 1.1875rem;
    --font-size-card-title: 1.0625rem;
    --line-height-body: 1.6;
  }

  .course-player-page .course-hub-nav a { font-size: 0.9375rem; }
}

@media (max-width: 480px) {
  :root {
    --font-size-page-title: clamp(1.375rem, 7vw, 1.625rem);
    --font-size-section-title: 1.25rem;
    --font-size-subsection: 1.125rem;
  }
}

/* Bring the compact lesson outline up to the Course Overview reading scale. */
.course-player-page .course-lesson-sidebar > .eyebrow { font-size: var(--font-size-small); }
.course-player-page #course-outline-title { font-size: var(--font-size-card-title); }
.course-player-page .course-outline-progress .learning-row { font-size: var(--font-size-body); }
.course-player-page .course-outline-progress .learning-row strong { font-size: 1.125rem; }
.course-player-page .course-outline-progress .learning-muted { font-size: var(--font-size-secondary); }
.course-player-page .course-lesson-sidebar .outline-title { font-size: var(--font-size-body); }
.course-player-page .course-lesson-sidebar .outline-title .status-pill { font-size: var(--font-size-small); }
.course-player-page .course-lesson-sidebar .outline-module > button { font-size: var(--font-size-body); line-height: 1.5; }
.course-player-page .course-assessment-link { font-size: var(--font-size-body); }
