
:root{
  --ld-color-system-white:           var(--ast-global-color-5);
  --ld-color-system-light-1:         var(--ast-global-color-6);
  --ld-color-system-border:          var(--ast-global-color-7);
  --ld-color-system-dark:            var(--ast-global-color-2);
  --ld-color-system-text-dark:       var(--ast-global-color-2);
  --ld-color-brand-primary:          var(--etjp-brand-ink);
  --ld-color-semantic-success-light: var(--etjp-success-bg);
  --ld-color-semantic-error-light:   var(--etjp-danger-bg);
  --global--color-primary:           var(--ast-global-color-3);
}

/* ==========================================================================
   Overrides for both light and dark mode
   ========================================================================== */

/* --- #235af3 as a FILL  →  --etjp-brand-fill --------------------------- */
.learndash-wrapper .ld-table-list .ld-table-list-header,
.learndash-wrapper .ld-status-complete,
.learndash-wrapper .ld-certificate-icon,
.learndash-wrapper .ld-breadcrumbs .ld-status.ld-status-complete,
.learndash-wrapper .ld-breadcrumbs .ld-status.ld-status-progress,
.learndash-wrapper .ld-course-status .ld-status.ld-status-complete,
.learndash-wrapper .ld-course-status .ld-status.ld-status-progress,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger .ld-icon,
.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items a,
.learndash-wrapper .ld-alert-success .ld-alert-icon,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_box li.wpProQuiz_reviewQuestionTarget,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit .wpProQuiz_progress,
.learndash-wrapper #quiz_continue_link,
.learndash-wrapper #quiz_continue_link:hover,
.learndash-wrapper .wpProQuiz_content a#quiz_continue_link,
.ld-tooltip [role=tooltip],
#learndash-tooltips .ld-tooltip,
#learndash-tooltips .ld-tooltip:after,
#wpProQuiz_user_content table.wp-list-table thead th,
.learndash-wrapper .ld-login-modal .ld-login-modal-register,
.learndash-wrapper .ld-login-modal input[type=submit]{
  background-color: var(--etjp-brand-fill) !important;
  color: var(--etjp-on-brand) !important;
}
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading a,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-home-link,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-expand-button,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-focus-mode-course-heading-wrapper,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-focus-mode-course-heading-wrapper a,
.learndash-wrapper .ld-table-list .ld-table-list-header,
.learndash-wrapper a.ld-status-complete:link,
.learndash-wrapper a.ld-status-complete:visited,
.learndash-wrapper a.ld-status-complete:focus,
.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items a{
  color: var(--etjp-on-brand) !important;
}

/* the buttons — LD paints these in a dozen places, all the same pair */
.learndash-wrapper .ld-button,
/*.learndash-wrapper .ld-expand-button,*/
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button2,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_certificate a.btn-blue,
.learndash-wrapper #learndash_mark_complete_button,
.learndash-wrapper .learndash_mark_complete_button,
.learndash-wrapper .ld-focus-comments .form-submit #submit,
.learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields .ld-item-search-submit .ld-button,
.learndash-wrapper .wpProQuiz_content form[name=uploadEssay] input[type=submit],
#wpProQuiz_overlay_close,
.ld-exam-content button,
.ld-exam-content .ld-exam-result-button{
  background-color: var(--etjp-brand-fill) !important;
  color: var(--etjp-on-brand) !important;
}
.learndash-wrapper .ld-button:hover,
/*.learndash-wrapper .ld-expand-button:hover,*/
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button:hover,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button2:hover,
.learndash-wrapper #learndash_mark_complete_button:hover,
.learndash-wrapper .learndash_mark_complete_button:hover,
.learndash-wrapper .ld-focus-comments .form-submit #submit:hover,
#wpProQuiz_overlay_close:hover{
  background-color: var(--etjp-brand-fill-hover) !important;
}
/* LD marks the disabled state !important, so this has to match */
body .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-button[disabled],
body .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-expand-button[disabled],
body .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .wpProQuiz_content .wpProQuiz_button[disabled],
body .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .wpProQuiz_content .wpProQuiz_button2[disabled],
body .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-focus-comments .form-submit #submit[disabled],
body #wpProQuiz_overlay_close[disabled]{
  background-color: var(--etjp-disabled-bg) !important;
  color: var(--etjp-disabled-text) !important;
  outline-color: var(--etjp-disabled-text) !important;
}
body .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) #learndash_mark_complete_button:disabled,
body .learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .learndash_mark_complete_button:disabled{
  background: var(--etjp-disabled-bg) !important;
  color: var(--etjp-disabled-text) !important;
}

