/*
 * Masteriyo's blocks on the design system. Loaded only while Masteriyo is active.
 * Generated; edit the source, not this file.
 */

/* Masteriyo turns every block support off, so a theme.json leaf has nothing to attach to; the
   base is CSS instead, pointing its ~40 :root colour variables (assets/css/public.css) at
   lattice's semantic tokens in one rule, reaching the course-taking app too. Hand-authored, not
   generated, and checked against Masteriyo 3.5.1. Only variables with no Masteriyo setting go
   here, always on; the three settable ones move with Extendable's PHP instead, off
   masteriyo-settable-colors.json, so an owner-chosen colour is never fought over by a rule that
   can't see what the owner picked. */

/* masteriyo/courses, masteriyo/single-course, the course-taking app. */
:root {
	--masteriyo-color-heading: var(--wp--custom--color--text-strong);
	--masteriyo-color-text: var(--wp--custom--color--text-strong);
	--masteriyo-color-text-light: var(--wp--custom--color--text-weak);

	/* A course card's and a related-course card's title link rests on this, not --masteriyo-color-text. */
	--masteriyo-color-grey-dark: var(--wp--custom--color--text-strong);

	/* A closed curriculum section's title reads this, not --masteriyo-color-text. */
	--masteriyo-text-color: var(--wp--custom--color--text-strong);
	--masteriyo-color-border: var(--wp--custom--color--stroke-weak);
	--masteriyo-color-white: var(--wp--custom--color--background-base);
	--masteriyo-color-danger: var(--wp--custom--color--fill-error-strong);
	--masteriyo-color-info: var(--wp--custom--color--fill-info-strong);
	--masteriyo-color-success: var(--wp--custom--color--fill-success-strong);
	--masteriyo-color-warning: var(--wp--custom--color--fill-warning-strong);

	/* The Courses page's search icon and placeholder read this. */
	--masteriyo-color-placeholder: var(--wp--custom--color--text-weak);

	/* Tints Masteriyo derives from its factory blue and never reprints, so no setting moves them. */
	--masteriyo-color-primary-lightest: var(--wp--custom--color--fill-brand-weaker);
	--masteriyo-color-primary-a10: var(--wp--custom--color--fill-brand-weaker);
	--masteriyo-color-primary-a20: var(--wp--custom--color--fill-brand-weak);

	/* A hovered link reads this; the UI link keeps its ink and underlines instead. */
	--masteriyo-color-primary-a80: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses: the block's grid or list switch on its own row at the grid's right edge, on a phone too, without Masteriyo's rule under it. */
.masteriyo-search-section:has(+ .masteriyo-w-100.masteriyo-course-list-display-section) {
	border-bottom: 0;
	flex-direction: row;
	justify-content: flex-end;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding-bottom: 0;
}

/* masteriyo/courses: on a phone Masteriyo stretches the switch across the row, so its parts keep to the right. */
.masteriyo-search-section:has(+ .masteriyo-w-100.masteriyo-course-list-display-section) .masteriyo-courses-view-mode-section {
	justify-content: flex-end;
}

/* masteriyo/courses: a row whose parts the settings all turned off keeps its margin at zero height. */
.masteriyo-course-list-display-section .masteriyo-course--content__stats:not(:has(*)),
.masteriyo-course-list-display-section .masteriyo-course-author-rating-wrapper:not(:has(*)),
body.single-mto-course .masteriyo-related-post .masteriyo-course--content__stats:not(:has(*)),
body.single-mto-course .masteriyo-related-post .masteriyo-course-author-rating-wrapper:not(:has(*)) {
	display: none;
}

/* masteriyo/courses: the vibe's card face, the one the store card spends. */
.masteriyo-course--card,
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card {
	background-color: var(--wp--custom--store-card--background);
	border-color: var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	border-style: var(--wp--custom--store-card--border-style);
	border-width: var(--wp--custom--store-card--border-width);
	box-shadow: var(--wp--custom--shadow--card);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
}

/* masteriyo/courses, masteriyo/courses-archive: every card in a row as tall as the tallest, as the card part's min-height does. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* masteriyo/courses, masteriyo/courses-archive: the filters column stretches the grid, so its rows would stretch the cards with it. */
.masteriyo-courses-wrapper.grid-view {
	align-content: start;
}

/* masteriyo/courses, masteriyo/courses-archive: the card part's insets, regular below the photo and group on the sides and foot. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course--content,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course--content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: var(--wp--preset--spacing--25) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
}

/* masteriyo/course-feature-image: the course photo on the vibe's media corner, not Masteriyo's 8px; a card's photo rule must still win. */
.masteriyo-course--img-wrap .masteriyo-feature-img img {
	border-radius: var(--wp--custom--radius--media);
}

/* masteriyo/courses: the photo's corners facing the card's text stay square; the open card's 4:3 photo beats Masteriyo's own 230px crop. */
.masteriyo-course--card .masteriyo-feature-img img {
	aspect-ratio: 4 / 3 !important;
	border-bottom: 0;
	border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0;
	height: auto !important;
}

/* masteriyo/single-course: Masteriyo caps a related card's photo at 220px, so the 4:3 photo spills over the card's text. */
body.single-mto-course .masteriyo-related-post .masteriyo-course--card .masteriyo-course--img-wrap {
	max-height: none;
}

/* masteriyo/courses, masteriyo/courses-archive: Masteriyo's no-photo placeholder is a fixed lavender image no palette reaches. */
.masteriyo-course--card .masteriyo-feature-img:has(img[src$="placeholder.jpg"]) {
	background-color: var(--wp--custom--color--fill-weaker);
	border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0;
}

/* masteriyo/courses, masteriyo/courses-archive: the same placeholder, hidden over the surface. */
.masteriyo-course--card .masteriyo-feature-img img[src$="placeholder.jpg"] {
	opacity: 0;
}

/* masteriyo/courses, masteriyo/courses-archive: the Modern and Overlay cards print the same lavender placeholder. */
.masteriyo-archive-card .masteriyo-archive-card__image:has(img.masteriyo-course-thumbnail[src$="placeholder.jpg"]) {
	background-color: var(--wp--custom--color--fill-weaker);
	border-radius: var(--wp--custom--radius--panel);
}

/* masteriyo/courses, masteriyo/courses-archive: the Overlay card's placeholder under its scrim. */
.masteriyo-course-card:has(img.masteriyo-course-card__thumbnail-image[src$="placeholder.jpg"]) {
	background-color: var(--wp--custom--color--fill-weaker);
}

/* masteriyo/courses, masteriyo/courses-archive: their placeholder, hidden over that surface. */
.masteriyo-archive-card .masteriyo-archive-card__image img.masteriyo-course-thumbnail[src$="placeholder.jpg"],
.masteriyo-course-card img.masteriyo-course-card__thumbnail-image[src$="placeholder.jpg"] {
	opacity: 0;
}

/* masteriyo/courses: the card tagline's look, not Masteriyo's bordered chip. */
.masteriyo-course-category .masteriyo-course-category--item {
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--wp--custom--color--text-weak);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--typography--font-weight--semi-bold);
	line-height: var(--wp--custom--typography--line-height--normal);
	padding: 0;
	text-transform: none;
}

/* masteriyo/courses, masteriyo/courses-archive: the card's related gap from tagline to title. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course-category,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course-category,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course-category {
	margin-bottom: var(--wp--preset--spacing--20);
}

/* masteriyo/courses, masteriyo/courses-archive: the card body's small text, off Masteriyo's hardcoded grey. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course--content__description,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course--content__description,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course--content__description {
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* masteriyo/courses: the card description on the body ink, at the card body's small size Masteriyo sets on this span. */
.masteriyo-course-highlights--description {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--typography--line-height--normal);
}

/* masteriyo/courses: the Modern card's title and price, off Masteriyo's hardcoded near-blacks. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--course-title .masteriyo-course-title,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--course-title .masteriyo-course-title,
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--rating-amount .masteriyo-archive-card__content--amount .masteriyo-sale-price,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--rating-amount .masteriyo-archive-card__content--amount .masteriyo-sale-price {
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses: the Overlay card's title sits on the photo, so it takes the media ink, not Masteriyo's white, which follows the page. */
.masteriyo-course-cards .masteriyo-course-card__content--course-title .masteriyo-course-title,
.masteriyo-course-list-display-section[data-layout="layout_2"] .masteriyo-course-cards .masteriyo-course-card__content--course-title:hover .masteriyo-course-title,
.masteriyo-related-post[data-layout="layout_2"] .masteriyo-course-cards .masteriyo-course-card__content--course-title:hover .masteriyo-course-title {
	color: var(--wp--custom--color--text-media-strong);
}

/* masteriyo/courses: the same title under the pointer underlines, as a UI link does. */
.masteriyo-course-list-display-section[data-layout="layout_2"] .masteriyo-course-cards .masteriyo-course-card__content--course-title:hover .masteriyo-course-title,
.masteriyo-related-post[data-layout="layout_2"] .masteriyo-course-cards .masteriyo-course-card__content--course-title:hover .masteriyo-course-title {
	text-decoration: var(--wp--custom--link--ui--hover-decoration);
}

/* masteriyo/single-course, masteriyo/course-author: the author's name and the course stats, off Masteriyo's hardcoded grey. */
.masteriyo-course-author a .masteriyo-course-author--name,
.masteriyo-course-statistics .masteriyo-stats span {
	color: var(--wp--custom--color--text-weak);
}

/* masteriyo/single-course, masteriyo/course-curriculum: Masteriyo's link reads its brand fill as text, a faded factory blue under the pointer; ours while Primary color stays factory, the owner's once changed. */
.masteriyo .masteriyo-link-primary,
.masteriyo .masteriyo-link-primary:hover {
	color: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
}

