/* TennisGate LearnDash learning interface. Scoped to LearnDash learning pages only. */
body.tgc-learning-ui {
	--tgc-learn-surface: #ffffff;
	--tgc-learn-soft: #f6f7f8;
	--tgc-learn-border: #e7e8ea;
	--tgc-learn-text: #25282b;
	--tgc-learn-muted: #6b7176;
}

.tgc-learning-ui .learndash-wrapper {
	font-family: inherit;
	color: var(--tgc-learn-text);
}

/* Focus Mode shell */
.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-sidebar {
	width: var(--tgc-learn-sidebar);
	background: var(--tgc-learn-soft);
	border-right: 1px solid var(--tgc-learn-border);
}

.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-main {
	margin-left: var(--tgc-learn-sidebar);
}

.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-content {
	max-width: var(--tgc-learn-content);
	padding-left: 42px;
	padding-right: 42px;
}

.tgc-learning-ui .learndash-wrapper .ld-focus-header {
	box-shadow: 0 1px 0 var(--tgc-learn-border);
	background: rgba(255,255,255,.98);
}

.tgc-learning-compact-header .learndash-wrapper .ld-focus-header {
	height: 68px;
}

.tgc-learning-ui .learndash-wrapper .ld-focus-header .ld-brand-logo {
	padding: 8px 18px;
}

/* Sidebar navigation */
.tgc-learning-ui .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading {
	background: var(--tgc-learn-surface);
	border-bottom: 1px solid var(--tgc-learn-border);
}

.tgc-learning-ui .learndash-wrapper .ld-course-navigation .ld-lesson-item-preview,
.tgc-learning-ui .learndash-wrapper .ld-course-navigation .ld-topic-title {
	border-radius: 10px;
	margin: 3px 8px;
	transition: background-color .18s ease, color .18s ease;
}

.tgc-learning-ui .learndash-wrapper .ld-course-navigation .ld-lesson-item-preview:hover,
.tgc-learning-ui .learndash-wrapper .ld-course-navigation .ld-topic-title:hover {
	background: #fff;
}

.tgc-learning-ui .learndash-wrapper .ld-course-navigation .ld-is-current-item .ld-lesson-item-preview,
.tgc-learning-ui .learndash-wrapper .ld-course-navigation .ld-topic-title.ld-is-current-item,
.tgc-learning-ui .learndash-wrapper .ld-course-navigation .ld-is-current-item > a {
	color: var(--tgc-learn-accent);
	font-weight: 600;
}

/* Progress */
.tgc-learning-ui .learndash-wrapper .ld-progress .ld-progress-bar {
	background: #eceef0;
	border-radius: 999px;
	overflow: hidden;
}

.tgc-learning-ui .learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage {
	background: var(--tgc-learn-accent);
	border-radius: 999px;
}

.tgc-learning-ui .learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats .ld-progress-percentage {
	color: var(--tgc-learn-accent);
	font-weight: 700;
}

/* Content typography */
.tgc-learning-ui .learndash-wrapper .ld-focus-content h1,
.tgc-learning-ui .learndash-wrapper .ld-focus-content h2,
.tgc-learning-ui .learndash-wrapper .ld-focus-content h3 {
	color: var(--tgc-learn-text);
	letter-spacing: -.02em;
}

.tgc-learning-ui .learndash-wrapper .ld-focus-content h1 {
	font-weight: 700;
	line-height: 1.15;
}

/* Buttons */
.tgc-learning-ui .learndash-wrapper .ld-button,
.tgc-learning-ui .learndash-wrapper a.ld-button,
.tgc-learning-ui .learndash-wrapper input[type="submit"].wpProQuiz_button,
.tgc-learning-ui .learndash-wrapper .wpProQuiz_button,
.tgc-learning-ui .learndash-wrapper .wpProQuiz_button2 {
	background: var(--tgc-learn-accent) !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-weight: 600;
	min-height: 44px;
	padding: 11px 22px !important;
	transition: opacity .18s ease, transform .18s ease;
}