/* --- #235af3 as INK (links, icons, active states)  →  --etjp-brand-ink -- */
.learndash-wrapper .ld-status-icon.ld-quiz-complete,
.learndash-wrapper .ld-item-icon.ld-quiz-complete,
.learndash-wrapper .ld-score.score-high,
.learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats .ld-progress-percentage,
.learndash-wrapper .ld-item-list .ld-section-heading .ld-search-prompt:hover,
.learndash-wrapper .ld-item-list .ld-item-list-item a.ld-item-name:hover,
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-details .ld-certificate-link,
.learndash-wrapper .ld-table-list a.ld-table-list-item-preview:hover,
.learndash-wrapper .ld-table-list .ld-table-list-item .ld-table-list-title a:hover,
.learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-title,
.learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-item-preview-heading,
.learndash-wrapper .ld-course-navigation .ld-lesson-item-preview a.ld-lesson-item-preview-heading:hover,
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active,
.learndash-wrapper .ld-pagination .ld-pages i:hover,
.learndash-wrapper #ld-profile .ld-quiz-list .user_statistic:hover,
.learndash-wrapper .ld-status-alert,
.learndash-wrapper .ld-status-unlocked,
.learndash-wrapper .ld-login-modal .ld-login-modal-login .ld-modal-heading,
.learndash-wrapper .ld-focus .ld-focus-header #sfwd-mark-complete:after,
.learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete:after,
.learndash-wrapper .ld-focus .ld-focus-header #sfwd-mark-complete #learndash_mark_complete_button,
.learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button,
.jq-dropdown-menu button[type=submit],
.jq-dropdown-menu input[type=submit],
.jq-dropdown-menu input[type=button]{
  color: var(--etjp-brand-ink) !important;
}
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active:after,
.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage,
.learndash-wrapper .course_progress .sending_progress_bar,
.ld-exam-content .ld-exam-header .ld-exam-progress-bar-fill{
  background: var(--etjp-brand-ink) !important;
}
.learndash-wrapper .ld-item-list .ld-item-list-item.ld-is-next,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label.is-selected,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label:focus-within,
.learndash-wrapper .ld-focus-comment.bypostauthor>.ld-comment-wrapper>.ld-comment-avatar img,
.learndash-wrapper .ld-focus-comment.role-administrator>.ld-comment-wrapper>.ld-comment-avatar img,
.ld-exam-content .ld-exam-questions .ld-exam-question-answers .ld-exam-question-answer-student-selected{
  border-color: var(--etjp-brand-ink) !important;
}
.learndash-wrapper .ld-status-alert,
.learndash-wrapper .ld-status-unlocked,
.learndash-wrapper .ld-focus-comment.bypostauthor>.ld-comment-wrapper,
.learndash-wrapper .ld-focus-comment.role-administrator>.ld-comment-wrapper,
.learndash-wrapper .ld-focus-comment.role-group_leader>.ld-comment-wrapper{
  background-color: var(--etjp-brand-wash) !important;
}
/* the in-progress ring: two brand sides, two border sides */
.learndash-wrapper .ld-status-in-progress,
.learndash-wrapper .ld-course-navigation .ld-status-icon.ld-status-in-progress{
  border-color: var(--etjp-brand-ink) var(--ast-global-color-7) var(--ast-global-color-7) var(--etjp-brand-ink) !important;
}
.learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-title .ld-status-incomplete,
.learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-item-preview-heading .ld-status-incomplete{
  border-color: var(--etjp-brand-ink) !important;
}
/* LD's "success" alert is actually painted blue — keep it brand-consistent */
.learndash-wrapper .ld-alert-success{
  background-color: var(--etjp-brand-wash) !important;
  border-color: var(--etjp-brand-ink) !important;
}
.learndash-wrapper .ld-alert-success .ld-button{
  background-color: var(--etjp-brand-fill) !important;
  color: var(--etjp-on-brand) !important;
}
/* focus rings */
.learndash-wrapper .ld-button:focus,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button:focus,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button2:focus,
.learndash-wrapper .ld-focus .ld-focus-header .ld-mobile-nav .ld-trigger-mobile-nav:focus,
.learndash-wrapper .ld-item-list .ld-item-search .ld-closer:focus,
#wpProQuiz_overlay_close:focus{
  outline-color: var(--etjp-brand-ink) !important;
}

body .learndash-wrapper .ld-expand-button:focus,
body .learndash-wrapper .ld-expand-button:focus-visible{
  outline: 2px solid var(--etjp-brand-ink);
  outline-offset: 2px;
}
 
/* ==========================================================================
   Buttons that are meant to have NO fill
   ========================================================================== */