/* masteriyo/single-course, masteriyo/course-contents: an idle tab, off Masteriyo's hardcoded near-black, and under the pointer, where Masteriyo turns it the brand fill. */
.masteriyo-course-curriculum-tabs .masteriyo-tab,
.masteriyo-course-curriculum-tabs .masteriyo-tab:hover {
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/single-course, masteriyo/course-contents: a hovered tab's underline, a visible stroke before it is chosen. */
.masteriyo-course-curriculum-tabs .masteriyo-tab:hover {
	border-bottom-color: var(--wp--custom--color--stroke-strong);
}

/* masteriyo/single-course, masteriyo/course-contents: the chosen tab's label and underline in our link ink while Primary color stays factory, the owner's once changed; the pale brand fill fails as either. */
.masteriyo-course-curriculum-tabs .masteriyo-tab.active-tab {
	border-bottom-color: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
	color: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
}

/* masteriyo/single-course, masteriyo/course-contents: Masteriyo strips the keyboard focus outline, leaving no sign of which tab has focus. */
.masteriyo-course-curriculum-tabs .masteriyo-tab:focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/single-course, masteriyo/course-curriculum: a closed section's lesson count, off Masteriyo's hardcoded grey. */
.masteriyo-single-course--main__content .tab-content.course-curriculum .masteriyo-stab--citems .masteriyo-cheader .masteriyo-ltc span {
	color: var(--wp--custom--color--text-weak);
}

/* masteriyo/single-course, masteriyo/course-curriculum: the open section's header wears the brand fill, so its title and count take the button's ink. */
.masteriyo-stab--tcurriculum .masteriyo-stab--citems.active .masteriyo-cheader .masteriyo-ctitle,
.masteriyo-stab--tcurriculum .masteriyo-stab--citems.active .masteriyo-cheader .masteriyo-ltc,
.masteriyo-single-course--main__content .tab-content.course-curriculum .masteriyo-stab--citems.active .masteriyo-cheader .masteriyo-ltc span {
	color: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/single-course, masteriyo/course-curriculum: the open section's chevron, on the same ink as its title. */
.masteriyo-stab--tcurriculum .masteriyo-stab--citems.active .masteriyo-cplus svg,
.masteriyo-stab--tcurriculum .masteriyo-stab--citems.active .masteriyo-cminus svg {
	fill: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/single-course, masteriyo/course-curriculum, masteriyo/course-stats, masteriyo/single-course-immersive: a lesson's and a course stat's icon, off Masteriyo's hardcoded greys. */
.masteriyo-single-course--main__content .tab-content.course-curriculum .masteriyo-stab--citems .masteriyo-cbody .masteriyo-lesson-list .masteriyo-lesson-item svg,
.masteriyo-single-body__main--curriculum-content-bottom__accordion--body-item-icon svg,
.masteriyo-course-statistics .masteriyo-stats .masteriyo-icon-svg svg {
	fill: var(--wp--custom--color--icon-default);
}

/* masteriyo/courses, masteriyo/courses-archive: the card title's heading-4 look, independent of any setting. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course--content__title,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course--content__title,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course--content__title {
	font-weight: var(--wp--custom--text--heading-4--font-weight);
	letter-spacing: var(--wp--custom--text--heading-4--letter-spacing);
	line-height: var(--wp--custom--text--heading-4--line-height);
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* masteriyo/courses, masteriyo/courses-archive: the card title's medium-plus, beating course_title_font_size only at factory. */
body.ext-masteriyo-factory-course-title-font-size .masteriyo-course-list-display-section .masteriyo-course--content__title {
	font-size: var(--wp--preset--font-size--medium-plus) !important;
}

/* masteriyo/courses, masteriyo/courses-archive: the price row sinks to the card's foot. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course-archive--aside {
	margin-top: auto;
}

/* masteriyo/courses, masteriyo/courses-archive: price and button on one row, as Masteriyo sets them, wrapping when a long price or label leaves no room. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper {
	align-items: center;
	flex-flow: row wrap;
	gap: var(--wp--preset--spacing--25);
	justify-content: space-between;
	margin: 0;
	padding: 0;
}

/* masteriyo/courses, masteriyo/courses-archive: the button keeps the row's right edge when a course shows no price, as for an enrolled student. */
.masteriyo-course--card .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn {
	margin-left: auto;
}

/* masteriyo/courses, masteriyo/courses-archive: list view keeps Masteriyo's own column, the price centred over a button as wide as it. */
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper {
	align-items: stretch;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

/* masteriyo/courses, masteriyo/courses-archive: the list view's price centred in its column. */
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper .masteriyo-course-price {
	align-items: center;
}

/* masteriyo/courses, masteriyo/courses-archive: the list view's button across its column, as Masteriyo sets it. */
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn {
	justify-content: center;
	margin-left: 0;
	width: 100%;
}

/* masteriyo/single-course: the review form's Cancel as an outlined button at Submit's height, not Masteriyo's hardcoded #f3f4f6 chip. */
.masteriyo-single-body__main--review-form form .masteriyo-single-form-actions .masteriyo-btn.masteriyo-btn-secondary {
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--custom--color--text-strong);
	font-weight: var(--wp--custom--typography--font-weight--medium);
	min-height: var(--wp--custom--control--md);
	padding: 0 1em;
}

/* masteriyo/single-course: Cancel under the pointer on the soft fill; Masteriyo turns it the brand fill. */
.masteriyo-single-body__main--review-form form .masteriyo-single-form-actions .masteriyo-btn.masteriyo-btn-secondary:hover {
	background-color: var(--wp--custom--color--fill-weak);
	border-color: var(--wp--custom--color--stroke-strong);
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses, masteriyo/single-course: an enrolled course's "Completed" in the quiet small text, off Masteriyo's hardcoded slate blue. */
.masteriyo-course-progress-bar .course-progress-box .progress-header .progress-label {
	color: var(--wp--custom--color--text-weak);
	font-size: var(--wp--custom--text--text-small--font-size);
	font-weight: var(--wp--custom--text--text-regular--font-weight);
	line-height: var(--wp--custom--text--text-small--line-height);
	margin: 0;
}

/* masteriyo/courses, masteriyo/single-course: the percentage in the body ink at the price's size, off Masteriyo's hardcoded near-black. */
.masteriyo-course-progress-bar .course-progress-box .progress-header .progress-percent {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--text-regular--font-size);
	font-weight: var(--wp--custom--typography--font-weight--semi-bold);
	line-height: var(--wp--custom--text--text-regular--line-height);
}

/* masteriyo/courses, masteriyo/single-course: the track in the weak stroke, visible on filled and outlined cards; Masteriyo hardcodes cool greys. */
.masteriyo-course-progress-bar .course-progress-box .masteriyo-progress-bar-container.modern-style,
.masteriyo-course-progress-bar .course-progress-box .masteriyo-progress-bar-container .masteriyo-progress-bar {
	background-color: var(--wp--custom--color--stroke-weak);
	border-radius: var(--wp--custom--radius--chip);
}

/* masteriyo/courses, masteriyo/single-course: the filled part on the same corner. */
.masteriyo-course-progress-bar .course-progress-box .masteriyo-progress-bar-container .masteriyo-progress-bar .masteriyo-progress-fill {
	border-radius: var(--wp--custom--radius--chip);
}

/* masteriyo/courses, masteriyo/single-course: the progress summary's icon in the icon ink. */
.masteriyo-course-progress-bar .course-progress-box .completed-component .progress-icon svg {
	fill: var(--wp--custom--color--icon-default);
}

/* masteriyo/courses, masteriyo/single-course: the icon under the pointer on the soft fill, off Masteriyo's hardcoded #fbfbfb. */
.masteriyo-course-progress-bar .course-progress-box .completed-component .progress-icon:hover {
	background-color: var(--wp--custom--color--fill-weak);
}

/* masteriyo/courses, masteriyo/single-course: the progress a related gap over the button, not Masteriyo's 24px. */
.masteriyo-single-course-stats .course-progress-box.modern-progress {
	margin-bottom: var(--wp--preset--spacing--25);
}

/* masteriyo/courses, masteriyo/courses-archive: the price part's text-regular size, never louder than the title. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper .masteriyo-course-price .current-amount .amount,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper .masteriyo-course-price .current-amount .amount,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper .masteriyo-course-price .current-amount .amount {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--text-regular--font-size);
	font-weight: var(--wp--custom--text--text-regular--font-weight);
	line-height: var(--wp--custom--text--text-regular--line-height);
}

/* masteriyo/courses: hand-copies the core button; colour, edge and size stay ours regardless of any setting. */
.masteriyo-btn.masteriyo-btn-primary {
	background-color: var(--wp--custom--color--fill-brand-strong);
	border-color: transparent;
	border-style: solid;
	border-width: var(--wp--custom--border-width--1);
	box-shadow: var(--wp--custom--shadow--control);
	color: var(--wp--custom--color--text-on-brand);
	font-weight: var(--wp--custom--typography--font-weight--medium);
	letter-spacing: var(--wp--custom--tracking--normal);
	line-height: var(--wp--custom--typography--line-height--small);
	max-height: var(--wp--custom--control--md);
	min-height: var(--wp--custom--control--md);
	padding: 0 1em;
}

/* masteriyo/courses, masteriyo/courses-archive, masteriyo/single-course: beats button_radius only at factory; the owner's radius shows once changed. */
body.ext-masteriyo-factory-button-radius .masteriyo-btn.masteriyo-btn-primary {
	border-radius: var(--wp--custom--radius--control) !important;
}

/* masteriyo/courses, masteriyo/courses-archive, masteriyo/single-course: beats button_size only at factory; the owner's size shows once changed. */
body.ext-masteriyo-factory-button-size .masteriyo-btn.masteriyo-btn-primary {
	font-size: var(--wp--custom--button--label) !important;
}

/* masteriyo/courses, masteriyo/courses-archive, masteriyo/single-course: the same button under the pointer; Masteriyo's own hover swaps the label to its white and fades it. */
.masteriyo-btn.masteriyo-btn-primary:hover {
	background-color: var(--wp--custom--color--fill-brand-strong-hover);
	color: var(--wp--custom--color--text-on-brand);
	opacity: 1;
}

/* masteriyo/courses, masteriyo/single-course: the Modern card's preview button, whose label Masteriyo sets to its white. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__image-preview-button,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__image-preview-button {
	color: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/courses, masteriyo/single-course: the Modern preview button's icon, on the same ink. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__image-preview-button--icon svg,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__image-preview-button--icon svg {
	fill: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/courses, masteriyo/course-categories, masteriyo/single-course: a title link under the pointer underlines as a UI link does; Masteriyo's own turns it the brand fill, unreadable as text. */
.masteriyo-course--content .masteriyo-course--content__title a:hover,
.masteriyo-course--content .masteriyo-course--content__title a:focus,
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--course-title:hover .masteriyo-course-title,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--course-title:hover .masteriyo-course-title,
.masteriyo-category-card h2 a:hover,
.masteriyo-category-card__title a:hover {
	color: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
	text-decoration: var(--wp--custom--link--ui--hover-decoration);
}

/* masteriyo/courses, masteriyo/single-course: Masteriyo clips the title after two lines, cutting the second line's underline at the theme's deeper offset. */
.masteriyo-course--content .masteriyo-course--content__title a:hover,
.masteriyo-course--content .masteriyo-course--content__title a:focus {
	text-underline-offset: auto;
}

/* masteriyo/single-course: a cohort or password-gated course's lock icon reads as the button's ink, not Masteriyo's white. */
.masteriyo-btn.masteriyo-btn-primary svg {
	fill: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/courses, masteriyo/courses-archive: the store card's small secondary button, ours while Button color stays factory; the owner's colour keeps Masteriyo's white label, since our page colour turns dark on a dark palette. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn {
	background-color: var(--ext-masteriyo-secondary-fill, var(--masteriyo-button-primary));
	border-color: var(--ext-masteriyo-secondary-edge, var(--masteriyo-button-primary));
	box-shadow: none;
	box-sizing: border-box;
	color: var(--ext-masteriyo-secondary-ink, var(--wp--custom--color--text-media-strong));
	font-size: var(--wp--custom--control-label--sm);
	font-weight: var(--wp--custom--typography--font-weight--medium);
	height: var(--wp--custom--control--sm);
	letter-spacing: var(--wp--custom--tracking--normal);
	line-height: var(--wp--custom--typography--line-height--small);
	max-height: var(--wp--custom--control--sm);
	min-height: var(--wp--custom--control--sm);
	padding: 0 1em;
	width: auto;
}

/* masteriyo/courses, masteriyo/courses-archive: the same button under the pointer, ours while Button hover color stays factory. */
.masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn:hover,
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn:hover,
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn:hover {
	background-color: var(--ext-masteriyo-secondary-fill-hover, var(--masteriyo-button-primary-hover));
	color: var(--ext-masteriyo-secondary-ink, var(--wp--custom--color--text-media-strong));
}

/* masteriyo/courses, masteriyo/courses-archive: beats button_size only at factory, at the small button's label. */
body.ext-masteriyo-factory-button-size .masteriyo-courses-wrapper.grid-view .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn,
body.ext-masteriyo-factory-button-size .masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn,
body.ext-masteriyo-factory-button-size.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--content .masteriyo-course-pricing--wrapper .masteriyo-enroll-btn {
	font-size: var(--wp--custom--control-label--sm) !important;
}

/* masteriyo/courses, masteriyo/courses-archive: Masteriyo strips the focus outline from its buttons and title links. */
.masteriyo-course--card .masteriyo-btn:focus-visible,
.masteriyo-course--card .masteriyo-course--content__title a:focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/courses: 24px columns, 48px rows, so text never reads as the next photo's. */
.masteriyo-courses-wrapper.columns-3:not(.list-view) {
	column-gap: var(--wp--preset--spacing--25);
	row-gap: var(--wp--preset--spacing--40);
}

/* masteriyo/courses-archive, masteriyo/single-course: lined up with Extendable's wide width, not Masteriyo's own fixed 1200px. */
.masteriyo-w-100.masteriyo-container {
	max-width: var(--wp--style--global--wide-size);
}

/* masteriyo/courses-archive: Masteriyo paints this page white on every palette. */
body.masteriyo-courses-page {
	background-color: var(--wp--custom--color--background-base);
}

/* masteriyo/courses-archive: one gutter for the row and the grid; Masteriyo prints no main to carry the layout's padding. Items top-align, so a second line of controls leaves the title level with the first. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) {
	align-items: flex-start;
	box-sizing: border-box;
	column-gap: var(--wp--preset--spacing--25);
	flex-flow: row wrap;
	row-gap: var(--wp--preset--spacing--40);
	margin: 0;
	max-width: none;
	padding-bottom: var(--wp--preset--spacing--64);
	padding-left: max(var(--wp--style--root--padding-left), calc(50vw - var(--wp--style--global--wide-size) / 2));
	padding-right: max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2));
	padding-top: var(--wp--preset--spacing--30);
}

/* masteriyo/courses-archive: the grid at the wide width, as the shop's rows sit. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-course-list-display-section,
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-courses-wrapper {
	flex-basis: 100%;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--wp--style--global--wide-size);
}

/* masteriyo/courses-archive: the title leads the row Masteriyo prints after the search, and shrinks so the search and switch fit. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-courses-header {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	float: none;
	justify-content: center;
	min-height: var(--wp--custom--control--md);
	min-width: 0;
	order: -1;
	width: auto;
}

/* masteriyo/courses-archive: the search and the grid or list switch beside the title, a row that wraps on a phone, without Masteriyo's rule. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-search-section {
	border-bottom: 0;
	flex: 0 1 auto;
	flex-direction: row;
	gap: var(--wp--preset--spacing--25);
	justify-content: flex-end;
	margin: 0;
	min-width: 0;
	padding-bottom: 0;
	row-gap: var(--wp--preset--spacing--20);
}

/* masteriyo/courses-archive: with sorting on, the sort takes its own line at the row's right edge, as a shop's sort-by; on a phone the filters button leads it. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-search-section .masteriyo-courses-sorting-section {
	align-items: center;
	display: flex;
	flex-basis: 100%;
	gap: var(--wp--preset--spacing--20);
	justify-content: flex-end;
	max-width: none;
	order: 1;
}

/* masteriyo/courses-archive: the filters button, shown only on a phone, at the line's start. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-search-section .masteriyo-courses-sorting-section .masteriyo-toggle-course-filters-sidebar {
	margin: 0 auto 0 0;
}

/* masteriyo/courses-archive: the sort menu on the vibe's field corner, not Masteriyo's 3px. */
.masteriyo-courses-sorting .masteriyo-courses-order-by {
	border-radius: var(--wp--custom--radius--input);
}

/* masteriyo/courses-archive: the filters' price-type choices as chips, off Masteriyo's slate and grey edge, which fail on a dark palette. */
.masteriyo-courses-filters .masteriyo-filter-section--price-type__list label {
	border-color: var(--wp--custom--color--stroke-weak);
	border-radius: var(--wp--custom--radius--chip);
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses-archive: the chosen price type on the brand fill's ink, not our page colour; the owner's Primary color keeps Masteriyo's white. */
.masteriyo-courses-filters .masteriyo-filter-section--price-type__list input:checked ~ label {
	color: var(--ext-masteriyo-on-brand-ink, var(--wp--custom--color--text-media-strong));
}

/* masteriyo/courses-archive: each filter's open and close arrow, off the fill Masteriyo hardcodes in its markup. */
.masteriyo-courses-filters .masteriyo-filter-section--heading svg {
	fill: var(--wp--custom--color--icon-default);
}

/* masteriyo/courses-archive: the price range's fields on the vibe's field corner and edge. */
.masteriyo-courses-filters .masteriyo-price-filter--input input {
	border-color: var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--input);
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses-archive: Reset Filters as an outline button, off Masteriyo's grey, which fails on a dark palette. */
.masteriyo-clear-filters,
.masteriyo-courses-filters .masteriyo-filter-section--buttons .masteriyo-clear-filters {
	border-color: var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses-archive: the same button under the pointer on the soft fill, not Masteriyo's light grey under our light ink. */
.masteriyo-courses-filters .masteriyo-filter-section--buttons .masteriyo-clear-filters:hover {
	background-color: var(--wp--custom--color--fill-weak);
	border-color: var(--wp--custom--color--stroke-strong);
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses-archive: Apply Filters, shown when filters do not apply as they change, as the main button, not Masteriyo's hardcoded blue. */
.masteriyo-courses-filters .masteriyo-filter-section--buttons .masteriyo-apply-filters {
	background-color: var(--wp--custom--color--fill-brand-strong);
	border-color: transparent;
	border-radius: var(--wp--custom--radius--control);
	color: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/courses-archive: the same button under the pointer, the brand fill's hover step, not Masteriyo's blue outline. */
.masteriyo-courses-filters .masteriyo-filter-section--buttons .masteriyo-apply-filters:hover {
	background-color: var(--wp--custom--color--fill-brand-strong-hover);
	color: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/courses-archive: the phone's filters button, the same outline button. */
.masteriyo-toggle-course-filters-sidebar,
.masteriyo-close-filters-sidebar {
	border-color: var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--control);
}

/* masteriyo/courses-archive: its label and icon in the body ink and icon ink, off Masteriyo's #494949. */
.masteriyo-toggle-course-filters-sidebar .text {
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses-archive: the same button's icon. */
.masteriyo-toggle-course-filters-sidebar svg,
.masteriyo-close-filters-sidebar svg {
	fill: var(--wp--custom--color--icon-default);
}

/* masteriyo/courses-archive: the filters button under the pointer wears the brand fill, so its label and icon take its ink, not our page colour. */
.masteriyo-toggle-course-filters-sidebar:hover .text,
.masteriyo-close-filters-sidebar:hover .text {
	color: var(--ext-masteriyo-on-brand-ink, var(--wp--custom--color--text-media-strong));
}

/* masteriyo/courses-archive: the same icon under the pointer. */
.masteriyo-toggle-course-filters-sidebar:hover svg,
.masteriyo-close-filters-sidebar:hover svg {
	fill: var(--ext-masteriyo-on-brand-ink, var(--wp--custom--color--text-media-strong));
}

/* masteriyo/courses-archive: the current page number on the brand fill's ink, not our page colour. */
.masteriyo-container ul.page-numbers li span.current,
.masteriyo-course-list-display-section ul.page-numbers li span.current {
	color: var(--ext-masteriyo-on-brand-ink, var(--wp--custom--color--text-media-strong));
}

/* masteriyo/courses-archive: the page numbers on the vibe's control corner, not Masteriyo's 4px. */
.masteriyo-container ul.page-numbers li span,
.masteriyo-container ul.page-numbers li a,
.masteriyo-course-list-display-section ul.page-numbers li span,
.masteriyo-course-list-display-section ul.page-numbers li a {
	border-radius: var(--wp--custom--radius--control);
}

/* masteriyo/courses-archive: the search capped at half the content width; Masteriyo's 100% width pushes the switch to a second line. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-search-section .masteriyo-search {
	flex: 0 1 auto;
	max-width: 100%;
	width: calc(var(--wp--style--global--content-size) / 2);
}

/* masteriyo/courses-archive: the Courses page keeps its grid or list switch, ahead of the search; Masteriyo's auto margin wraps it. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) .masteriyo-courses-view-mode-section {
	display: flex;
	gap: var(--wp--preset--spacing--10);
	margin: 0;
	order: -1;
}

/* masteriyo/courses-archive: the two choices a step apart, without the list's own indent pushing them off the label. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists {
	gap: var(--wp--preset--spacing--10);
	padding: 0;
}

/* masteriyo/courses-archive: the switch's label in the small body text, off Masteriyo's hardcoded slate. */
.masteriyo-courses-view-mode-section span {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--text-small--font-size);
}

/* masteriyo/courses-archive: each choice an outlined icon button at the control height, as the search button beside it. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item button {
	background-color: transparent;
	border: var(--wp--custom--border-width--1) solid var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--control);
	height: var(--wp--custom--control--md);
	width: var(--wp--custom--control--md);
}

/* masteriyo/courses-archive: the icon in the icon ink, off Masteriyo's hardcoded #bababa that fails 3:1. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item button svg path {
	fill: var(--wp--custom--color--icon-default);
}

/* masteriyo/courses-archive: a choice under the pointer on the soft fill; Masteriyo paints it as if chosen. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item:hover button {
	background-color: var(--wp--custom--color--fill-weak);
}

/* masteriyo/courses-archive: the same icon under the pointer. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item:hover button svg path {
	fill: var(--wp--custom--color--text-strong);
}

/* masteriyo/courses-archive: the chosen view on the brand fill, as a pressed button. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item.active button {
	background-color: var(--wp--custom--color--fill-brand-strong);
	border-color: transparent;
}

/* masteriyo/courses-archive: the chosen view's icon on the brand ink. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item.active button svg path {
	fill: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/courses-archive: Masteriyo strips the focus outline from the switch. */
.masteriyo-courses-view-mode-section .masteriyo-courses-view-mode-item-lists .masteriyo-courses-view-mode-item button:focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/courses-archive: a notice, such as the empty-cart one checkout sends back here, takes its own row under the title. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-courses-header) > .masteriyo-notify-message {
	flex-basis: 100%;
	margin: 0;
}

/* masteriyo/courses-archive: a category with no description still prints the paragraph, and its margin widens the title gap. */
.masteriyo-courses-header > p:empty {
	display: none;
}

/* masteriyo/courses-archive: the shop archive title's size, in place of Masteriyo's fixed 32px/600. */
.masteriyo-courses-header__title.page-title {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--preset--font-size--medium-plus);
	font-weight: var(--wp--custom--text--heading-1--font-weight);
	letter-spacing: var(--wp--custom--text--heading-1--letter-spacing);
	line-height: var(--wp--custom--text--heading-1--line-height);
	margin: 0;
}

/* masteriyo/courses-archive: the field and button sit apart, not fused into Masteriyo's own cropped pill. */
.masteriyo-course-search {
	border-radius: 0;
	gap: var(--wp--preset--spacing--10);
	overflow: visible;
}

/* masteriyo/courses-archive: replaces Masteriyo's transparent 52px field and hardcoded grey text; it sits level with its button. */
.masteriyo-course-search .search-field {
	background-color: var(--wp--custom--color--background-base);
	border-radius: var(--wp--custom--radius--input);
	color: var(--wp--custom--color--text-strong);
	min-height: var(--wp--custom--control--md);
}

/* masteriyo/single-course-immersive: the hero's text in the dark overlay's light ink, the same in every palette, under the pointer too. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__title,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__badges a,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__badges span,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__meta,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__meta-item--difficulty,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__author-name,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__badges a:hover,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__badges span:hover {
	color: var(--wp--custom--color--text-media-strong);
}

/* masteriyo/single-course-immersive: the band's heading and subheading on its brand ink; the owner's Primary color darkens the band, so Masteriyo's white returns. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band__heading,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band__subheading {
	color: var(--ext-masteriyo-on-brand-ink, var(--wp--custom--color--text-media-strong));
}

/* masteriyo/single-course-immersive: the glow was hardcoded blue, clashing against a non-blue brand fill. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band {
	background-image: none;
}

/* masteriyo/single-course-immersive: an edge, so the button reads against its own band colour. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band__action .masteriyo-btn,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band__action .masteriyo-enroll-btn {
	border-color: var(--ext-masteriyo-on-brand-ink, var(--wp--custom--color--text-media-strong));
}

/* masteriyo/single-course-immersive: a closed section's chevron reads as a neutral icon, not Masteriyo's own hardcoded fill. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-single-body-accordion-icon svg {
	fill: var(--wp--custom--color--icon-default);
}

/* masteriyo/single-course-immersive: the open header wears the brand fill; its title and counts take the button's ink. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion.active > .masteriyo-single-body__main--curriculum-content-bottom__accordion--header .masteriyo-single-body__main--curriculum-content-bottom__accordion--header-title,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion.active > .masteriyo-single-body__main--curriculum-content-bottom__accordion--header .masteriyo-single-body__main--curriculum-content-bottom__accordion--header-misc,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion.active > .masteriyo-single-body__main--curriculum-content-bottom__accordion--header .masteriyo-single-body__main--curriculum-content-bottom__accordion--header-misc .masteriyo-single-body-accordion-info {
	color: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/single-course-immersive: the open section's chevron, on the same ink. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion.active > .masteriyo-single-body__main--curriculum-content-bottom__accordion--header .masteriyo-single-body-accordion-icon svg {
	fill: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/single-course-immersive: a closed section's lesson count, off Masteriyo's hardcoded grey. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-single-body__main--curriculum-content-bottom__accordion--header-misc .masteriyo-single-body-accordion-info {
	color: var(--wp--custom--color--text-weak);
}

/* masteriyo/single-course-immersive: unreadable at Masteriyo's own hardcoded near-black on a dark palette. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion--header::before {
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/single-course-immersive: our readable ink while the owner's Primary color stays factory, their own colour once changed. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-top--expand-btn {
	color: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
}

/* masteriyo/single-course-immersive: the same ink, so the hover-reveal underline follows it too. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-top--expand-btn::before {
	background: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
}

/* masteriyo/single-course-immersive: our readable icon ink while the owner's Primary color stays factory, their own colour once changed. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card__includes-item svg,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card__includes-item svg path,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-instructor__stat svg {
	fill: var(--ext-masteriyo-icon-ink, var(--masteriyo-color-primary));
}

/* masteriyo/course-reviews: our readable link ink while the owner's Primary color stays factory, their own colour once changed, under the pointer too. */
.course-reviews .masteriyo-login-msg.masteriyo-submit-container p .masteriyo-link-primary,
.course-reviews .masteriyo-login-msg.masteriyo-submit-container p .masteriyo-link-primary:hover {
	color: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
	text-decoration-color: var(--ext-masteriyo-link-ink, var(--masteriyo-color-primary));
}

/* masteriyo/course-reviews: the page's own surface, not Masteriyo's fixed light box. */
.course-reviews .masteriyo-login-msg.masteriyo-submit-container {
	background: var(--wp--custom--color--background-base);
	border-color: var(--wp--custom--color--stroke-weak);
}

/* masteriyo/course-reviews: the review button under the pointer, its label on the brand fill's own ink, not Masteriyo's white. */
.masteriyo-single-body__main--review-form-wrapper .review-button:hover {
	color: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/course-reviews: the same button's icon, on the same ink. */
.masteriyo-single-body__main--review-form-wrapper .review-button:hover svg {
	fill: var(--wp--custom--color--text-on-brand);
}

/* masteriyo/course-reviews: off Masteriyo's hardcoded grey and 15px, so it reads against any surface at the theme's small size. */
.course-reviews .masteriyo-login-msg.masteriyo-submit-container p {
	color: var(--wp--custom--color--text-weak);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--typography--line-height--normal);
}

/* masteriyo/single-course-immersive: the hero is the dark-overlay part; Masteriyo's brand wash comes out pale on a light brand, under white text. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero {
	background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

/* masteriyo/single-course-immersive: the same scrim over the course photo, in place of the brand wash. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero--has-image {
	background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--masteriyo-immersive-hero-image);
}

/* masteriyo/single-course-immersive: the hero on the gutter and wide width; its foot stays Masteriyo's so the enroll card clears the author. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__inner {
	max-width: none;
	padding-left: max(var(--wp--style--root--padding-left), calc(50vw - var(--wp--style--global--wide-size) / 2));
	padding-right: max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2));
	padding-top: var(--wp--preset--spacing--70);
}

/* masteriyo/single-course-immersive: the body columns on the same width and gutter. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-body {
	column-gap: var(--wp--preset--spacing--64);
	padding-left: max(var(--wp--style--root--padding-left), calc(50vw - var(--wp--style--global--wide-size) / 2));
	padding-right: max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2));
}

/* masteriyo/single-course-immersive: the main column's top and its sections' rhythm, the template's section gap in place of Masteriyo's 56px. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-body__main {
	padding-top: var(--wp--preset--spacing--64);
}

/* masteriyo/single-course-immersive: the same gap between sections. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-body__main > .masteriyo-immersive-section {
	margin-bottom: var(--wp--preset--spacing--64);
}

/* masteriyo/single-course-immersive: the closing band on the same gutter, at the section padding. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band {
	padding: var(--wp--preset--spacing--64) max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2));
}

/* masteriyo/single-course-immersive: the course title, the Woo product title's heading-1 look, in place of Masteriyo's 52px at 800. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: var(--wp--custom--text--heading-1--font-weight);
	letter-spacing: var(--wp--custom--text--heading-1--letter-spacing);
	line-height: var(--wp--custom--text--heading-1--line-height);
	margin: 0 0 var(--wp--preset--spacing--25);
}

/* masteriyo/single-course-immersive: the hero's category as the badge part on the dark overlay, not Masteriyo's 13px pill. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__badges a {
	background: var(--wp--custom--color--fill-media-weak);
	border-color: var(--wp--custom--color--stroke-media-weak);
	border-radius: var(--wp--custom--radius--chip);
	color: var(--wp--custom--color--text-media-strong);
	font-size: var(--wp--custom--text--text-small--font-size);
	font-weight: var(--wp--custom--typography--font-weight--semi-bold);
	line-height: var(--wp--custom--text--text-small--line-height);
	padding: 0 var(--wp--preset--spacing--20);
}

/* masteriyo/single-course-immersive: the meta line and author at the theme's small size, in the dark overlay's quiet ink. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__meta,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__author-name {
	color: var(--wp--custom--color--text-media-weak);
	font-size: var(--wp--preset--font-size--small);
}

/* masteriyo/single-course-immersive: the author's avatar keeps its round corner, without Masteriyo's white ring shadow. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-hero__author-avatar {
	border-color: var(--wp--custom--color--stroke-media-strong);
	box-shadow: none;
}

/* masteriyo/single-course-immersive: each section's title at heading-5, under the course title and over the body text. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-section__title {
	font-size: var(--wp--custom--text--heading-5--font-size);
	font-weight: var(--wp--custom--text--heading-5--font-weight);
	letter-spacing: var(--wp--custom--text--heading-5--letter-spacing);
	line-height: var(--wp--custom--text--heading-5--line-height);
	margin: 0 0 var(--wp--preset--spacing--25);
}

/* masteriyo/single-course-immersive: the enroll card, the buy box's framed face raised over the hero, in place of Masteriyo's 16px corners and heavy shadow. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card {
	background: var(--wp--custom--store-card--background);
	border-color: var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	border-style: var(--wp--custom--store-card--border-style);
	border-width: var(--wp--custom--store-card--border-width);
	box-shadow: var(--wp--custom--shadow--raised);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
}

/* masteriyo/single-course-immersive: the card's photo inset by the card's own group inset. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card__media {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0;
}

/* masteriyo/single-course-immersive: a nested photo's corner one step under the card's. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card__media img {
	border-radius: var(--wp--custom--radius--panel);
	padding: 0;
}

/* masteriyo/single-course-immersive: the card body on the same inset. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card__body {
	padding: var(--wp--preset--spacing--25) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
}

/* masteriyo/single-course-immersive: the price part's heading look, in place of Masteriyo's 32px at 800 and its hardcoded near-black. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card .masteriyo-course-price .current-amount,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card .masteriyo-course-price .current-amount .masteriyo-price-amount,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card .masteriyo-course-price .current-amount .amount {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--heading-5--font-size);
	font-weight: var(--wp--custom--text--heading-5--font-weight);
	line-height: var(--wp--custom--text--heading-5--line-height);
}

/* masteriyo/single-course-immersive: a sale's struck-through price at the small size. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card .masteriyo-course-price .old-amount {
	font-size: var(--wp--preset--font-size--small);
}

/* masteriyo/single-course-immersive: the card's and the band's buttons at the main button's size and label weight, not Masteriyo's 700 on a padded box. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card .masteriyo-btn,
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band__action .masteriyo-btn {
	font-weight: var(--wp--custom--typography--font-weight--medium);
	padding: 0 1em;
}

/* masteriyo/single-course-immersive: "This course includes" as a small label. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-enroll-card__includes-title {
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--typography--font-weight--semi-bold);
}

/* masteriyo/single-course-immersive: each curriculum section on the card's corner, not Masteriyo's 12px. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion {
	border-radius: var(--wp--custom--radius--card);
}

/* masteriyo/single-course-immersive: the section header's own corner follows, so an open header's fill never shows Masteriyo's 3px. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-curriculum .masteriyo-single-body__main--curriculum-content-bottom__accordion--header {
	border-radius: 0;
}

/* masteriyo/single-course-immersive, masteriyo/course-author: the instructor card on the vibe's card face and inset. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-instructor__card {
	background: var(--wp--custom--store-card--background);
	border-color: var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	border-style: var(--wp--custom--store-card--border-style);
	border-width: var(--wp--custom--store-card--border-width);
	box-shadow: var(--wp--custom--shadow--card);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	padding: var(--wp--preset--spacing--30);
}

/* masteriyo/single-course-immersive, masteriyo/course-author: the name as the person-name part's label. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-instructor__name {
	font-size: var(--wp--custom--text--label--font-size);
	font-weight: var(--wp--custom--text--label--font-weight);
	line-height: var(--wp--custom--text--label--line-height);
}

/* masteriyo/single-course-immersive, masteriyo/course-author: the role as the job-title part's quiet small text. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-instructor__role {
	color: var(--wp--custom--color--text-weak);
	font-size: var(--wp--custom--text--text-small--font-size);
	line-height: var(--wp--custom--text--text-small--line-height);
}

/* masteriyo/course-reviews: the review prompt on the card's corner, not Masteriyo's 4px. */
.course-reviews .masteriyo-login-msg.masteriyo-submit-container {
	border-radius: var(--wp--custom--radius--card);
}

/* masteriyo/single-course-immersive: the closing band's heading a step under the course title, so the page keeps one top heading. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band__heading {
	font-size: var(--wp--preset--font-size--large);
	font-weight: var(--wp--custom--text--heading-2--font-weight);
	letter-spacing: var(--wp--custom--text--heading-2--letter-spacing);
	line-height: var(--wp--custom--text--heading-2--line-height);
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* masteriyo/single-course-immersive: the band's subline at the paragraph's own size. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-cta-band__subheading {
	font-size: var(--wp--custom--text--text-regular--font-size);
	margin: 0 0 var(--wp--preset--spacing--30);
}

/* masteriyo/single-course-immersive, masteriyo/single-course: Related Courses on the gutter; Masteriyo prints it outside the layout's padding. */
body.single-mto-course .masteriyo-container > .masteriyo-related-post {
	margin: var(--wp--preset--spacing--64) 0 0;
	padding: 0 max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2)) var(--wp--preset--spacing--64);
}

/* masteriyo/single-course-immersive, masteriyo/single-course: its heading at the section titles' heading-5, in place of the theme's h3. */
body.single-mto-course .masteriyo-related-post .masteriyo-related-post__title {
	font-size: var(--wp--custom--text--heading-5--font-size);
	font-weight: var(--wp--custom--text--heading-5--font-weight);
	letter-spacing: var(--wp--custom--text--heading-5--letter-spacing);
	line-height: var(--wp--custom--text--heading-5--line-height);
	margin: 0 0 var(--wp--preset--spacing--25);
}

/* masteriyo/single-course-immersive, masteriyo/single-course: the related grid at the courses grid's gaps. */
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap {
	column-gap: var(--wp--preset--spacing--25);
	row-gap: var(--wp--preset--spacing--40);
}

/* masteriyo/single-course-immersive, masteriyo/single-course: the related card's title at the card title part's medium-plus; no Masteriyo setting reaches it. */
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course--content__title {
	font-size: var(--wp--preset--font-size--medium-plus);
}

/* masteriyo/single-course-immersive, masteriyo/single-course: the related card's price row sinks to its foot. */
body.single-mto-course .masteriyo-related-post .masteriyo-item--wrap .masteriyo-col .masteriyo-course--card .masteriyo-course-pricing--wrapper {
	margin-top: auto;
}

/* masteriyo/single-course-immersive: the course description at the paragraph's own size, not Masteriyo's 17px. */
.masteriyo-single-course--wrapper[data-layout="immersive"] .masteriyo-immersive-description__content {
	font-size: var(--wp--custom--text--text-regular--font-size);
	line-height: var(--wp--custom--text--text-regular--line-height);
}

/* masteriyo/single-course: Default and Modern on the gutter and wide width, not Masteriyo's 1200px box at the screen edge. */
.masteriyo-single-course--wrapper[data-layout="default"],
.masteriyo-single-course--wrapper[data-layout="modern"] {
	padding-left: max(var(--wp--style--root--padding-left), calc(50vw - var(--wp--style--global--wide-size) / 2));
	padding-right: max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2));
}

/* masteriyo/single-course: Minimal leaves its wrapper open around the theme footer, so its rows take the gutter, not the wrapper. */
.masteriyo-single-course--wrapper[data-layout="minimal"] > .masteriyo-course--img-wrap,
.masteriyo-single-course--wrapper[data-layout="minimal"] > .masteriyo-single-main-content-wrapper,
.masteriyo-single-course--wrapper[data-layout="minimal"] > .masteriyo-single-body {
	padding-left: max(var(--wp--style--root--padding-left), calc(50vw - var(--wp--style--global--wide-size) / 2));
	padding-right: max(var(--wp--style--root--padding-right), calc(50vw - var(--wp--style--global--wide-size) / 2));
}

/* masteriyo/single-course: the page's top at the template's top padding, not Masteriyo's 60px. */
.masteriyo-w-100.masteriyo-container:has(> .masteriyo-single-course--wrapper:not([data-layout="immersive"])) {
	margin-top: var(--wp--preset--spacing--30);
}

/* masteriyo/single-course: the course title, the Woo product title's heading-1 look, off Masteriyo's hardcoded near-black. */
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-single-course--title,
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-single-header__content--title {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--preset--font-size--large);
	font-weight: var(--wp--custom--text--heading-1--font-weight);
	letter-spacing: var(--wp--custom--text--heading-1--letter-spacing);
	line-height: var(--wp--custom--text--heading-1--line-height);
}