.tgc-learning-ui .learndash-wrapper .ld-button:hover,
.tgc-learning-ui .learndash-wrapper .wpProQuiz_button:hover,
.tgc-learning-ui .learndash-wrapper .wpProQuiz_button2:hover {
	opacity: .9;
	transform: translateY(-1px);
}

/* Presto/Vimeo inside course content */
.tgc-learning-ui .presto-block-video,
.tgc-learning-ui .presto-player__wrapper,
.tgc-learning-ui .plyr,
.tgc-learning-ui .plyr__video-wrapper {
	border-radius: var(--tgc-learn-radius);
	overflow: hidden;
}

/* Competency check */
.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_question {
	background: var(--tgc-learn-surface);
	border: 1px solid var(--tgc-learn-border);
	border-radius: var(--tgc-learn-radius);
	box-shadow: 0 8px 28px rgba(24,28,32,.055);
	padding: 28px;
	margin: 0 0 24px;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_question_text {
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.55;
	margin-bottom: 20px;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionList {
	background: transparent;
	border: 0;
	padding: 0;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem {
	background: #fafafa;
	border: 1px solid var(--tgc-learn-border);
	border-radius: 11px;
	margin: 10px 0 !important;
	padding: 13px 15px !important;
	transition: border-color .18s ease, background-color .18s ease;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:hover {
	background: #fff;
	border-color: #cfd2d5;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	line-height: 1.5;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem input[type="radio"],
.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem input[type="checkbox"] {
	accent-color: var(--tgc-learn-accent);
	margin-top: .25em;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_response {
	border: 0;
	border-radius: var(--tgc-learn-radius);
	padding: 18px 20px;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_correct {
	background: #eef8f2;
	border-left: 4px solid #2f8f57;
}

.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_incorrect {
	background: #fff4ef;
	border-left: 4px solid var(--tgc-learn-accent);
}

.tgc-learning-ui .learndash-wrapper .ld-status {
	border-radius: 999px;
	font-weight: 600;
}

.tgc-learning-ui .learndash-wrapper .ld-status-complete,
.tgc-learning-ui .learndash-wrapper .ld-status-complete.ld-secondary-background {
	background-color: var(--tgc-learn-accent) !important;
}

@media (max-width: 1024px) {
	.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-main {
		margin-left: 0;
	}
	.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-content {
		padding-left: 26px;
		padding-right: 26px;
	}
}

@media (max-width: 640px) {
	.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-content {
		padding-left: 18px;
		padding-right: 18px;
	}
	.tgc-learning-quiz-cards .learndash-wrapper .wpProQuiz_content .wpProQuiz_question {
		padding: 20px 16px;
	}
}

/* v1.5: secondary previous/next learning navigation.
 * Keep route navigation quiet; reserve strong emphasis for the primary learning action.
 */
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:first-child .ld-button,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:last-child .ld-button,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:first-child a.ld-button,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:last-child a.ld-button {
	background: #f2f3f4 !important;
	color: #34383c !important;
	border: 0 !important;
	box-shadow: none !important;
	font-weight: 600;
	transform: none;
	transition: background-color .18s ease, color .18s ease;
}

.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:first-child .ld-button:hover,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:last-child .ld-button:hover,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:first-child a.ld-button:hover,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:last-child a.ld-button:hover {
	background: #e2e4e6 !important;
	color: #25282b !important;
	opacity: 1;
	transform: none;
}

.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:first-child .ld-button:active,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:last-child .ld-button:active,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:first-child a.ld-button:active,
.tgc-learning-ui .learndash-wrapper .ld-content-actions > .ld-content-action:last-child a.ld-button:active {
	background: #d5d8da !important;
	color: #202326 !important;
}

/* The completion action remains primary, but softer than pure black. */
.tgc-learning-ui .learndash-wrapper .ld-content-actions form .learndash_mark_complete_button,
.tgc-learning-ui .learndash-wrapper .ld-content-actions .learndash_mark_complete_button {
	background: #303438 !important;
	color: #fff !important;
}
.tgc-learning-ui .learndash-wrapper .ld-content-actions form .learndash_mark_complete_button:hover,
.tgc-learning-ui .learndash-wrapper .ld-content-actions .learndash_mark_complete_button:hover {
	background: #24282b !important;
}


/* v1.5.2: Focus Mode sidebar collapse control.
 * LearnDash uses a tall rectangular trigger whose icon inherits its background.
 * Keep the hit area, but make it transparent so only the circular control is visible.
 */
.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger::before,
.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger::after {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger .ld-icon {
	background: var(--tgc-learn-accent) !important;
	color: #fff !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}

.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger:hover .ld-icon {
	filter: brightness(.93);
}

.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger:active .ld-icon {
	filter: brightness(.86);
}


/* v1.5.3: make Focus Mode collapse reclaim the sidebar space.
 * LearnDash toggles .ld-focus-sidebar-collapsed on .ld-focus.
 * Our regular desktop rule reserves the configured sidebar width, so the
 * collapsed state must explicitly remove that margin and allow a wider canvas.
 */
@media (min-width: 1025px) {
	.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-main {
		transition: margin-left .24s ease;
	}

	.tgc-learning-ui .learndash-wrapper .ld-focus .ld-focus-content {
		transition: max-width .24s ease;
	}

	.tgc-learning-ui .learndash-wrapper .ld-focus.ld-focus-sidebar-collapsed .ld-focus-main {
		margin-left: 0 !important;
		width: 100%;
	}

	.tgc-learning-ui .learndash-wrapper .ld-focus.ld-focus-sidebar-collapsed .ld-focus-content {
		max-width: var(--tgc-learn-content-collapsed) !important;
	}
}

/* v1.5.4: TennisGate Suite typography on LearnDash course pages.
 * Keep this scoped to the TG learning UI so theme typography elsewhere is untouched.
 */
.tgc-learning-ui.single-sfwd-courses .entry-title,
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-course-title,
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper h1.entry-title,
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-course-status + h1 {
	font-family: "Poppins", sans-serif !important;
	font-weight: 800 !important;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

/* LearnDash renders the course-content heading with slightly different
 * classes across LD30 versions, so cover the documented/current variants
 * without affecting lesson/topic titles inside the list. */
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-course-content-title,
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-item-list-section-heading,
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-item-list.ld-course-list .ld-section-heading h2,
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-item-list.ld-lesson-list .ld-section-heading h2,
.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-section-heading h2 {
	font-family: "Poppins", sans-serif !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

@media (max-width: 767px) {
	.tgc-learning-ui.single-sfwd-courses .entry-title,
	.tgc-learning-ui.single-sfwd-courses .learndash-wrapper .ld-course-title {
		line-height: 1.16;
	}
}

/* v1.6.1: TennisGate restricted certification course state.
 * Access itself remains controlled by LearnDash / Memberships. This only
 * replaces the standard no-access sales-style infobar with a calm TG card.
 */
.tgc-learning-ui.tgc-certification-no-access.single-sfwd-courses .learndash-wrapper > .ld-course-status,
.tgc-learning-ui.tgc-certification-no-access.single-sfwd-courses .learndash-wrapper .ld-course-status.ld-course-status-not-enrolled,
.tgc-learning-ui.tgc-certification-no-access.single-sfwd-courses .learndash-wrapper .ld-course-status:not(.ld-course-status-enrolled) {
	display: none !important;
}

.tgc-learning-ui .tgc-restricted-course-card {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 18px 0 30px;
	padding: 26px 28px;
	background: #f6f7f8;
	border: 1px solid #e5e7e9;
	border-radius: var(--tgc-learn-radius);
	box-shadow: none;
	color: #303438;
}

.tgc-learning-ui .tgc-restricted-course-card__icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #dfe2e5;
	color: #5b6166;
	font-weight: 800;
	font-size: 17px;
}

.tgc-learning-ui .tgc-restricted-course-card__content {
	min-width: 0;
	max-width: 900px;
}

.tgc-learning-ui .tgc-restricted-course-card__eyebrow {
	margin: 0 0 5px !important;
	font-family: "Poppins", sans-serif;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #777d82;
}

.tgc-learning-ui .tgc-restricted-course-card h2 {
	margin: 0 0 8px !important;
	font-family: "Poppins", sans-serif !important;
	font-size: clamp(1.15rem, 1.5vw, 1.42rem);
	font-weight: 800 !important;
	letter-spacing: -.02em;
	line-height: 1.25;
	color: #2e3236;
}

.tgc-learning-ui .tgc-restricted-course-card p:not(.tgc-restricted-course-card__eyebrow) {
	margin: 0 !important;
	max-width: 780px;
	font-size: .98rem;
	line-height: 1.65;
	color: #5f656a;
}

.tgc-learning-ui .tgc-restricted-course-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.tgc-learning-ui .tgc-restricted-course-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-size: .9rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.tgc-learning-ui .tgc-restricted-course-card__button--primary {
	background: #353a3e;
	border: 1px solid #353a3e;
	color: #fff !important;
}
.tgc-learning-ui .tgc-restricted-course-card__button--primary:hover {
	background: #24282b;
	border-color: #24282b;
	color: #fff !important;
}

.tgc-learning-ui .tgc-restricted-course-card__button--secondary {
	background: #fff;
	border: 1px solid #d9dde0;
	color: #3e4448 !important;
}
.tgc-learning-ui .tgc-restricted-course-card__button--secondary:hover {
	background: #eceeef;
	border-color: #d0d4d7;
	color: #292d30 !important;
}

@media (max-width: 640px) {
	.tgc-learning-ui .tgc-restricted-course-card {
		gap: 14px;
		padding: 20px 18px;
	}
	.tgc-learning-ui .tgc-restricted-course-card__icon {
		flex-basis: 36px;
		width: 36px;
		height: 36px;
	}
	.tgc-learning-ui .tgc-restricted-course-card__actions {
		flex-direction: column;
	}
	.tgc-learning-ui .tgc-restricted-course-card__button {
		width: 100%;
	}
}

/* v1.6.2: TG Course Access Card.
 * Replaces LearnDash's three-column status/price/action infobar on courses that
 * opt into the TG card (certification courses are opted in automatically).
 * Access, enrollment and commerce remain controlled by LearnDash, Memberships
 * and WooCommerce; this layer only presents the current state.
 */
/* v1.6.3 bugfix: suppress the native LearnDash infobar regardless of whether
 * the active theme wraps it as a direct child of .learndash-wrapper. */
.tgc-learning-ui.tgc-course-access-card-enabled.single-sfwd-courses .ld-course-status,
.tgc-learning-ui.tgc-course-access-card-enabled.single-sfwd-courses .learndash-wrapper .ld-course-status,
.tgc-learning-ui.tgc-course-access-card-enabled.single-sfwd-courses .ld-course-status.ld-course-status-not-enrolled,
.tgc-learning-ui.tgc-course-access-card-enabled.single-sfwd-courses .ld-course-status.ld-course-status-enrolled {
	display: none !important;
}

.tgc-learning-ui .tgc-course-access-card {
	margin: 18px 0 30px;
	padding: 24px 26px;
	background: #f7f8f9;
	border: 1px solid #e4e7e9;
	border-radius: var(--tgc-learn-radius);
	box-shadow: none;
	color: #303438;
}

.tgc-learning-ui .tgc-course-access-card__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.tgc-learning-ui .tgc-course-access-card__copy {
	min-width: 0;
	max-width: 860px;
}

.tgc-learning-ui .tgc-course-access-card__eyebrow {
	margin: 0 0 5px !important;
	font-family: "Poppins", sans-serif;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .055em;
	text-transform: uppercase;
	color: #7a8085;
}

.tgc-learning-ui .tgc-course-access-card h2 {
	margin: 0 !important;
	font-family: "Poppins", sans-serif !important;
	font-size: clamp(1.12rem, 1.35vw, 1.38rem);
	font-weight: 800 !important;
	letter-spacing: -.02em;
	line-height: 1.25;
	color: #2f3336;
}

.tgc-learning-ui .tgc-course-access-card__description {
	margin: 8px 0 0 !important;
	max-width: 760px;
	font-size: .95rem;
	line-height: 1.6;
	color: #62686d;
}

.tgc-learning-ui .tgc-course-access-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.tgc-learning-ui .tgc-course-access-card__meta span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	background: #fff;
	border: 1px solid #e0e3e5;
	border-radius: 999px;
	font-size: .79rem;
	font-weight: 600;
	color: #596066;
}

.tgc-learning-ui .tgc-course-access-card__price {
	margin: 13px 0 0 !important;
	font-family: "Poppins", sans-serif;
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #303438;
}

.tgc-learning-ui .tgc-course-access-card__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 9px;
	flex: 0 0 auto;
}

.tgc-learning-ui .tgc-course-access-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-size: .88rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none !important;
	white-space: nowrap;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.tgc-learning-ui .tgc-course-access-card__button--primary {
	background: #34383c;
	border: 1px solid #34383c;
	color: #fff !important;
}
.tgc-learning-ui .tgc-course-access-card__button--primary:hover {
	background: #25292c;
	border-color: #25292c;
	color: #fff !important;
}

.tgc-learning-ui .tgc-course-access-card__button--secondary {
	background: #fff;
	border: 1px solid #d9dde0;
	color: #3d4347 !important;
}
.tgc-learning-ui .tgc-course-access-card__button--secondary:hover {
	background: #eceeef;
	border-color: #d0d4d7;
	color: #282c2f !important;
}

.tgc-learning-ui .tgc-course-access-card__progress {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #e1e4e6;
}

.tgc-learning-ui .tgc-course-access-card__progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
	font-size: .78rem;
	color: #747b80;
}

.tgc-learning-ui .tgc-course-access-card__progress-head strong {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	color: #454b50;
}

.tgc-learning-ui .tgc-course-access-card__progress-track {
	height: 7px;
	background: #e5e8ea;
	border-radius: 999px;
	overflow: hidden;
}

.tgc-learning-ui .tgc-course-access-card__progress-track > span {
	display: block;
	height: 100%;
	background: #4e555a;
	border-radius: inherit;
	transition: width .25s ease;
}

/* Keep orange as a small brand accent rather than the dominant state color. */
.tgc-learning-ui .tgc-course-access-card--granted {
	border-top: 3px solid var(--tgc-learn-accent);
}

@media (max-width: 820px) {
	.tgc-learning-ui .tgc-course-access-card {
		padding: 21px 20px;
	}
	.tgc-learning-ui .tgc-course-access-card__main {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}
	.tgc-learning-ui .tgc-course-access-card__actions {
		justify-content: flex-start;
		width: 100%;
	}
}

@media (max-width: 520px) {
	.tgc-learning-ui .tgc-course-access-card__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.tgc-learning-ui .tgc-course-access-card__button {
		width: 100%;
	}
	.tgc-learning-ui .tgc-course-access-card__progress-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
}

/* v1.8.4: Focus Mode polish – compact brand, aligned sidebar heading. */
.tgc-learning-ui .learndash-wrapper .ld-focus-header .ld-brand-logo {
	box-sizing: border-box;
	width: var(--tgc-learn-sidebar) !important;
	min-width: 0 !important;
	max-width: var(--tgc-learn-sidebar) !important;
	height: 68px;
	padding: 6px 18px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.tgc-learning-ui .learndash-wrapper .ld-focus-header .ld-brand-logo img {
	width: auto !important;
	height: auto !important;
	max-width: 92px !important;
	max-height: 52px !important;
	object-fit: contain;
}
.tgc-learning-ui .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 12px 46px 12px 16px !important;
	min-height: 72px;
	display: flex;
	align-items: center;
	overflow: visible;
}
.tgc-learning-ui .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading h3,
.tgc-learning-ui .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading .ld-course-navigation-heading-title {
	margin: 0 !important;
	line-height: 1.18 !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	word-break: normal;
}
.tgc-learning-ui .learndash-wrapper .ld-focus-sidebar .ld-focus-sidebar-trigger {
	right: 8px !important;
}

/* v1.8.4: TG Mastery result card. */
.tgc-learning-ui .tgc-mastery-result-card {
	position: relative;
	margin: 8px 0 28px;
	padding: 24px 26px;
	background: #f7f8f9;
	border: 1px solid #e2e5e8;
	border-radius: 14px;
	color: #25282b;
}
.tgc-learning-ui .tgc-mastery-result-card.is-complete {
	background: #f4f8f5;
	border-color: #cfe2d4;
}
.tgc-learning-ui .tgc-mastery-result-kicker {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #697077;
	margin-bottom: 7px;
}
.tgc-learning-ui .tgc-mastery-result-card h2 {
	font-family: "Poppins", sans-serif !important;
	font-weight: 800 !important;
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.15;
	margin: 0 0 8px !important;
}
.tgc-learning-ui .tgc-mastery-result-summary {
	font-weight: 700;
	margin: 0 0 14px;
}
.tgc-learning-ui .tgc-mastery-progress {
	height: 9px;
	background: #e4e7e9;
	border-radius: 999px;
	overflow: hidden;
	margin-right: 58px;
}
.tgc-learning-ui .tgc-mastery-progress span {
	display: block;
	height: 100%;
	background: var(--tgc-learn-accent);
	border-radius: inherit;
}
.tgc-learning-ui .tgc-mastery-result-card.is-complete .tgc-mastery-progress span { background: #4f8b61; }
.tgc-learning-ui .tgc-mastery-result-percent {
	float: right;
	margin-top: -18px;
	font-size: 13px;
	font-weight: 800;
}
.tgc-learning-ui .tgc-mastery-result-card p { margin: 16px 0 0; }

@media (max-width: 768px) {
	.tgc-learning-ui .tgc-mastery-result-card { padding: 20px; }
	.tgc-learning-ui .learndash-wrapper .ld-focus-header .ld-brand-logo img { max-width: 74px !important; max-height: 44px !important; }
}

/* v1.8.6: persistent mastery result + feedback for unresolved questions. */
.tgc-learning-ui .tgc-mastery-result-mount {
	margin: 0 0 24px;
}
.tgc-learning-ui .tgc-mastery-feedback {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e1e4e6;
}
.tgc-learning-ui .tgc-mastery-feedback-title {
	font-family: "Poppins", sans-serif !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	margin: 0 0 14px !important;
}
.tgc-learning-ui .tgc-mastery-feedback-item {
	margin: 0 0 14px;
	padding: 18px 18px 16px;
	background: #fff;
	border: 1px solid #e2e5e8;
	border-radius: 12px;
}
.tgc-learning-ui .tgc-mastery-feedback-item:last-child { margin-bottom: 0; }
.tgc-learning-ui .tgc-mastery-feedback-status {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 9px;
	margin-bottom: 8px;
	border-radius: 999px;
	background: #f1f3f4;
	color: #666d72;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.tgc-learning-ui .tgc-mastery-feedback-item h3 {
	font-family: "Poppins", sans-serif !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	margin: 0 0 6px !important;
}
.tgc-learning-ui .tgc-mastery-feedback-question {
	font-weight: 600;
	line-height: 1.5;
	color: #303438;
}
.tgc-learning-ui .tgc-mastery-feedback-box {
	margin-top: 12px;
	padding: 13px 14px;
	background: #f7f8f9;
	border-left: 3px solid var(--tgc-learn-accent);
	border-radius: 8px;
	line-height: 1.5;
}
.tgc-learning-ui .tgc-mastery-feedback-box > strong {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #666d72;
}
@media (max-width: 768px) {
	.tgc-learning-ui .tgc-mastery-feedback-item { padding: 16px; }
}