body .learndash-wrapper .ld-button.ld-button-transparent,
body .learndash-wrapper .ld-button.ld-button-alternate,
body .learndash-wrapper .ld-expand-button,
body .learndash-wrapper .ld-expand-button.ld-button-alternate,
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button,
body .learndash-wrapper .ld-focus .ld-focus-header #sfwd-mark-complete #learndash_mark_complete_button{
  background-color: transparent !important;
  color: var(--etjp-brand-ink) !important;
}
/* their inner label spans, so nothing inherits the old on-brand colour */
body .learndash-wrapper .ld-button.ld-button-transparent .ld-text,
body .learndash-wrapper .ld-button.ld-button-alternate .ld-text,
body .learndash-wrapper .ld-expand-button .ld-text,
body .learndash-wrapper .ld-expand-button .ld-expand-text{
  color: var(--etjp-brand-ink) !important;
}
/* …but the little arrow chip inside them IS filled */
body .learndash-wrapper .ld-expand-button .ld-icon.ld-primary-background,
body .learndash-wrapper .ld-button.ld-button-alternate .ld-icon{
  background-color: var(--etjp-brand-fill) !important;
  color: var(--etjp-on-brand) !important;
}
/* hover keeps them flat rather than filling in */
body .learndash-wrapper .ld-button.ld-button-transparent:hover,
body .learndash-wrapper .ld-button.ld-button-alternate:hover,
body .learndash-wrapper .ld-expand-button:hover{
  background-color: transparent !important;
  color: var(--etjp-brand-ink-hover) !important;
}

body .learndash-wrapper .ld-expand-button.ld-primary-background{
  background-color: var(--etjp-brand-fill) !important;
  color: var(--etjp-on-brand) !important;
}
body .learndash-wrapper .ld-expand-button.ld-primary-background .ld-text,
body .learndash-wrapper .ld-expand-button.ld-primary-background .ld-icon{
  background-color: transparent !important;
  color: var(--etjp-on-brand) !important;
}
body .learndash-wrapper .ld-expand-button.ld-primary-background:hover{
  background-color: var(--etjp-brand-fill-hover) !important;
}

/*  --- The .ld-item-name panel --- */
   
body .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name,
body .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview,
body .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-details{
  background: transparent;
}

/* ==========================================================================
   Course Grid add-on
   ========================================================================== */

/* --- the card ---------------------------------------------------------- */
body .ld-course-list-items .ld_course_grid .thumbnail.course{
  background-color: var(--ast-global-color-5);
  border-color: var(--ast-global-color-7);
}
body .ld-course-list-items .ld_course_grid a.thumbnail:hover,
body .ld-course-list-items .ld_course_grid a.thumbnail:focus{
  border-color: var(--etjp-brand-ink);
}

/* --- caption ----------------------------------------------------------- */
body .ld-course-list-items .ld_course_grid .thumbnail .caption{
  color: var(--ast-global-color-4);
}
body .ld-course-list-items .ld_course_grid .thumbnail .caption .entry-title{
  color: var(--ast-global-color-3);
}

/* --- ribbons ----------------------------------------------------------- */
/* the :before is a folded-corner shadow, so it darkens toward black in both
   themes rather than following the palette */