/* masteriyo/single-course: the price box's price, the price part's heading look, off Masteriyo's hardcoded near-black. */
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-course-price .current-amount,
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-course-price .current-amount .masteriyo-price-amount,
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-course-price .current-amount .amount {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--heading-5--font-size);
	font-weight: var(--wp--custom--text--heading-5--font-weight);
	line-height: var(--wp--custom--text--heading-5--line-height);
}

/* masteriyo/single-course, masteriyo/course-contents: the tabs part's label, not Masteriyo's 15px. */
.masteriyo-course-curriculum-tabs .masteriyo-tab {
	font-size: var(--wp--custom--text--label--font-size);
	font-weight: var(--wp--custom--text--label--font-weight);
	line-height: var(--wp--custom--text--label--line-height);
}

/* masteriyo/single-course, masteriyo/course-overview: the overview at the paragraph's own size and body ink, off Masteriyo's 15px and its greys. */
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-single-course--main__content .course-overview,
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-single-course--main__content .course-overview p,
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-single-body__main .masteriyo-single-body__main--content .course-overview p {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--text-regular--font-size);
	line-height: var(--wp--custom--text--text-regular--line-height);
}

/* masteriyo/single-course, masteriyo/course-stats: the stats line at the theme's small size. */
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-course-statistics .masteriyo-stats span {
	font-size: var(--wp--preset--font-size--small);
}

