/* =====================================================================
   Lumen skin for LearnDash (LD30 templates): course pages, lesson lists,
   progress, focus mode, profile, quizzes. Replaces the Elementor add-on styling.
   Tip: in LearnDash → Settings → Design, set the accent color to your brand
   gold — this file then refines spacing, type and components.
   ===================================================================== */

.learndash-wrapper {
  --ld-accent: var(--l-accent);
  font-family: var(--l-body);
  color: var(--l-ink);
}
.learndash-wrapper :is(h1, h2, h3, h4) { font-family: var(--l-heading); color: var(--l-mid); }

/* Buttons */
.learndash-wrapper .ld-button,
.learndash-wrapper .ld-button:not(.ld-button-reverse):not(.ld-button-transparent),
.learndash-wrapper a.ld-button,
.learndash-wrapper .btn-join, .learndash-wrapper #btn-join, .learndash-wrapper .learndash_mark_complete_button,
.learndash-wrapper .wpProQuiz_button, .learndash-wrapper .wpProQuiz_button2 {
  background: linear-gradient(135deg, var(--l-accent-light), var(--l-accent) 55%, color-mix(in srgb, var(--l-accent) 82%, #000)) !important;
  color: var(--l-primary) !important; border: 0 !important; border-radius: 2px !important;
  font-family: var(--l-heading) !important; font-weight: 600 !important; font-size: 18px !important; letter-spacing: .01em;
  padding: 14px 24px !important; box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--l-accent) 70%, transparent);
  transition: box-shadow .3s, transform .3s var(--l-ease-out) !important;
}
.learndash-wrapper .ld-button:hover, .learndash-wrapper .wpProQuiz_button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--l-accent) 85%, transparent); opacity: 1 !important; }
.learndash-wrapper .ld-button.ld-button-transparent, .learndash-wrapper .ld-button.ld-button-reverse {
  background: transparent !important; color: var(--l-mid) !important; border: 1px solid var(--l-accent-a50) !important; box-shadow: none;
}

/* Course status box */
.learndash-wrapper .ld-course-status {
  background: var(--l-white) !important; border: 1px solid var(--l-line) !important; border-radius: 2px !important;
  padding: 26px 30px !important; box-shadow: 0 40px 80px -60px color-mix(in srgb, var(--l-primary) 55%, transparent);
  position: relative; overflow: hidden;
}
.learndash-wrapper .ld-course-status::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--l-accent-light), var(--l-accent)); }
.learndash-wrapper .ld-course-status-label { font-size: 11.5px !important; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--l-accent-ink) !important; }
.learndash-wrapper .ld-course-status-price { font-family: var(--l-heading); font-size: 34px !important; color: var(--l-mid); }
.learndash-wrapper .ld-status { border-radius: 999px !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px !important; }
/* In progress: solid gold, navy label, small live dot (was a pale wash). Completed: navy with a check. */
.learndash-wrapper .ld-status-progress, .learndash-wrapper .ld-status.ld-status-progress { display: inline-flex !important; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--l-accent-light), var(--l-accent) 60%) !important; color: var(--l-primary) !important; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--l-accent) 90%, transparent); }
.learndash-wrapper .ld-status.ld-status-progress::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--l-primary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--l-primary) 50%, transparent); animation: lumen-ld-pulse 1.8s ease-out infinite; }
@keyframes lumen-ld-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--l-primary) 45%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.learndash-wrapper .ld-status-complete { background: var(--l-primary) !important; color: var(--l-accent-light) !important; }
.learndash-wrapper .ld-status.ld-status-complete:not(.ld-status-icon)::before { content: "\2713"; margin-right: 6px; }