body .ld-course-list-items .ld_course_grid .thumbnail.course .ribbon{
  background: var(--etjp-success);
  color: var(--etjp-on-brand);
}
body .ld-course-list-items .ld_course_grid .thumbnail.course .ribbon:before{
  border-top-color:   color-mix(in srgb, var(--etjp-success) 65%, #000);
  border-right-color: color-mix(in srgb, var(--etjp-success) 65%, #000);
}
body .ld-course-list-items .ld_course_grid .thumbnail.course .ribbon.enrolled{
  background: var(--etjp-brand-fill);
  color: var(--etjp-on-brand);
}
body .ld-course-list-items .ld_course_grid .thumbnail.course .ribbon.enrolled:before{
  border-top-color:   color-mix(in srgb, var(--etjp-brand-fill) 65%, #000);
  border-right-color: color-mix(in srgb, var(--etjp-brand-fill) 65%, #000);
}

/* --- the Continue Study button ----------------------------------------- */
body .ld-course-list-items .ld_course_grid .btn-primary,
body .ld-course-list-items .ld_course_grid .thumbnail.course a.btn-primary{
  background-color: var(--etjp-brand-fill);
  border-color: var(--etjp-brand-fill);
  color: var(--etjp-on-brand);
}
body .ld-course-list-items .ld_course_grid .btn-primary:hover,
body .ld-course-list-items .ld_course_grid .btn-primary:focus,
body .ld-course-list-items .ld_course_grid .btn-primary:active,
body .ld-course-list-items .ld_course_grid .btn-primary.active,
body .ld-course-list-items .ld_course_grid .thumbnail.course a.btn-primary:hover{
  background-color: var(--etjp-brand-fill-hover);
  border-color: var(--etjp-brand-fill-hover);
  color: var(--etjp-on-brand);
}
body .ld-course-list-items .ld_course_grid .btn:focus{
  outline-color: var(--etjp-brand-ink);
}

/* --- video embed placeholder ------------------------------------------- */
body .ld-course-list-items .ld_course_grid .ld_course_grid_video_embed{
  background-color: var(--ast-global-color-6);
}

/* ==========================================================================
   DARK MODE ONLY
   Grouped by the LearnDash literal being replaced, not by component
   ========================================================================== */


/* --- #fff / #ffffff used as a SURFACE  →  color-5 ----------------------- */
body.astra-dark-mode-enable.ld-in-focus-mode,
body.astra-dark-mode-enable.ld-in-focus-mode .learndash-wrapper,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-sidebar,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action #learndash_timer,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .learndash_timer,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation .ld-lesson-item,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation .ld-topic-list.ld-table-list:before,
.astra-dark-mode-enable .learndash-wrapper .ld-focus.ld-focus-position-right .ld-focus-sidebar .ld-course-navigation .ld-topic-list.ld-table-list:before,
body .astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-expanded:before,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields input,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields select,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item-expanded .ld-table-list:before,
.astra-dark-mode-enable .learndash-wrapper .ld-status-incomplete.ld-status-icon,
.astra-dark-mode-enable .learndash-wrapper .ld-status-in-progress,
.astra-dark-mode-enable .learndash-wrapper .ld-file-upload .ld-file-upload-form .ld-file-input+label,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit:before,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content form[name=uploadEssay] input[type=file],
.astra-dark-mode-enable .learndash-wrapper .ld-quiz-result-failed .wpProQuiz_mextrixTr .wpProQuiz_sortStringItem,
.astra-dark-mode-enable .learndash-wrapper .ld-quiz-result-passed .wpProQuiz_mextrixTr .wpProQuiz_sortStringItem,
.astra-dark-mode-enable .learndash-wrapper .ld-quiz-result-failed [data-type=free_answer] .wpProQuiz_questionListItem input[type=text],
.astra-dark-mode-enable .learndash-wrapper .ld-quiz-result-passed [data-type=free_answer] .wpProQuiz_questionListItem input[type=text],
.astra-dark-mode-enable .learndash-wrapper .ld-modal,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-modal-login{
  background-color: var(--ast-global-color-5);
}

/* the focus-mode sidebar caret is drawn with a border, not a background */
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-lesson-item-expanded:before{
  border-top-color: var(--ast-global-color-5);
}

@media (max-width: 768px){
  .astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-content-actions,
  .astra-dark-mode-enable .learndash-wrapper .ld-focus.ld-focus-position-right .ld-focus-header .ld-content-actions{
    background: var(--ast-global-color-5);
    border-top-color: var(--ast-global-color-7);
  }
}


/* --- #f0f3f6 (LD's "light surface")  →  color-6 ------------------------ */
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation .ld-topic-list.ld-table-list,
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-lesson-item-expanded,
.astra-dark-mode-enable .learndash-wrapper .ld-lesson-status,
.astra-dark-mode-enable .learndash-wrapper .ld-topic-status,
.astra-dark-mode-enable .learndash-wrapper .ld-breadcrumbs,
.astra-dark-mode-enable .learndash-wrapper .ld-alert,
.astra-dark-mode-enable .learndash-wrapper .course_progress,
.astra-dark-mode-enable .learndash-wrapper .ld-file-upload,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-expanded .ld-progress,
.astra-dark-mode-enable .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled,
.astra-dark-mode-enable .learndash-wrapper .ld-course-status.ld-course-status-enrolled,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_box,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_response,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_tipp>div,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_tipp>div:before,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_sortStringItem,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_loadQuiz,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_lock,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_prerequisite,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_startOnlyRegisteredUser,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content form[name=uploadEssay],
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_graded_points,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_points,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-field,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-password-field,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal input[type=email],
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal input[type=password],
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal input[type=text],
.astra-dark-mode-enable #wpProQuiz_user_content table.wp-list-table tbody tr.categoryTr th,
.astra-dark-mode-enable #wpProQuiz_user_content table.wp-list-table tfoot tr th,
.astra-dark-mode-enable .ld-exam-content .ld-exam-result-message,
.astra-dark-mode-enable .ld-exam-content .ld-exam-questions .ld-exam-question-correct-message,
.astra-dark-mode-enable .ld-exam-content .ld-exam-questions .ld-exam-question-incorrect-message{
  background-color: var(--ast-global-color-6);
}

/* #f0f3f6 used as a RULE rather than a fill */
.astra-dark-mode-enable .learndash-wrapper .ld-quiz-actions,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_resultTable,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary,
.astra-dark-mode-enable .learndash-wrapper .ld-user-status.ld-is-widget .ld-item-list .ld-item-list-item,
.astra-dark-mode-enable #wpProQuiz_user_content h2{
  border-color: var(--ast-global-color-7);
}
.astra-dark-mode-enable #wpProQuiz_user_content table.wp-list-table tbody tr th:first-child{
  box-shadow: inset 3px 0 0 0 var(--ast-global-color-6);
}
.astra-dark-mode-enable #wpProQuiz_user_content table.wp-list-table tbody tr th:last-child{
  box-shadow: inset -3px 0 0 0 var(--ast-global-color-6);
}
.astra-dark-mode-enable #wpProQuiz_user_content table.wp-list-table tbody tr th:only-child{
  box-shadow: inset -3px 0 0 0 var(--ast-global-color-6), inset 3px 0 0 0 var(--ast-global-color-6);
}