/* masteriyo/single-course: Default's main box on the vibe's card face, in place of Masteriyo's 8px corners and border. */
.masteriyo-single-course--wrapper[data-layout="default"] .masteriyo-single-course--main {
	background-color: var(--wp--custom--store-card--background);
	border-color: var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	border-style: var(--wp--custom--store-card--border-style);
	border-width: var(--wp--custom--store-card--border-width);
	box-shadow: var(--wp--custom--shadow--card);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	overflow: hidden;
}

/* masteriyo/single-course: its photo's corners facing the text stay square, the top ones the card's. */
.masteriyo-single-course--wrapper[data-layout="default"] .masteriyo-single-course--main .masteriyo-feature-img img {
	border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0;
}

/* masteriyo/single-course: Default's price box, the buy box's framed face. */
.masteriyo-single-course--wrapper[data-layout="default"] .masteriyo-right-sidebar-area .masteriyo-single-course--aside {
	background-color: var(--wp--custom--store-card--background);
	border-color: var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	border-style: var(--wp--custom--store-card--border-style);
	border-width: var(--wp--custom--store-card--border-width);
	box-shadow: var(--wp--custom--shadow--card);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
}

/* masteriyo/single-course: Modern's header band and price box on the vibe's card face, in place of Masteriyo's 12px corners and its own shadow. */
.masteriyo-single-course--wrapper[data-layout="modern"] .masteriyo-single-header,
.masteriyo-single-course--wrapper[data-layout="modern"] .masteriyo-single-course--card {
	background: var(--wp--custom--store-card--background);
	border-color: var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	border-style: var(--wp--custom--store-card--border-style);
	border-width: var(--wp--custom--store-card--border-width);
	box-shadow: var(--wp--custom--shadow--card);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
}

