.learning-templates-lxp-pathway-picker-wrap,
.learning-templates-lxp-course-outline,
.learning-templates-lxp-branch-choice-prompt {
	margin: 1.5em 0;
}

.learning-templates-lxp-branch-choice-prompt__header {
	margin: 0 0 1.35rem;
	max-width: 42rem;
}

.learning-templates-lxp-branch-choice-prompt__title {
	margin: 0 0 0.4rem;
	font-family: var(--learning-templates-lxp-heading-h2-font-family, inherit);
	font-weight: var(--learning-templates-lxp-heading-h2-font-weight, 700);
	font-size: var(--learning-templates-lxp-heading-h2-font-size, 1.5rem);
	line-height: var(--learning-templates-lxp-heading-h2-line-height, 1.25);
	color: var(--learning-templates-lxp-heading-h2-color, #1d2327);
}

.learning-templates-lxp-branch-choice-prompt__intro {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--learning-templates-lxp-body-color, #50575e);
}

.learning-templates-lxp-branch-choice-prompt__empty {
	margin: 0;
	color: var(--learning-templates-lxp-body-color, #646970);
}

.learning-templates-lxp-branch-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.15rem;
	align-items: stretch;
}

.learning-templates-lxp-pathway-picker {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.75rem;
	align-items: stretch;
}

.learning-templates-lxp-pathway-picker--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learning-templates-lxp-pathway-picker--columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learning-templates-lxp-pathway-picker--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.learning-templates-lxp-pathway-picker--list {
	display: flex;
	flex-direction: column;
}

.learning-templates-lxp-pathway-picker .learning-templates-lxp-select-pathway {
	display: block;
	margin: 0;
	width: 100%;
}

/* Card-style branch choices (prompt + course outline). */
.learning-templates-lxp-branch-options .learning-templates-lxp-select-branch.learning-templates-lxp-branch-card,
button.learning-templates-lxp-branch-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0.85rem;
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 1.25rem 1.3rem 1.15rem;
	border: 1px solid #d8dde3;
	border-radius: 14px;
	background:
		linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
	box-shadow: 0 1px 2px rgba(29, 35, 39, 0.04);
	color: var(--learning-templates-lxp-body-color, #1d2327);
	text-align: left;
	cursor: pointer;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	line-height: inherit;
	overflow: hidden;
}

.learning-templates-lxp-branch-card.is-busy {
	opacity: 0.72;
	cursor: wait;
}

.learning-templates-lxp-branch-card.is-notice-open {
	z-index: 3;
	overflow: visible;
}

.learning-templates-lxp-branch-card__notice {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 6;
	padding: 0.7rem 2rem 0.7rem 0.8rem;
	border-radius: 8px;
	background: rgba(29, 35, 39, 0.94);
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	text-align: left;
	pointer-events: auto;
	animation: learning-templates-lxp-branch-notice-in 0.18s ease;
}

.learning-templates-lxp-branch-card__notice::after {
	content: "";
	position: absolute;
	left: 1.25rem;
	bottom: 100%;
	border: 6px solid transparent;
	border-bottom-color: rgba(29, 35, 39, 0.94);
}

.learning-templates-lxp-branch-card__notice-title {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.35;
}

.learning-templates-lxp-branch-card__notice-message {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	line-height: 1.45;
	opacity: 0.9;
}

.learning-templates-lxp-branch-card__notice-dismiss {
	position: absolute;
	top: 0.35rem;
	right: 0.4rem;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
}

.learning-templates-lxp-branch-card__notice-dismiss:hover,
.learning-templates-lxp-branch-card__notice-dismiss:focus-visible {
	opacity: 1;
	outline: none;
	background: rgba(255, 255, 255, 0.12);
}

@keyframes learning-templates-lxp-branch-notice-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.learning-templates-lxp-branch-options .learning-templates-lxp-select-branch.learning-templates-lxp-branch-card:hover,
.learning-templates-lxp-branch-options .learning-templates-lxp-select-branch.learning-templates-lxp-branch-card:focus-visible,
button.learning-templates-lxp-branch-card:hover,
button.learning-templates-lxp-branch-card:focus-visible {
	transform: translateY(-3px);
	border-color: #2271b1;
	background:
		linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
	box-shadow:
		0 10px 24px rgba(34, 113, 177, 0.12),
		0 2px 6px rgba(29, 35, 39, 0.06);
	outline: none;
}

.learning-templates-lxp-branch-options .learning-templates-lxp-select-branch.learning-templates-lxp-branch-card:focus-visible,
button.learning-templates-lxp-branch-card:focus-visible {
	box-shadow:
		0 0 0 3px rgba(34, 113, 177, 0.28),
		0 10px 24px rgba(34, 113, 177, 0.12);
}

.learning-templates-lxp-branch-card__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
}

