/* LearnDash (LD30 templates) in the Kura look. Colours that LearnDash sets
   from its own settings are also set there (primary = charcoal). */

.learndash-wrapper,
.learndash-wrapper .ld-item-list,
.learndash-wrapper .ld-table-list { font-family: var(--k-font-body); color: var(--k-charcoal); }

.learndash-wrapper h1, .learndash-wrapper h2, .learndash-wrapper h3, .learndash-wrapper h4,
.learndash-wrapper .ld-item-title, .learndash-wrapper .ld-course-status-label,
.learndash-wrapper .ld-section-heading h2 { font-family: var(--k-font-display); letter-spacing: -0.01em; }

/* Buttons */
.learndash-wrapper .ld-button,
.learndash-wrapper .btn-join,
.learndash-wrapper #btn-join,
.learndash-wrapper .ld-content-action a,
.learndash-wrapper input[type="submit"].ld-button {
	min-height: 48px; padding: 0 24px !important; border-radius: var(--k-pill) !important;
	background: var(--k-charcoal) !important; color: var(--k-cream) !important;
	font: 600 15px/48px var(--k-font-body) !important; border: 0 !important; box-shadow: none !important;
	text-transform: none !important; letter-spacing: 0 !important;
}
.learndash-wrapper .ld-button:hover, .learndash-wrapper .btn-join:hover, .learndash-wrapper #btn-join:hover { background: var(--k-ink) !important; }
.learndash-wrapper .ld-button.ld-button-transparent,
.learndash-wrapper .ld-content-action .ld-button-reverse { background: transparent !important; color: var(--k-charcoal) !important; border: 1px solid var(--k-charcoal) !important; }