/* masteriyo/single-course: Modern's header photo, a nested corner one step under the card's, without Masteriyo's border. */
.masteriyo-single-course--wrapper[data-layout="modern"] .masteriyo-single-header__image img {
	border: 0;
	border-radius: var(--wp--custom--radius--panel);
}

/* masteriyo/single-course: Minimal's lead photo on the media corner, not Masteriyo's 8px. */
.masteriyo-container .masteriyo-single-course--wrapper[data-layout="minimal"] > .masteriyo-course--img-wrap .masteriyo-feature-img img {
	border-radius: var(--wp--custom--radius--media);
}

/* masteriyo/single-course, masteriyo/course-author: the author's avatar keeps its round corner, without Masteriyo's ring shadow. */
.masteriyo-single-course--wrapper:not([data-layout="immersive"]) .masteriyo-course-author img {
	box-shadow: none;
}

/* masteriyo/single-course: Minimal leaves its wrapper open around the theme footer, so its body takes the section gap to it, with or without Related Courses. */
.masteriyo-single-course--wrapper[data-layout="minimal"] > .masteriyo-single-body {
	padding-bottom: var(--wp--preset--spacing--64);
}

/* masteriyo/courses, masteriyo/single-course: the Modern card on the vibe's card face, in place of Masteriyo's 12px corners and own shadow. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--store-card--border-width) var(--wp--custom--store-card--border-style) var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	display: flex;
	flex-direction: column;
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	padding: var(--wp--preset--spacing--25);
}

/* masteriyo/courses, masteriyo/single-course: the inset photo on the panel corner, without Masteriyo's 6px corners and border. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-archive-card__image .masteriyo-course-thumbnail,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-archive-card__image .masteriyo-course-thumbnail {
	border: 0;
	border-radius: var(--wp--custom--radius--panel);
}

/* masteriyo/courses, masteriyo/single-course: the text column fills the card, so the price sinks to its foot. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-archive-card__content,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-archive-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 0;
}

/* masteriyo/courses, masteriyo/single-course: prices line up across a row whose titles wrap unevenly. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-archive-card__content--rating-amount,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-archive-card__content--rating-amount {
	margin-top: auto;
}

/* masteriyo/courses, masteriyo/single-course: the tagline a related gap over the title. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-course-category,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-course-category {
	margin-bottom: var(--wp--preset--spacing--20);
}

/* masteriyo/courses, masteriyo/single-course: the title a related gap over the price, not Masteriyo's 16px over and 20px under. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-course-title-wrapper,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card .masteriyo-course-title-wrapper {
	margin: 0 0 var(--wp--preset--spacing--25);
}

/* masteriyo/courses, masteriyo/single-course: the Modern title at the card title's medium-plus and heading-4 look, as the Simple card's; no setting reaches it. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--course-title .masteriyo-course-title,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--course-title .masteriyo-course-title {
	font-size: var(--wp--preset--font-size--medium-plus);
	font-weight: var(--wp--custom--text--heading-4--font-weight);
	letter-spacing: var(--wp--custom--text--heading-4--letter-spacing);
	line-height: var(--wp--custom--text--heading-4--line-height);
}

/* masteriyo/courses, masteriyo/single-course: the Modern card's lesson count and duration in the secondary ink, off Masteriyo's #646464, which fails on a dark palette. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--info .masteriyo-info-label,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--info .masteriyo-info-label {
	color: var(--wp--custom--color--text-weak);
}

/* masteriyo/courses, masteriyo/single-course: their icons in the icon ink. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--info svg,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--info svg {
	fill: var(--wp--custom--color--icon-default);
}

/* masteriyo/courses, masteriyo/single-course: the price part's text-regular size, as the Simple card's. */
.masteriyo-course-list-display-section[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--rating-amount .masteriyo-archive-card__content--amount .masteriyo-sale-price .masteriyo-price-amount,
.masteriyo-related-post[data-layout="layout_1"] .masteriyo-archive-cards .masteriyo-archive-card__content--rating-amount .masteriyo-archive-card__content--amount .masteriyo-sale-price .masteriyo-price-amount {
	font-size: var(--wp--custom--text--text-regular--font-size);
	font-weight: var(--wp--custom--text--text-regular--font-weight);
	line-height: var(--wp--custom--text--text-regular--line-height);
}

/* masteriyo/courses, masteriyo/courses-archive: the Overlay card on the vibe's card corner and shadow, clipping its photo and scrim. */
.masteriyo-course-cards .masteriyo-course-card {
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	overflow: hidden;
}

/* masteriyo/courses, masteriyo/courses-archive: the photo on the card's corner, not Masteriyo's 8px. */
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__thumbnail-image {
	border-radius: var(--wp--custom--radius--card);
}

/* masteriyo/courses, masteriyo/courses-archive: the dark-overlay scrim behind the text; Masteriyo's 30% leaves white text unreadable on a light photo. */
.masteriyo-course-cards .masteriyo-course-card::before {
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7) 50%);
	border-radius: var(--wp--custom--radius--card);
	opacity: 1;
}

