/**
 * Liverpool Learn — Tutor learning-area fonts and mobile footer clearance
 *
 * Applied on courses.liverpoollearn.com via the ll-tutor-fonts must-use plugin.
 * Paul OK 16 Nov 2026, 10:35 GMT.
 *
 * Fonts Lexend and Fraunces are already installed in the WP Font Library
 * (family IDs 71/75, files under /wp-content/uploads/fonts/). @font-face is
 * included here because Tutor's learning-area template does not load theme or
 * global-styles CSS, so those pages otherwise fall back to Inter (and quiz
 * pages never load Lexend at all). URLs are absolute so they still resolve
 * when this file is loaded from /wp-content/mu-plugins/ll-tutor-fonts/.
 *
 * Inspected 16 Nov 2026 (Europe/London) on course 631, S0.1 lesson and quiz,
 * logged in, Tutor 4.2.1.
 */

@font-face {
  font-family: Lexend;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://courses.liverpoollearn.com/wp-content/uploads/fonts/Lexend-variable.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://courses.liverpoollearn.com/wp-content/uploads/fonts/Fraunces-variable.woff2") format("woff2");
}

/* 1. Lesson headings. Exact rule Course QA passed.
   Needed because Tutor's
   .tutor-lesson-content .tutor-lesson-wrapper h1–h4
   (font-family: var(--tutor-font-family-heading, "Inter"), …)
   is more specific than the lesson's own .ll-lesson h1–h4 rule. */
.ll-lesson h1,.ll-lesson h2,.ll-lesson h3,.ll-lesson h4{font-family:Fraunces,Georgia,serif!important}

/* 2. Lesson body text. The lesson's own CSS already sets Lexend on
   .ll-lesson, so body copy currently computes as Lexend. This keeps it
   that way if Tutor later forces Inter onto paragraphs the way it does
   on headings. */
.ll-lesson,
.ll-lesson p,
.ll-lesson li,
.ll-lesson td,
.ll-lesson th,
.ll-lesson summary,
.ll-lesson label,
.ll-lesson .note,
.ll-lesson .spec,
.ll-lesson .credits,
.ll-lesson figcaption {
  font-family: Lexend, system-ui, sans-serif !important;
}

/* 2b. Tutor's own quiz screens (intro, stats/info table, questions,
   answers, buttons). All of these currently compute as Inter.
   Selectors confirmed on the S0.1 quiz intro and question pages:
   .tutor-quiz wraps the intro (.tutor-quiz-intro,
   .tutor-quiz-intro-title, .tutor-quiz-intro-description,
   .tutor-quiz-intro-params, table.tutor-table) and the attempt
   (questions, options, pagination, .tutor-btn). */
.tutor-quiz,
.tutor-quiz * {
  font-family: Lexend, system-ui, sans-serif !important;
}

/* 3. At 390px (and generally below Tutor's 576px mobile breakpoint)
   the Previous/Next bar is position:fixed; bottom:0 and is about 57px
   tall. Tutor already adds 96px padding-bottom on
   .tutor-learning-area-container in that breakpoint. This slightly
   larger floor keeps the last photo-credit line clearly above the bar
   when the page is scrolled to the end. */
@media (max-width: 576px) {
  .tutor-learning-area .tutor-learning-area-container {
    padding-bottom: 7.5rem !important;
  }
}
