/*
 * The LMS plugin's own screens (course page, lesson player, account),
 * brought into line with the rest of the site: same type, same ink,
 * crane yellow for the one action that matters on each screen.
 */

.giff .giff-lms,
.giff .page--lms,
.giff .masterstudy-single-course,
.giff .stm-lms-wrapper {
  --accent-100: #125780;
  --masterstudy-accent-color: #125780;
  font-family: var(--font-text);
  color: var(--ink);
}

.giff .stm-lms-wrapper {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.giff .stm-lms-wrapper > .container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.giff .masterstudy-single-course h1,
.giff .masterstudy-single-course h2,
.giff .masterstudy-single-course h3,
.giff .masterstudy-single-course__title,
.giff .masterstudy-single-course-title {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0.005em;
}

.giff .masterstudy-single-course-title,
.giff .masterstudy-single-course__heading h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
}

/* The buy / enrol button is the page's one primary action. */
.giff .masterstudy-buy-button__link,
.giff .masterstudy-buy-button .masterstudy-button,
.giff .masterstudy-button_style-primary {
  background: var(--hivis) !important;
  border-color: var(--hivis) !important;
  color: var(--ink) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-text) !important;
  font-weight: 600 !important;
}

.giff .masterstudy-buy-button__link:hover,
.giff .masterstudy-button_style-primary:hover {
  background: var(--hivis-deep) !important;
  border-color: var(--hivis-deep) !important;
}

.giff .masterstudy-buy-button__link span,
.giff .masterstudy-buy-button__title,
.giff .masterstudy-button_style-primary .masterstudy-button__title {
  color: var(--ink) !important;
}

.giff .masterstudy-single-course__sidebar,
.giff .masterstudy-single-course__cta,
.giff .masterstudy-single-course-tabs,
.giff .masterstudy-curriculum-accordion__wrapper {
  border-radius: var(--radius);
}

.giff .masterstudy-single-course-tabs__item_active {
  color: var(--ink) !important;
  border-color: var(--hivis) !important;
}

.giff .masterstudy-curriculum-accordion__title,
.giff .masterstudy-curriculum-accordion__section {
  font-family: var(--font-text);
  color: var(--ink);
}

/* Facts GIFF adds under the course title. */
.giff-course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 500;
}

.giff-course-facts li + li::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.7rem;
  background: var(--line-strong);
  vertical-align: -0.05em;
}

.giff-course-facts strong {
  font-weight: 600;
}

/* The lesson player. Reading is the whole job here, so the text column gets
   the site's type, a comfortable measure and room between sections. */
.giff .masterstudy-course-player-content,
.giff .masterstudy-course-player-header {
  font-family: var(--font-text);
}

.giff .masterstudy-course-player-content__wrapper h1,
.giff .masterstudy-course-player-content__wrapper h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.giff .masterstudy-course-player-content__wrapper h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.05;
}

.giff .masterstudy-course-player-lesson {
  max-width: 44rem;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.giff .masterstudy-course-player-lesson p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.giff .masterstudy-course-player-lesson .lesson-lead {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.giff .masterstudy-course-player-lesson h3 {
  margin: 2.25rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.giff .masterstudy-course-player-lesson ul,
.giff .masterstudy-course-player-lesson ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.giff .masterstudy-course-player-lesson li {
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.giff .masterstudy-course-player-lesson table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.giff .masterstudy-course-player-lesson th,
.giff .masterstudy-course-player-lesson td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.giff .masterstudy-course-player-lesson th {
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}

/* Keep the lesson text on the same left edge as its title. */
.giff .masterstudy-course-player-lesson {
  margin-inline: 0;
}

/* Course covers keep their 16:9 shape in the plugin's own lists. */
.giff .stm_lms_instructor_courses__single--image,
.giff .stm_lms_instructor_courses__single--image .image_wrapper {
  height: auto;
}

.giff .stm_lms_instructor_courses__single--image img,
.giff .masterstudy-popular-courses__image img,
.giff .masterstudy-single-course-popular-courses__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