/* --- #e2e7ed / #ccd2d9 / #ddd / #bec5cb / #efefef (borders)  →  color-7   */
.astra-dark-mode-enable .learndash-wrapper .ld-content-actions,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-sidebar,
.astra-dark-mode-enable .learndash-wrapper .ld-focus.ld-focus-position-right .ld-focus-sidebar,
.astra-dark-mode-enable .learndash-wrapper .ld-focus.ld-focus-position-rtl-left .ld-focus-sidebar,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-progress,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation .ld-lesson-item,
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-course-navigation-heading,
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-lesson-item,
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-status-icon.ld-status-incomplete,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields input,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields select,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-items,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list.ld-no-pagination,
.astra-dark-mode-enable .learndash-wrapper .ld-status-incomplete.ld-status-icon,
.astra-dark-mode-enable .learndash-wrapper .ld-profile-summary .ld-profile-card .ld-profile-avatar,
.astra-dark-mode-enable .learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat,
.astra-dark-mode-enable .learndash-wrapper .ld-alert,
.astra-dark-mode-enable .learndash-wrapper .ld-focus-comments__heading,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_loadQuiz,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_lock,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_prerequisite,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_startOnlyRegisteredUser,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_response,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) .wpProQuiz_sortable:not(.ld-sortable__item-handle),
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) textarea.wpProQuiz_questionEssay,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) .wpProQuiz_cloze input,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem>table,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem>table td:first-child,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList[data-type=assessment_answer] .wpProQuiz_questionListItem,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_graded_points,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_points,
.astra-dark-mode-enable .ld-exam-content .ld-exam-result-message,
.astra-dark-mode-enable .ld-exam-content .ld-exam-questions .ld-exam-question-answers .ld-exam-question-answer,
.astra-dark-mode-enable .ld-exam-content .ld-exam-questions .ld-exam-question-correct-message,
.astra-dark-mode-enable .ld-exam-content .ld-exam-questions .ld-exam-question-incorrect-message{
  border-color: var(--ast-global-color-7);
}

/* #e2e7ed used as a FILL */
.astra-dark-mode-enable .learndash-wrapper .ld-status,
.astra-dark-mode-enable .learndash-wrapper .ld-alert .ld-alert-icon,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar,
.astra-dark-mode-enable .learndash-wrapper.learndash-widget .ld-progress .ld-progress-bar,
.astra-dark-mode-enable .learndash-wrapper .ld-progress .ld-progress-bar,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-section-heading .ld-item-list-actions .ld-progress .ld-progress-bar,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-wrapper,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-wrapper:before,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item-expanded .ld-table-list .ld-table-list-items,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-footer,
.astra-dark-mode-enable .learndash-wrapper .ld-tabs .ld-tabs-navigation:after,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-modal-form .ld-login-modal-branding:before,
.astra-dark-mode-enable .learndash-wrapper .ld-focus-comment .ld-comment-reply a.comment-reply-link,
.astra-dark-mode-enable .learndash-wrapper .ld-focus-comments #commentform textarea#comment,
.astra-dark-mode-enable .ld-exam-content .ld-exam-header .ld-exam-progress-bar{
  background-color: var(--ast-global-color-7);
}
.astra-dark-mode-enable .learndash-wrapper .ld-focus-comments #commentform textarea#comment{
  border-color: var(--ast-global-color-7);
}
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item .ld-sep,
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-sep{
  color: var(--ast-global-color-7);
}
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item-expanded .ld-table-list .ld-table-list-item{
  border-bottom-color: var(--etjp-ld-hairline);
}