/* masteriyo/courses, masteriyo/courses-archive: under the pointer or keyboard focus the description and button show, so the whole photo takes the scrim. */
.masteriyo-course-cards .masteriyo-course-card:hover::before,
.masteriyo-course-cards .masteriyo-course-card:focus-within::before {
	background: rgba(0, 0, 0, 0.7);
	border-radius: var(--wp--custom--radius--card);
	opacity: 1;
}

/* masteriyo/courses, masteriyo/courses-archive: Masteriyo reveals the description and button on hover only, out of a keyboard's reach. */
.masteriyo-course-cards .masteriyo-course-card:focus-within .masteriyo-course-card__content--container {
	max-height: 500px;
}

/* masteriyo/courses, masteriyo/courses-archive: the card part's group inset, in place of Masteriyo's 20px. */
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__content {
	padding: var(--wp--preset--spacing--30);
}

/* masteriyo/courses, masteriyo/courses-archive: the title at the card title's size and weight, in the photo's strong ink. */
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__content--course-title .masteriyo-course-title {
	font-size: var(--wp--preset--font-size--medium-plus);
	font-weight: var(--wp--custom--text--heading-4--font-weight);
	letter-spacing: var(--wp--custom--text--heading-4--letter-spacing);
	line-height: var(--wp--custom--text--heading-4--line-height);
}

/* masteriyo/courses, masteriyo/courses-archive: the price part's text-regular size, in the photo's strong ink. */
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__content--amount,
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__content--amount .masteriyo-price-amount {
	color: var(--wp--custom--color--text-media-strong);
	font-size: var(--wp--custom--text--text-regular--font-size);
	font-weight: var(--wp--custom--text--text-regular--font-weight);
	line-height: var(--wp--custom--text--text-regular--line-height);
}

/* masteriyo/courses, masteriyo/courses-archive: the button on a photo is the media main button, whatever the brand fill. */
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__content .masteriyo-course-card__content--container .masteriyo-archive-card__image-preview-button {
	background-color: var(--wp--custom--color--fill-media-strong);
	border-color: transparent;
	color: var(--wp--custom--color--text-on-media);
	font-size: var(--wp--custom--control-label--sm);
	min-height: var(--wp--custom--control--sm);
}

/* masteriyo/courses, masteriyo/courses-archive: the same button under the pointer. */
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__content .masteriyo-course-card__content--container .masteriyo-archive-card__image-preview-button:hover {
	background-color: var(--wp--custom--color--fill-media-strong-hover);
	color: var(--wp--custom--color--text-on-media);
}

/* masteriyo/courses, masteriyo/courses-archive: its icon on the same ink. */
.masteriyo-course-cards .masteriyo-course-card .masteriyo-course-card__content .masteriyo-course-card__content--container .masteriyo-archive-card__image-preview-button--icon svg {
	fill: var(--wp--custom--color--text-on-media);
}

/* masteriyo/courses, masteriyo/courses-archive: list view, the card on its side, clipping its photo so the outer corners follow the card and the inner ones stay square. */
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card {
	overflow: hidden;
	padding: 0;
}

/* masteriyo/courses, masteriyo/courses-archive: the list view's photo without Masteriyo's own 8px corners and border. */
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course--img-wrap img {
	border: 0;
	border-radius: 0;
}

/* masteriyo/courses, masteriyo/courses-archive: the list view's text on the card part's group inset, in place of Masteriyo's 16px top and bottom only. */
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course--content {
	gap: var(--wp--preset--spacing--25);
	padding: var(--wp--preset--spacing--30);
}

/* masteriyo/courses, masteriyo/courses-archive: the list view's price column without Masteriyo's 8px right inset. */
.masteriyo-courses-wrapper.list-view .masteriyo-col .masteriyo-course--card .masteriyo-course--content .masteriyo-course-archive--aside {
	padding-right: 0;
}

/* masteriyo/account: the logged-in account app's surfaces and inks; Masteriyo's React app writes them on :root, so the page body's values win. */
body.masteriyo-account-page {
	--chakra-colors-chakra-body-bg: var(--wp--custom--color--background-base);
	--chakra-colors-chakra-body-text: var(--wp--custom--color--text-strong);
	--chakra-colors-chakra-border-color: var(--wp--custom--color--stroke-weak);
	--chakra-colors-chakra-placeholder-color: var(--wp--custom--color--text-weak);
	--chakra-colors-white: var(--wp--custom--color--background-base);
	--chakra-colors-off-white: var(--wp--custom--color--fill-weaker);
	--chakra-colors-icy-blue-gray: var(--wp--custom--color--stroke-weak);
	--chakra-colors-oxford-night: var(--wp--custom--color--text-strong);
	--chakra-colors-saint-blue: var(--wp--custom--color--text-weak);
	--chakra-colors-gray-50: var(--wp--custom--color--fill-weaker);
	--chakra-colors-gray-100: var(--wp--custom--color--fill-weak);
	--chakra-colors-gray-200: var(--wp--custom--color--stroke-weak);
	--chakra-colors-gray-300: var(--wp--custom--color--stroke-strong);
	--chakra-colors-gray-400: var(--wp--custom--color--icon-default);
	--chakra-colors-gray-500: var(--wp--custom--color--text-weak);
	--chakra-colors-gray-600: var(--wp--custom--color--text-weak);
	--chakra-colors-gray-700: var(--wp--custom--color--text-strong);
	--chakra-colors-gray-800: var(--wp--custom--color--text-strong);
	--chakra-colors-green-400: var(--wp--custom--color--fill-success-strong);
	--chakra-colors-green-500: var(--wp--custom--color--text-success);
	--chakra-colors-red-500: var(--wp--custom--color--fill-error-strong);
	--chakra-colors-red-600: var(--wp--custom--color--text-error);
}

/* masteriyo/account: the app's brand scale from Primary color, ours only while it holds Masteriyo's factory value; the app spends 500 and 600 as text and as a fill under the page colour, so the readable brand ink, not a light brand's fill. */
body.ext-masteriyo-factory-primary-color.masteriyo-account-page {
	--chakra-colors-primary-50: var(--wp--custom--color--fill-brand-weaker);
	--chakra-colors-primary-100: var(--wp--custom--color--fill-brand-weak);
	--chakra-colors-primary-500: var(--wp--custom--color--text-brand);
	--chakra-colors-primary-600: var(--wp--custom--color--text-brand-strong);
	--chakra-colors-primary-700: var(--wp--custom--color--fill-brand-strong-active);
}

/* masteriyo/account: the app's buttons from Button color, ours only while it holds the factory value; an outline button's label and edge spend it too. */
body.ext-masteriyo-factory-button-color.masteriyo-account-page {
	--chakra-colors-button-500: var(--wp--custom--color--text-brand);
}

/* masteriyo/account: the same buttons under the pointer, from Button hover color, under the page colour as their label. */
body.ext-masteriyo-factory-button-hover-color.masteriyo-account-page {
	--chakra-colors-buttonHover: var(--wp--custom--color--text-brand-strong);
}

/* masteriyo/account: the signed-in app's corners from the vibe; Chakra's own radii round every tile, field and button. */
body.masteriyo-account-page {
	--chakra-radii-base: var(--wp--custom--radius--control);
	--chakra-radii-lg: var(--wp--custom--radius--card);
	--chakra-radii-md: var(--wp--custom--radius--control);
	--chakra-radii-sm: var(--wp--custom--radius--chip);
	--chakra-radii-xl: var(--wp--custom--radius--card);
}

/* masteriyo/account: the signed-in app at the shop account page's wide width, with the signed-out forms' space. */
body.masteriyo-account-page #masteriyo-account-page {
	max-width: var(--wp--style--global--wide-size);
	padding-bottom: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--64);
}

