/* MMLangues conversion and trust enhancements. Loaded after the combined theme CSS. */

#logo img.header-logo,
#logo img.header-logo-dark {
	width: 10rem !important;
	height: 3.25rem !important;
	object-fit: contain !important;
	object-position: center !important;
}

.mml-team-showcase,
.mml-language-teacher {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 8% 5%, rgba(178, 128, 59, .12), transparent 24%),
		linear-gradient(145deg, #fffefa 0%, #f7f1e9 100%);
}

.mml-team-showcase .uppercase,
.mml-language-teacher .uppercase,
.mml-enterprise-proof .uppercase,
.mml-value-system .uppercase {
	letter-spacing: .14em;
}

.mml-team-grid,
.mml-value-grid {
	margin-top: 28px;
}

.mml-team-showcase > .section-content > .row {
	width: min(calc(100% - 3rem), 72rem);
	margin-right: auto !important;
	margin-left: auto !important;
	justify-content: center;
}

.mml-team-showcase .mml-team-grid {
	align-items: stretch;
	justify-content: center;
}

.mml-team-card,
.mml-teacher-identity {
	height: 100%;
	padding: clamp(24px, 3vw, 34px);
	border: 1px solid rgba(75, 23, 41, .13);
	border-radius: 20px;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 16px 44px rgba(75, 23, 41, .08);
}

.mml-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mml-team-card h3,
.mml-teacher-identity h2 {
	margin: 10px 0 12px;
	color: #381322;
}

