/*!
 * Probity CPD Support — LearnDash step-list fallback
 * Version: 1.0.0
 *
 * Loaded ONLY on single sfwd-courses pages, and never on a certificate
 * request. This is the second layer: the template filter in
 * class-pcs-learndash.php removes the lists server-side, and this guarantees
 * nothing is left visible on LearnDash versions whose template names differ.
 *
 * Certificate elements are excluded from the selectors rather than hidden and
 * then re-shown. Re-showing with `display:revert` would discard LearnDash's own
 * flex layout on the element and break the certificate row; excluding it up
 * front leaves the element completely untouched.
 */

/* --- Step lists ---------------------------------------------------------- */
.learndash-wrapper .ld-course-content,
.learndash-wrapper .ld-lesson-list,
.learndash-wrapper .ld-topic-list,
.learndash-wrapper .ld-table-list:not([class*="certificate"]),
.learndash-wrapper .ld-item-list:not(.ld-certificate):not([class*="certificate"]),
.learndash-wrapper .ld-item-list-section-heading,
.learndash-wrapper .ld-lesson-list-header,
.learndash-wrapper .ld-course-navigation,
.learndash-wrapper .learndash_topic_dots,
.ld-course-content,
.ld-lesson-list,
.ld-topic-list,
#learndash_lessons,
#learndash_quizzes,
#learndash_post_body .learndash_content_wrap #learndash_lessons {
  display: none !important;
}

/* --- Buttons that would send a learner into a lesson --------------------- */
.learndash-wrapper .ld-course-status .ld-button[href*="/lessons/"],
.learndash-wrapper .ld-course-status .ld-button[href*="/topic/"],
.learndash-wrapper .ld-course-status .ld-button[href*="/quizzes/"] {
  display: none !important;
}

/*
 * Deliberately NOT touched by any selector above:
 *   .ld-course-status, .ld-status, .ld-progress, .ld-progress-bar
 *   .ld-certificate-link, .learndash_certificate_link, .ld-certificate
 *   anything matching [class*="certificate"], and every [href*="cert-nonce"]
 * A learner who earned a certificate under LearnDash keeps the same button in
 * the same place.
 */
