@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* ========== FONTE ========== */
html.h5p-iframe,
html.h5p-iframe > body {
  font-family: 'Instrument Sans', sans-serif !important;
}

.h5p-course-presentation,
.h5p-drag-text,
.h5p-drag-text *,
.h5p-dragquestion,
.h5p-dragquestion *,
.h5p-question,
.h5p-question * {
  font-family: 'Instrument Sans', sans-serif !important;
}

/* ========== ESCONDE A BARRA DE TENTATIVAS - TOPO ========== */
.h5p-attempts {
  display: none !important;
}

/* ========== BLOCO DO TEXTO (Drag the Words) ========== */
.h5p-drag-droppable-words-container {
  background-color: #F5F5F5 !important;
}

/* ========== DRAGGABLE: SEMPRE OFF-WHITE ========== */
.h5p-draggable,
.h5p-draggable.ui-draggable,
.h5p-draggable.ui-draggable-handle,
.h5p-draggable--has-handle,
.h5p-draggable:hover,
.h5p-draggable:focus,
.h5p-draggable:active,
.h5p-draggable.ui-draggable-dragging,
.h5p-draggable[aria-grabbed="true"],
.h5p-drag-text .h5p-draggable,
.h5p-dragquestion .h5p-draggable,
.h5p-dragquestion .h5p-inner .h5p-draggable {
  background-color: #F5F5F5 !important;
  border-color: #E0E0E0 !important;
  box-shadow: none !important;
}

/* Alça de arrastar: discreta, off-white escuro + charcoal */
html body .h5p-draggable .ui-draggable-handle,
html body .h5p-draggable--has-handle .ui-draggable-handle,
html body .h5p-draggable--has-handle::before,
html body .ui-draggable-handle::before {
  background-color: #E8E8E8 !important;
  color: #2E3338 !important;
}

html body .h5p-draggable svg path,
html body .h5p-draggable svg circle,
html body .h5p-draggable svg rect {
  fill: #2E3338 !important;
  stroke: none !important;
}