/* masteriyo/account: the app's own 16px inset would step it in from the header's edge; Masteriyo's notices keep theirs. */
body.masteriyo-account-page #masteriyo-account-page > div:has(> #masteriyo-account-container) {
	padding-inline: 0;
}

/* masteriyo/account: the open menu item on the owner's Primary color keeps Masteriyo's white; the app's white is our page colour, dark on a dark palette. */
body.masteriyo-account-page:not(.ext-masteriyo-factory-primary-color) #masteriyo-account-page a[aria-current="page"] {
	color: var(--wp--custom--color--text-media-strong) !important;
}

/* masteriyo/account: a notice over the app on the shop notice's shape; Chakra's base corner is the control's, a pill in a round vibe. */
body.masteriyo-account-page #masteriyo-account-page > div:not(:has(> #masteriyo-account-container)) {
	border-radius: var(--wp--custom--radius--panel);
	padding: var(--wp--preset--spacing--20);
}

/* masteriyo/account: Masteriyo blanks the page title here, so the template's title band prints empty. */
body.masteriyo-account-page main > div:not(:has(*)) {
	display: none;
}

/* masteriyo/account: signed out, sign-in and register as two cards; padding, as the layout zeroes a first child's top margin. */
.masteriyo-login-form-wrapper {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	gap: var(--wp--preset--spacing--40);
	justify-content: center;
	max-width: var(--wp--style--global--wide-size);
	overflow: visible;
	padding-bottom: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--64);
}

/* masteriyo/account: the two cards stay a wrapping row on a phone, where Masteriyo turns the page's blocks to display: block and loses the gap. */
body.masteriyo .masteriyo-login-form-wrapper:not(.no-signup) {
	display: flex;
}

/* masteriyo/account: each card a single field wide on the store card, in place of Masteriyo's halves of one ruled box. */
.masteriyo-login-form-wrapper > .masteriyo-login,
.masteriyo-login-form-wrapper > .masteriyo-signup {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--store-card--border-width) var(--wp--custom--store-card--border-style) var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	box-sizing: border-box;
	flex: 0 1 28rem;
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	padding: var(--wp--preset--spacing--30);
	width: auto;
}

/* masteriyo/account: sign-up and reset password on the same card and column; Masteriyo's box is 36em with its own 40px inset. */
.masteriyo-form-container.masteriyo-signup--wrapper,
.masteriyo-form-container.masteriyo-reset--wrapper {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--store-card--border-width) var(--wp--custom--store-card--border-style) var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	box-sizing: border-box;
	margin-bottom: var(--wp--preset--spacing--70);
	margin-top: var(--wp--preset--spacing--64);
	max-width: 28rem;
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	padding: var(--wp--preset--spacing--30);
	width: 100%;
}

/* masteriyo/account: each form's title at heading-5, as the shop's sign-in heading; reset password's is a 40px page title. */
.masteriyo-login--wrapper .masteriyo-title,
.masteriyo-login-form-wrapper .masteriyo-signup .masteriyo-title,
.masteriyo-signup .masteriyo-signup--title,
.masteriyo-reset .masteriyo-reset--title {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--heading-5--font-size);
	font-weight: var(--wp--custom--text--heading-5--font-weight);
	letter-spacing: var(--wp--custom--text--heading-5--letter-spacing);
	line-height: var(--wp--custom--text--heading-5--line-height);
	margin-top: 0;
}

/* masteriyo/account: the reset page's text in the body ink, off Masteriyo's pure black. */
.masteriyo-reset {
	color: var(--wp--custom--color--text-strong);
}

/* masteriyo/account: the register prompt's line in the body ink, off Masteriyo's hardcoded grey. */
.masteriyo-login-form-wrapper .masteriyo-signup > span {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--text-regular--font-size);
}

/* masteriyo/account: the field labels at the checkout's label size, off Masteriyo's 15px and hardcoded #222. */
.masteriyo-login .masteriyo-label,
.masteriyo-signup .masteriyo-label,
.masteriyo-reset .masteriyo-label {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--text-small--font-size);
	font-weight: var(--wp--custom--typography--font-weight--medium);
	line-height: var(--wp--custom--text--text-small--line-height);
}

/* masteriyo/account: the required mark, off Masteriyo's hardcoded pure red. */
.masteriyo-signup .masteriyo-text-red {
	color: var(--wp--custom--color--text-error);
}

/* masteriyo/account: the shop's text field; Masteriyo's body-wide input rule sets a grey #383838 at 15px. */
body.masteriyo-account-page .masteriyo-input:not(.search-field) {
	background-color: var(--wp--custom--color--background-base);
	border-color: var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--input);
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--form-control--input-value);
	min-height: var(--wp--custom--control--lg);
	padding-inline: var(--wp--custom--form-control--inset);
}

/* masteriyo/account: the field in focus, on the focus stroke in place of the brand colour. */
body.masteriyo-account-page .masteriyo-input:not(.search-field):focus {
	background-color: var(--wp--custom--color--background-base);
	border-color: var(--wp--custom--color--stroke-focus);
}

/* masteriyo/account: a field in keyboard focus; Masteriyo removes the outline. */
body.masteriyo-account-page .masteriyo-input:not(.search-field):focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/course-categories: the category card on the vibe's card face, not Masteriyo's 4px box in a fixed black-10 border. */
.masteriyo-category-card {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--store-card--border-width) var(--wp--custom--store-card--border-style) var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	overflow: hidden;
}

/* masteriyo/course-categories: the photo meets the card's own corner, not Masteriyo's 3px. */
.masteriyo-category-card .masteriyo-category-card__image img {
	border-radius: 0;
}

/* masteriyo/course-categories: a category with no photo prints a fixed lavender image no palette reaches. */
.masteriyo-category-card .masteriyo-category-card__image:has(img.masteriyo-placeholder) {
	background-color: var(--wp--custom--color--fill-weaker);
}

/* masteriyo/course-categories: the same placeholder, hidden over the surface. */
.masteriyo-category-card .masteriyo-category-card__image img.masteriyo-placeholder {
	opacity: 0;
}

/* masteriyo/course-categories: the course card's insets, in place of Masteriyo's 16px and 20px. */
.masteriyo-category-card .masteriyo-category-card__detail {
	padding: var(--wp--preset--spacing--25) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
}

/* masteriyo/course-categories: the name at the card title's look, as the course card's. */
.masteriyo-category-card .masteriyo-category-card__title {
	font-size: var(--wp--preset--font-size--medium-plus);
	font-weight: var(--wp--custom--text--heading-4--font-weight);
	letter-spacing: var(--wp--custom--text--heading-4--letter-spacing);
	line-height: var(--wp--custom--text--heading-4--line-height);
}

/* masteriyo/course-categories: the course count in the quiet small text, off Masteriyo's 13px, under the 14px floor. */
.masteriyo-category-card .masteriyo-category-card__courses {
	color: var(--wp--custom--color--text-weak);
	font-size: var(--wp--custom--text--text-small--font-size);
	margin-top: var(--wp--preset--spacing--20);
}

/* masteriyo/course-categories: the description at the card body's small size. */
.masteriyo-category-card .masteriyo-category-card__description {
	font-size: var(--wp--preset--font-size--small);
}

/* masteriyo/course-curriculum, masteriyo/single-course: the curriculum box on the vibe's card corner, not Masteriyo's 4px. */
.masteriyo-stab--tcurriculum.masteriyo-course--accordion {
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}

/* masteriyo/course-curriculum, masteriyo/single-course: a section's title at the label part, not Masteriyo's 15px. */
.masteriyo-stab--tcurriculum .masteriyo-stab--citems .masteriyo-cheader .masteriyo-ctitle {
	font-size: var(--wp--custom--text--label--font-size);
	font-weight: var(--wp--custom--text--label--font-weight);
	line-height: var(--wp--custom--text--label--line-height);
}

/* masteriyo/course-curriculum, masteriyo/single-course: the counts and Collapse All at the small size, off Masteriyo's 14px and 15px. */
.masteriyo-stab--tcurriculum ul.masteriyo-shortinfo-wrap,
.masteriyo-single-course--main__content .tab-content.course-curriculum .masteriyo-stab--shortinfo .masteriyo-link-primary {
	font-size: var(--wp--custom--text--text-small--font-size);
	line-height: var(--wp--custom--text--text-small--line-height);
}

/* masteriyo/course-author: the avatar flat, without Masteriyo's white ring and drop shadow. */
.masteriyo-course-author a img {
	border: 0;
	box-shadow: none;
}

/* masteriyo/checkout: Masteriyo blanks this title too, so the band prints empty. */
body:has(.masteriyo-checkout-container) main > div:not(:has(*)) {
	display: none;
}

/* masteriyo/checkout: the Courses page's top and bottom space, or the form sits flush on header and footer. */
.masteriyo-checkout-container {
	padding-bottom: var(--wp--preset--spacing--64);
	padding-top: var(--wp--preset--spacing--30);
}

/* masteriyo/checkout: the shop checkout's wide width; at the content width Masteriyo stacks the summary over the form. */
.masteriyo-checkout.masteriyo-checkout-container {
	max-width: var(--wp--style--global--wide-size);
}

/* masteriyo/checkout: the form and summary columns apart by the shop checkout's gap. */
.masteriyo-checkout .masteriyo-checkout-wrapper {
	gap: var(--wp--preset--spacing--40);
}

/* masteriyo/checkout: each form step a section gap below the last, as the shop checkout's steps sit. */
.masteriyo-checkout .masteriyo-checkout-main,
.masteriyo-checkout .masteriyo-checkout-summary,
.masteriyo-checkout .masteriyo-checkout-summary-panel {
	gap: var(--wp--preset--spacing--40);
}

/* masteriyo/checkout: the form's steps on the page, as the shop checkout's are, without Masteriyo's ruled boxes. */
.masteriyo-checkout .masteriyo-checkout-fields,
.masteriyo-checkout .masteriyo-checkout-payment {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

/* masteriyo/checkout: the fields a related gap apart, in place of Masteriyo's 20px. */
.masteriyo-checkout .masteriyo-checkout-fields,
.masteriyo-checkout .masteriyo-checkout---fname-lname-wrapper {
	gap: var(--wp--preset--spacing--25);
}

/* masteriyo/checkout: the billing step opens on its own title; the rule only parts boxed sections. */
.masteriyo-checkout .masteriyo-checkout-fields > .masteriyo-checkout-section--title:not(:first-child) {
	border-top: 0;
	padding-top: var(--wp--preset--spacing--25);
}

/* masteriyo/checkout: the summary on the vibe's filled card, as the shop checkout's order summary is. */
.masteriyo-checkout .masteriyo-checkout-summary-your-order {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--store-card--border-width) var(--wp--custom--store-card--border-style) var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	color: var(--wp--custom--color--text-strong);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	padding: var(--wp--preset--spacing--25);
}

/* masteriyo/checkout: the narrow screen's summary toggle, edged since the card border is 0; Masteriyo pins its own face by id. */
#masteriyo-checkout .masteriyo-checkout-summary-toggle {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--border-width--1) solid transparent;
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--label--font-size);
	padding: calc(var(--wp--preset--spacing--25) - var(--wp--custom--border-width--1));
}