/* --- #617175 / #73738c / #7b8990 / #666 (subtle text)  →  color-8 ------- */
.astra-dark-mode-enable .learndash-wrapper .ld-content-actions #learndash_timer,
.astra-dark-mode-enable .learndash-wrapper .ld-content-actions .learndash_timer,
.astra-dark-mode-enable .learndash-wrapper .ld-text-content,
.astra-dark-mode-enable .learndash-wrapper .ld-icon-delete,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-section-heading .ld-search-prompt,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-title .ld-item-components,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields .ld-item-search-name .ld-reset-button,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item .ld-comments-column,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item .ld-comments-column a,
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-lesson-item-preview .ld-expand-button,
.astra-dark-mode-enable .learndash-wrapper .ld-course-status .ld-course-status-mode-subscribe .ld-text,
.astra-dark-mode-enable .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-price,
.astra-dark-mode-enable .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-label,
.astra-dark-mode-enable .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled .ld-course-status-action .ld-text,
.astra-dark-mode-enable .learndash-wrapper .ld-file-upload .ld-file-upload-heading,
.astra-dark-mode-enable .learndash-wrapper .ld-alert,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-text,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header #sfwd-mark-complete:disabled:after,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete:disabled:after,
.astra-dark-mode-enable .learndash-wrapper .ld-profile-summary .ld-profile-card a.ld-profile-edit-link,
.astra-dark-mode-enable .learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat span,
.astra-dark-mode-enable .learndash-wrapper #ld-profile button.ld-icon-search.ld-icon,
.astra-dark-mode-enable .learndash-wrapper .ld-modal .ld-modal-closer,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-modal-login .ld-modal-text,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-modal-form label,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-modal-form .login-username:before,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-modal-form .login-password:before,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-login-field,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal input[type=text],
.astra-dark-mode-enable .learndash-wrapper .ld-focus-comment .ld-comment-avatar .ld-comment-avatar-author a.ld-comment-permalink,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_quiz_time,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_loadQuiz,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_lock,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_prerequisite,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_startOnlyRegisteredUser,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_response,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_graded_points,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_points,
.astra-dark-mode-enable .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab,
.astra-dark-mode-enable .ld-exam-content .ld-exam-result-message,
.astra-dark-mode-enable .ld-exam-content .ld-exam-questions .ld-exam-question-correct-message,
.astra-dark-mode-enable .ld-exam-content .ld-exam-questions .ld-exam-question-incorrect-message{
  color: var(--ast-global-color-8);
}


/* --- #333 / #495255 / #4a4a68 / #1e1e1e / #000 (body + heading text) ---- */
.astra-dark-mode-enable .learndash-wrapper .ld-home-link,
.astra-dark-mode-enable .learndash-wrapper .ld-icon-delete:hover,
.astra-dark-mode-enable .learndash-wrapper .ld-status,
.astra-dark-mode-enable .learndash-wrapper .ld-item-icon.ld-quiz-incomplete,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview>.ld-tooltip,
.astra-dark-mode-enable .learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-fields label,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-header a,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item-preview a,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list a.ld-table-list-item-preview,
.astra-dark-mode-enable .learndash-wrapper .ld-table-list .ld-table-list-item .ld-table-list-title a,
.astra-dark-mode-enable .learndash-wrapper .ld-course-navigation .ld-lesson-item-preview a.ld-lesson-item-preview-heading,
.astra-dark-mode-enable .learndash-wrapper .ld-file-upload .ld-file-upload-form .ld-file-input+label span,
.astra-dark-mode-enable .learndash-wrapper .ld-profile-summary .ld-profile-card a.ld-profile-edit-link:hover,
.astra-dark-mode-enable .learndash-wrapper #ld-profile button.ld-icon-search.ld-icon:hover,
.astra-dark-mode-enable .learndash-wrapper #ld-profile button.ld-icon-search.ld-icon.ld-expanded,
.astra-dark-mode-enable .learndash-wrapper .ld-alert-certificate.ld-alert-success,
.astra-dark-mode-enable .learndash-wrapper .ld-alert--step-completed.ld-alert-success,
.astra-dark-mode-enable .learndash-wrapper .ld-alert-success,
.astra-dark-mode-enable .learndash-wrapper .ld-alert .ld-alert-content a,
.astra-dark-mode-enable .learndash-wrapper .ld-alert .ld-text a,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-incomplete:after,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header #sfwd-mark-complete .learndash_mark_incomplete_button,
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_incomplete_button,
.astra-dark-mode-enable .learndash-wrapper .ld-login-modal .ld-forgot-password-link,
.astra-dark-mode-enable .learndash-wrapper .ld-focus-comment .ld-comment-avatar .ld-comment-avatar-author .ld-comment-author-name,
.astra-dark-mode-enable .learndash-wrapper .ld-focus-comment .ld-comment-reply a.comment-reply-link,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_time_limit .time,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_points--message,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li,
.astra-dark-mode-enable .ld-sortable__item--sort_answer .ld-sortable__item-text,
.astra-dark-mode-enable .learndash-pager,
.astra-dark-mode-enable .learndash-pager a,
.astra-dark-mode-enable .learndash-wrapper .ld-pagination,
.astra-dark-mode-enable .learndash-wrapper .ld-pagination .ld-pages i,
.astra-dark-mode-enable .learndash-wrapper .ld-pagination .ld-pages a,
.astra-dark-mode-enable .learndash-wrapper .ld-pagination .ld-pages a:hover{
  color: var(--ast-global-color-3);
}
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-mobile-nav span{
  background-color: var(--ast-global-color-3);
}
.astra-dark-mode-enable .learndash-pager,
.astra-dark-mode-enable .learndash-wrapper .ld-pagination .ld-pages{
  background-color: var(--ast-global-color-6);
}


