/* Plataforma de aulas (MasterStudy, inc/lms.php): o plugin com as cores, a letra e os botões do site.
   Só se mexe nas variáveis e nas classes do plugin, sem o editar (para continuar a poder atualizar). */

/* Cor de destaque do plugin = laranja do site (o plugin traz azul). */
html:root {
  --accent-100: rgba(212, 80, 38, 1);
  --accent-70: rgba(212, 80, 38, .7);
  --accent-50: rgba(212, 80, 38, .5);
  --accent-30: rgba(212, 80, 38, .3);
  --accent-10: rgba(212, 80, 38, .1);
  --accent-5: rgba(212, 80, 38, .05);
  --accent-0: rgba(212, 80, 38, 0);
  --accent-hover: rgba(156, 58, 25, 1);
}

/* Letra Rubik em todo o plugin. */
[class*="masterstudy-"], [class*="masterstudy-"] * { font-family: var(--fonte); }

/* Página do curso: faixa de topo cinzento-gelo como a página de venda; cartão do curso à direita; separadores por baixo. */
html body .masterstudy-single-course { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: clamp(32px, 5vw, 64px); align-items: start; position: relative; isolation: isolate; padding-bottom: 72px; }
html body .masterstudy-single-course::before { content: ''; grid-column: 1 / -1; grid-row: 1 / 5; align-self: stretch; z-index: -1; background: var(--gelo); box-shadow: 0 0 0 100vmax var(--gelo); clip-path: inset(0 -100vmax); margin-top: -48px; }
html body .masterstudy-single-course__main { display: contents; }
html body .masterstudy-single-course__topbar { grid-column: 1; grid-row: 1; padding-top: 8px; }
html body .masterstudy-single-course__heading { grid-column: 1; grid-row: 2; }
html body .masterstudy-single-course__desc { grid-column: 1; grid-row: 3; }
html body .masterstudy-single-course__info { grid-column: 1; grid-row: 4; padding: 8px 0 clamp(32px, 5vw, 56px); }
html body .masterstudy-single-course-tabs { grid-column: 1; grid-row: 5; margin-top: 40px; }
html body .masterstudy-single-course-tabs__content { grid-column: 1; grid-row: 6; }
html body .masterstudy-single-course__sidebar { width: auto; max-width: none; min-width: 0; flex: none; grid-column: 2; grid-row: 1 / span 8; margin-top: 8px; padding: 24px; background: var(--branco); border-radius: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); position: sticky; top: calc(var(--cab) + 16px); }
html body .masterstudy-single-course__sidebar > * + * { margin-top: 18px; }
html body .masterstudy-single-course__buttons { display: flex; justify-content: space-between; gap: 12px; }

/* Etiqueta da categoria como a «Curso em vídeo» da página de venda. */
html body .masterstudy-single-course-categories__wrapper a, .masterstudy-single-course-categories__wrapper span { display: inline-block; padding: 4px 10px; background: var(--laranja); color: var(--branco) !important; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
html body .masterstudy-single-course-title { color: var(--tinta); font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 12px; }
html body .masterstudy-single-course-excerpt, .masterstudy-single-course-excerpt * { color: var(--texto); font-size: 18px; line-height: 1.55; }
html body .masterstudy-single-course-excerpt a { color: var(--laranja); }
html body .masterstudy-single-course-instructor__info, .masterstudy-single-course-instructor__info * { color: var(--tinta); }

/* Separadores e texto. */
html body .masterstudy-single-course-tabs a { color: var(--texto); }
html body .masterstudy-single-course-tabs__content { max-width: 820px; }
html body .masterstudy-single-course-description__image { display: none !important; /* a capa já vai na página de venda; aqui só ocupava espaço */  width: 100%; max-height: 420px; object-fit: contain; background: var(--gelo); border-radius: 8px; margin: 0 0 24px; }
html body .masterstudy-single-course-description, .masterstudy-single-course-description p, .masterstudy-single-course-description li { color: var(--texto); line-height: 1.6; }
html body .masterstudy-single-course-description h2, .masterstudy-single-course-description h3 { color: var(--tinta); font-weight: 800; margin: 1.6em 0 .5em; }
html body .masterstudy-single-course-description ul, .masterstudy-single-course-description ol { padding-left: 1.2em; }
html body .masterstudy-single-course-description a { color: var(--laranja); }

@media (max-width: 900px) {
  html body .masterstudy-single-course { grid-template-columns: minmax(0, 1fr); }
  html body .masterstudy-single-course::before { grid-row: 1 / 5; }
  html body .masterstudy-single-course__sidebar { grid-column: 1; grid-row: 5; margin-top: 0; position: static; }
  html body .masterstudy-single-course-tabs { grid-row: 6; }
  html body .masterstudy-single-course-tabs__content { grid-row: 7; }
}

/* Botão do curso (stm-lms-templates/components/buy-button/buy-button.php) igual ao botão do site. */
.curso-botao { display: grid; gap: 10px; justify-items: stretch; }
.curso-botao .botao { display: block; text-align: center; padding: 14px 20px; }
.curso-botao .curso-preco { margin: 0; font-size: 22px; font-weight: 700; color: var(--tinta); }
.curso-botao .curso-preco del { font-size: 15px; font-weight: 400; color: var(--texto); margin-right: 6px; }
.curso-botao .curso-preco ins { text-decoration: none; }
.curso-botao .curso-preco .woocommerce-price-suffix, .curso-botao .curso-preco small { display: block; font-size: 13px; font-weight: 400; color: var(--texto); }
.curso-botao .curso-garantia { margin: 0; font-size: 14px; color: var(--texto); }

/* Currículo (lista de aulas): fundo claro do site em vez do azul pálido. */
.masterstudy-curriculum-list__item, .masterstudy-curriculum-accordion__item, .masterstudy-curriculum-list__wrapper { border-radius: 6px; }
html body .masterstudy-curriculum-list__item { background: var(--claro); }
html body .masterstudy-curriculum-list__item:hover { background: var(--gelo); }
html body .masterstudy-curriculum-list__toggler { background: var(--linha); }

/* Player das aulas. */
.masterstudy-course-player-header { background: var(--claro); border-bottom: 1px solid var(--linha); }
.masterstudy-course-player-header__title, .masterstudy-course-player-lesson-video__title { color: var(--tinta); }
.masterstudy-course-player-navigation { border-top: 1px solid var(--linha); }
.masterstudy-course-player-curriculum { border-color: var(--linha); }
.masterstudy-course-player-lesson-video video, .masterstudy-course-player-lesson-video iframe { border-radius: 6px; }

/* Botões do plugin: cantos e peso do botão do site. */
.masterstudy-button { border-radius: 6px; font-weight: 600; }
.masterstudy-button[data-id="masterstudy-upgrade-pro"] { display: none; }


/* O número de alunos inscritos (1, 2…) não ajuda a vender: escondido. */
html body .masterstudy-single-course__info-block_students { display: none; }