/* masteriyo/checkout: the toggle on the same card while pointed at, focused or active. */
#masteriyo-checkout .masteriyo-checkout-summary-toggle:hover,
#masteriyo-checkout .masteriyo-checkout-summary-toggle:focus,
#masteriyo-checkout .masteriyo-checkout-summary-toggle:active {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--store-card--border-width) var(--wp--custom--store-card--border-style) var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--label--font-size);
	padding: var(--wp--preset--spacing--25);
}

/* masteriyo/checkout: the toggle in keyboard focus, on the focus ring in place of Masteriyo's brand outline. */
#masteriyo-checkout .masteriyo-checkout-summary-toggle:focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/checkout: each step's title and the summary's at the shop checkout's step title size. */
.masteriyo-checkout .masteriyo-checkout-section--title,
.masteriyo-checkout .masteriyo-checkout-summary--title {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--typography--font-weight--medium);
	letter-spacing: var(--wp--custom--text--heading-6--letter-spacing);
	line-height: var(--wp--custom--text--heading-6--line-height);
}

/* masteriyo/checkout: the field label at the small size, as the shop checkout's labels sit. */
.masteriyo-checkout .masteriyo-label {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--text-small--font-size);
	font-weight: var(--wp--custom--typography--font-weight--medium);
	line-height: var(--wp--custom--text--text-small--line-height);
}

/* masteriyo/checkout: the required mark, off Masteriyo's hardcoded pure red. */
.masteriyo-checkout .masteriyo-label span {
	color: var(--wp--custom--color--text-error);
}

/* masteriyo/checkout: the shop checkout's text field; Masteriyo's body-wide input rule sets a grey #383838 at 15px. */
#masteriyo-checkout .masteriyo-input,
#masteriyo-checkout .masteriyo-checkout select,
#masteriyo-checkout .masteriyo-checkout textarea {
	background-color: var(--wp--custom--color--background-base);
	border-color: var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--input);
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--form-control--input-value);
	min-height: var(--wp--custom--control--lg);
	padding-inline: var(--wp--custom--form-control--inset);
}

/* masteriyo/checkout: the field under the pointer or in focus, on the focus stroke in place of the brand colour. */
#masteriyo-checkout .masteriyo-input:focus,
#masteriyo-checkout .masteriyo-checkout select:focus,
#masteriyo-checkout .masteriyo-checkout textarea:focus {
	background-color: var(--wp--custom--color--background-base);
	border-color: var(--wp--custom--color--stroke-focus);
}

/* masteriyo/checkout: a field in keyboard focus, on the focus ring. */
#masteriyo-checkout .masteriyo-checkout .masteriyo-input:focus-visible,
#masteriyo-checkout .masteriyo-checkout select:focus-visible,
#masteriyo-checkout .masteriyo-checkout textarea:focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/checkout: a field that failed validation. */
#masteriyo-checkout .masteriyo-input.masteriyo-input--error {
	border-color: var(--wp--custom--color--stroke-error);
}

/* masteriyo/checkout: the field's error message. */
.masteriyo-checkout .masteriyo-checkout-field-error {
	color: var(--wp--custom--color--text-error);
	font-size: var(--wp--custom--text--text-small--font-size);
}

/* masteriyo/checkout: a payment option's frame, a tall input box, as the shop checkout's options are. */
.masteriyo-checkout .masteriyo-payment-method,
.masteriyo-checkout .masteriyo-payment-method:hover {
	background-color: var(--wp--custom--color--background-base);
	border-color: var(--wp--custom--color--stroke-strong);
	border-radius: var(--wp--custom--radius--input);
}

/* masteriyo/checkout: the picked option, on the focus stroke; a pale brand stroke falls under 3:1. */
.masteriyo-checkout .masteriyo-payment-method.masteriyo-payment-method--selected {
	background-color: var(--wp--custom--color--background-base);
	border-color: var(--wp--custom--color--stroke-focus);
}

/* masteriyo/checkout: the option's name at the label part's size and weight. */
.masteriyo-checkout .masteriyo-payment-method .masteriyo-payment-method__title {
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--custom--text--label--font-size);
	font-weight: var(--wp--custom--text--label--font-weight);
}

/* masteriyo/checkout: the option's radio in keyboard focus. */
.masteriyo-checkout .masteriyo-payment-method .masteriyo-payment-method__radio:focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/checkout: the order button in keyboard focus, on the focus ring in place of Masteriyo's dark ring and white halo. */
#masteriyo-checkout .masteriyo-checkout--btn:focus-visible {
	box-shadow: none;
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--custom--color--stroke-focus);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* masteriyo/checkout: the summary's rows at the small size, as the shop summary's are. */
.masteriyo-checkout .masteriyo-checkout-summary-order-details {
	font-size: var(--wp--custom--text--text-small--font-size);
	line-height: var(--wp--custom--text--text-small--line-height);
}

/* masteriyo/checkout: the column heads ruled as every other row is, not in Masteriyo's heading ink. */
.masteriyo-checkout .masteriyo-checkout-summary-order-details > li.h-border {
	border-bottom-color: var(--wp--custom--color--stroke-weak);
}

/* masteriyo/checkout: the summary's bold cells at semi-bold, as the shop summary's total; Masteriyo leaves them at the browser's 700. */
.masteriyo-checkout .masteriyo-checkout-summary-order-details > li > strong {
	font-weight: var(--wp--custom--typography--font-weight--semi-bold);
}

/* masteriyo/checkout: the total leads the summary, at the shop summary's total size. */
.masteriyo-checkout .masteriyo-checkout-summary-order-details > li:last-child {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--typography--font-weight--semi-bold);
}

/* masteriyo/checkout: the tax note in the quiet ink, off Masteriyo's hardcoded grey. */
.masteriyo-checkout .masteriyo-checkout-summary-order-details .tax_inclusive {
	color: var(--wp--custom--color--text-weak);
	font-size: var(--wp--custom--text--text-small--font-size);
}

/* masteriyo/checkout: the order-received receipt on the store card; Masteriyo's box sits flush on the title band. */
body.masteriyo .masteriyo-order.masteriyo-container {
	background-color: var(--wp--custom--store-card--background);
	border: var(--wp--custom--store-card--border-width) var(--wp--custom--store-card--border-style) var(--wp--custom--store-card--border-color);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	margin-bottom: var(--wp--preset--spacing--64);
	margin-top: var(--wp--preset--spacing--40);
	outline: var(--wp--custom--border-width--1) solid transparent;
	outline-offset: calc(-1 * var(--wp--custom--border-width--1));
	padding: var(--wp--preset--spacing--30);
}

/* masteriyo/checkout: the receipt's notice on the shop notice's shape. */
body.masteriyo .masteriyo-order.masteriyo-container .masteriyo-notice {
	border-radius: var(--wp--custom--radius--panel);
	font-size: var(--wp--custom--text--text-small--font-size);
	font-weight: var(--wp--custom--text--text-regular--font-weight);
	margin-bottom: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--20);
}

/* masteriyo/checkout: the order-received notice, as the shop's success notice, not page-coloured text on the strong green. */
body.masteriyo .masteriyo-order.masteriyo-container .masteriyo-notice.masteriyo-notice--success {
	background-color: var(--wp--custom--color--fill-success-weak);
	border: var(--wp--custom--border-width--1) solid var(--wp--custom--color--stroke-success-weak);
	color: var(--wp--custom--color--text-success);
}

/* masteriyo/checkout: the warning notice's label on the amber solid, not the page colour Masteriyo prints there. */
body.masteriyo .masteriyo-order.masteriyo-container .masteriyo-notice.masteriyo-notice--warning {
	color: var(--wp--custom--color--text-on-warning, var(--wp--custom--color--text-on-status));
}

/* masteriyo/courses, masteriyo/single-course: the intermediate difficulty badge's label on the amber solid, not the page colour. */
.masteriyo-badge.masteriyo-badge-yellow,
.masteriyo-course--badges .masteriyo-single-course--badge .masteriyo-badge.masteriyo-badge-yellow {
	color: var(--wp--custom--color--text-on-warning, var(--wp--custom--color--text-on-status));
}

/* masteriyo/checkout: the receipt's account and invoice links read as links; Masteriyo prints them in the body ink, unmarked. */
body.masteriyo .masteriyo-order.masteriyo-container a {
	color: var(--wp--custom--color--text-strong);
	text-decoration: underline;
}

/* masteriyo/checkout, masteriyo/courses-archive, masteriyo/single-course: a notice on the shop notice's shape; Masteriyo's own reads a fill colour as text. */
.masteriyo-alert {
	border-radius: var(--wp--custom--radius--panel);
	font-size: var(--wp--custom--text--text-small--font-size);
	line-height: var(--wp--custom--text--text-small--line-height);
	padding: var(--wp--preset--spacing--20);
}

/* masteriyo/checkout, masteriyo/courses-archive, masteriyo/single-course: the info notice. */
.masteriyo-alert.masteriyo-info-msg {
	background-color: var(--wp--custom--color--fill-info-weak);
	border-color: var(--wp--custom--color--stroke-info-weak);
	color: var(--wp--custom--color--text-info);
}

/* masteriyo/checkout, masteriyo/courses-archive, masteriyo/single-course: the success notice. */
.masteriyo-alert.masteriyo-success-msg {
	background-color: var(--wp--custom--color--fill-success-weak);
	border-color: var(--wp--custom--color--stroke-success-weak);
	color: var(--wp--custom--color--text-success);
}

/* masteriyo/checkout, masteriyo/courses-archive, masteriyo/single-course: the warning notice. */
.masteriyo-alert.masteriyo-warning-msg {
	background-color: var(--wp--custom--color--fill-warning-weak);
	border-color: var(--wp--custom--color--stroke-warning-weak);
	color: var(--wp--custom--color--text-warning);
}

/* masteriyo/checkout, masteriyo/courses-archive, masteriyo/single-course: the error notice, and the group Masteriyo prints when an order fails. */
.masteriyo-alert.masteriyo-danger-msg,
.masteriyo-checkout .masteriyo-NoticeGroup-checkout {
	background-color: var(--wp--custom--color--fill-error-weak);
	border-color: var(--wp--custom--color--stroke-error-weak);
	border-radius: var(--wp--custom--radius--panel);
	color: var(--wp--custom--color--text-error);
}

/* masteriyo/courses: every vibe's store card is tertiary, so on the tertiary band the card would vanish. */
.masteriyo-course--card:is(.has-tertiary-background-color.has-background *) { background-color: var(--wp--preset--color--background) !important; --wp--custom--color--text-weak: var(--wp--preset--color--foreground-alt); --wp--custom--color--background-base: var(--wp--preset--color--background); --wp--custom--color--stroke-strong: color-mix(in oklab, var(--wp--preset--color--foreground) 45%, var(--wp--preset--color--background)); --wp--custom--color--stroke-weak: color-mix(in oklab, var(--wp--preset--color--foreground) 18%, var(--wp--preset--color--background)); }