/* Progress */
.learndash-wrapper .ld-progress .ld-progress-bar { height: 10px !important; border-radius: 999px !important; background: color-mix(in srgb, var(--l-primary) 10%, var(--l-white)) !important; }
.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage { border-radius: 999px !important; background: linear-gradient(90deg, var(--l-accent), color-mix(in srgb, var(--l-accent) 70%, #000)) !important; }
.learndash-wrapper .ld-progress .ld-progress-stats { font-size: 13.5px; color: var(--l-ink); }
.learndash-wrapper .ld-progress .ld-progress-percentage { color: var(--l-mid) !important; font-weight: 700; }

/* Tabs */
.learndash-wrapper .ld-tabs .ld-tabs-navigation { border-bottom: 1px solid var(--l-line) !important; gap: 8px; }
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab { font-family: var(--l-body); font-weight: 600; font-size: 14px; color: var(--l-ink-soft) !important; padding: 14px 6px !important; }
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active { color: var(--l-mid) !important; }
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active::after { background: var(--l-accent) !important; height: 2px !important; }
.learndash-wrapper .ld-tabs .ld-tabs-content { padding-top: 26px; line-height: 1.7; color: var(--l-ink-soft); }

/* Lesson / topic lists */
.learndash-wrapper .ld-item-list .ld-section-heading > h2,
.learndash-wrapper .ld-item-list .ld-lesson-list .ld-section-heading h2 { font-size: clamp(28px, 2.6vw, 36px) !important; }
.learndash-wrapper .ld-item-list .ld-item-list-item {
  border: 1px solid var(--l-line) !important; border-radius: 2px !important; background: var(--l-white) !important; margin-bottom: 10px !important;
  transition: border-color .3s, box-shadow .4s var(--l-ease), transform .4s var(--l-ease-out);
}
.learndash-wrapper .ld-item-list .ld-item-list-item:hover { border-color: var(--l-accent-a50) !important; box-shadow: 0 24px 50px -36px color-mix(in srgb, var(--l-primary) 50%, transparent); }
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name { font-family: var(--l-heading); font-size: 21px; font-weight: 600; color: var(--l-mid) !important; }
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name:hover { color: var(--l-accent-ink) !important; }
.learndash-wrapper .ld-lesson-section-heading { font-family: var(--l-body) !important; font-size: 12px !important; letter-spacing: .26em; text-transform: uppercase; color: var(--l-accent-ink) !important; margin: 26px 0 10px !important; }
.learndash-wrapper .ld-status-icon { border-radius: 50% !important; }
.learndash-wrapper .ld-status-icon.ld-status-complete { background: var(--l-accent) !important; color: var(--l-primary) !important; }
.learndash-wrapper .ld-status-icon.ld-status-incomplete { border-color: var(--l-line) !important; }
.learndash-wrapper .ld-expand-button { color: var(--l-mid) !important; }
.learndash-wrapper .ld-expand-button .ld-icon { background: var(--l-primary) !important; color: var(--l-accent-light) !important; border-radius: 50%; }
/* "Expand All" pill (solid button): light text on navy, gold arrow */
.learndash-wrapper .ld-expand-button.ld-primary-background { background: var(--l-primary) !important; color: var(--l-white) !important; border-radius: 999px; padding: 10px 18px 10px 12px; gap: 8px; }
.learndash-wrapper .ld-expand-button.ld-primary-background .ld-text { color: var(--l-white) !important; font-weight: 600; }
.learndash-wrapper .ld-expand-button.ld-primary-background .ld-icon { background: transparent !important; }
.learndash-wrapper .ld-expand-button.ld-primary-background:hover { background: var(--l-soft) !important; }
.learndash-wrapper .ld-table-list .ld-table-list-header { background: var(--l-primary) !important; color: var(--l-white) !important; border-radius: 2px 2px 0 0 !important; }
.learndash-wrapper .ld-table-list .ld-table-list-items { border-color: var(--l-line) !important; }

/* Alerts */
.learndash-wrapper .ld-alert { border-radius: 2px !important; border-width: 1px !important; background: var(--l-base-alt) !important; border-color: var(--l-accent-a50) !important; }
.learndash-wrapper .ld-alert .ld-alert-icon { background: var(--l-accent) !important; color: var(--l-primary) !important; }
.learndash-wrapper .ld-alert-success { border-color: var(--l-accent) !important; }

/* Course / lesson content typography */
.learndash-wrapper .ld-tab-content, .learndash-wrapper .ld-focus-content, .learndash_content_wrap { font-size: 17px; line-height: 1.75; }
.learndash-wrapper .ld-tab-content :is(p, li), .learndash-wrapper .ld-focus-content :is(p, li) { color: var(--l-ink-soft); }
.learndash-wrapper .ld-focus-content h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }

/* Focus mode (lessons & topics) */
.ld-focus { font-family: var(--l-body); }
.learndash-wrapper .ld-focus .ld-focus-header { background: var(--l-primary) !important; border-bottom: 1px solid var(--l-accent-a30) !important; color: var(--l-white); }
.learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo img { max-height: 46px; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar { background: rgba(255,255,255,.12) !important; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action a, .learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu { color: var(--l-white) !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar { background: var(--l-base) !important; border-right: 1px solid var(--l-line) !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading { background: var(--l-mid) !important; border: 0 !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a { font-family: var(--l-heading); font-size: 20px; color: var(--l-white) !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson { background: var(--l-accent-pale) !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item-preview-heading .ld-lesson-title { font-weight: 600; color: var(--l-mid); }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-table-list-item-preview.ld-is-current-item { background: var(--l-accent-a15) !important; }
.learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content { max-width: 860px; padding-top: 56px !important; }
.learndash-wrapper .ld-content-actions { border-top: 1px solid var(--l-line) !important; padding-top: 26px !important; }

/* Profile / course list ([ld_profile], [ld_course_list]) */
.learndash-wrapper .ld-profile-summary { background: var(--l-white); border: 1px solid var(--l-line); padding: 30px !important; border-radius: 2px; }
.learndash-wrapper .ld-profile-summary .ld-profile-card .ld-profile-avatar img { border-radius: 50%; box-shadow: 0 0 0 3px var(--l-accent); }
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat strong { font-family: var(--l-heading); font-size: 36px; color: var(--l-mid); font-variant-numeric: lining-nums; }
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--l-accent-ink); font-weight: 700; }
.ld-course-list-items .ld_course_grid .thumbnail.course { border: 1px solid var(--l-line); border-radius: 2px; box-shadow: none; transition: transform .5s var(--l-ease-out), box-shadow .5s; }
.ld-course-list-items .ld_course_grid .thumbnail.course:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--l-primary) 45%, transparent); }
.ld-course-list-items .ld_course_grid .thumbnail.course h3 { font-family: var(--l-heading); color: var(--l-mid); }
.ld-course-list-items .ld_course_grid .ribbon { background: var(--l-accent); color: var(--l-primary); }

/* Quizzes (WP Pro Quiz) */
.learndash-wrapper .wpProQuiz_content .wpProQuiz_question_text { font-family: var(--l-heading); font-size: 24px; color: var(--l-mid); }
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label { border: 1px solid var(--l-line) !important; border-radius: 2px !important; padding: 14px 16px !important; transition: border-color .3s, background .3s; }
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label:hover { border-color: var(--l-accent) !important; background: var(--l-base) !important; }
.learndash-wrapper .wpProQuiz_content .wpProQuiz_correct { background: color-mix(in srgb, var(--l-accent) 10%, #fff) !important; border-color: var(--l-accent) !important; }

/* Login / registration modal */
.learndash-wrapper .ld-login-modal { border-radius: 2px !important; }
.learndash-wrapper .ld-login-modal .ld-login-modal-login { background: var(--l-white); }
.learndash-wrapper .ld-login-modal .ld-login-modal-register { background: var(--l-primary) !important; }
.learndash-wrapper .ld-login-modal input[type="text"], .learndash-wrapper .ld-login-modal input[type="password"], .learndash-wrapper .ld-login-modal input[type="email"] { border: 1px solid var(--l-line) !important; border-radius: 2px !important; padding: 14px 16px !important; }

/* Template wrapper spacing (single course pages) */
.lumen-app-body.is-learndash .learndash-wrapper > * + * { margin-top: 28px; }
@media (max-width: 680px) {
  .learndash-wrapper .ld-course-status { padding: 22px !important; }
  .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name { font-size: 19px; }
}

/* ---------- Focus mode header: crest + name lockup, readable progress and name ----------
   LearnDash prints its Design colors with !important; the leading "body" makes these win. */
body .learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo { background: var(--l-deep) !important; border-right: 1px solid var(--l-accent-a30) !important; display: flex; align-items: center; }
body .learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo.has-lumen-brand { padding: 0 22px !important; }
.ld-brand-logo.has-lumen-brand .lumen-brand { color: var(--l-white); }
.ld-brand-logo.has-lumen-brand .lumen-brand__link { gap: 12px; text-decoration: none; }
.ld-brand-logo.has-lumen-brand .lumen-brand__logo { height: 40px !important; width: auto !important; max-width: none !important; max-height: none !important; }
.ld-brand-logo.has-lumen-brand .lumen-brand__divider { height: 30px; }
.ld-brand-logo.has-lumen-brand .lumen-brand__text { min-width: 0; }
.ld-brand-logo.has-lumen-brand .lumen-brand__line1 { font-size: 16px; color: var(--l-white); }
.ld-brand-logo.has-lumen-brand .lumen-brand__line2 { font-size: 9px; letter-spacing: .38em; margin-top: 4px; color: var(--l-accent-light); }
body .learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-stats,
body .learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-percentage,
body .learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-steps { color: rgba(255,255,255,.86) !important; }
body .learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-percentage { color: var(--l-accent-light) !important; font-weight: 700; }
body .learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar .ld-progress-bar-percentage { background: linear-gradient(90deg, var(--l-accent-light), var(--l-accent)) !important; }
body .learndash-wrapper .ld-focus .ld-focus-header .ld-user-welcome-text,
body .learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-text { color: var(--l-white) !important; font-weight: 600; }

/* ---------- "Great job! You've completed this…" alert: gold disc with a navy check ---------- */
body .learndash-wrapper .ld-alert-success { border-color: var(--l-accent) !important; }
body .learndash-wrapper .ld-alert-success .ld-alert-icon,
body .learndash-wrapper .ld-alert-success .ld-alert-icon.ld-icon-certificate {
  position: relative; background: linear-gradient(135deg, var(--l-accent-light), var(--l-accent)) !important; color: transparent !important;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--l-accent) 90%, transparent);
}
body .learndash-wrapper .ld-alert-success .ld-alert-icon::before {
  content: "" !important; position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; background: var(--l-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .learndash-wrapper .ld-alert-success .ld-alert-content { color: var(--l-ink) !important; font-weight: 500; }

/* Focus header "Mark Complete" (LearnDash colors it with its Design setting — navy on navy) */
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.learndash_mark_complete_button:not(.ld--ignore-inline-css),
body .learndash-wrapper .ld-focus .ld-focus-header #sfwd-mark-complete #learndash_mark_complete_button { color: var(--l-accent-light) !important; font-weight: 700; }
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete:after { color: var(--l-accent-light) !important; }
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete:hover .learndash_mark_complete_button { color: var(--l-white) !important; }