.learning-templates-lxp-branch-card__type {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(34, 113, 177, 0.1);
	color: #135e96;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.3;
}

.learning-templates-lxp-branch-card__title {
	display: block;
	font-family: var(--learning-templates-lxp-heading-h3-font-family, inherit);
	font-weight: var(--learning-templates-lxp-heading-h3-font-weight, 700);
	font-size: 1.08rem;
	line-height: 1.3;
	color: var(--learning-templates-lxp-heading-h3-color, #1d2327);
}

.learning-templates-lxp-branch-card__excerpt {
	display: block;
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--learning-templates-lxp-body-color, #50575e);
}

.learning-templates-lxp-branch-card__excerpt--empty {
	font-style: italic;
	opacity: 0.75;
}

.learning-templates-lxp-branch-card__action {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(29, 35, 39, 0.08);
	width: 100%;
	font-size: 0.88rem;
	font-weight: 600;
	color: #2271b1;
}

.learning-templates-lxp-branch-card__action-icon {
	display: inline-flex;
	transition: transform 0.18s ease;
}

.learning-templates-lxp-branch-card:hover .learning-templates-lxp-branch-card__action-icon,
.learning-templates-lxp-branch-card:focus-visible .learning-templates-lxp-branch-card__action-icon {
	transform: translateX(3px);
}

@media (max-width: 600px) {
	.learning-templates-lxp-branch-options {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}

	.learning-templates-lxp-pathway-picker,
	.learning-templates-lxp-pathway-picker--columns-2,
	.learning-templates-lxp-pathway-picker--columns-3,
	.learning-templates-lxp-pathway-picker--columns-4 {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}
}

.learning-templates-lxp-course-outline-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.learning-templates-lxp-outline-item {
	border: 1px solid #ddd;
	margin-bottom: 0.5em;
	padding: 0.75em 1em;
	border-radius: 4px;
}

.learning-templates-lxp-outline-branch-choice .learning-templates-lxp-outline-label {
	display: block;
	margin: 0 0 0.85rem;
	font-weight: 700;
}

.learning-templates-lxp-outline-branch-choice {
	padding: 1rem 1.1rem 1.15rem;
}

.learning-templates-lxp-outline-item.is-current {
	border-color: #2271b1;
	background: #f0f6fc;
}

.learning-templates-lxp-outline-item.is-complete {
	opacity: 0.85;
}

.learning-templates-lxp-outline-item-main {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
}

.learning-templates-lxp-outline-status {
	font-size: 0.9em;
	color: var(--learning-templates-lxp-body-color, #50575e);
}

.learning-templates-lxp-mark-complete {
	margin-top: 0.5em;
}

.learning-templates-lxp-learning-post-footer .learning-templates-lxp-mark-complete {
	margin-top: 0;
	vertical-align: middle;
}

.learning-templates-lxp-outline-item-title {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	flex: 1 1 auto;
	min-width: 0;
}

.learning-templates-lxp-node-complete-check {
	color: #00a32a;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1;
	flex-shrink: 0;
}

.learning-templates-lxp-outline-item.is-complete {
	border-color: #00a32a;
}

/* Module section dividers */
.learning-templates-lxp-outline-section {
	padding: 0;
	overflow: hidden;
}

.learning-templates-lxp-outline-section-header {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75em 1em;
	width: 100%;
	box-sizing: border-box;
}

.learning-templates-lxp-outline-section-title {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 700;
}

.learning-templates-lxp-outline-section-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1;
}

.learning-templates-lxp-outline-section-status--not_started {
	color: var(--ltlxp-outline-section-not-started, #d63638);
}

.learning-templates-lxp-outline-section-status--in_progress {
	color: var(--ltlxp-outline-section-in-progress, #dba617);
}

.learning-templates-lxp-outline-section-status--complete {
	color: var(--ltlxp-outline-section-complete, #00a32a);
}

.learning-templates-lxp-outline-section-status__img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.learning-templates-lxp-outline-section-toggle {
	flex: 0 0 auto;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	line-height: 0;
}

.learning-templates-lxp-outline-section-toggle:hover,
.learning-templates-lxp-outline-section-toggle:focus {
	color: #2271b1;
	background: rgba(34, 113, 177, 0.08);
}

.learning-templates-lxp-outline-section-chevron {
	display: none;
	line-height: 0;
}

.learning-templates-lxp-outline-section-chevron svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* Collapsed: downward chevron. Expanded: upward chevron. */
.learning-templates-lxp-outline-section.is-collapsed .learning-templates-lxp-outline-section-chevron--down,
.learning-templates-lxp-outline-section:not(.is-expanded) .learning-templates-lxp-outline-section-chevron--down {
	display: inline-flex;
}

.learning-templates-lxp-outline-section.is-expanded .learning-templates-lxp-outline-section-chevron--up {
	display: inline-flex;
}

.learning-templates-lxp-outline-section.is-expanded .learning-templates-lxp-outline-section-chevron--down {
	display: none;
}

.learning-templates-lxp-outline-section-children {
	list-style: none;
	margin: 0;
	padding: 0 0.65rem 0.65rem 1rem;
	border-top: 1px solid #e2e4e7;
}

.learning-templates-lxp-outline-section-children > .learning-templates-lxp-outline-item {
	margin-bottom: 0.4em;
}

.learning-templates-lxp-outline-section-children > .learning-templates-lxp-outline-item:last-child {
	margin-bottom: 0;
}

.learning-templates-lxp-outline-section--complete {
	border-color: var(--ltlxp-outline-section-complete, #00a32a);
}

.learning-templates-lxp-outline-section--in_progress {
	border-color: var(--ltlxp-outline-section-in-progress, #dba617);
}

.learning-templates-lxp-outline-section--not_started {
	border-color: var(--ltlxp-outline-section-not-started, #d63638);
}

/* Learning post footer: prev (left), mark complete (center), next (right) - always one row. */
.learning-templates-lxp-learning-post-footer {
	display: grid;
	grid-template-columns: minmax(min-content, 1fr) fit-content(min(36rem, 48%)) minmax(min-content, 1fr);
	align-items: center;
	column-gap: 1rem;
	row-gap: 0.75rem;
	margin: 2em 0 0;
	padding-top: 1.25em;
	border-top: 1px solid #dcdcde;
	clear: both;
	width: 100%;
}

.learning-templates-lxp-learning-post-footer__prev {
	justify-self: start;
	min-width: min-content;
	max-width: 100%;
	text-align: left;
}

.learning-templates-lxp-learning-post-footer__complete {
	justify-self: center;
	width: 100%;
	min-width: min-content;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	text-align: center;
}

.learning-templates-lxp-learning-post-footer__next {
	justify-self: end;
	min-width: min-content;
	max-width: 100%;
	margin-left: 0;
	text-align: right;
}

/* Footer buttons size to their label; long labels wrap between words instead of being clipped. */
.learning-templates-lxp-learning-post-footer .button,
.learning-templates-lxp-learning-post-footer .learning-templates-lxp-adjacent-nav-link,
.learning-templates-lxp-learning-post-footer .learning-templates-lxp-mark-complete {
	width: auto !important;
	max-width: 100%;
	height: auto;
	min-height: 2.75em;
	box-sizing: border-box;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
	line-height: 1.25;
	text-align: center;
}

.learning-templates-lxp-footer-completion-notice,
.learning-templates-lxp-package-completion-notice,
.learning-templates-lxp-video-completion-notice {
	margin: 0 auto;
	max-width: 100%;
	width: 100%;
	font-size: 0.9em;
	line-height: 1.4;
	color: var(--learning-templates-lxp-body-color, #50575e);
	text-align: center;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.learning-templates-lxp-adjacent-nav-link--disabled,
a.button.learning-templates-lxp-adjacent-nav-link--disabled,
a.learning-templates-lxp-learner-player__nav-link.learning-templates-lxp-adjacent-nav-link--disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

.learning-templates-lxp-learning-post-footer__prev:empty,
.learning-templates-lxp-learning-post-footer__next:empty {
	min-height: 0;
}

/* Base chrome for LXP buttons: themes (e.g. Divi) rarely style bare `.button` on the front. */
.learning-templates-lxp-adjacent-nav-link,
a.button.learning-templates-lxp-adjacent-nav-link,
.learning-templates-lxp-question__submit.button,
.learning-templates-lxp-learning-post-footer .button,
.learning-templates-lxp-mark-complete,
.learning-templates-lxp-select-pathway,
.learning-templates-lxp-select-branch,
.learning-templates-lxp-congrats-message__button,
.learning-templates-lxp-pathway-completion a.button,
.learning-templates-lxp-learner-player__header-actions .button:not(.learning-templates-lxp-learner-player__outline-toggle),
.learning-templates-lxp-learner-player__mobile-bar .button:not(.learning-templates-lxp-learner-player__mobile-outline),
.learning-templates-lxp-learner-player__resume,
.learning-templates-lxp-learner-player__home {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	width: auto !important;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.65em 1.15em;
	border-style: solid;
	border-width: 1px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.25;
	white-space: normal;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
}

.learning-templates-lxp-adjacent-nav-link:hover,
.learning-templates-lxp-adjacent-nav-link:focus,
.learning-templates-lxp-adjacent-nav-link:active,
.learning-templates-lxp-adjacent-nav-link:visited {
	text-decoration: none;
}

/* Previous / Next lesson blocks sit side-by-side when both are present. */
.learning-templates-lxp-block-previous-lesson,
.learning-templates-lxp-block-next-lesson {
	display: inline-block;
	vertical-align: top;
	margin: 0 0.65rem 0.65rem 0;
	max-width: 100%;
}

.learning-templates-lxp-block-previous-lesson .learning-templates-lxp-adjacent-nav-link,
.learning-templates-lxp-block-next-lesson .learning-templates-lxp-adjacent-nav-link {
	margin: 0;
}

.learning-templates-lxp-block-learning-post-footer .learning-templates-lxp-learning-post-footer {
	margin-top: 0;
}

/* Keep navigation control labels free of theme link underlines. */
.learning-templates-lxp-learning-post-footer a,
.learning-templates-lxp-learner-player__nav-link,
.learning-templates-lxp-learner-player__home,
.learning-templates-lxp-learner-player__resume,
.learning-templates-lxp-learner-player__header-actions .button,
.learning-templates-lxp-learner-player__mobile-bar .button,
.learning-templates-lxp-congrats-message__button,
.learning-templates-lxp-pathway-completion a.button,
.learning-templates-lxp-mark-complete,
.learning-templates-lxp-select-pathway,
.learning-templates-lxp-select-branch,
.learning-templates-lxp-outline-item-link {
	text-decoration: none !important;
}

.learning-templates-lxp-learning-post-footer a:hover,
.learning-templates-lxp-learning-post-footer a:focus,
.learning-templates-lxp-learning-post-footer a:active,
.learning-templates-lxp-learner-player__nav-link:hover,
.learning-templates-lxp-learner-player__nav-link:focus,
.learning-templates-lxp-learner-player__nav-link:active,
.learning-templates-lxp-learner-player__home:hover,
.learning-templates-lxp-learner-player__home:focus,
.learning-templates-lxp-learner-player__home:active,
.learning-templates-lxp-learner-player__resume:hover,
.learning-templates-lxp-learner-player__resume:focus,
.learning-templates-lxp-learner-player__resume:active,
.learning-templates-lxp-learner-player__header-actions .button:hover,
.learning-templates-lxp-learner-player__header-actions .button:focus,
.learning-templates-lxp-learner-player__header-actions .button:active,
.learning-templates-lxp-learner-player__mobile-bar .button:hover,
.learning-templates-lxp-learner-player__mobile-bar .button:focus,
.learning-templates-lxp-learner-player__mobile-bar .button:active,
.learning-templates-lxp-congrats-message__button:hover,
.learning-templates-lxp-congrats-message__button:focus,
.learning-templates-lxp-congrats-message__button:active,
.learning-templates-lxp-pathway-completion a.button:hover,
.learning-templates-lxp-pathway-completion a.button:focus,
.learning-templates-lxp-pathway-completion a.button:active,
.learning-templates-lxp-mark-complete:hover,
.learning-templates-lxp-mark-complete:focus,
.learning-templates-lxp-mark-complete:active,
.learning-templates-lxp-select-pathway:hover,
.learning-templates-lxp-select-pathway:focus,
.learning-templates-lxp-select-pathway:active,
.learning-templates-lxp-select-branch:hover,
.learning-templates-lxp-select-branch:focus,
.learning-templates-lxp-select-branch:active,
.learning-templates-lxp-outline-item-link:hover,
.learning-templates-lxp-outline-item-link:focus,
.learning-templates-lxp-outline-item-link:active {
	text-decoration: none !important;
}

@media (max-width: 600px) {
	.learning-templates-lxp-learning-post-footer {
		display: grid;
		grid-template-columns: minmax(min-content, 1fr) fit-content(50%) minmax(min-content, 1fr);
		align-items: center;
		column-gap: 8px;
	}

	.learning-templates-lxp-learning-post-footer__prev,
	.learning-templates-lxp-learning-post-footer__complete,
	.learning-templates-lxp-learning-post-footer__next {
		min-width: min-content;
		max-width: none;
	}

	.learning-templates-lxp-learning-post-footer__complete {
		max-width: 100%;
	}

	.learning-templates-lxp-footer-completion-notice,
	.learning-templates-lxp-package-completion-notice,
	.learning-templates-lxp-video-completion-notice {
		max-width: 100%;
		font-size: 0.8em;
	}

	.learning-templates-lxp-learning-post-footer__prev {
		text-align: left;
	}

	.learning-templates-lxp-learning-post-footer__complete {
		text-align: center;
	}

	.learning-templates-lxp-learning-post-footer__next {
		text-align: right;
	}

	.learning-templates-lxp-learning-post-footer__prev .button,
	.learning-templates-lxp-learning-post-footer__next .button,
	.learning-templates-lxp-learning-post-footer .learning-templates-lxp-adjacent-nav-link,
	.learning-templates-lxp-mark-complete {
		width: auto !important;
		max-width: 100%;
		min-height: 44px;
		white-space: normal;
		line-height: 1.25;
		text-align: center;
	}

	.learning-templates-lxp-block-previous-lesson,
	.learning-templates-lxp-block-next-lesson {
		display: inline-block;
		margin-right: 0.5rem;
	}

	.learning-templates-lxp-outline-item-main {
		gap: 0.5em;
	}
}