/* Course status / enrol box */
.learndash-wrapper .ld-course-status {
	background: var(--k-white); border: 1px solid var(--k-line); border-radius: var(--k-radius);
	padding: 24px 28px; box-shadow: none;
}
.learndash-wrapper .ld-course-status .ld-course-status-label { color: var(--k-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.learndash-wrapper .ld-course-status .ld-status { border-radius: var(--k-pill); font-weight: 600; }
.learndash-wrapper .ld-status-progress, .learndash-wrapper .ld-status-in-progress { background: var(--k-charcoal) !important; color: var(--k-accent) !important; }
.learndash-wrapper .ld-status-complete { background: var(--k-accent) !important; color: var(--k-on-accent) !important; }

/* Progress */
.learndash-wrapper .ld-progress .ld-progress-bar { background: var(--k-line); border-radius: var(--k-pill); height: 8px; }
.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage { background: var(--k-charcoal) !important; border-radius: var(--k-pill); }
.learndash-wrapper .ld-progress .ld-progress-stats { color: var(--k-muted); font-size: 13px; }
.learndash-wrapper .ld-progress .ld-progress-percentage { color: var(--k-charcoal) !important; font-weight: 600; }

/* Tabs */
.learndash-wrapper .ld-tabs .ld-tabs-navigation { border-bottom: 1px solid var(--k-line); }
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab { font-weight: 600; color: var(--k-muted); }
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active { color: var(--k-charcoal); }
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active::after { background: var(--k-charcoal) !important; height: 3px; }

/* Lesson / topic lists */
.learndash-wrapper .ld-item-list .ld-item-list-item {
	background: var(--k-white); border: 1px solid var(--k-line) !important; border-radius: 18px !important;
	box-shadow: none; margin-bottom: 10px; overflow: hidden;
}
.learndash-wrapper .ld-item-list .ld-item-list-item:hover { border-color: var(--k-charcoal) !important; }
.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name { color: var(--k-charcoal); font-weight: 600; }
.learndash-wrapper .ld-item-list .ld-item-list-item-expanded { background: var(--k-cream); border-top: 1px solid var(--k-line); }
.learndash-wrapper .ld-item-list .ld-section-heading { margin: 32px 0 12px; }
.learndash-wrapper .ld-item-list .ld-section-heading h2 { font-size: 20px; }
.learndash-wrapper .ld-expand-button { border-radius: var(--k-pill) !important; }
.learndash-wrapper .ld-expand-button.ld-button-alternate .ld-icon { background: var(--k-charcoal) !important; }

/* Status icons */
.learndash-wrapper .ld-status-icon.ld-status-complete,
.learndash-wrapper .ld-status-icon.ld-quiz-complete { background: var(--k-charcoal) !important; color: var(--k-accent) !important; }
.learndash-wrapper .ld-status-icon.ld-status-incomplete { border-color: #CFC6BA !important; }
.learndash-wrapper .ld-status-icon.ld-status-in-progress { border-left-color: var(--k-charcoal) !important; border-top-color: var(--k-charcoal) !important; }

/* Alerts */
.learndash-wrapper .ld-alert { border-radius: var(--k-radius-sm); border: 1px solid var(--k-line); background: var(--k-white); box-shadow: none; }
.learndash-wrapper .ld-alert-success { border-color: var(--k-charcoal); }

/* Tables (profile, quizzes) */
.learndash-wrapper .ld-table-list .ld-table-list-header { background: var(--k-charcoal) !important; color: var(--k-cream); border-radius: 18px 18px 0 0; }
.learndash-wrapper .ld-table-list .ld-table-list-items { border-color: var(--k-line); }

/* Focus mode (lessons, topics, quizzes) */
.learndash-wrapper .ld-focus { background: var(--k-cream); }
.learndash-wrapper .ld-focus .ld-focus-header { background: var(--k-white); border-bottom: 1px solid var(--k-line); }
.learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo img { max-height: 30px; }
.learndash-wrapper .ld-focus .ld-focus-sidebar { background: var(--k-white); border-right: 1px solid var(--k-line); }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger { background: var(--k-charcoal) !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a { color: var(--k-cream) !important; font-family: var(--k-font-display); }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson { background: var(--k-cream); }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-table-list-item-preview.ld-is-current-item { background: var(--k-sand); }
.learndash-wrapper .ld-focus .ld-focus-content h1 { font-family: var(--k-font-display); font-weight: 600; letter-spacing: -0.02em; }
.learndash-wrapper .ld-focus .ld-focus-content { font-size: 17px; line-height: 1.7; }

/* Quizzes */
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button,
.learndash-wrapper .wpProQuiz_content input[type="button"] {
	border-radius: var(--k-pill) !important; background: var(--k-charcoal) !important; color: var(--k-cream) !important;
	font-weight: 600 !important; padding: 12px 24px !important; border: 0 !important; text-shadow: none !important;
}
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label { border-radius: var(--k-radius-sm); border-color: var(--k-line); }

/* Course archive on the theme's card list */
.post-type-archive-sfwd-courses .k-path { min-height: 220px; }
.k-page--learndash .k-page__head { margin-bottom: 24px; }

/* ── Course navigation: focus mode + LearnDash 5 "modern" lesson/topic layout ── */

.ld-in-focus-mode, .ld-in-focus-mode .learndash-wrapper .ld-focus { background: var(--k-cream); }
.learndash-wrapper .ld-focus a, .learndash-wrapper .ld-focus a:hover { text-decoration: none; }

/* Header bar */
.learndash-wrapper .ld-focus .ld-focus-header {
	background: var(--k-white); border-bottom: 1px solid var(--k-line); box-shadow: none;
	font-family: var(--k-font-body);
}
@media (min-width: 961px) { .learndash-wrapper .ld-focus .ld-focus-header { height: 72px; } }
.learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo { border-right: 1px solid var(--k-line); }
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress { border-right: 1px solid var(--k-line); }
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-heading { font-family: var(--k-font-body); }
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-percentage { font: 600 13px var(--k-font-body); color: var(--k-charcoal) !important; text-transform: none; letter-spacing: 0; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-steps { color: var(--k-muted); font-size: 12px; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar { background: var(--k-line) !important; height: 6px !important; min-height: 0 !important; border-radius: 999px; overflow: hidden; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar .ld-progress-bar-percentage { height: 6px !important; background: var(--k-charcoal) !important; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-actions { border: 0; gap: 10px; padding: 0 16px; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action { border: 0 !important; padding: 0 !important; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .ld-button,
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action a {
	min-height: 44px !important; line-height: 44px !important; padding: 0 20px !important; border-radius: var(--k-pill) !important;
	background: transparent !important; color: var(--k-charcoal) !important; border: 1px solid var(--k-charcoal) !important;
	font: 600 14px/44px var(--k-font-body) !important;
}
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .ld-button:not(.ld-button-transparent),
.learndash-wrapper .ld-focus .ld-focus-header .learndash_mark_complete_button,
.learndash-wrapper .ld-focus .ld-focus-header #sfwd-mark-complete input[type="submit"] {
	background: var(--k-charcoal) !important; color: var(--k-cream) !important; border-color: var(--k-charcoal) !important;
}
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .ld-icon { color: inherit !important; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-profile-avatar { border-radius: 50%; overflow: hidden; }
.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-welcome-text { font-family: var(--k-font-body); color: var(--k-charcoal); }

/* Sidebar */
.learndash-wrapper .ld-focus .ld-focus-sidebar { background: var(--k-white); border-right: 1px solid var(--k-line); box-shadow: none; overflow-x: hidden; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation, .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-items, .learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list, .learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list-items { background: var(--k-white) !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading { background: var(--k-charcoal) !important; border: 0; padding: 22px 56px 22px 22px; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a {
	font: 600 17px/1.3 var(--k-font-display) !important; color: var(--k-cream) !important; text-decoration: none !important; letter-spacing: -0.01em;
}
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-icon-content { display: none; }
.learndash-wrapper .ld-focus .ld-focus-sidebar-trigger {
	background: var(--k-accent) !important; color: var(--k-on-accent) !important; border: 0 !important;
	width: 36px !important; height: 36px !important; border-radius: 50% !important; box-shadow: 0 0 0 4px var(--k-charcoal);
}
.learndash-wrapper .ld-focus .ld-focus-sidebar-trigger .ld-icon { color: var(--k-on-accent) !important; }
.learndash-wrapper .ld-focus .ld-focus-sidebar-wrapper { background: var(--k-white); }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-lesson-item { border-bottom: 1px solid var(--k-line); background: var(--k-white); }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-lesson-item-preview { padding: 0; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-lesson-item-preview-heading { padding: 16px 20px 6px; display: flex; gap: 12px; align-items: flex-start; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-lesson-title {
	font: 600 15px/1.35 var(--k-font-body) !important; color: var(--k-charcoal) !important; text-decoration: none !important;
}
.learndash-wrapper .ld-focus .ld-course-navigation .ld-lesson-item.ld-is-current-lesson { background: var(--k-cream); }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-expand-button {
	margin: 0 20px 12px 52px; padding: 0 !important; background: transparent !important; color: var(--k-muted) !important;
	font: 500 13px var(--k-font-body) !important; border: 0 !important; min-height: 0 !important;
}
.learndash-wrapper .ld-focus .ld-course-navigation .ld-expand-button .ld-icon { background: var(--k-sand) !important; color: var(--k-charcoal) !important; border-radius: 50%; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list { margin: 0; padding: 0 12px 12px; background: transparent; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list .ld-table-list-items { border: 0; background: transparent; padding: 0; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list-item { border: 0 !important; margin: 0; padding: 0; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list-item-preview {
	display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px 9px 30px !important; border-radius: 12px;
	font: 400 14px/1.4 var(--k-font-body) !important; color: #4F5864 !important; text-decoration: none !important;
}
.learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list-item-preview:hover { background: var(--k-sand); color: var(--k-charcoal) !important; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-table-list-item-preview.ld-is-current-item,
.learndash-wrapper .ld-focus .ld-course-navigation .ld-is-current-item .ld-table-list-item-preview {
	background: var(--k-charcoal) !important; color: var(--k-cream) !important; font-weight: 600 !important;
}
.learndash-wrapper .ld-focus .ld-course-navigation .ld-topic-title { color: inherit !important; text-decoration: none !important; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-status-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-status-incomplete { border: 2px solid #CFC6BA !important; background: transparent !important; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-is-current-item .ld-status-incomplete { border-color: var(--k-accent) !important; }

/* Content column */
.learndash-wrapper .ld-focus .ld-focus-content .learndash-wrapper, .learndash-wrapper .ld-focus .ld-focus-content .ld-layout, .learndash-wrapper .ld-focus .ld-focus-content .ld-tab-bar { background: transparent !important; }
.learndash-wrapper .ld-focus .ld-focus-content { max-width: 880px; padding: 48px 32px 96px; }
.learndash-wrapper .ld-focus .ld-focus-content > h1 { font: 600 clamp(32px, 3.6vw, 46px)/1.1 var(--k-font-display); letter-spacing: -0.02em; color: var(--k-charcoal); margin: 0 0 20px; }
.learndash-wrapper .ld-layout__header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.learndash-wrapper .ld-breadcrumbs, .learndash-wrapper .ld-breadcrumbs--modern { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.learndash-wrapper .ld-breadcrumbs__item, .learndash-wrapper .ld-breadcrumbs__item a { font-size: 13px; color: var(--k-muted) !important; text-decoration: none; }
.learndash-wrapper .ld-breadcrumbs__item a:hover { color: var(--k-charcoal) !important; text-decoration: underline; }
.learndash-wrapper .ld-progress-bar { background: var(--k-white); border: 1px solid var(--k-line); border-radius: 18px; padding: 14px 18px; }
.learndash-wrapper .ld-progress-bar__label { font: 600 12px var(--k-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--k-muted); }
.learndash-wrapper .ld-progress-bar__meter-background { background: var(--k-line) !important; height: 8px !important; border-radius: var(--k-pill); overflow: hidden; }
.learndash-wrapper .ld-progress-bar__meter-foreground, .learndash-wrapper .ld-progress-bar__meter-background > * { background: var(--k-charcoal) !important; border-radius: var(--k-pill); }
.learndash-wrapper .ld-progress-bar__meter-label, .learndash-wrapper .ld-progress-bar__meter-percentage { font-size: 13px; color: var(--k-charcoal); }

/* Lesson page: list of topics ("Lesson Content") */
.learndash-wrapper .ld-accordion { border: 0; background: transparent; }
.learndash-wrapper .ld-accordion__heading { font: 600 22px var(--k-font-display); color: var(--k-charcoal); margin: 32px 0 14px; }
.learndash-wrapper .ld-accordion__section--topics { display: flex; flex-direction: column; gap: 8px; }
.learndash-wrapper .ld-accordion__item, .learndash-wrapper .ld-accordion__item--topic {
	background: var(--k-white); border: 1px solid var(--k-line) !important; border-radius: 16px; overflow: hidden;
}
.learndash-wrapper .ld-accordion__item:hover { border-color: var(--k-charcoal) !important; }
.learndash-wrapper .ld-accordion__item-header { padding: 14px 18px; }
.learndash-wrapper .ld-accordion__item-title, .learndash-wrapper .ld-accordion__item-title a {
	font: 600 15px/1.4 var(--k-font-body); color: var(--k-charcoal) !important; text-decoration: none !important;
}

/* Previous / next / mark complete at the foot of a lesson or topic */
.learndash-wrapper .ld-navigation { border-top: 1px solid var(--k-line); padding-top: 24px; margin-top: 40px; gap: 12px; }
.learndash-wrapper .ld-navigation a, .learndash-wrapper .ld-navigation button, .learndash-wrapper .ld-navigation input[type="submit"] {
	min-height: 48px; padding: 0 22px; border-radius: var(--k-pill) !important; font: 600 15px/48px var(--k-font-body) !important;
	text-decoration: none !important; border: 1px solid var(--k-charcoal) !important; color: var(--k-charcoal) !important; background: transparent !important;
}
.learndash-wrapper .ld-navigation__progress-mark-complete-button,
.learndash-wrapper .ld-navigation__next-link {
	background: var(--k-charcoal) !important; color: var(--k-cream) !important;
}

/* Original course content: oversized spacers left from the old page builder */
.learndash-wrapper .ld-layout__content .wp-block-spacer { height: 24px !important; }
.learndash-wrapper .ld-layout__content .wp-block-details {
	background: var(--k-white); border: 1px solid var(--k-line); border-radius: 16px; padding: 0 20px; margin: 10px 0;
}
.learndash-wrapper .ld-layout__content .wp-block-details > summary {
	cursor: pointer; padding: 16px 0; font: 600 16px var(--k-font-display); color: var(--k-charcoal); list-style-position: inside;
}
.learndash-wrapper .ld-layout__content .wp-block-details[open] > summary { border-bottom: 1px solid var(--k-line); margin-bottom: 12px; }
.learndash-wrapper .ld-layout__content .wp-block-details > :last-child { margin-bottom: 18px; }
.learndash-wrapper .ld-layout__content img { border-radius: 14px; }

/* Fixes after first look at 1440 */
.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar {
	padding: 0 !important; height: 6px !important; max-height: 6px !important; box-sizing: border-box;
}
.learndash-wrapper .ld-focus .ld-focus-sidebar-wrapper { overflow-x: hidden !important; }
.learndash-wrapper .ld-focus .ld-course-navigation *, .learndash-wrapper .ld-focus .ld-course-navigation { box-sizing: border-box; max-width: 100%; }
.learndash-wrapper .ld-focus .ld-focus-sidebar-trigger { top: 18px !important; }

/* Phones and small tablets: compact header buttons so the header stays one tidy band */
@media (max-width: 960px) {
	.learndash-wrapper .ld-focus .ld-focus-header .ld-content-actions { padding: 8px 12px; gap: 8px; }
	.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action .ld-button,
	.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action a {
		min-height: 40px !important; line-height: 1.2 !important; padding: 10px 14px !important;
		font: 600 13px/1.2 var(--k-font-body) !important; white-space: nowrap;
	}
	.learndash-wrapper .ld-focus .ld-focus-content { padding: 28px 18px 72px; }
}

/* Course pages on white (cream was too dark behind the course) */
.ld-in-focus-mode, .ld-in-focus-mode .learndash-wrapper .ld-focus,
.learndash-wrapper .ld-focus .ld-focus-main, .learndash-wrapper .ld-focus .ld-focus-content { background: #FFFFFF !important; }
.learndash-wrapper .ld-progress-bar { background: #FBF9F6; }
.learndash-wrapper .ld-layout__content .wp-block-details { background: #FBF9F6; }
.learndash-wrapper .ld-focus .ld-course-navigation .ld-lesson-item.ld-is-current-lesson { background: #FBF9F6; }
.learndash-wrapper .ld-accordion__item, .learndash-wrapper .ld-accordion__item--topic { background: #FBF9F6; }

/* Review 30 Oct: logo slot, sidebar sitting under the header, Mark Complete, course page background */
.learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo {
	background: #F8F2EB url(../img/kura-logo-charcoal.webp) no-repeat 24px center / auto 30px;
	border-right: 1px solid var(--k-line);
}
@media (min-width: 961px) {
	.learndash-wrapper .ld-focus .ld-focus-sidebar { padding-top: 72px !important; }
	.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading { margin-top: 0 !important; }
}
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading { padding: 22px 64px 22px 24px !important; min-height: 0; }
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-mode-course-heading-wrapper a {
	display: block; margin: 0 !important; padding: 0 !important; white-space: normal; overflow: visible;
	font: 600 16px/1.35 var(--k-font-display) !important; color: var(--k-cream) !important;
}
.learndash-wrapper .ld-focus .ld-focus-sidebar-trigger { top: 50% !important; transform: translateY(-50%); right: 14px !important; }
.learndash-wrapper .ld-navigation__progress-mark-complete-button,
.learndash-wrapper .ld-focus .ld-focus-header .ld-navigation__progress-mark-complete-button {
	background: var(--k-charcoal) !important; color: var(--k-cream) !important; border: 1px solid var(--k-charcoal) !important; opacity: 1 !important;
	min-height: 44px; padding: 0 20px !important; border-radius: var(--k-pill) !important; font: 600 14px/44px var(--k-font-body) !important;
	display: inline-flex; align-items: center; gap: 6px;
}
.learndash-wrapper .ld-navigation__progress-mark-complete-button svg { width: 18px; height: 18px; color: var(--k-accent); }
.learndash-wrapper .ld-navigation__progress-mark-complete-button[disabled] { opacity: .45 !important; cursor: not-allowed; }
body.learndash-cpt:not(.ld-in-focus-mode), body.single-sfwd-courses, body.post-type-archive-sfwd-courses { background: #FFFFFF; }
html body .learndash-wrapper .ld-content-action button.ld-navigation__progress-mark-complete-button,
html body .learndash-wrapper .ld-navigation button.ld-navigation__progress-mark-complete-button {
	background: var(--k-charcoal) !important; color: var(--k-cream) !important; border-color: var(--k-charcoal) !important;
}
html body .learndash-wrapper .ld-focus .ld-focus-sidebar-trigger,
html body .learndash-wrapper .ld-focus .ld-focus-sidebar-trigger .ld-icon {
	background: var(--k-accent) !important; color: var(--k-on-accent) !important; border-radius: 50%;
}

/* LearnDash 5 design tokens set to Kura (the modern templates read these, not the old colour settings) */
body .learndash-wrapper, body .learndash, body .ld-layout {
	--ld-color-brand-primary: #303841;
	--ld-color-button-bg: #303841;
	--ld-color-button-text: #F8F2EB;
	--ld-color-semantic-button-primary-background: #303841;
	--ld-color-semantic-button-primary-background-hover: #262C33;
	--ld-color-semantic-text-button-primary: #F8F2EB;
	--ld-color-semantic-button-secondary-background: #FFFFFF;
	--ld-color-semantic-button-secondary-background-hover: #FBF9F6;
	--ld-color-semantic-button-secondary-border: #303841;
	--ld-color-semantic-button-secondary-border-hover: #262C33;
	--ld-color-semantic-button-tertiary-border: #303841;
	--ld-color-semantic-button-tertiary-focus: #E8F8C2;
	--ld-color-semantic-button-tertiary-text: #303841;
	--ld-color-semantic-button-tertiary-text-hover: #000000;
	--ld-color-semantic-text-link: #303841;
	--ld-color-semantic-text-link-hover: #000000;
	--ld-color-semantic-general-tab-underline: #E4DCD2;
	--ld-color-system-body-text: #303841;
	--ld-color-system-middle-gray: #E4DCD2;
	--ld-color-system-middle-gray-light: #F3EDE5;
	--ld-color-system-light-2: #FBF9F6;
	--ld-color-primitives-blue-100: #FBF9F6;
	--ld-color-primitives-blue-150: #EFE7DD;
	--ld-color-primitives-blue-175: #E4DCD2;
	--ld-color-primitives-blue-200: #CFC6BA;
	--ld-color-primitives-blue-500: #303841;
	--ld-color-primitives-blue-800: #262C33;
	--ld-color-field-bg: #FFFFFF;
	--ld-typography-font-family: 'Inter', system-ui, sans-serif;
	--ld-typography-desktop-link-decoration: none;
}
/* LearnDash's own rule (.ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button) is five classes deep; this is six. */
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.ld-navigation__progress-mark-complete-button,
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.ld-button {
	background: #303841 !important; color: #F8F2EB !important; border: 1px solid #303841 !important; opacity: 1 !important;
}
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.ld-navigation__progress-mark-complete-button:hover { background: #262C33 !important; }
@media (max-width: 960px) {
	body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.ld-navigation__progress-mark-complete-button {
		min-height: 40px !important; padding: 10px 14px !important; font: 600 13px/1.2 var(--k-font-body) !important; white-space: nowrap;
	}
}

/* The course image is the overview header (theme), so LearnDash's own copy below it is hidden. */
.k-page--after-hero .ld-featured-image--course { display: none !important; }

/* Quiz results (completion) page */
.learndash-wrapper .wpProQuiz_results { font-family: var(--k-font-body); color: var(--k-charcoal); }
.learndash-wrapper .wpProQuiz_results .wpProQuiz_header {
	font: 600 13px var(--k-font-body) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--k-muted); margin: 8px 0 12px;
}
.learndash-wrapper .wpProQuiz_results > p:first-of-type { font-size: 17px; margin: 0 0 4px; }
.learndash-wrapper .wpProQuiz_results .wpProQuiz_correct_answer { font-weight: 700; }
.learndash-wrapper .wpProQuiz_results .wpProQuiz_quiz_time { font-size: 13px; color: var(--k-muted); margin: 0 0 20px; }
.learndash-wrapper .wpProQuiz_results .wpProQuiz_points--message,
.learndash-wrapper .wpProQuiz_results .wpProQuiz_points {
	background: var(--k-charcoal) !important; color: var(--k-cream) !important; border: 0 !important; border-radius: 20px !important;
	padding: 28px 32px !important; text-align: left !important; font: 500 17px/1.4 var(--k-font-body) !important;
}
.learndash-wrapper .wpProQuiz_results .wpProQuiz_points--message span { font: 600 22px var(--k-font-display); color: var(--k-accent); }
.learndash-wrapper .wpProQuiz_results .ld-quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start !important; border-top: 1px solid var(--k-line); padding-top: 24px; margin-top: 24px; }
html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions input.wpProQuiz_button,
html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions .quiz_continue_link a {
	min-height: 48px; padding: 0 24px !important; border-radius: 999px !important; font: 600 15px/48px var(--k-font-body) !important;
	text-decoration: none !important; margin: 0 !important; float: none !important; box-shadow: none !important;
	background: #FFFFFF !important; color: #303841 !important; border: 1px solid #303841 !important;
}
html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions .quiz_continue_link a { background: #303841 !important; color: #F8F2EB !important; display: inline-block; }

/* On brand: every primary action button is Volt with charcoal text (secondary = charcoal outline). */
body .learndash-wrapper, body .learndash, body .ld-layout {
	--ld-color-button-bg: #C8F169;
	--ld-color-button-text: #303841;
	--ld-color-semantic-button-primary-background: #C8F169;
	--ld-color-semantic-button-primary-background-hover: #B7E64F;
	--ld-color-semantic-text-button-primary: #303841;
}
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.ld-navigation__progress-mark-complete-button,
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.ld-button,
html body .learndash-wrapper .ld-content-action button.ld-navigation__progress-mark-complete-button,
html body .learndash-wrapper .ld-navigation button.ld-navigation__progress-mark-complete-button,
.learndash-wrapper .ld-navigation__next-link,
html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions .quiz_continue_link a,
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="startQuiz"],
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="next"],
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="check"],
.learndash-wrapper .ld-button:not(.ld-button-transparent):not(.ld-button-reverse),
.learndash-wrapper .btn-join, .learndash-wrapper #btn-join {
	background: #C8F169 !important; color: #303841 !important; border: 1px solid #C8F169 !important;
}
body .learndash-wrapper .ld-focus .ld-focus-header .sfwd-mark-complete .learndash_mark_complete_button.ld-navigation__progress-mark-complete-button:hover,
html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions .quiz_continue_link a:hover,
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="startQuiz"]:hover,
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="next"]:hover,
.learndash-wrapper .ld-navigation__next-link:hover { background: #B7E64F !important; border-color: #B7E64F !important; }
.learndash-wrapper .ld-navigation__progress-mark-complete-button svg { color: #303841 !important; }
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="back"],
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="restartQuiz"],
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="reShowQuestion"] {
	background: #FFFFFF !important; color: #303841 !important; border: 1px solid #303841 !important;
}
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button {
	border-radius: 999px !important; min-height: 48px; padding: 0 24px !important; font: 600 15px/46px 'Inter', system-ui, sans-serif !important; box-shadow: none !important; text-shadow: none !important;
}

/* Quiz results: score by capability (theme script adds --k-pct and data-band, and a "Ways of working" group) */
.learndash-wrapper .wpProQuiz_catOverview { margin: 28px 0 8px; }
.learndash-wrapper .wpProQuiz_catOverview h4 { font: 600 20px var(--k-font-display) !important; color: var(--k-charcoal); margin: 0 0 14px !important; letter-spacing: -0.01em; }
.learndash-wrapper .wpProQuiz_catOverview > div { margin: 0 !important; }
.learndash-wrapper .wpProQuiz_catOverview ol {
	list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px;
}
.learndash-wrapper .wpProQuiz_catOverview li {
	position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
	padding: 14px 14px 22px; border: 1px solid var(--k-line) !important; border-radius: 14px; background: #FBF9F6; margin: 0 !important; overflow: hidden;
}
.learndash-wrapper .wpProQuiz_catOverview li::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 5px; border-radius: 999px;
	background: linear-gradient(to right, var(--k-bar, #303841) var(--k-pct, 0%), #E4DCD2 var(--k-pct, 0%));
}
.learndash-wrapper .wpProQuiz_catOverview li[data-band="high"] { --k-bar: #8DBB2C; }
.learndash-wrapper .wpProQuiz_catOverview li[data-band="mid"] { --k-bar: #303841; }
.learndash-wrapper .wpProQuiz_catOverview li[data-band="low"] { --k-bar: #B8AFA3; }
.learndash-wrapper .wpProQuiz_catOverview .wpProQuiz_catName { float: none !important; font: 600 14px/1.35 var(--k-font-display); color: var(--k-charcoal); min-width: 0; overflow-wrap: anywhere; }
.learndash-wrapper .wpProQuiz_catOverview h4.kura-quiz-ways { margin: 26px 0 14px !important; }
.learndash-wrapper .wpProQuiz_catOverview .wpProQuiz_catPercent { float: none !important; font: 600 14px var(--k-font-body); color: var(--k-charcoal); }
/* Bar on its own line (LearnDash's list styles flatten the tile height) */
html body .learndash-wrapper .wpProQuiz_catOverview li {
	display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
	height: auto !important; min-height: 0 !important; line-height: 1.3 !important; padding: 12px 14px 12px !important;
}
html body .learndash-wrapper .wpProQuiz_catOverview li::after {
	position: static; flex: 0 0 100%; margin-top: 10px; height: 5px;
}

/* Phone check 30 Oct */
.learndash-wrapper .ld-accordion__section--topics { border: 0 !important; padding: 0 !important; }
/* "Next" in the header is the main action wherever it appears */
html body .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action a.ld-button:has(.ld-icon-arrow-right) {
	background: #C8F169 !important; color: #303841 !important; border-color: #C8F169 !important;
}
html body .learndash-wrapper .ld-focus .ld-focus-header .ld-content-action a.ld-button:has(.ld-icon-arrow-right):hover { background: #B7E64F !important; }

/* Quiz buttons: LearnDash fixes them at 150px, left-aligned text, centred on phones. */
/* No display rule here: LearnDash hides buttons it doesn't need (Back on question 1, Check) with inline display:none. */
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button {
	width: auto !important; min-width: 0 !important; text-align: center !important; white-space: nowrap; float: none !important;
}
html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button[name="startQuiz"] { margin: 8px 0 16px !important; }
@media (max-width: 640px) {
	html body .learndash-wrapper .wpProQuiz_content input.wpProQuiz_button,
	html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions .quiz_continue_link a {
		width: 100% !important; margin: 0 0 10px !important; text-align: center !important;
	}
	html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions .quiz_continue_link a { display: block; }
	html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions { flex-direction: column; }
	html body .learndash-wrapper .wpProQuiz_results .ld-quiz-actions .quiz_continue_link { width: 100%; }
}
/* Quiz answers: selected answer in charcoal, not LearnDash blue */
.learndash-wrapper .wpProQuiz_content input[type="radio"], .learndash-wrapper .wpProQuiz_content input[type="checkbox"] { accent-color: #303841; }
html body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label { border-radius: 14px; border-color: #E4DCD2 !important; }
html body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label.is-selected,
html body .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label:has(input:checked) {
	border-color: #303841 !important; box-shadow: 0 0 0 1px #303841 !important; background: #FBF9F6 !important;
}