.mml-team-card > a {
	display: inline-flex;
	margin-top: auto;
	padding-top: 18px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mml-team-monogram {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: linear-gradient(145deg, #6c263d, #3e1323);
	box-shadow: 0 10px 24px rgba(75, 23, 41, .2);
	color: #fff;
	font-family: Georgia, serif;
	font-size: 1.45rem;
	font-weight: 700;
}

.mml-team-language {
	margin: 18px 0 0;
	color: #8a6030;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.mml-team-focus {
	width: 100%;
	padding-top: 14px;
	border-top: 1px solid rgba(75, 23, 41, .1);
	color: #5d5049;
}

.mml-team-card > p:not(.mml-team-language) {
	max-width: 31rem;
	margin-right: auto;
	margin-left: auto;
}

.mml-value-system,
.mml-enterprise-proof {
	background:
		radial-gradient(circle at 12% 12%, rgba(211, 164, 93, .16), transparent 25%),
		linear-gradient(135deg, #26141b 0%, #3a1724 52%, #202421 100%) !important;
}

.mml-value-system > .section-content > .row,
.mml-enterprise-proof > .section-content > .row {
	width: min(calc(100% - 3rem), 72rem);
	margin-right: auto !important;
	margin-left: auto !important;
	justify-content: center;
}

.mml-value-system .mml-value-grid,
.mml-enterprise-proof .mml-value-grid {
	align-items: stretch;
	justify-content: center;
}

.mml-value-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 18px;
	background: rgba(255, 255, 255, .07);
	box-shadow: inset 0 1px rgba(255, 255, 255, .08);
	text-align: center;
}

.mml-value-card > span {
	display: block;
	margin-bottom: 22px;
	color: #e1bc7d;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
}

.mml-value-card h3 {
	margin-bottom: 10px;
	color: #fff;
}

.mml-value-card p {
	margin-bottom: 0;
	color: rgba(255, 255, 255, .78);
}

.mml-language-teacher .mml-teacher-identity {
	border-top: 4px solid var(--mml-page-accent, #6c263d);
}

.mml-teacher-promises {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.mml-teacher-promises span {
	padding: 9px 13px;
	border: 1px solid rgba(75, 23, 41, .13);
	border-radius: 999px;
	background: #fff;
	color: #4b1729;
	font-size: .86rem;
	font-weight: 700;
}

body.home .mml-home-school .mml-home-founder-card {
	min-height: 0;
	text-align: center;
}

body.home .mml-home-school .mml-home-founder-card > p {
	max-width: 850px;
	margin-right: auto;
	margin-left: auto;
}

.mml-profile-paths {
	background: #fff;
}

.mml-profile-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 30px;
}

.mml-profile-card {
	height: 100%;
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid rgba(75, 23, 41, .13);
	border-top: 4px solid var(--mml-page-accent, #6c263d);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(75, 23, 41, .07);
}

.mml-profile-card h3 {
	margin: 0 0 12px;
	color: #381322;
	font-size: 1.3rem;
}

.mml-profile-card p {
	margin-bottom: 0;
	color: #5d5049;
	line-height: 1.7;
}

.mml-collective-note {
	margin: 22px auto 0;
	padding: 16px 18px;
	border: 1px solid rgba(108, 38, 61, .18);
	border-radius: 12px;
	background: #fff;
	color: #4b1729;
	text-align: center;
}

.mml-bilan-optional-details {
	margin: 0 0 1.4rem;
	border: 1px solid rgba(75, 23, 41, .13);
	border-radius: 10px;
	background: #fbfaf7;
}

.mml-bilan-optional-details summary {
	padding: 1rem 1.1rem;
	cursor: pointer;
	color: #4b1729;
	font-weight: 750;
}

.mml-bilan-optional-details summary span {
	color: #747a75;
	font-size: .8rem;
	font-weight: 500;
}

.mml-bilan-optional-fields {
	padding: 0 1.1rem 1rem;
}

.mml-mobile-call {
	display: none;
}

@media (max-width: 849px) {
	.mml-team-showcase > .section-content > .row {
		width: min(calc(100% - 2rem), 44rem);
	}

	.mml-value-system > .section-content > .row,
	.mml-enterprise-proof > .section-content > .row {
		width: min(calc(100% - 2rem), 44rem);
	}

	.mml-team-card,
	.mml-value-card {
		margin-bottom: 18px;
	}

	.mml-profile-grid {
		grid-template-columns: 1fr;
	}

	.mml-mobile-call {
		display: inline-flex;
		width: 42px;
		height: 42px;
		align-items: center;
		justify-content: center;
		border: 1px solid rgba(108, 38, 61, .18);
		border-radius: 50%;
		background: #fff;
		color: #6c263d;
	}

	.mml-mobile-call svg {
		width: 19px;
		height: 19px;
		fill: currentColor;
	}

	.mobile-nav .html_nav_position_text_top {
		margin: 0 4px 0 0;
	}
}

/* Learner-facing WordPress entry points. The LMS data and access decisions remain
 * on MarwaSchool; these styles only make the authorized connector entry points
 * understandable inside the MMLangues brand. */
.mml-learning-hero,
.mml-classroom-hero {
	max-width: 72rem;
	margin: clamp(1.5rem, 4vw, 3.75rem) auto 0;
	padding: clamp(2rem, 5vw, 4.5rem);
	border: 1px solid rgba(75, 23, 41, .12);
	border-radius: 24px;
	background:
		radial-gradient(circle at 92% 8%, rgba(211, 164, 93, .23), transparent 29%),
		linear-gradient(135deg, #fffdf9 0%, #f5ede5 100%);
	box-shadow: 0 18px 48px rgba(75, 23, 41, .08);
	text-align: center;
}

.mml-learning-hero > p:not(.mml-eyebrow),
.mml-classroom-hero > p:not(.mml-eyebrow) {
	max-width: 47rem;
	margin-right: auto;
	margin-left: auto;
	color: #5d5049;
	font-size: clamp(1rem, 1.4vw, 1.16rem);
	line-height: 1.65;
}

.mml-learning-hero .mml-hero-actions,
.mml-classroom-hero .mml-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .8rem;
	margin-top: 1.45rem;
}

.mml-learning-hero .mml-btn,
.mml-classroom-hero .mml-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: .72rem 1.1rem;
	text-align: center;
}

.mml-learning-expectations,
.mml-classroom-guide,
.mml-learning-hub {
	max-width: 72rem;
	margin-right: auto;
	margin-left: auto;
}

.mml-learning-expectations__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.6rem;
}

.mml-learning-expectations__grid article,
.mml-classroom-guide__steps li {
	border: 1px solid rgba(75, 23, 41, .12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(75, 23, 41, .055);
}

.mml-learning-expectations__grid article {
	padding: 1.35rem;
	text-align: center;
}

.mml-learning-expectations__grid strong,
.mml-classroom-guide__steps strong {
	display: block;
	color: #381322;
	font-size: 1.05rem;
}

.mml-learning-expectations__grid p,
.mml-classroom-guide__steps span {
	margin: .5rem 0 0;
	color: #5d5049;
	line-height: 1.55;
}

.mml-learning-help {
	max-width: 47rem;
	margin: 1.4rem auto 0;
	text-align: center;
}

.mml-classroom-guide__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.55rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: classroom-step;
}

.mml-classroom-guide__steps li {
	position: relative;
	min-height: 8rem;
	padding: 1.25rem 1.25rem 1.25rem 3.7rem;
	counter-increment: classroom-step;
}

.mml-classroom-guide__steps li::before {
	position: absolute;
	top: 1.12rem;
	left: 1.15rem;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #6c263d;
	color: #fff;
	content: counter(classroom-step);
	font-weight: 800;
}

.mml-classroom-connector:empty {
	display: none;
}

@media (max-width: 700px) {
	.mml-learning-hero,
	.mml-classroom-hero {
		margin-top: 1rem;
		padding: 1.5rem 1rem;
		border-radius: 18px;
	}

	.mml-learning-hero .mml-hero-actions,
	.mml-classroom-hero .mml-hero-actions {
		gap: .65rem;
	}

	.mml-learning-hero .mml-btn,
	.mml-classroom-hero .mml-btn {
		width: 100%;
	}

	.mml-learning-expectations__grid,
	.mml-classroom-guide__steps {
		grid-template-columns: 1fr;
	}

	.mml-learning-expectations__grid {
		gap: .75rem;
	}

	.mml-classroom-guide__steps {
		gap: .75rem;
	}
}

/* Entreprises: the four proof cards remain generous and legible on phones.
 * A native horizontal rail replaces the narrow two-by-two grid: swipe to
 * discover each step without creating a very tall, cramped section. */
@media (max-width: 549px) {
	body.page-id-65 .mml-enterprise-proof .mml-value-grid {
		display: flex !important;
		width: calc(100% + 1rem) !important;
		max-width: none !important;
		margin: 1.5rem -0.5rem 0 !important;
		padding: 0 0.5rem 0.85rem !important;
		gap: 0.85rem;
		flex-wrap: nowrap !important;
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-padding-inline: 0.5rem;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.page-id-65 .mml-enterprise-proof .mml-value-grid::-webkit-scrollbar {
		display: none;
	}

	body.page-id-65 .mml-enterprise-proof .mml-value-grid > .col {
		display: flex !important;
		width: auto !important;
		max-width: none !important;
		flex: 0 0 calc(88% - 0.4rem) !important;
		margin: 0 !important;
		padding: 0 !important;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	body.page-id-65 .mml-enterprise-proof .mml-value-card {
		width: 100%;
		height: 100%;
		min-height: 15.5rem;
		margin-bottom: 0 !important;
	}
}

/* Dedicated enterprise enquiry: explain the pricing logic before the form,
 * without inventing a generic price for projects that still require a quote. */
.mml-enterprise-budget {
	background: linear-gradient(180deg, #ffffff 0%, #f7f3ed 100%);
}

.mml-enterprise-budget-grid {
	width: min(calc(100% - 3rem), 72rem) !important;
	margin: 2rem auto 0 !important;
	align-items: stretch;
}

.mml-enterprise-budget-grid > .col {
	display: flex;
	padding-bottom: 0;
}

.mml-enterprise-budget-card {
	display: flex;
	width: 100%;
	min-height: 15rem;
	flex-direction: column;
	justify-content: center;
	padding: 2rem 1.65rem;
	border: 1px solid #ded8cf;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(61, 49, 39, 0.07);
	text-align: center;
}

.mml-enterprise-budget-card > span {
	display: block;
	margin-bottom: 0.7rem;
	color: #6c263d;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.mml-enterprise-budget-card h3 {
	margin: 0 0 0.7rem;
}

.mml-enterprise-budget-card p {
	margin: 0;
}

@media (max-width: 549px) {
	body.page-id-381 .mml-enterprise-budget-grid {
		display: flex !important;
		width: calc(100% + 1rem) !important;
		max-width: none !important;
		margin: 1.5rem -0.5rem 0 !important;
		padding: 0 0.5rem 0.85rem !important;
		gap: 0.85rem;
		flex-wrap: nowrap !important;
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-padding-inline: 0.5rem;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.page-id-381 .mml-enterprise-budget-grid::-webkit-scrollbar {
		display: none;
	}

	body.page-id-381 .mml-enterprise-budget-grid > .col {
		display: flex !important;
		width: auto !important;
		max-width: none !important;
		flex: 0 0 calc(88% - 0.4rem) !important;
		margin: 0 !important;
		padding: 0 !important;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	body.page-id-381 .mml-enterprise-budget-card {
		min-height: 14.5rem;
	}
}

@media (max-width: 549px) {
	.mml-team-showcase,
	.mml-language-teacher,
	.mml-value-system,
	.mml-enterprise-proof {
		text-align: center;
	}

	.mml-team-card,
	.mml-teacher-identity,
	.mml-value-card {
		padding: 22px 19px;
		border-radius: 16px;
		text-align: center;
	}

	.mml-team-monogram {
		width: 52px;
		height: 52px;
		font-size: 1.2rem;
	}

	.mml-teacher-promises {
		justify-content: center;
	}

	.mml-profile-card {
		padding: 20px 18px;
	}
}

/* Homepage hero: let the portrait breathe below the header instead of
 * rendering it as a full-bleed rectangular half of the hero. The shadow is
 * deliberately applied to the wrapper: it follows the 20px rounded crop. */
@media (min-width: 850px) {
	body.home .mml-hero-photo {
		align-items: center;
		padding: 1.5rem 0;
	}

	body.home .mml-hero-photo .col-inner {
		width: 100%;
		filter: drop-shadow(0 20px 32px rgba(63, 22, 39, 0.20));
	}

	body.home .mml-hero-photo picture {
		display: block;
		height: clamp(29rem, 38vw, 33rem);
		overflow: hidden;
		border-radius: 20px;
	}

	body.home .mml-hero-photo picture img {
		display: block;
		width: 100%;
		height: 100% !important;
		min-height: 0 !important;
		object-fit: cover;
		object-position: center;
		border: 0 !important;
		border-radius: 20px !important;
		box-shadow: none !important;
	}

	body.home .mml-hero-photo-intro {
		margin: 0 0 1.1rem;
	}

	body.home .mml-hero-photo-intro .mml-lead {
		max-width: 36rem;
		margin: 0;
		font-size: 1.02rem;
		line-height: 1.62;
	}

	body.home .mml-hero-photo-action {
		margin-top: 1.15rem;
		text-align: center;
	}

	body.home .mml-actions .button,
	body.home .mml-hero-contact .button,
	body.home .mml-hero-photo-action .button {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}

/* Mobile portrait flow: the base stylesheet assigns height:100% to picture.
 * Once the image itself is shortened for mobile, that detached percentage
 * height becomes a blank panel and can carry the CTA into the next section.
 * Give the picture an explicit, shared height and keep the CTA in its own
 * interactive stacking layer. */
@media (max-width: 549px) {
	body.home .mml-hero-photo,
	body.home .mml-hero-photo > .col-inner {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		position: relative;
		isolation: isolate;
	}

	body.home .mml-hero-photo picture {
		height: 15.25rem !important;
		min-height: 0 !important;
		margin: 0 !important;
		position: relative;
		z-index: 1;
	}

	body.home .mml-hero-photo-action {
		display: block !important;
		clear: both;
		height: auto !important;
		min-height: 2.9rem;
		margin: 0.8rem 0 1rem !important;
		position: relative !important;
		z-index: 3;
		pointer-events: auto !important;
	}

	body.home .mml-hero-photo-action .button {
		position: relative !important;
		z-index: 4;
		pointer-events: auto !important;
	}

	body.home .mml-signature {
		margin-top: 0 !important;
		position: relative;
		z-index: 0;
	}

	/* The method section exposes two distinct choices. Keep them close enough
	 * to read as one action area, but never visually glued together. */
	body.home .mml-method-action .button {
		display: flex !important;
		width: 100% !important;
		align-items: center;
		justify-content: center;
		margin: 0 !important;
	}

	body.home .mml-method-action .button + .button {
		margin-top: 0.65rem !important;
	}

	/* On phones, value cards form a native swipe rail. The first card starts
	 * flush with the content edge: no default resting state between two cards. */
	body.home .mml-value-system .mml-value-grid {
		display: flex !important;
		width: calc(100% + 1rem) !important;
		max-width: none !important;
		margin: 1.5rem -0.5rem 0 !important;
		padding: 0 0.5rem 0.85rem !important;
		gap: 0.85rem;
		flex-wrap: nowrap !important;
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-padding-inline: 0.5rem;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.home .mml-value-system .mml-value-grid::-webkit-scrollbar {
		display: none;
	}

	body.home .mml-value-system .mml-value-grid > .col {
		display: flex !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0;
		flex: 0 0 calc(88% - 0.4rem) !important;
		margin: 0 !important;
		padding: 0 !important;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	body.home .mml-value-system .mml-value-card {
		display: flex !important;
		width: 100%;
		min-height: 17.25rem;
		margin: 0 !important;
		padding: 1.1rem 0.8rem !important;
		align-items: center;
		justify-content: center;
		text-align: center !important;
	}

	body.home .mml-value-system .mml-value-card > span {
		margin: 0 0 0.75rem;
	}

	body.home .mml-value-system .mml-value-card h3 {
		margin: 0 0 0.6rem;
		font-size: 0.9rem;
		line-height: 1.25;
	}

	body.home .mml-value-system .mml-value-card p {
		margin: 0;
		font-size: 0.82rem;
		line-height: 1.42;
	}
}

/* Final conversion choice: the secondary action needs a clear contrast on
 * the dark footer, while remaining visually distinct from the wine primary. */
body.home .mml-final .button.is-outline {
	border-color: #3c92c5 !important;
	background: #3c92c5 !important;
	box-shadow: 0 10px 22px rgba(60, 146, 197, 0.26);
	color: #fff !important;
}

body.home .mml-final .button.is-outline span {
	color: #fff !important;
}

body.home .mml-final .button.is-outline:hover,
body.home .mml-final .button.is-outline:focus-visible {
	border-color: #277caf !important;
	background: #277caf !important;
	color: #fff !important;
}

/* Final mobile rhythm adjustment: enough separation to read each block, not
 * enough to recreate the empty bands removed above. */
@media (max-width: 549px) {
	body.home .mml-hero-copy-inner {
		padding-top: 1.2rem;
	}

	body.home .mml-hero-photo-intro {
		margin: 0.55rem 0 0.7rem;
	}
}

/* Formations: catalogue and introductory CTAs share one optical centerline.
 * Flex centering handles the box; the tiny translate compensates the font's
 * ascender-heavy metrics so the label does not read as sitting too low. */
body.page-id-8 main .button,
body.page-id-8 main .chiwaschool-card__link,
body.page-id-8 main .chiwaschool-enroll__submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.2 !important;
}

body.page-id-8 main .button > span,
body.page-id-8 main .chiwaschool-card__link > span,
body.page-id-8 main .chiwaschool-enroll__submit > span {
	display: block;
	width: 100%;
	line-height: 1.2 !important;
	transform: translateY(-1px);
}

/* About: all CTA labels use the same optical centerline as Formations. */
body.page-id-7 main .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.2 !important;
}

body.page-id-7 main .button > span {
	display: block;
	width: 100%;
	line-height: 1.2 !important;
	transform: translateY(-1px);
}

/* Keep the contact CTA quiet at rest, then make its hover state unequivocal:
 * a lighter wine surface, matching border and white label. */
body.home main .mml-hero-contact .button:hover,
body.home main .mml-hero-contact .button:focus-visible {
	border-color: #98506a !important;
	background: #98506a !important;
	box-shadow: 0 8px 18px rgba(108, 38, 61, 0.18);
	color: #fff !important;
}

body.home main .mml-hero-contact .button:hover span,
body.home main .mml-hero-contact .button:focus-visible span {
	color: #fff !important;
}

/* Same high-contrast hover state for the contact CTA in the About hero. */
body.page-id-7 main .mml-hero-contact .button:hover,
body.page-id-7 main .mml-hero-contact .button:focus-visible {
	border-color: #98506a !important;
	background: #98506a !important;
	box-shadow: 0 8px 18px rgba(108, 38, 61, 0.18);
	color: #fff !important;
}

body.page-id-7 main .mml-hero-contact .button:hover span,
body.page-id-7 main .mml-hero-contact .button:focus-visible span {
	color: #fff !important;
}

/* Shared internal-page CTA pattern: prevent every future page from
 * reintroducing off-centre labels or an unreadable red-on-red contact hover. */
body.page:not(.home) main .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.2 !important;
}

body.page:not(.home) main .button > span {
	display: block;
	width: 100%;
	line-height: 1.2 !important;
	transform: translateY(-1px);
}

body.page:not(.home) main .mml-hero-contact .button:hover,
body.page:not(.home) main .mml-hero-contact .button:focus-visible {
	border-color: #98506a !important;
	background: #98506a !important;
	box-shadow: 0 8px 18px rgba(108, 38, 61, 0.18);
	color: #fff !important;
}

body.page:not(.home) main .mml-hero-contact .button:hover span,
body.page:not(.home) main .mml-hero-contact .button:focus-visible span {
	color: #fff !important;
}

/* Native 0.6 catalogue families use <details>, deliberately: the options
 * remain usable without JavaScript. Give the summary a clear CTA treatment
 * so it is understood as the action that reveals the exact variants. */
.mml-catalog-enhanced .chiwaschool-family-options {
	margin-top: auto;
	border-top: 0;
}

.mml-catalog-enhanced .chiwaschool-family-options > summary {
	display: flex;
	width: 100%;
	min-height: 3rem;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	border: 1px solid var(--mml-wine);
	border-radius: 0.55rem;
	background: var(--mml-wine);
	color: #fff;
	font-size: 0.92rem;
	font-weight: 750;
	line-height: 1.2;
	list-style: none;
	text-align: center;
	cursor: pointer;
}

.mml-catalog-enhanced .chiwaschool-family-options > summary::-webkit-details-marker {
	display: none;
}

.mml-catalog-enhanced .chiwaschool-family-options > summary::after {
	content: '+';
	font-size: 1.1rem;
	line-height: 1;
}

.mml-catalog-enhanced .chiwaschool-family-options[open] > summary {
	border-color: #98506a;
	background: #98506a;
}

.mml-catalog-enhanced .chiwaschool-family-options[open] > summary::after {
	content: '−';
}

.mml-catalog-enhanced .chiwaschool-family-options > summary:focus-visible {
	outline: 3px solid rgba(152, 80, 106, 0.36);
	outline-offset: 3px;
}

/* School presentation: make the school itself the section heading; keep the
 * learner-focused promise as a strong supporting paragraph. */
body.home .mml-home-school .mml-home-school-title {
	margin: 0;
	color: var(--mml-wine);
	font-size: clamp(2.15rem, 3.4vw, 3.3rem);
	line-height: 1.06;
}

body.home .mml-home-school .mml-home-school-subtitle {
	max-width: 38rem;
	margin: 0.65rem auto 1rem;
	color: var(--mml-ink);
	font-size: 1.08rem;
	line-height: 1.42;
}

body.home .mml-home-school .mml-home-school-subtitle strong {
	font-weight: 750;
}

/* Mobile team rail: keep the existing cards but replace the tall vertical
 * stack with a native touch carousel. CSS scroll snap needs no JS and keeps
 * every teacher's link accessible. */
@media (max-width: 549px) {
	body.home .mml-team-showcase .mml-team-grid {
		display: flex !important;
		width: calc(100% + 1rem) !important;
		max-width: none !important;
		margin: 1.4rem -0.5rem 0 !important;
		padding: 0 0.5rem 0.85rem !important;
		gap: 0.85rem;
		flex-wrap: nowrap !important;
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-padding-inline: 0.5rem;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.home .mml-team-showcase .mml-team-grid::-webkit-scrollbar {
		display: none;
	}

	body.home .mml-team-showcase .mml-team-grid > .col {
		display: flex !important;
		width: auto !important;
		max-width: none !important;
		flex: 0 0 calc(88% - 0.4rem) !important;
		margin: 0 !important;
		padding: 0 !important;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	body.home .mml-team-showcase .mml-team-card {
		width: 100%;
		height: 100%;
		margin-bottom: 0 !important;
	}

	/* Keep the same mobile interaction model for the four value cards: one
	 * comfortable card per swipe rather than two narrow columns. */
	body.home .mml-value-system .mml-value-grid {
		display: flex !important;
		width: calc(100% + 1rem) !important;
		max-width: none !important;
		margin: 1.5rem -0.5rem 0 !important;
		padding: 0 0.5rem 0.85rem !important;
		gap: 0.85rem;
		flex-wrap: nowrap !important;
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-padding-inline: 0.5rem;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.home .mml-value-system .mml-value-grid::-webkit-scrollbar {
		display: none;
	}

	body.home .mml-value-system .mml-value-grid > .col {
		display: flex !important;
		width: auto !important;
		max-width: none !important;
		flex: 0 0 calc(88% - 0.4rem) !important;
		margin: 0 !important;
		padding: 0 !important;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	body.home .mml-value-system .mml-value-card {
		width: 100%;
		height: 100%;
		min-height: 15.5rem;
		margin-bottom: 0 !important;
	}

	body.home .mml-home-school .mml-home-school-title {
		white-space: nowrap;
		font-size: clamp(1.55rem, 7.8vw, 2rem);
	}

	body.home .mml-home-school .mml-home-school-subtitle {
		margin: 0.5rem auto 0.9rem;
		font-size: 1rem;
		line-height: 1.38;
	}
}

/* Keep the three reassurances centered as one balanced desktop component. */
@media (min-width: 850px) {
	body.home .mml-hero .mml-kicker {
		font-size: 0.84rem;
		letter-spacing: 0.11em;
		white-space: nowrap;
	}

	body.home .mml-signature > .section-content {
		display: grid;
		width: 100%;
		place-items: center;
	}

	body.home .mml-signature-row {
		display: grid !important;
		width: min(calc(100% - 3rem), 72rem) !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-self: center;
	}

	body.home .mml-signature-row > .col,
	body.home .mml-signature-row > .col > .col-inner,
	body.home .mml-signature-row p {
		display: flex;
		width: 100%;
		max-width: none;
		align-items: center;
		justify-content: center;
		text-align: center !important;
	}

	body.home .mml-signature-row > .col {
		padding: 0;
	}

	body.home .mml-signature-row p {
		min-height: 3.5rem;
		flex-direction: column;
	}
}

/* Compact mobile hero: one centered reading flow, without an empty bridge
 * between the introductory actions and the portrait column. */
@media (max-width: 549px) {
	/* The base theme's desktop visual-rhythm rule is declared late in the
	 * cascade. Without these two resets it leaves a 36rem column and vertically
	 * centers the copy inside it, which produces two artificial blank bands. */
	body.home .mml-hero-copy-inner {
		min-height: 0 !important;
		justify-content: flex-start;
	}

	body.home .mml-hero-copy-inner {
		padding: 0.95rem 0 0.2rem;
	}

	body.home .mml-kicker {
		margin-bottom: 0.7rem;
		font-size: 0.82rem;
		letter-spacing: 0.075em;
		line-height: 1.1;
		white-space: nowrap;
	}

	body.home .mml-hero-photo {
		padding: 0;
	}

	body.home .mml-hero-photo-intro {
		margin: 0.1rem 0 0.7rem;
	}

	body.home .mml-hero-photo-intro .mml-lead {
		margin: 0;
		font-size: 0.96rem;
		line-height: 1.5;
	}

	body.home .mml-hero-photo picture {
		display: block;
		overflow: hidden;
		border-radius: 16px;
	}

	body.home .mml-hero-photo picture img {
		display: block;
		height: 15.25rem !important;
		min-height: 0 !important;
		object-fit: cover;
		object-position: center 24%;
		border-radius: 16px !important;
	}

	body.home .mml-hero-photo-action {
		margin-top: 0.8rem;
	}

	body.home .mml-hero-photo-action .button {
		width: 100%;
		min-height: 2.9rem;
		padding: 0 1rem;
	}

	body.home .mml-hero h1 {
		margin-bottom: 0.85rem;
	}

	body.home .mml-hero-contact {
		margin-top: 0.45rem;
	}

	body.home .mml-reassurance {
		margin-top: 0.65rem;
		padding-top: 0.55rem;
	}
}

@media (max-width: 849px) {
	body.home .mml-hero-photo-intro {
		margin: 0 0 1rem;
	}

	body.home .mml-hero-photo-action {
		margin-top: 1rem;
		text-align: center;
	}

	body.home .mml-actions .button,
	body.home .mml-hero-contact .button,
	body.home .mml-hero-photo-action .button {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}