/* --- correct / incorrect  ------ */
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerCorrect>table td,
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList[data-type=cloze_answer] .wpProQuiz_questionListItem .wpProQuiz_cloze.wpProQuiz_answerCorrect input{
  background-color: var(--etjp-correct-bg);
  border-color: var(--etjp-correct-line);
  color: var(--etjp-correct-fg);
}
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item).wpProQuiz_answerCorrect .wpProQuiz_sortable{
  background-color: var(--etjp-correct-bg);
  color: var(--etjp-correct-fg);
  border-color: var(--etjp-correct-line);
}
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerCorrect>table,
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item).wpProQuiz_answerCorrectIncomplete .wpProQuiz_sortable,
body .ld-exam-content .ld-exam-questions .ld-exam-question-answers .ld-exam-question-answer-correct{
  border-color: var(--etjp-correct-line);
}
body .learndash-wrapper .ld-quiz-result-failed table .wpProQuiz_mextrixTr td:first-child,
body .learndash-wrapper .ld-quiz-result-passed table .wpProQuiz_mextrixTr td:first-child{
  border-right-color: color-mix(in srgb, var(--etjp-correct-line) 40%, transparent);
}

body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerIncorrect>table td,
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList[data-type=cloze_answer] .wpProQuiz_questionListItem .wpProQuiz_cloze.wpProQuiz_answerIncorrect input{
  background-color: var(--etjp-wrong-bg);
  border-color: var(--etjp-wrong-line);
  color: var(--etjp-wrong-fg);
}
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerIncorrect>table,
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item).wpProQuiz_answerIncorrect .wpProQuiz_sortable,
body .ld-exam-content .ld-exam-questions .ld-exam-question-answers .ld-exam-question-answer-incorrect{
    border-color: var(--etjp-wrong-line);
}
body .learndash-wrapper .ld-score.score-low,
body .learndash-wrapper .ld-item-icon.quiz-failure{
  color: var(--etjp-wrong-line);
}
body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item).wpProQuiz_answerCorrectIncomplete label{
  background-color: var(--ast-global-color-6);
  border-color: var(--ast-global-color-8);
}

/* quiz review legend + question buttons (these use the vars from section 1) */
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li:hover,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li:hover{
  background-color: var(--ast-global-color-7);
  border-color: var(--ast-global-color-7);
  color: var(--ast-global-color-2);
}
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionTarget,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionTarget,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewLegend .learndash-quiz-review-legend-item-current .wpProQuiz_reviewQuestion_Target{
  background-color: var(--etjp-brand-fill);
  border-color: var(--etjp-brand-fill);
  color: var(--etjp-on-brand);
}
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolved,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolved{
  background-color: var(--etjp-brand-wash);
  border-color: var(--etjp-brand-ink);
  color: var(--etjp-brand-ink);
}
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedCorrect:before,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedCorrect:before{
  color: var(--etjp-success);
}
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedIncorrect:before,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedIncorrect:before{
  color: var(--etjp-danger);
}
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedCorrect:hover,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedCorrect:hover{
  background-color: var(--etjp-success-bg-strong);
  border-color: var(--etjp-success);
  color: var(--ast-global-color-2);
}
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedIncorrect:hover,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionSolvedIncorrect:hover{
  background-color: var(--etjp-danger-bg-strong);
  border-color: var(--etjp-danger);
  color: var(--ast-global-color-2);
}
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionReview:before,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewSummary .wpProQuiz_reviewQuestion li.wpProQuiz_reviewQuestionReview:before,
.astra-dark-mode-enable .learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv .wpProQuiz_reviewLegend .learndash-quiz-review-legend-item-review .wpProQuiz_reviewColor_Review{
  background-color: var(--etjp-warning);
}


/* --- yellow / warning  →  --etjp-warning ------------------------------- */
.astra-dark-mode-enable .learndash-wrapper .ld-status-waiting,
.astra-dark-mode-enable .learndash-wrapper .ld-alert-warning .ld-alert-icon,
.astra-dark-mode-enable .learndash-wrapper .ld-alert-warning .ld-button{
  background-color: var(--etjp-warning);
  color: var(--etjp-on-warning);
}
.astra-dark-mode-enable .learndash-wrapper .ld-alert-warning{
  background-color: var(--etjp-warning-bg);
  border-color: var(--etjp-warning);
  color: var(--ast-global-color-3);
}
.astra-dark-mode-enable .learndash-wrapper .ld-alert-warning .ld-button:focus{
  outline-color: var(--etjp-warning);
}