/* Texto do draggable em charcoal */
html body .h5p-draggable,
html body .h5p-draggable * {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

html body .h5p-draggable,
html body .h5p-draggable.ui-draggable {
  border: 1px solid #E0E0E0 !important;
}

/* ========== DROPPABLE: OFF-WHITE com borda turquesa ========== */
.h5p-dropzone,
.h5p-dropzone--inline,
.ui-droppable,
div.ui-droppable,
.h5p-inner.ui-droppable,
.h5p-drag-text .h5p-dropzone,
.h5p-drag-text .h5p-dropzone--inline,
.h5p-dragquestion .h5p-dropzone,
.h5p-dragquestion .ui-droppable,
.h5p-dragquestion .h5p-inner.ui-droppable,
.h5p-dropzone.h5p-hover,
.ui-droppable.ui-state-hover,
.ui-droppable.ui-droppable-active {
  background-color: #F5F5F5 !important;
  border: 1px solid #58B1AB !important;
}

/* ========== BOTÕES (todos): amarelo, texto charcoal ========== */
.h5p-joubelui-button,
.h5p-question-check-answer,
.h5p-question-buttons .h5p-joubelui-button,
.h5p-joubelui-button:hover,
.h5p-joubelui-button:focus,
.h5p-joubelui-button:active,
.h5p-question-check-answer:hover,
.h5p-question-check-answer:focus,
.h5p-question-check-answer:active,
.h5p-theme-button,
button.h5p-theme-button,
.h5p-theme-button:hover,
.h5p-theme-button:focus,
.h5p-theme-button:active,
.h5p-theme-secondary-cta,
.h5p-theme-retry,
.qs-startbutton {
  background-color: #EFD35C !important;
  border-color: #EFD35C !important;
  color: #2E3338 !important;
  box-shadow: none !important;
}

html body .h5p-joubelui-button *,
html body .h5p-question-buttons button *,
html body .h5p-theme-button,
html body .h5p-theme-button *,
html body .h5p-theme-button .h5p-theme-label,
html body .h5p-theme-button span {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
  background-color: transparent !important;
}

html body .h5p-joubelui-button svg path,
html body .h5p-theme-button svg path {
  fill: #2E3338 !important;
  stroke: none !important;
}

html body .h5p-joubelui-button svg clipPath *,
html body .h5p-joubelui-button svg mask *,
html body .h5p-joubelui-button svg defs *,
html body .h5p-theme-button svg clipPath *,
html body .h5p-theme-button svg mask *,
html body .h5p-theme-button svg defs * {
  fill: initial !important;
  stroke: none !important;
}

html body .h5p-theme-button::before,
html body .h5p-theme-button::after,
html body .h5p-joubelui-button::before,
html body .h5p-joubelui-button::after {
  background-color: transparent !important;
}

/* ========== ACCORDION: texto turquesa ========== */
.h5p-accordion .h5p-panel-button,
.h5p-accordion .h5p-panel-button *,
.h5p-accordion .h5p-panel-title,
.h5p-accordion .h5p-panel-title * {
  color: #58B1AB !important;
  -webkit-text-fill-color: #58B1AB !important;
}

.h5p-accordion .h5p-panel-button svg path {
  fill: #58B1AB !important;
  stroke: none !important;
}

/* ========== DROPDOWN (Fill in the Blanks) ========== */
.h5p-blanks select.h5p-text-input,
.h5p-blanks select.h5p-text-input:focus,
.h5p-blanks select.h5p-text-input:hover {
  border-color: #58B1AB !important;
  outline-color: #58B1AB !important;
  accent-color: #58B1AB !important;
}

.h5p-blanks select.h5p-text-input option:checked,
.h5p-blanks select.h5p-text-input option:hover,
.h5p-blanks select.h5p-text-input option:focus {
  background-color: #58B1AB !important;
  background: #58B1AB linear-gradient(#58B1AB, #58B1AB) !important;
  color: #2E3338 !important;
}

/* ========== COURSE PRESENTATION: contador em charcoal ========== */
.h5p-course-presentation .h5p-footer,
.h5p-course-presentation .h5p-footer *,
.h5p-course-presentation .progress-current,
.h5p-course-presentation .progress-last,
.h5p-course-presentation .progress-delimiter {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

/* ========== COURSE PRESENTATION: barra de progresso ========== */
.h5p-course-presentation .h5p-progressbar,
.h5p-course-presentation .h5p-progressbar-part,
.h5p-course-presentation .h5p-progressbar-part a {
  background-color: #BFE0DD !important;
}

.h5p-course-presentation .h5p-progressbar-part-selected,
.h5p-course-presentation .h5p-progressbar-part-selected a,
.h5p-course-presentation .h5p-progressbar-part[aria-selected="true"],
.h5p-course-presentation .h5p-progressbar-part[aria-selected="true"] a,
.h5p-course-presentation .h5p-progressbar-part-selected:hover,
.h5p-course-presentation .h5p-progressbar-part[aria-selected="true"]:hover {
  background-color: #58B1AB !important;
}

.h5p-course-presentation .h5p-progressbar-part:hover,
.h5p-course-presentation .h5p-progressbar-part:hover a,
.h5p-course-presentation .h5p-progressbar-part:focus-within,
.h5p-course-presentation .h5p-progressbar-part:focus-within a {
  background-color: #8CCBC6 !important;
}

.h5p-course-presentation .h5p-progressbar-part::before {
  background-color: #58B1AB !important;
}

.h5p-course-presentation .h5p-progressbar-part,
.h5p-course-presentation .h5p-progressbar-part a::after {
  border-color: #FFFFFF !important;
}

/* ========== INTERACTIVE BOOK ========== */

html body .h5p-interactive-book .h5p-interactive-book-status-progress,
html body .h5p-interactive-book .h5p-interactive-book-status-progress-number-wrapper,
html body .h5p-interactive-book .h5p-interactive-book-status-progress-number,
html body .h5p-interactive-book .h5p-interactive-book-status-progress-divider,
html body .h5p-interactive-book .h5p-interactive-book-status-progress * {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

html body .h5p-interactive-book .h5p-interactive-book-status-progress,
html body .h5p-interactive-book .h5p-interactive-book-status-progress-number-wrapper {
  background-color: #F5F5F5 !important;
}

html body .h5p-interactive-book .h5p-interactive-book-status-chapter,
html body .h5p-interactive-book .h5p-interactive-book-status-chapter * {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

.h5p-interactive-book .h5p-interactive-book-status-progressbar-front {
  background-color: #58B1AB !important;
}

.h5p-interactive-book .h5p-interactive-book-status-progressbar-back {
  background-color: #BFE0DD !important;
}

html body .h5p-interactive-book .h5p-interactive-book-status-menu,
html body .h5p-interactive-book .h5p-interactive-book-status-to-top,
html body .h5p-interactive-book .h5p-interactive-book-status-fullscreen,
html body .h5p-interactive-book a.icon-menu,
html body .h5p-interactive-book button.h5p-interactive-book-status-fullscreen {
  background-color: #F5F5F5 !important;
  color: #58B1AB !important;
}

html body .h5p-interactive-book .icon-menu::before,
html body .h5p-interactive-book .icon-up::before,
html body .h5p-interactive-book .icon-expand::before,
html body .h5p-interactive-book .icon-collapse::before,
html body .h5p-interactive-book .h5p-interactive-book-status-fullscreen::before {
  color: #58B1AB !important;
}

html body .h5p-interactive-book .h5p-interactive-book-status-menu svg path,
html body .h5p-interactive-book .h5p-interactive-book-status-to-top svg path,
html body .h5p-interactive-book .h5p-interactive-book-status-fullscreen svg path {
  fill: #58B1AB !important;
  stroke: none !important;
}

html body .h5p-interactive-book .h5p-interactive-book-navigation-chapter-button.h5p-interactive-book-navigation-current {
  background-color: #F5F5F5 !important;
}

html body .h5p-interactive-book .h5p-interactive-book-navigation-chapter-title-text,
html body .h5p-interactive-book .h5p-interactive-book-navigation-chapter-button,
html body .h5p-interactive-book .h5p-interactive-book-navigation-chapter-button .h5p-theme-label,
html body .h5p-interactive-book nav .h5p-theme-label {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

/* ========== DETALHES EM TURQUESA: barra de pontuação e bolinhas ========== */

html body .h5p-theme-progress-bar,
html body .h5p-theme-progress-bar-back,
html body [class*="progress-bar-back"],
html body [class*="score-bar-back"],
html body [class*="progressbar-back"] {
  background-color: #D5ECEA !important;
}

html body .h5p-theme-progress-bar-front,
html body .h5p-theme-progress-bar-fill,
html body [class*="progress-bar-front"],
html body [class*="score-bar-front"],
html body [class*="score-bar-fill"],
html body [class*="progressbar-front"] {
  background-color: #58B1AB !important;
}

html body .h5p-theme-star path,
html body [class*="star"] path,
html body [class*="star"] svg path,
html body svg[class*="star"] path {
  fill: #D5ECEA !important;
  stroke: #58B1AB !important;
}

html body .h5p-theme-dot,
html body .h5p-theme-pagination-dot,
html body [class*="pagination"] [class*="dot"],
html body [class*="dots"] > *,
html body [class*="bullet"] {
  border-color: #58B1AB !important;
}

html body .h5p-theme-dot.h5p-theme-active,
html body .h5p-theme-dot[aria-current="true"],
html body [class*="dot"][class*="active"],
html body [class*="dot"][class*="current"],
html body [class*="dot"][class*="selected"],
html body [class*="bullet"][class*="active"] {
  background-color: #58B1AB !important;
  border-color: #58B1AB !important;
}

html body [class*="dot"][class*="active"]::before,
html body [class*="dot"][class*="active"]::after,
html body [class*="dot"][class*="current"]::before,
html body [class*="dot"][class*="current"]::after {
  border-color: #58B1AB !important;
}

html body [class*="dots"] svg circle,
html body [class*="pagination"] svg circle {
  stroke: #58B1AB !important;
}

html body [class*="dots"] svg circle[class*="active"],
html body [class*="pagination"] svg circle[class*="active"] {
  fill: #58B1AB !important;
}

/* ========== BARRA DE PONTUAÇÃO (joubelui score bar) ========== */

/* Trilho: turquesa claro */
html body .h5p-joubelui-score-bar,
html body .h5p-joubelui-score-bar-visual {
  background-color: #D5ECEA !important;
}

/* Preenchimento: turquesa */
html body .h5p-joubelui-score-bar-progress,
html body .h5p-joubelui-score-bar-progress-fill,
html body .h5p-joubelui-score-bar-progress::before,
html body .h5p-joubelui-score-bar-progress::after {
  background-color: #58B1AB !important;
  background-image: none !important;
}

/* Estrela */
html body .h5p-joubelui-score-bar-star,
html body .h5p-joubelui-score-bar-star::before,
html body .h5p-joubelui-score-bar-star::after {
  color: #58B1AB !important;
  background-color: transparent !important;
}

html body .h5p-joubelui-score-bar-star svg path,
html body .h5p-joubelui-score-bar svg path {
  fill: #D5ECEA !important;
  stroke: #58B1AB !important;
}

/* Texto da pontuação: charcoal */
html body .h5p-joubelui-score-bar-label,
html body .h5p-joubelui-score-bar-label *,
html body .h5p-joubelui-score-bar-scores,
html body .h5p-joubelui-score-bar-scores *,
html body .h5p-joubelui-score-bar-score,
html body .h5p-joubelui-score-bar-max {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

/* ========== INTERACTIVE BOOK: tela de resumo ========== */

html body .h5p-interactive-book .h5p-theme-pattern,
html body .h5p-interactive-book .h5p-theme-pattern * {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

html body .h5p-interactive-book .h5p-theme-pattern svg path {
  fill: #2E3338 !important;
  stroke: none !important;
}

html body .h5p-interactive-book button.h5p-theme-show-results,
html body .h5p-interactive-book button.h5p-theme-submit,
html body .h5p-interactive-book button.h5p-theme-restart,
html body .h5p-interactive-book [class*="summary"] button,
html body .h5p-interactive-book .h5p-theme-secondary-cta {
  background-color: #EFD35C !important;
  border: 2px solid #EFD35C !important;
  color: #2E3338 !important;
}

html body .h5p-interactive-book .icon-chapter-done::before {
  color: #58B1AB !important;
}

html body .h5p-interactive-book .icon-chapter-blank::before,
html body .h5p-interactive-book .icon-chapter-started::before {
  color: #58B1AB !important;
  border-color: #58B1AB !important;
}

/* ========== BANNER DO RESUMO: off-white ========== */

html body .h5p-interactive-book .h5p-theme-pattern,
html body .h5p-interactive-book .h5p-theme-pattern::before,
html body .h5p-interactive-book .h5p-theme-pattern::after,
html body .h5p-interactive-book .h5p-theme-pattern > *,
html body .h5p-interactive-book .h5p-theme-pattern > *::before,
html body .h5p-interactive-book .h5p-theme-pattern > *::after,
html body .h5p-interactive-book [class*="theme-pattern"],
html body .h5p-interactive-book [class*="theme-pattern"]::before,
html body .h5p-interactive-book [class*="theme-pattern"]::after {
  background-image: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

html body .h5p-interactive-book .h5p-theme-pattern,
html body .h5p-interactive-book .h5p-theme-pattern *:not(button):not(p):not(span):not(svg):not(path),
html body .h5p-interactive-book [class*="status-wrapper"],
html body .h5p-interactive-book [class*="status-header"],
html body .h5p-interactive-book [class*="summary-header"],
html body .h5p-interactive-book [class*="status"][class*="top"],
html body .h5p-interactive-book [class*="theme-bg"],
html body .h5p-interactive-book [class*="theme-background"] {
  background: #F5F5F5 !important;
  background-color: #F5F5F5 !important;
  background-image: none !important;
  opacity: 1 !important;
}

html body .h5p-interactive-book p.h5p-theme-progress,
html body .h5p-interactive-book .h5p-theme-progress,
html body .h5p-interactive-book .h5p-interactive-book-status-fullscreen {
  background: #FFFFFF !important;
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

html body .h5p-interactive-book .h5p-theme-progress *,
html body .h5p-interactive-book .h5p-theme-progress span {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
  background: transparent !important;
}

html body .h5p-interactive-book .h5p-theme-pattern .h5p-theme-label,
html body .h5p-interactive-book .h5p-theme-pattern p,
html body .h5p-interactive-book .h5p-theme-pattern h1,
html body .h5p-interactive-book .h5p-theme-pattern h2,
html body .h5p-interactive-book .h5p-theme-pattern button {
  color: #2E3338 !important;
  -webkit-text-fill-color: #2E3338 !important;
}

/* ========== GRÁFICOS CIRCULARES (canvas): arco roxo -> charcoal ========== */
html body .h5p-interactive-book canvas {
  filter: grayscale(1) brightness(0.8) contrast(1.1) !important;
}

/* ========== BARRA DE PONTUAÇÃO: sem estrela ========== */
html body .h5p-joubelui-score-bar-star,
html body .h5p-theme .h5p-joubelui-score-bar-star,
html body .h5p-joubelui-score-bar-star svg,
html body .h5p-joubelui-score-bar-star-fill,
html body .h5p-joubelui-score-bar-star-fill-full-score {
  display: none !important;
}