/* --- the alpha values ------------------------------------------------- */
.astra-dark-mode-enable .ld-loading:after,
.astra-dark-mode-enable .learndash-wrapper .ld-loading:after{
  background: color-mix(in srgb, var(--ast-global-color-5) 55%, transparent);
}
.astra-dark-mode-enable .ld-loading:before,
.astra-dark-mode-enable .learndash-wrapper .ld-loading:before{
  border-color: color-mix(in srgb, var(--ast-global-color-8) 45%, transparent);
  border-top-color: var(--etjp-brand-ink);
}
.astra-dark-mode-enable .ld-tooltip [role=tooltip],
.astra-dark-mode-enable #learndash-tooltips .ld-tooltip{
  box-shadow: 0 -1px 0 2px color-mix(in srgb, var(--ast-global-color-5) 75%, transparent);
}
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items a{
  border-bottom-color: var(--etjp-ld-hairline);
}
.astra-dark-mode-enable .learndash-wrapper .ld-modal{
  box-shadow: -3px -3px 20px var(--etjp-ld-shadow);
}
.astra-dark-mode-enable .learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items:before{
  border-bottom-color: var(--etjp-brand-fill);
}


/* --- form controls LearnDash leaves to the browser --------------------- */
.astra-dark-mode-enable .learndash-wrapper,
.astra-dark-mode-enable .ld-exam-content{
  color-scheme: dark;
}


/* ==========================================================================
   LearnDash's "primary color" block
   ========================================================================== */
body .learndash-wrapper .ld-breadcrumbs a,
body .learndash-wrapper .ld-lesson-item.ld-is-current-lesson .ld-lesson-item-preview-heading,
body .learndash-wrapper .ld-lesson-item.ld-is-current-lesson .ld-lesson-title,
body .learndash-wrapper .ld-primary-color-hover:hover,
body .learndash-wrapper .ld-primary-color,
body .learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active,
body .learndash-wrapper .ld-button.ld-button-transparent,
body .learndash-wrapper .ld-button.ld-button-reverse,
body .learndash-wrapper .ld-icon-certificate,
body .learndash-wrapper .ld-login-modal .ld-login-modal-login .ld-modal-heading,
body #wpProQuiz_user_content a,
body .learndash-wrapper .ld-item-list .ld-item-list-item a.ld-item-name:hover,
body .learndash-wrapper .ld-focus-comments__heading-actions .ld-expand-button,
body .learndash-wrapper .ld-focus-comments__heading a,
body .learndash-wrapper .ld-focus-comments .comment-respond a,
body .learndash-wrapper .ld-focus-comment .ld-comment-reply a.comment-reply-link:hover,
body .learndash-wrapper .ld-expand-button.ld-button-alternate{
  color: var(--etjp-brand-ink) !important;
}


/* Sidebar navigation colors*/
body .learndash-wrapper .ld-focus-sidebar .ld-table-list-items,
body .learndash-wrapper .ld-focus-sidebar .ld-table-list-item,
body .learndash-wrapper .ld-focus-sidebar .ld-table-list-item .ld-table-list-item-wrapper,
body .learndash-wrapper .ld-focus-sidebar .ld-table-list-item a.ld-table-list-item-preview{
  background-color: var(--etjp-row-tint, var(--etjp-nav-surface));
}
 
/* completed lesson/topic — the default for any completed row */
body .learndash-wrapper .ld-focus-sidebar .ld-table-list-item.learndash-complete{
  --etjp-row-tint: var(--etjp-complete-lesson);
}
 
/* completed quiz — more specific, so it wins for the nested rows */
body .learndash-wrapper .ld-focus-sidebar .ld-table-list div[id^="ld-nav-content-list-"] .ld-table-list-item.learndash-complete{
  --etjp-row-tint: var(--etjp-complete-quiz);
}
 
/* current item keeps its brand stripe on top of whichever tint applies.
   Listed last and at (0,6,2) so it outranks the paint rule above. */
body .learndash-wrapper .ld-focus-sidebar .ld-table-list .ld-table-list-item .ld-is-current-item,
body .learndash-wrapper .ld-focus-sidebar .ld-table-list .ld-table-list-item.ld-is-current-item a.ld-table-list-item-preview{
  background-color: var(--ast-global-color-7);
  border-right: 3px solid var(--etjp-brand-ink);
}

/* ==========================================================================
   The utility classes
   ========================================================================== */

body .learndash-wrapper .ld-primary-background{
  background-color: var(--etjp-brand-fill) !important;
  color: var(--etjp-on-brand) !important;
}
body .learndash-wrapper .ld-primary-color{
  color: var(--etjp-brand-ink) !important;
}
body .learndash-wrapper .ld-secondary-background{
  background-color: var(--etjp-brand-fill-hover) !important;
  color: var(--etjp-on-brand) !important;
}
body .learndash-wrapper .ld-secondary-color{
  color: var(--etjp-brand-ink-hover) !important;
}
body .learndash-wrapper .ld-secondary-in-progress-icon{
  border-left-color: var(--etjp-brand-ink-hover) !important;
  border-top-color:  var(--etjp-brand-ink-hover) !important;
}
body .learndash-wrapper .ld-tertiary-background{
  background-color: var(--etjp-warning) !important;
  color: var(--etjp-on-warning) !important;
}
body .learndash-wrapper .ld-tertiary-color{
  color: var(--etjp-warning) !important;
}


