/* =========================================================================
   Francis Mbunya Theme
   Design to Succeed brand: deep navy, royal blue, gold.
   Typography: Fraunces (display serif) + Manrope (body sans).
   ====================================================================== */

:root {
	--fm-navy: #0b2a5b;
	--fm-navy-dark: #071c3f;
	--fm-blue: #1d63e0;
	--fm-sky: #2fa4e7;
	--fm-gold: #f2b81c;
	--fm-gold-dark: #d99f07;
	--fm-ink: #16233c;
	--fm-muted: #5b6b84;
	--fm-bg: #ffffff;
	--fm-bg-soft: #f4f7fc;
	--fm-stroke: #e3e9f2;
	--fm-radius: 16px;
	--fm-shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 12px 32px -18px rgba(11, 42, 91, .25);
	--fm-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--fm-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Reset-ish ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--fm-font-body);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--fm-ink);
	background: var(--fm-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--fm-blue); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--fm-gold);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--fm-font-display);
	color: var(--fm-navy);
	line-height: 1.15;
	margin: 0 0 .5em;
	font-weight: 600;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; word-wrap: normal !important;
}

.fm-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100000;
	background: var(--fm-navy); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.fm-skip-link:focus { left: 0; }

/* Global front-end AJAX state. */
.fm-ajax-loader {
	position: fixed;
	z-index: 1000000;
	top: 18px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 42px;
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(7, 28, 63, .96);
	box-shadow: 0 12px 32px rgba(7, 28, 63, .25);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	pointer-events: none;
	transform: translateX(-50%);
}
.fm-ajax-loader[hidden] { display: none !important; }
.fm-ajax-loader-spinner {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	border: 2px solid rgba(255, 255, 255, .34);
	border-top-color: var(--fm-gold);
	border-radius: 50%;
	animation: fm-ajax-spin .72s linear infinite;
}
.admin-bar .fm-ajax-loader { top: 46px; }
@keyframes fm-ajax-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.fm-ajax-loader-spinner { animation-duration: 1.5s; }
}
@media (max-width: 782px) {
	.admin-bar .fm-ajax-loader { top: 60px; }
}

/* ---- Layout ------------------------------------------------------------- */

.fm-container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.fm-container-narrow { max-width: 860px; }

.fm-main { display: block; }

.fm-section { padding: 84px 0; }
.fm-section-tight { padding: 44px 0; }
.fm-section-soft { background: var(--fm-bg-soft); }

.fm-section-navy {
	background:
		radial-gradient(60% 80% at 85% 0%, rgba(47, 164, 231, .16), transparent 65%),
		radial-gradient(50% 70% at 10% 100%, rgba(242, 184, 28, .10), transparent 60%),
		linear-gradient(160deg, var(--fm-navy) 0%, var(--fm-navy-dark) 100%);
}
.fm-section-navy h2, .fm-section-navy h3 { color: #fff; }
.fm-section-navy .fm-section-sub { color: rgba(255, 255, 255, .78); }
.fm-section-navy .fm-kicker { color: var(--fm-gold); }

/* ---- Type helpers ------------------------------------------------------- */

.fm-kicker {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fm-blue);
	margin: 0 0 14px;
}
.fm-kicker-gold { color: var(--fm-gold); }

.fm-section-title {
	font-size: clamp(28px, 4vw, 40px);
	margin: 0 0 14px;
}

.fm-section-sub {
	font-size: 18px;
	color: var(--fm-muted);
	max-width: 640px;
	margin: 0 0 8px;
}

.fm-section-head { margin-bottom: 44px; }
.fm-section-head-center { text-align: center; }
.fm-section-head-center .fm-section-sub { margin-left: auto; margin-right: auto; }

.fm-accent-text { color: var(--fm-gold); }

/* ---- Buttons ------------------------------------------------------------ */

.fm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	border: 2px solid var(--fm-stroke);
	background: #fff;
	color: var(--fm-navy);
	font-family: var(--fm-font-body);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.fm-btn:hover { transform: translateY(-1px); border-color: var(--fm-blue); color: var(--fm-blue); }

.fm-btn-gold {
	background: linear-gradient(135deg, var(--fm-gold), var(--fm-gold-dark));
	border-color: transparent;
	color: var(--fm-navy-dark);
	box-shadow: 0 10px 26px -12px rgba(242, 184, 28, .8);
}
.fm-btn-gold:hover { color: var(--fm-navy-dark); box-shadow: 0 14px 30px -12px rgba(242, 184, 28, .9); border-color: transparent; }

.fm-btn-navy {
	background: linear-gradient(135deg, var(--fm-blue), var(--fm-navy));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 10px 26px -14px rgba(11, 42, 91, .8);
}
.fm-btn-navy:hover { color: #fff; border-color: transparent; }

.fm-btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.fm-btn-outline-light:hover { border-color: #fff; color: #fff; }

.fm-btn-big { padding: 15px 30px; font-size: 16px; }

.fm-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.fm-cta-center { justify-content: center; }

/* ---- Header ------------------------------------------------------------- */

.fm-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(11, 42, 91, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: box-shadow .2s ease;
}
.fm-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(7, 28, 63, .8); }

/* Offset the sticky header below the WP admin bar for logged-in users */
.admin-bar .fm-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .fm-header { top: 46px; }
}
@media (max-width: 600px) {
	/* Admin bar is position:absolute here and scrolls away */
	.admin-bar .fm-header { top: 0; }
}

.fm-header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1360px;
	min-height: 70px;
}

.fm-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: #fff;
	margin-right: auto;
}

.fm-brand-mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--fm-gold), var(--fm-gold-dark));
	color: var(--fm-navy-dark);
	font-family: var(--fm-font-display);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .02em;
}

.fm-brand-name { font-family: var(--fm-font-display); font-size: 19px; font-weight: 600; white-space: nowrap; }

.fm-brand-icon {
	display: block;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	object-fit: contain;
}

.fm-brand .custom-logo { max-height: 34px; width: auto; display: block; }
@media (max-width: 480px) {
	.fm-brand { gap: 9px; }
	.fm-brand-icon { width: 30px; height: 30px; }
	.fm-brand .custom-logo { max-height: 26px; }
}
.fm-footer .fm-brand-icon { width: 34px; height: 34px; }
.fm-footer .fm-brand .custom-logo { max-height: 30px; }

.fm-nav { display: flex; align-items: center; gap: 24px; }

.fm-nav-list {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-nav-list a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: color .15s ease;
}
.fm-nav-list a:hover, .fm-nav-list .current-menu-item a { color: var(--fm-gold); }

.fm-nav-cta { padding: 10px 22px; font-size: 14px; }

.fm-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 10px;
}
.fm-nav-toggle-bar { display: block; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s ease; }
.fm-nav-toggle.is-open .fm-nav-toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.fm-nav-toggle.is-open .fm-nav-toggle-bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 940px) {
	body.fm-nav-open { overflow: hidden; }
	.fm-nav-toggle { display: flex; }
	.fm-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--fm-navy-dark);
		padding: 18px 22px 24px;
		box-shadow: 0 20px 30px -18px rgba(7, 28, 63, .9);
		max-height: calc(100vh - 70px);
		overflow-y: auto;
	}
	.fm-nav.is-open { display: flex; }
	.fm-nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
	.fm-nav-list a { display: block; padding: 11px 4px; font-size: 16px; }
	.fm-nav-cta { margin-top: 12px; justify-content: center; }
}

/* ---- Hero --------------------------------------------------------------- */

.fm-hero {
	position: relative;
	padding: 92px 0 64px;
	color: #fff;
	background:
		radial-gradient(55% 75% at 80% 10%, rgba(47, 164, 231, .22), transparent 62%),
		radial-gradient(40% 60% at 12% 90%, rgba(242, 184, 28, .12), transparent 60%),
		linear-gradient(155deg, var(--fm-navy) 0%, var(--fm-navy-dark) 78%);
	overflow: hidden;
}

.fm-hero-small { padding: 76px 0 56px; }

.fm-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	gap: 48px;
	align-items: center;
}

.fm-hero .fm-kicker { color: var(--fm-gold); }

.fm-hero-title {
	color: #fff;
	font-size: clamp(36px, 5.6vw, 60px);
	margin: 0 0 20px;
	letter-spacing: -.01em;
}

.fm-hero-sub {
	font-size: clamp(17px, 2vw, 19.5px);
	color: rgba(255, 255, 255, .82);
	max-width: 620px;
	margin: 0;
}

.fm-hero-program { text-align: center; }
.fm-hero-program .fm-hero-sub { margin: 0 auto; }

.fm-hero-media { display: flex; justify-content: center; }

.fm-portrait {
	width: min(320px, 80vw);
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 22px;
	border: 3px solid rgba(242, 184, 28, .55);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
	display: block;
}

.fm-portrait-placeholder {
	display: grid;
	place-items: center;
	background:
		radial-gradient(70% 60% at 70% 20%, rgba(47, 164, 231, .35), transparent 70%),
		linear-gradient(150deg, #123a7a, var(--fm-navy-dark));
}
.fm-portrait-placeholder span {
	font-family: var(--fm-font-display);
	font-size: 84px;
	font-weight: 700;
	color: var(--fm-gold);
	opacity: .9;
}

.fm-hero-small .fm-portrait { width: min(250px, 66vw); }

/* Stats */

.fm-stat-row {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 56px 0 0;
	padding: 26px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.fm-stat { text-align: left; }
.fm-stat-value {
	display: block;
	font-family: var(--fm-font-display);
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 700;
	color: var(--fm-gold);
	line-height: 1.1;
}
.fm-stat-label { font-size: 13.5px; color: rgba(255, 255, 255, .72); font-weight: 600; }

.fm-stat-row-navy { border-top: 0; margin-top: 0; padding-top: 0; }

@media (max-width: 760px) {
	.fm-hero { padding: 36px 0 48px; }
	.fm-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
	.fm-hero-copy { text-align: center; }
	.fm-hero-copy .fm-hero-sub { margin-inline: auto; }
	.fm-hero-copy .fm-btn {
		width: fit-content;
		margin-inline: auto;
	}
	.fm-hero-media { order: -1; }
	.fm-portrait { width: min(230px, 62vw); }
	.fm-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
	.fm-stat { text-align: center; }
}

/* Badge row (program hero) */

.fm-badge-row {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	margin: 30px 0 0;
	padding: 0;
}
.fm-badge-row li {
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, .7);
	white-space: nowrap;
}
.fm-badge-row li + li::before {
	content: "•";
	margin-right: 18px;
	color: rgba(242, 184, 28, .7);
}

/* ---- Impact band -------------------------------------------------------- */
/* Formerly an "as featured in" logo strip. It now carries substantiated
   impact highlights, so the marks read as confident facts rather than
   faded publication wordmarks. The .fm-media-* class names are kept so
   saved Page Designer content and any custom CSS keep working. */

.fm-media-band {
	padding: 34px 0;
	background: var(--fm-bg-soft);
	border-bottom: 1px solid var(--fm-stroke);
}

.fm-media-title {
	text-align: center;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--fm-muted);
	margin: 0 0 16px;
}

.fm-media-logos {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 18px;
	margin: 0;
	padding: 0;
}

/* A genuine partner or publication logo, when one is set on the item. */
.fm-media-logos img { max-height: 34px; width: auto; filter: grayscale(1); opacity: .78; }

/* Text-only item: an impact highlight, rendered as a chip. */
.fm-media-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--fm-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--fm-navy);
	letter-spacing: 0;
	background: var(--fm-bg);
	border: 1px solid var(--fm-stroke);
	border-radius: 999px;
	padding: 9px 18px 9px 15px;
	box-shadow: 0 1px 2px rgba(11, 42, 91, .05);
}

.fm-media-wordmark::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fm-gold);
}

@media (max-width: 720px) {
	.fm-media-logos { gap: 10px 12px; }
	.fm-media-wordmark { font-size: 14px; padding: 8px 15px 8px 13px; }
}

/* ---- Cards & grids ------------------------------------------------------ */

.fm-grid { display: grid; gap: 22px; }
.fm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 940px) { .fm-grid-3, .fm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fm-grid-3, .fm-grid-4 { grid-template-columns: minmax(0, 1fr); } }

.fm-card {
	background: #fff;
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	padding: 28px;
	box-shadow: var(--fm-shadow);
}
.fm-card h3 { font-size: 20px; margin: 0 0 8px; }
.fm-card p { margin: 0; color: var(--fm-muted); font-size: 15.5px; }

.fm-card-icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	font-size: 25px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(29, 99, 224, .1), rgba(242, 184, 28, .14));
	color: var(--fm-blue);
	box-shadow: inset 0 0 0 1px rgba(29, 99, 224, .08);
	margin-bottom: 16px;
}
.fm-ui-icon { display: block; width: 27px; height: 27px; }

/* ---- Preserved programme pages ---------------------------------------- */

.fm-legacy-hero .fm-hero-sub { max-width: 760px; }
.fm-legacy-list { margin: 26px 0 0; padding: 0; list-style: none; }
.fm-legacy-list li {
	position: relative;
	padding: 15px 18px 15px 46px;
	border-bottom: 1px solid var(--fm-stroke);
	color: var(--fm-text);
	font-weight: 600;
	line-height: 1.55;
}
.fm-legacy-list li::before {
	content: "✓";
	position: absolute;
	left: 16px;
	top: 15px;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(242, 184, 28, .18);
	color: var(--fm-navy);
	font-size: 12px;
	font-weight: 800;
}
.fm-legacy-list.fm-grid { gap: 14px 22px; }
.fm-legacy-list.fm-grid li { border: 1px solid var(--fm-stroke); border-radius: 12px; background: #fff; }
.fm-legacy-journey .fm-card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.fm-legacy-journey .fm-card h3 { color: #fff; }
.fm-legacy-journey .fm-card p { color: rgba(255, 255, 255, .8); }
.fm-legacy-step { display: block; margin-bottom: 16px; color: var(--fm-gold); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.fm-legacy-form { max-width: 660px; margin: 28px auto 0; padding: 28px; border-radius: var(--fm-radius); background: #fff; box-shadow: var(--fm-shadow); text-align: left; }
.fm-legacy-form .fm-btn { align-self: flex-start; }

/* Reveal on scroll */

.fm-card, .fm-movement, .fm-price-card, .fm-journey-step, .fm-book {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease;
}
.fm-reveal-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.fm-card, .fm-movement, .fm-price-card, .fm-journey-step, .fm-book { opacity: 1; transform: none; transition: none; }
}

/* Course assessment and feedback */
.fm-assessment-standard,
.fm-quiz-review {
	margin-top: 1.25rem;
}

.fm-assessment-standard ul,
.fm-quiz-review ol {
	margin: .75rem 0 0;
	padding-left: 1.35rem;
}

.fm-assessment-standard details,
.fm-quiz-review {
	border-top: 1px solid rgba(15, 32, 53, .14);
	padding-top: .85rem;
}

.fm-quiz-review summary,
.fm-assessment-standard summary {
	cursor: pointer;
	font-weight: 700;
}

.fm-quiz-review li {
	margin-top: .8rem;
	padding: .8rem 1rem;
	border-left: 4px solid #a33;
	background: rgba(163, 51, 51, .06);
}

.fm-quiz-review li.is-correct {
	border-left-color: #287a54;
	background: rgba(40, 122, 84, .07);
}

/* ---- Movements (home strip) --------------------------------------------- */

.fm-movements {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
@media (max-width: 940px) { .fm-movements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fm-movements { grid-template-columns: minmax(0, 1fr); } }

.fm-movement {
	border-radius: var(--fm-radius);
	padding: 26px 24px;
	color: #fff;
	min-height: 190px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 18px 36px -22px rgba(7, 28, 63, .8);
}

.fm-movement.fm-movement-1 { background: linear-gradient(150deg, #0d2f66, var(--fm-navy-dark)); }
.fm-movement.fm-movement-2 { background: linear-gradient(150deg, #1d63e0, #123f9b); }
.fm-movement.fm-movement-3 { background: linear-gradient(150deg, #2fa4e7, #1a7ec0); }
.fm-movement.fm-movement-4 { background: linear-gradient(150deg, #f2b81c, #d99f07); }
.fm-movement.fm-movement-4 .fm-movement-days, .fm-movement.fm-movement-4 .fm-movement-pillar { color: rgba(7, 28, 63, .75); }
.fm-movement.fm-movement-4 .fm-movement-name, .fm-movement.fm-movement-4 .fm-movement-text { color: var(--fm-navy-dark); }

.fm-movement-days {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .75);
}

.fm-movement-name { color: #fff; font-size: 23px; margin: 8px 0 2px; }

.fm-movement-pillar {
	font-size: 13.5px;
	font-weight: 700;
	color: rgba(255, 255, 255, .85);
}

.fm-movement-text { margin: 12px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .88); }

/* ---- Journey timeline (program page) ------------------------------------ */

.fm-journey { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }

.fm-journey-step {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 22px;
	position: relative;
	padding-bottom: 34px;
}

.fm-journey-step::before {
	content: "";
	position: absolute;
	left: 27px;
	top: 56px;
	bottom: 0;
	width: 2px;
	background: rgba(255, 255, 255, .18);
}
.fm-journey-step:last-child::before { display: none; }

.fm-journey-marker {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--fm-font-display);
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}
.fm-movement-1 .fm-journey-marker { background: linear-gradient(150deg, #1a4a99, #0d2f66); }
.fm-movement-2 .fm-journey-marker { background: linear-gradient(150deg, #3b7bf0, #1d63e0); }
.fm-movement-3 .fm-journey-marker { background: linear-gradient(150deg, #55b9f0, #2fa4e7); }
.fm-movement-4 .fm-journey-marker { background: linear-gradient(150deg, #f7ca4a, #f2b81c); color: var(--fm-navy-dark); }

.fm-journey-body { padding-top: 4px; }

.fm-journey-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 4px; }
.fm-journey-meta .fm-movement-pillar {
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(242, 184, 28, .16);
	color: var(--fm-gold);
	font-size: 12.5px;
}

.fm-journey .fm-movement-name { font-size: 26px; margin: 2px 0 4px; }

.fm-journey-outcome { color: var(--fm-gold); font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.fm-journey-text { color: rgba(255, 255, 255, .82); margin: 0; font-size: 15.5px; }

/* ---- Problem / promise -------------------------------------------------- */

.fm-problem-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
	margin-top: 10px;
}
@media (max-width: 760px) { .fm-problem-grid { grid-template-columns: minmax(0, 1fr); } }

.fm-problem-col {
	border-radius: var(--fm-radius);
	padding: 30px;
	border: 1px solid var(--fm-stroke);
	background: var(--fm-bg-soft);
}
.fm-problem-col h2 { font-size: 24px; }
.fm-problem-col p { color: var(--fm-muted); margin: 0; }

.fm-promise-col {
	background:
		radial-gradient(70% 70% at 90% 0%, rgba(242, 184, 28, .16), transparent 60%),
		linear-gradient(150deg, var(--fm-navy), var(--fm-navy-dark));
	border-color: transparent;
}
.fm-promise-col h2 { color: var(--fm-gold); }
.fm-promise-col p { color: rgba(255, 255, 255, .85); }

/* ---- Pricing ------------------------------------------------------------ */

.fm-pricing-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
	max-width: 900px;
	margin: 0 auto;
}

.fm-price-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--fm-stroke);
	border-radius: 20px;
	padding: 36px 32px;
	box-shadow: var(--fm-shadow);
	display: flex;
	flex-direction: column;
}

.fm-price-card-featured {
	border: 2px solid var(--fm-gold);
	box-shadow: 0 24px 48px -24px rgba(242, 184, 28, .55);
}

.fm-price-badge {
	position: absolute;
	top: -14px;
	left: 32px;
	padding: 5px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--fm-gold), var(--fm-gold-dark));
	color: var(--fm-navy-dark);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.fm-price-name { font-size: 24px; margin: 6px 0 6px; }
.fm-price-desc { color: var(--fm-muted); margin: 0 0 18px; font-size: 15.5px; }

.fm-price-amount {
	font-family: var(--fm-font-display);
	font-size: 52px;
	font-weight: 700;
	color: var(--fm-navy);
	line-height: 1;
	margin-bottom: 20px;
}
.fm-price-amount small { font-family: var(--fm-font-body); font-size: 14px; font-weight: 600; color: var(--fm-muted); }

.fm-price-features {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}
.fm-price-features li {
	position: relative;
	padding-left: 28px;
	font-size: 15px;
	color: var(--fm-ink);
}
.fm-price-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: rgba(242, 184, 28, .18);
	color: var(--fm-gold-dark);
	font-size: 12px;
	font-weight: 800;
	display: grid;
	place-items: center;
}

.fm-price-card-addon {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
	gap: 34px;
	align-items: center;
	padding: 28px 30px;
	background: linear-gradient(135deg, #fff 0%, var(--fm-bg) 100%);
	border-style: dashed;
	box-shadow: none;
}
.fm-price-addon-label {
	display: inline-flex;
	margin: 0 0 10px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(242, 184, 28, .16);
	color: var(--fm-navy);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.fm-price-card-addon .fm-price-name { margin-top: 0; }
.fm-price-addon-context {
	margin: 16px 0 0;
	padding-left: 14px;
	border-left: 3px solid var(--fm-gold);
	color: var(--fm-ink);
	font-size: 14px;
	line-height: 1.55;
}
.fm-price-addon-details { min-width: 0; }
.fm-price-card-addon .fm-price-amount { margin-bottom: 16px; font-size: 36px; }
.fm-price-card-addon .fm-price-features { margin-bottom: 18px; gap: 8px; }
.fm-price-card-addon .fm-btn { width: 100%; }

@media (max-width: 760px) {
	.fm-price-card-addon { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 24px; }
}

/* ---- Blueprint ---------------------------------------------------------- */

.fm-blueprint {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	border: 1px solid var(--fm-stroke);
	border-radius: 20px;
	padding: 36px;
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(242, 184, 28, .1), transparent 60%),
		#fff;
	box-shadow: var(--fm-shadow);
}
@media (max-width: 600px) { .fm-blueprint { grid-template-columns: minmax(0, 1fr); } }

.fm-blueprint-icon {
	width: 96px;
	height: 96px;
	display: grid;
	place-items: center;
	font-size: 44px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(29, 99, 224, .1), rgba(242, 184, 28, .18));
}
.fm-blueprint p { color: var(--fm-muted); margin: 0; }

/* ---- Empty state -------------------------------------------------------- */

.fm-empty-state {
	text-align: center;
	font-family: var(--fm-font-display);
	font-size: 24px;
	color: var(--fm-gold-dark);
	border: 2px dashed rgba(242, 184, 28, .5);
	border-radius: var(--fm-radius);
	padding: 44px 20px;
	margin: 0;
	background: rgba(242, 184, 28, .05);
}

/* ---- Quotes ------------------------------------------------------------- */

.fm-quote { margin: 0; display: flex; flex-direction: column; }
.fm-quote blockquote {
	margin: 0 0 18px;
	font-size: 16px;
	color: var(--fm-ink);
	font-style: italic;
	flex: 1 1 auto;
}
.fm-quote blockquote::before { content: "\201C"; color: var(--fm-gold); font-family: var(--fm-font-display); font-size: 34px; line-height: 0; vertical-align: -10px; margin-right: 4px; }
.fm-quote figcaption strong { display: block; color: var(--fm-navy); }
.fm-quote figcaption span { color: var(--fm-muted); font-size: 14px; }

/* ---- About preview / lead magnet ---------------------------------------- */

.fm-about-preview {
	display: grid;
	grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
	gap: 48px;
	align-items: center;
}
@media (max-width: 760px) {
	.fm-about-preview {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		text-align: center;
	}
	.fm-about-preview-media { display: flex; justify-content: center; }
	.fm-about-preview-copy > p { max-width: 620px; margin: 0 auto 22px; }
	.fm-about-preview-copy .fm-btn { width: fit-content; margin-inline: auto; }
}

.fm-about-portrait { border-color: rgba(11, 42, 91, .15); }
.fm-about-preview-copy > p { color: var(--fm-muted); margin: 0 0 22px; }

.fm-leadmagnet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	border-radius: 20px;
	border: 1px solid var(--fm-stroke);
	background:
		radial-gradient(50% 90% at 95% 10%, rgba(242, 184, 28, .14), transparent 60%),
		#fff;
	padding: 40px;
	box-shadow: var(--fm-shadow);
}
.fm-leadmagnet .fm-section-title { font-size: clamp(24px, 3vw, 32px); }
.fm-leadmagnet .fm-section-sub { margin: 0; }
@media (max-width: 600px) {
	.fm-leadmagnet {
		padding: 28px 24px;
		justify-content: center;
		text-align: center;
	}
	.fm-leadmagnet > div { width: 100%; }
	.fm-leadmagnet .fm-section-sub { margin-inline: auto; }
	.fm-leadmagnet .fm-btn {
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
		padding-inline: 16px;
		white-space: nowrap;
	}
}

/* ---- Books -------------------------------------------------------------- */

.fm-books-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}
@media (max-width: 940px) { .fm-books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
	.fm-books-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
	.fm-book { align-items: center; text-align: center; }
	.fm-book > .fm-book-cover { width: min(230px, 72vw); }
}

.fm-book { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }

.fm-book-cover {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 20px 34px -20px rgba(11, 42, 91, .55);
	transition: transform .18s ease;
}
.fm-book:hover .fm-book-cover { transform: translateY(-4px); }

.fm-book-cover-placeholder {
	display: grid;
	place-items: center;
	padding: 22px;
	text-align: center;
	background:
		radial-gradient(80% 50% at 80% 0%, rgba(242, 184, 28, .25), transparent 60%),
		linear-gradient(155deg, #123a7a, var(--fm-navy-dark));
}
.fm-book-cover-placeholder span {
	font-family: var(--fm-font-display);
	font-size: 19px;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
}

.fm-book-title { font-family: var(--fm-font-display); font-weight: 600; font-size: 17px; color: var(--fm-navy); }
.fm-book-order { font-size: 13.5px; font-weight: 700; color: var(--fm-blue); }

.fm-books-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .fm-books-detail-grid { grid-template-columns: minmax(0, 1fr); } }

.fm-book-detail { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 480px) { .fm-book-detail { grid-template-columns: minmax(0, 1fr); } }
.fm-book-detail .fm-book-cover-placeholder span { font-size: 13px; }
.fm-book-detail-body h3 { margin-top: 0; }
.fm-book-detail-body p { margin-bottom: 18px; }

/* ---- Programs page ------------------------------------------------------ */

.fm-programs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .fm-programs-grid { grid-template-columns: minmax(0, 1fr); } }

.fm-program-card .fm-program-tagline {
	color: var(--fm-blue);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: -2px 0 10px;
}
.fm-program-card p { margin-bottom: 18px; }
.fm-program-card .fm-btn { margin-top: auto; }

.fm-programs-note {
	margin: 34px auto 0;
	max-width: 640px;
	text-align: center;
	color: var(--fm-muted);
	font-size: 15px;
	border-top: 1px solid var(--fm-stroke);
	padding-top: 24px;
}

/* ---- FAQ ---------------------------------------------------------------- */

.fm-faq-list { display: flex; flex-direction: column; gap: 12px; }

.fm-faq {
	border: 1px solid var(--fm-stroke);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--fm-shadow);
	overflow: hidden;
}

.fm-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 48px 18px 22px;
	font-weight: 700;
	color: var(--fm-navy);
	position: relative;
	font-size: 16px;
}
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: var(--fm-gold-dark);
	font-weight: 400;
}
.fm-faq[open] summary::after { content: "−"; }
.fm-faq[open] summary { border-bottom: 1px solid var(--fm-stroke); }

.fm-faq-body { padding: 16px 22px 20px; color: var(--fm-muted); font-size: 15.5px; }
.fm-faq-body p { margin: 0 0 10px; }
.fm-faq-body p:last-child { margin-bottom: 0; }

/* ---- Final CTA band ----------------------------------------------------- */

.fm-final-cta {
	text-align: center;
	color: #fff;
	background:
		radial-gradient(60% 90% at 50% 0%, rgba(47, 164, 231, .2), transparent 60%),
		linear-gradient(160deg, var(--fm-navy) 0%, var(--fm-navy-dark) 100%);
}
.fm-final-cta .fm-section-title { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.fm-final-cta .fm-section-sub { color: rgba(255, 255, 255, .8); margin-left: auto; margin-right: auto; }

/* ---- Forms & notices ---------------------------------------------------- */

.fm-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
	gap: 40px;
	align-items: start;
}
@media (max-width: 860px) { .fm-contact-grid { grid-template-columns: minmax(0, 1fr); } }

.fm-contact-hero { padding: 0; }
.fm-contact-hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
	gap: 34px;
	align-items: stretch;
	min-height: 322px;
}
.fm-contact-hero-copy {
	position: relative;
	z-index: 2;
	align-self: center;
	padding: 58px 0 54px;
}
.fm-contact-hero-visual {
	position: relative;
	min-height: 322px;
	overflow: hidden;
}
.fm-contact-hero-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, var(--fm-navy-dark) 0%, transparent 24%);
	pointer-events: none;
}
.fm-contact-hero-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

@media (max-width: 760px) {
	.fm-contact-hero-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
	.fm-contact-hero-copy {
		padding: 36px 0 26px;
		text-align: center;
	}
	.fm-contact-hero-copy .fm-hero-sub { margin-inline: auto; }
	.fm-contact-hero-visual {
		min-height: 210px;
		margin-inline: -22px;
	}
	.fm-contact-hero-visual::before {
		background: linear-gradient(180deg, var(--fm-navy-dark) 0%, transparent 32%);
	}
	.fm-contact-hero-visual img { object-position: 70% center; }
}

.fm-contact-aside { display: flex; flex-direction: column; gap: 18px; }
.fm-contact-form-title { margin-bottom: 22px; font-size: clamp(24px, 3.4vw, 32px); }
.fm-enrollment-intent {
	display: grid;
	gap: 4px;
	margin: -4px 0 22px;
	border-left: 4px solid var(--fm-gold);
	background: rgba(242, 184, 28, .1);
	color: var(--fm-ink);
}
.fm-enrollment-intent strong { color: var(--fm-navy); }

.fm-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fm-contact-list li { display: flex; gap: 8px; align-items: baseline; font-size: 15px; }
.fm-contact-list a { text-decoration: none; font-weight: 600; }

.fm-contact-social { margin-top: 14px; }

.fm-form { display: flex; flex-direction: column; gap: 18px; }
.fm-form-row { display: flex; flex-direction: column; gap: 7px; }
.fm-form-row label { font-weight: 700; font-size: 14.5px; color: var(--fm-navy); }

.fm-form input[type="text"],
.fm-form input[type="email"],
.fm-form input[type="password"],
.fm-form select,
.fm-form textarea {
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	padding: 12px 14px;
	font-family: var(--fm-font-body);
	font-size: 15.5px;
	background: #fff;
	color: var(--fm-ink);
}
.fm-form textarea { min-height: 150px; resize: vertical; }
.fm-form input:focus, .fm-form select:focus, .fm-form textarea:focus {
	border-color: var(--fm-blue);
	box-shadow: 0 0 0 3px rgba(29, 99, 224, .14);
}

.fm-form-honeypot { position: absolute !important; left: -9999px !important; }

.fm-notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.fm-notice-success { background: #e8f7ee; color: #14683a; border: 1px solid #b7e4c7; }
.fm-notice-error { background: #fdecec; color: #9c1f1f; border: 1px solid #f5c2c2; }

/* ---- Join (free tier) ---------------------------------------------------- */

.fm-join-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
	gap: 48px;
	align-items: start;
}
@media (max-width: 860px) { .fm-join-grid { grid-template-columns: minmax(0, 1fr); } }

.fm-join-items { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.fm-join-item { display: flex; gap: 16px; align-items: flex-start; }
.fm-join-item .fm-card-icon { flex: none; margin: 0; }
.fm-join-item h3 { margin: 0 0 4px; font-size: 19px; }
.fm-join-item p { margin: 0; color: var(--fm-muted); }

.fm-join-form-card { position: sticky; top: 96px; }
.fm-join-note { margin: 14px 0 0; font-size: 13.5px; color: var(--fm-muted); }
.fm-join-signin { margin: 8px 0 0; font-size: 14.5px; }
.fm-join-signin a { font-weight: 700; }

.fm-password-field { position: relative; display: block; }
.fm-password-field input { width: 100%; padding-right: 52px !important; }
.fm-password-toggle {
	position: absolute;
	top: 50%;
	right: 5px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--fm-muted);
	cursor: pointer;
}
.fm-password-toggle:hover { background: rgba(29, 99, 224, .07); color: var(--fm-blue); }
.fm-password-toggle:focus-visible { outline: 3px solid var(--fm-gold); outline-offset: 1px; }
.fm-password-toggle::after {
	content: "";
	position: absolute;
	display: none;
	width: 22px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transform: rotate(-45deg);
}
.fm-password-toggle.is-visible::after { display: block; }

/* ---- Member portal ------------------------------------------------------- */

.fm-tier-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .25);
}
.fm-tier-chip.fm-tier-sop { background: rgba(47, 164, 231, .25); border-color: rgba(47, 164, 231, .5); }
.fm-tier-chip.fm-tier-dts { background: rgba(242, 184, 28, .2); border-color: rgba(242, 184, 28, .55); color: var(--fm-gold); }

.fm-portal-body { padding-top: 48px; }
.fm-portal-app { padding-top: 40px; }
.fm-portal-app .fm-container { max-width: 1180px; }

/* App-style account shell (patterned after the Afritech Institute learner
   account): a sticky navy profile sidebar with tab navigation on the left,
   switchable panels on the right. Panels swap client-side; ?view= deep
   links keep every tab addressable without JavaScript. */
.fm-acct-shell {
	scroll-margin-top: 96px; /* keep the site header visible when a tab switch scrolls */
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 26px;
	margin-top: 10px;
	align-items: start;
}

.fm-acct-side {
	position: sticky;
	top: 24px;
	border-radius: var(--fm-radius);
	color: #fff;
	background:
		radial-gradient(60% 90% at 88% 0%, rgba(47, 164, 231, .22), transparent 65%),
		radial-gradient(50% 70% at 5% 100%, rgba(242, 184, 28, .14), transparent 60%),
		linear-gradient(160deg, var(--fm-navy) 0%, var(--fm-navy-dark) 100%);
	box-shadow: var(--fm-shadow);
	overflow: hidden;
}

.fm-acct-profile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 3px;
	padding: 34px 22px 26px;
}
.fm-acct-profile::after {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 0;
	height: 1px;
	background: rgba(255, 255, 255, .16);
}
.fm-acct-avatar {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, .35);
	margin-bottom: 10px;
}
.fm-acct-name {
	font-size: 16px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fm-acct-email {
	font-size: 12.5px;
	color: rgba(255, 255, 255, .72);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fm-acct-profile .fm-tier-chip { margin-top: 12px; }

.fm-acct-nav {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px;
}
.fm-acct-navlink {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 12px;
	color: rgba(255, 255, 255, .82);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .14s ease, color .14s ease;
}
.fm-acct-navlink:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.fm-acct-navlink.is-active {
	background: rgba(255, 255, 255, .16);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.fm-acct-navlink[aria-current="page"] { color: #fff; }
.fm-acct-navlink .fm-acct-ic { flex: none; opacity: .92; }
.fm-acct-navlink.is-logout { margin-top: 6px; color: rgba(255, 255, 255, .7); }
.fm-acct-navlink.is-logout:hover { background: rgba(220, 76, 76, .28); color: #fff; }

.fm-acct-content { min-width: 0; }
.fm-acct-panel { display: none; animation: fm-acct-fade .25s ease; }
.fm-acct-panel.is-active { display: grid; gap: 24px; align-content: start; }
@keyframes fm-acct-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.fm-acct-hero .fm-kicker { margin-bottom: 6px; }
.fm-acct-hero h1 { margin: 0; font-size: clamp(26px, 3vw, 32px); }
.fm-acct-hero-sub { margin: 8px 0 0; color: var(--fm-muted); }

.fm-acct-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.fm-acct-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 20px;
	background: var(--fm-bg);
	border: 1px solid var(--fm-stroke);
	border-radius: 14px;
	box-shadow: var(--fm-shadow);
}
.fm-acct-stat-num {
	align-self: flex-start;
	font-family: var(--fm-font-display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--fm-navy);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color .15s ease;
}
.fm-acct-stat-num:hover { border-color: var(--fm-gold); }
.fm-acct-stat > span {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fm-muted);
}

.fm-acct-grid2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	align-items: start;
}

/* Certificates panel rows */
.fm-acct-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; }
.fm-acct-cert {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	background: var(--fm-bg-soft);
}
.fm-acct-cert-ic { font-size: 24px; flex: none; }
.fm-acct-cert-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fm-acct-cert-text strong { font-size: 15.5px; }
.fm-acct-cert-text span { font-size: 13px; color: var(--fm-muted); }
.fm-acct-cert .fm-btn { flex: none; }

@media (max-width: 900px) {
	.fm-acct-shell { grid-template-columns: minmax(0, 1fr); }
	.fm-acct-side { position: static; }
	.fm-acct-profile {
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr) auto;
		grid-template-areas:
			"avatar name  chip"
			"avatar email chip";
		align-items: center;
		text-align: left;
		column-gap: 14px;
		padding: 20px 22px;
	}
	.fm-acct-avatar { grid-area: avatar; width: 56px; height: 56px; margin: 0; }
	.fm-acct-name { grid-area: name; align-self: end; }
	.fm-acct-email { grid-area: email; align-self: start; }
	.fm-acct-profile .fm-tier-chip { grid-area: chip; margin: 0; }
	.fm-acct-nav { flex-direction: row; flex-wrap: wrap; padding: 12px 16px; }
	.fm-acct-navlink { padding: 8px 12px; font-size: 13.5px; }
	.fm-acct-navlink.is-logout { margin: 0; }
	.fm-acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fm-portal-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fm-portal-card h3 { margin: 0; }
.fm-portal-card .fm-btn { margin-top: auto; }

/* A first-screen invitation to the member community. */
.fm-community-spotlight {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(24px, 3vw, 34px);
	border-radius: 18px;
	color: #fff;
	background:
		radial-gradient(70% 170% at 100% 0%, rgba(47, 164, 231, .34), transparent 62%),
		linear-gradient(145deg, var(--fm-navy) 0%, var(--fm-navy-dark) 100%);
	box-shadow: 0 18px 42px rgba(7, 41, 83, .18);
}
.fm-community-spotlight::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -38px;
	bottom: -78px;
	width: 210px;
	height: 210px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	box-shadow:
		0 0 0 28px rgba(255, 255, 255, .045),
		0 0 0 58px rgba(255, 255, 255, .025);
}
.fm-community-spotlight-copy {
	max-width: 720px;
}
.fm-community-spotlight .fm-kicker {
	margin: 0 0 8px;
	color: var(--fm-gold);
}
.fm-community-spotlight h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(22px, 2.7vw, 30px);
	line-height: 1.15;
}
.fm-community-spotlight-copy > p:last-child {
	max-width: 660px;
	margin: 0;
	color: rgba(255, 255, 255, .78);
	font-size: 15px;
	line-height: 1.65;
}
.fm-community-spotlight-action {
	position: relative;
	z-index: 1;
	flex: none;
	white-space: nowrap;
	box-shadow: 0 10px 26px rgba(242, 184, 28, .28);
}
.fm-community-spotlight-action span {
	margin-left: 4px;
	transition: transform .15s ease;
}
.fm-community-spotlight-action:hover span {
	transform: translateX(3px);
}

/* Member onboarding: a short, state-aware path into the platform. */
.fm-onboarding {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 28px;
	align-items: center;
	border-left: 4px solid var(--fm-gold);
}
.fm-onboarding-head h2 { margin: 0 0 6px; font-size: clamp(21px, 2.5vw, 26px); }
.fm-onboarding-head p { margin: 0; color: var(--fm-muted); font-size: 14.5px; }
.fm-onboarding-progress {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 78px;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--fm-bg-soft);
	color: var(--fm-navy);
	font-size: 13px;
	font-weight: 800;
}
.fm-onboarding-list {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fm-onboarding-step {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 13px 14px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	background: var(--fm-bg-soft);
	color: var(--fm-navy);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}
.fm-onboarding-step:hover { border-color: var(--fm-blue); color: var(--fm-blue); }
.fm-onboarding-step.is-complete { color: #14683a; background: #f0faf4; border-color: #b7e4c7; }
.fm-onboarding-mark {
	flex: none;
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--fm-stroke);
	font-size: 12px;
}
.fm-onboarding-step.is-complete .fm-onboarding-mark { color: #fff; background: #1c7a3f; border-color: #1c7a3f; }
@media (max-width: 720px) {
	.fm-community-spotlight {
		align-items: flex-start;
		flex-direction: column;
		gap: 20px;
	}
	.fm-community-spotlight-action {
		width: 100%;
		justify-content: center;
	}
	.fm-onboarding { grid-template-columns: minmax(0, 1fr); }
	.fm-onboarding-progress { justify-self: start; }
	.fm-onboarding-list { grid-template-columns: minmax(0, 1fr); }
}

/* Continue-learning spotlight: the one loud card on the page. */
.fm-portal-continue {
	display: flex;
	align-items: center;
	gap: 28px;
	border: 0;
	color: #fff;
	background:
		radial-gradient(60% 90% at 88% 0%, rgba(47, 164, 231, .22), transparent 65%),
		radial-gradient(50% 70% at 5% 100%, rgba(242, 184, 28, .14), transparent 60%),
		linear-gradient(160deg, var(--fm-navy) 0%, var(--fm-navy-dark) 100%);
}
.fm-portal-continue .fm-kicker { color: var(--fm-gold); margin-bottom: 10px; }
.fm-portal-continue h2 { color: #fff; margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 28px); }
.fm-portal-continue-info { flex: 1 1 auto; min-width: 0; }
.fm-portal-continue-course { margin: 0 0 16px; color: rgba(255, 255, 255, .88); font-weight: 700; font-size: 16px; }
.fm-portal-continue-next {
	display: block;
	margin-top: 3px;
	font-weight: 500;
	font-size: 14.5px;
	color: rgba(255, 255, 255, .65);
}
.fm-portal-continue-pct { margin: 9px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.fm-portal-continue-cta { flex: 0 0 auto; }
@media (max-width: 640px) {
	.fm-portal-continue { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Progress bars */
.fm-progressbar {
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	overflow: hidden;
}
.fm-progressbar > span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--fm-gold), var(--fm-gold-dark));
}
.fm-progressbar-sm { height: 6px; background: #e7edf6; }
.fm-progressbar-sm > span { background: linear-gradient(90deg, var(--fm-blue), var(--fm-sky)); }

.fm-portal-tier { margin: 0; font-weight: 800; color: var(--fm-navy); font-size: 17px; }
.fm-portal-meta { margin: 0; color: var(--fm-muted); font-size: 15px; }
.fm-portal-credit { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--fm-navy); }
.fm-portal-logout { margin: 6px 0 0; font-size: 14px; }

.fm-portal-count { margin: 0; color: var(--fm-muted); font-size: 15px; }
.fm-portal-count span {
	font-family: var(--fm-font-display);
	font-size: 34px;
	font-weight: 700;
	color: var(--fm-navy);
	margin-right: 6px;
	line-height: 1;
}

.fm-portal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 600; }

.fm-badge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-badge-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(242, 184, 28, .14);
	border: 1px solid rgba(217, 159, 7, .4);
	color: var(--fm-navy);
	font-weight: 700;
	font-size: 14px;
}

/* Intake (purpose profile) */

.fm-intake { margin-bottom: 6px; }
.fm-intake-sub {
	color: var(--fm-muted);
	margin: 0 0 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--fm-stroke);
}
.fm-intake-form { gap: 26px; }
.fm-intake-form fieldset { border: 0; margin: 0; padding: 0; }
.fm-intake-form legend,
.fm-intake-q > label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 15.5px;
	color: var(--fm-navy);
	padding: 0;
	margin-bottom: 12px;
}
.fm-intake-num {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--fm-gold);
	color: var(--fm-navy);
	font-size: 13.5px;
	font-weight: 800;
}
.fm-intake-form select {
	appearance: none;
	-webkit-appearance: none;
	max-width: 440px;
	padding-right: 44px;
	font-weight: 600;
	color: var(--fm-navy);
	cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230b2a5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.fm-intake-form select:invalid { color: var(--fm-muted); font-weight: 500; }
.fm-intake-form textarea { min-height: 120px; }
.fm-intake-form textarea::placeholder { color: #9aa7bd; }
.fm-intake-actions { display: flex; align-items: center; gap: 14px; }
.fm-intake-actions .fm-btn { min-width: 240px; }

.fm-choice-list { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-choice {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px;
	border: 1px solid var(--fm-stroke);
	border-radius: 999px;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	background: #fff;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.fm-choice:hover { border-color: var(--fm-blue); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11, 30, 58, .08); }
.fm-choice:has(input:checked) {
	border-color: var(--fm-blue);
	background: rgba(29, 99, 224, .07);
	color: var(--fm-blue);
	box-shadow: 0 0 0 1px var(--fm-blue) inset;
}
.fm-choice input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 19px;
	height: 19px;
	margin: 0;
	border: 2px solid #c6d0e0;
	background: #fff;
	transition: border-color .15s ease, background .15s ease, border-width .12s ease;
}
.fm-choice input[type="radio"] { border-radius: 50%; }
.fm-choice input[type="checkbox"] { border-radius: 6px; }
.fm-choice input[type="radio"]:checked { border-color: var(--fm-blue); border-width: 6px; }
.fm-choice input[type="checkbox"]:checked {
	border-color: var(--fm-blue);
	background: var(--fm-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6.2 4.8 9 10 3.4'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.fm-intake-answers { margin: 0 0 14px; }
.fm-intake-answers dt { font-weight: 700; font-size: 14px; color: var(--fm-navy); margin-top: 12px; }
.fm-intake-answers dt:first-child { margin-top: 0; }
.fm-intake-answers dd { margin: 2px 0 0; color: var(--fm-muted); }

/* Saved purpose profile (sidebar card) */

.fm-portal-profile .fm-intake-answers { margin: 0; }
.fm-portal-profile .fm-intake-answers dt { font-size: 13px; margin-top: 10px; }
.fm-portal-profile .fm-intake-answers dd { font-size: 14.5px; }
.fm-portal-profile .fm-intake-edit { font-size: 14px; }
.fm-intake-edit { font-weight: 700; }

/* Portal sign-in (signed out) */

.fm-portal-login {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
	gap: 48px;
	align-items: center;
	max-width: 880px;
	margin: 0 auto;
}
@media (max-width: 760px) { .fm-portal-login { grid-template-columns: minmax(0, 1fr); } }

.fm-portal-login-card form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.fm-portal-login-card form p { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.fm-portal-login-card form .login-remember { flex-direction: row; align-items: center; gap: 8px; font-size: 14.5px; }
.fm-portal-login-card label { font-weight: 700; font-size: 14.5px; color: var(--fm-navy); }
.fm-portal-login-card input[type="text"],
.fm-portal-login-card input[type="email"],
.fm-portal-login-card input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	padding: 12px 14px;
	font-family: var(--fm-font-body);
	font-size: 15.5px;
	background: #fff;
	color: var(--fm-ink);
}
.fm-portal-login-card input:focus {
	outline: none;
	border-color: var(--fm-blue);
	box-shadow: 0 0 0 3px rgba(29, 99, 224, .14);
}
.fm-portal-login-card #wp-submit {
	display: inline-flex;
	justify-content: center;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 13px 26px;
	font-family: var(--fm-font-body);
	font-weight: 800;
	font-size: 15.5px;
	background: var(--fm-gold);
	color: var(--fm-navy);
	transition: background .15s ease;
}
.fm-portal-login-card #wp-submit:hover { background: var(--fm-gold-dark); }
.fm-portal-lost { margin: 14px 0 0 !important; font-size: 14px; }

.fm-portal-join-aside p { font-size: 17px; color: var(--fm-muted); margin: 0 0 16px; }

/* Courses card: per-course links, progress bars + chips */

.fm-portal-course { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.fm-portal-course-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fm-portal-course a { color: var(--fm-navy); text-decoration: none; }
.fm-portal-course a:hover { color: var(--fm-blue); }
.fm-portal-course-pending { color: var(--fm-muted); }
.fm-portal-card .fm-portal-list { width: 100%; gap: 14px; }
.fm-course-pct {
	flex: none;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--fm-blue);
	background: rgba(29, 99, 224, .1);
	border-radius: 999px;
	padding: 2px 10px;
}
.fm-course-pct-done { color: #1c7a3f; background: rgba(28, 122, 63, .12); }

/* Recommended-for-you card */

.fm-recommend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.fm-recommend-item { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fm-recommend-item strong { color: var(--fm-navy); }
.fm-recommend-item span { color: var(--fm-muted); font-size: 14.5px; }
.fm-recommend-item .fm-btn { margin-top: 4px; padding: 9px 18px; font-size: 14px; }
.fm-recommend-item + .fm-recommend-item { border-top: 1px solid var(--fm-stroke); padding-top: 14px; }

/* Share-your-story (reviews) card */

.fm-review-details { width: 100%; }
.fm-review-details > summary {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	list-style: none;
	font-weight: 800;
	font-size: 15px;
	color: var(--fm-blue);
	user-select: none;
}
.fm-review-details > summary::-webkit-details-marker { display: none; }
.fm-review-details > summary::after { content: "▾"; font-size: 12px; transition: transform .15s ease; }
.fm-review-details[open] > summary::after { transform: rotate(180deg); }
.fm-review-details[open] > summary { margin-bottom: 16px; }

.fm-review-card form { width: 100%; }
.fm-review-card select,
.fm-review-card textarea {
	width: 100%;
	border: 1px solid var(--fm-stroke);
	border-radius: 10px;
	padding: 10px 12px;
	font-family: var(--fm-font-body);
	font-size: 15px;
}
.fm-review-card textarea { min-height: 110px; }

.fm-review-mine { width: 100%; }
.fm-review-mine li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.fm-review-status {
	flex: none;
	font-size: 12px;
	font-weight: 800;
	border-radius: 999px;
	padding: 2px 10px;
	color: var(--fm-muted);
	background: rgba(11, 42, 91, .07);
}
.fm-review-status-publish { color: #1c7a3f; background: rgba(28, 122, 63, .12); }

.fm-review-rating {
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.fm-review-rating legend {
	width: 100%;
	margin: 0 0 9px;
	padding: 0;
	color: var(--fm-navy);
	font-size: 14.5px;
	font-weight: 700;
}
.fm-stars-input {
	display: inline-flex;
	flex-direction: row-reverse;
	align-self: flex-start;
	gap: 3px;
	padding: 7px;
	border: 1px solid var(--fm-stroke);
	border-radius: 14px;
	background: var(--fm-soft);
}
.fm-stars-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}
.fm-stars-input label {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 9px;
	color: #b9c4d3;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	transition: color .14s ease, background-color .14s ease, transform .14s ease;
}
.fm-stars-input input:checked ~ label,
.fm-stars-input input:checked + label {
	color: var(--fm-gold);
}
.fm-stars-input:hover label {
	color: #b9c4d3;
	background: transparent;
}
.fm-stars-input label:hover,
.fm-stars-input label:hover ~ label {
	color: var(--fm-gold);
	background: rgba(242, 184, 28, .12);
}
.fm-stars-input label:hover {
	transform: translateY(-1px) scale(1.04);
}
.fm-stars-input input:focus-visible + label {
	outline: 2px solid var(--fm-blue);
	outline-offset: 1px;
}

.fm-review-stars { color: var(--fm-gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 8px; }

/* ---- Classroom ----------------------------------------------------------- */

.fm-classroom-back { margin: 14px 0 0; font-size: 14.5px; }
.fm-classroom-back a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.fm-classroom-back a:hover { color: var(--fm-gold); }

/* Course hero: make the title band an actionable learning dashboard. */
.fm-course-hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
	gap: clamp(28px, 5vw, 76px);
	align-items: center;
}
.fm-course-hero .fm-hero-title {
	max-width: 760px;
	margin-bottom: 14px;
	font-size: clamp(40px, 5vw, 72px);
	line-height: .98;
}
.fm-course-hero-intro {
	max-width: 640px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, .8);
	font-size: 17px;
	line-height: 1.65;
}
.fm-course-progress-card {
	padding: clamp(20px, 2.4vw, 30px);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 18px;
	background: rgba(255, 255, 255, .08);
	box-shadow: 0 16px 40px rgba(1, 18, 49, .18);
}
.fm-course-progress-label,
.fm-course-next-label {
	margin: 0;
	color: var(--fm-gold);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.fm-course-progress-summary { display: flex; align-items: baseline; gap: 11px; margin: 8px 0 12px; }
.fm-course-progress-summary strong { color: #fff; font-family: var(--fm-font-display); font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.fm-course-progress-summary span { color: rgba(255, 255, 255, .82); font-size: 14px; }
.fm-course-progress-card .fm-progress-hero { max-width: none; margin: 0; }
.fm-course-progress-card .fm-course-facts-hero { justify-content: flex-start; margin: 13px 0 22px; }
.fm-course-next-title { margin: 5px 0 14px; color: #fff; font-family: var(--fm-font-display); font-size: 21px; line-height: 1.22; }
.fm-course-continue { width: 100%; justify-content: center; }
.fm-course-complete-message { margin: 18px 0 0; color: #fff; font-weight: 700; }
.fm-course-progress-card .fm-course-engagement { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); }
.fm-course-progress-card .fm-course-milestone { font-size: 12px; }
.fm-course-hero-layout + .fm-classroom-back { display: none; }
@media (max-width: 800px) {
	.fm-course-hero-layout { grid-template-columns: 1fr; gap: 28px; }
	.fm-course-progress-card { max-width: 560px; }
}

.fm-progress {
	width: 100%;
	max-width: 420px;
	height: 8px;
	border-radius: 999px;
	background: rgba(11, 42, 91, .12);
	overflow: hidden;
}
.fm-progress span { display: block; height: 100%; border-radius: 999px; background: var(--fm-gold); }
.fm-progress-hero { margin: 14px auto 0; background: rgba(255, 255, 255, .2); }
.fm-classroom-progress-text { margin-top: 10px; font-size: 15px; }

.fm-classroom-body { padding-top: 48px; }

.fm-classroom-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
@media (max-width: 960px) { .fm-classroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fm-classroom-grid { grid-template-columns: minmax(0, 1fr); } }

.fm-classroom-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fm-classroom-card h3 { margin: 0; }
.fm-classroom-card .fm-btn { margin-top: auto; }
.fm-classroom-locked { opacity: .92; }
.fm-classroom-included { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--fm-blue); }

.fm-classroom-lock-card { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

.fm-classroom-done { margin-bottom: 26px; }
.fm-classroom-done a { font-weight: 700; }

.fm-classroom-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
}
@media (max-width: 860px) { .fm-classroom-layout { grid-template-columns: minmax(0, 1fr); } }

.fm-classroom-intro { color: var(--fm-muted); font-size: 15px; margin: 0 0 18px; }
.fm-classroom-aside-title {
	font-family: var(--fm-font-body);
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fm-navy);
	margin: 0 0 12px;
}

.fm-lesson-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: none; }
.fm-lesson-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	border: 1px solid transparent;
	color: var(--fm-ink);
	text-decoration: none;
	font-size: 14.5px;
	transition: background .12s ease, border-color .12s ease;
}
.fm-lesson-item a:hover { background: rgba(29, 99, 224, .06); }
.fm-lesson-current a { background: #fff; border-color: var(--fm-blue); font-weight: 700; color: var(--fm-navy); }
.fm-lesson-done a { color: var(--fm-muted); }

.fm-lesson-mark {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--fm-stroke);
	background: #fff;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--fm-navy);
}
.fm-lesson-done .fm-lesson-mark { background: #1c7a3f; border-color: #1c7a3f; color: #fff; }
.fm-lesson-current .fm-lesson-mark { border-color: var(--fm-blue); color: var(--fm-blue); }

.fm-lesson-pane { display: flex; flex-direction: column; align-items: stretch; gap: 14px; scroll-margin-top: 96px; }
.fm-quiz,
.fm-assignment { scroll-margin-top: 96px; }
.fm-lesson-title { margin: 0; font-size: clamp(22px, 3vw, 30px); }

.fm-lesson-video { width: 100%; border-radius: 12px; background: #000; }
.fm-lesson-embed { width: 100%; }
.fm-lesson-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }

.fm-lesson-body { font-size: 16.5px; color: var(--fm-ink); }
.fm-lesson-body p { margin: 0 0 1em; }

.fm-lesson-actions {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-top: 1px solid var(--fm-stroke);
	padding-top: 18px;
	margin-top: 6px;
}
.fm-lesson-actions form { margin: 0; }

.fm-lesson-completed-chip {
	display: inline-block;
	font-weight: 800;
	font-size: 14.5px;
	color: #1c7a3f;
	background: rgba(28, 122, 63, .12);
	border-radius: 999px;
	padding: 8px 18px;
}

.fm-lesson-nav { display: flex; gap: 18px; font-size: 14.5px; }
.fm-lesson-nav a { font-weight: 700; text-decoration: none; }

/* ---- Calendar ------------------------------------------------------------ */

.fm-calendar-body { padding-top: 48px; }
.fm-calendar-block + .fm-calendar-block { margin-top: 56px; }
.fm-calendar-block .fm-section-title { font-size: clamp(24px, 3.4vw, 32px); }
.fm-calendar-block .fm-section-sub { margin-bottom: 22px; }
.fm-calendar-timezone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	color: rgba(255, 255, 255, .86);
	font-size: 13.5px;
	font-weight: 700;
}
.fm-calendar-timezone::before { content: "\25F7"; color: var(--fm-gold); }

.fm-calendar-empty { max-width: 560px; }

.fm-event-list { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }

.fm-event-card { display: flex; gap: 20px; align-items: flex-start; }

.fm-event-date {
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	padding: 10px 0 12px;
	border-radius: 14px;
	background: var(--fm-navy);
	color: #fff;
	line-height: 1.1;
}
.fm-event-day { font-family: var(--fm-font-display); font-size: 26px; font-weight: 700; }
.fm-event-month { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-gold); }

.fm-event-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.fm-event-main h3 { margin: 0; }
.fm-event-when { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--fm-navy); }

.fm-event-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-event-chip {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 3px 11px;
	color: var(--fm-muted);
	background: rgba(11, 42, 91, .07);
}
.fm-event-chip-open { color: #1c7a3f; background: rgba(28, 122, 63, .12); }
.fm-event-chip-members { color: var(--fm-blue); background: rgba(29, 99, 224, .1); }
.fm-event-chip-dts { color: var(--fm-gold-dark); background: rgba(242, 184, 28, .16); }

.fm-event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fm-event-actions form { margin: 0; }
.fm-calendar-download { white-space: nowrap; }

.fm-event-leave {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--fm-font-body);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--fm-muted);
	text-decoration: underline;
}
.fm-event-leave:hover { color: var(--fm-navy); }

@media (max-width: 560px) {
	.fm-event-card { flex-direction: column; }
}

/* 1:1 booking */

.fm-booking-upcoming { max-width: 760px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.fm-booking-upcoming h3 { margin: 0; }
.fm-booking-session { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fm-booking-session-actions { display: inline-flex; align-items: center; gap: 14px; }
.fm-booking-session-actions form { margin: 0; }
.fm-booking-session-actions .fm-btn { padding: 8px 16px; font-size: 13.5px; }

.fm-booking-card { max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fm-booking-card h3 { margin: 0; }
.fm-booking-card form { width: 100%; }
.fm-booking-card fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.fm-booking-card legend { font-weight: 700; font-size: 14.5px; color: var(--fm-navy); padding: 0; margin-bottom: 10px; }

.fm-slot-day { margin: 14px 0 8px; font-size: 13.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-muted); }
.fm-slot-day:first-of-type { margin-top: 0; }

/* Portal "Coming up" card */

.fm-portal-event { display: flex; flex-direction: column; gap: 2px; }
.fm-portal-event-when { font-size: 13.5px; font-weight: 600; color: var(--fm-muted); }

/* ---- WooCommerce / enrolment journey ----------------------------------- */

.fm-commerce-page .fm-main {
	min-height: 62vh;
	padding: 58px 0 84px;
	background:
		linear-gradient(180deg, rgba(244, 247, 252, .78), #fff 320px);
}
.fm-commerce-page .fm-main > .woocommerce,
.fm-commerce-page .fm-main > .fm-commerce-page-intro,
.fm-commerce-page .fm-main > .fm-prose-page,
.fm-commerce-page .fm-main > article {
	width: min(1120px, calc(100% - 44px));
	margin-inline: auto;
}
.fm-commerce-page .fm-prose-page { padding: 0; }
.fm-commerce-page .fm-prose-page .fm-container-narrow { max-width: none; padding: 0; }
.fm-commerce-page .fm-page-header { margin-bottom: 28px; }
.fm-commerce-page .fm-page-header h1 { font-size: clamp(32px, 5vw, 48px); }

.fm-commerce-page .woocommerce {
	color: var(--fm-ink);
	font-family: var(--fm-font-body);
}
.fm-commerce-page .woocommerce a { font-weight: 700; }
.fm-commerce-page .woocommerce-message,
.fm-commerce-page .woocommerce-info,
.fm-commerce-page .woocommerce-error {
	margin: 0 0 24px;
	padding: 15px 18px 15px 52px;
	border: 1px solid var(--fm-stroke);
	border-top: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--fm-shadow);
}
.fm-commerce-page .woocommerce-message { border-left: 4px solid #1c7a3f; }
.fm-commerce-page .woocommerce-info { border-left: 4px solid var(--fm-blue); }
.fm-commerce-page .woocommerce-error { border-left: 4px solid #b3261e; }

.fm-commerce-page .woocommerce button.button,
.fm-commerce-page .woocommerce a.button,
.fm-commerce-page .woocommerce input.button,
.fm-commerce-page .woocommerce #respond input#submit {
	min-height: 44px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--fm-navy);
	color: #fff;
	font-family: var(--fm-font-body);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.fm-commerce-page .woocommerce button.button:hover,
.fm-commerce-page .woocommerce a.button:hover,
.fm-commerce-page .woocommerce input.button:hover,
.fm-commerce-page .woocommerce #respond input#submit:hover {
	background: var(--fm-blue);
	color: #fff;
	transform: translateY(-1px);
}
.fm-commerce-page .woocommerce button.button.alt,
.fm-commerce-page .woocommerce a.button.alt,
.fm-commerce-page .woocommerce input.button.alt,
.fm-commerce-page .woocommerce #respond input#submit.alt {
	background: linear-gradient(135deg, var(--fm-gold), var(--fm-gold-dark));
	color: var(--fm-navy-dark);
	box-shadow: 0 10px 26px -14px rgba(242, 184, 28, .8);
}

/* WooCommerce Cart and Checkout blocks. */
.fm-commerce-page :where(.wc-block-cart, .wc-block-checkout) {
	width: min(1120px, calc(100% - 44px));
	margin-inline: auto;
	color: var(--fm-ink);
	font-family: var(--fm-font-body);
}
.fm-commerce-page :where(.wc-block-components-main, .wc-block-components-sidebar) {
	min-width: 0;
}
.fm-commerce-page :where(.wc-block-components-sidebar, .wc-block-cart-items, .wc-block-checkout__form) {
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	background: #fff;
	box-shadow: var(--fm-shadow);
}
.fm-commerce-page .wc-block-components-sidebar { padding: clamp(18px, 2.5vw, 28px); }
.fm-commerce-page .wc-block-cart-items { overflow: hidden; }
.fm-commerce-page .wc-block-cart-items th,
.fm-commerce-page .wc-block-cart-items td { padding: 18px; border-color: var(--fm-stroke); }
.fm-commerce-page .wc-block-checkout__form { padding: clamp(20px, 3vw, 32px); }
.fm-commerce-page .wc-block-components-title,
.fm-commerce-page .wc-block-components-checkout-step__title { color: var(--fm-navy); font-family: var(--fm-font-display); }
.fm-commerce-page .wc-block-components-product-name { color: var(--fm-navy); font-weight: 800; }
.fm-commerce-page .wc-block-components-totals-item__label,
.fm-commerce-page .wc-block-components-totals-item__value { font-weight: 800; }
.fm-commerce-page .wc-block-components-text-input input,
.fm-commerce-page .wc-block-components-combobox .components-combobox-control__input,
.fm-commerce-page .wc-block-components-address-form__select {
	border: 1px solid var(--fm-stroke);
	border-radius: 11px;
	font-family: var(--fm-font-body);
}
.fm-commerce-page .wc-block-components-text-input input:focus,
.fm-commerce-page .wc-block-components-combobox .components-combobox-control__input:focus,
.fm-commerce-page .wc-block-components-address-form__select:focus {
	border-color: var(--fm-blue);
	box-shadow: 0 0 0 3px rgba(29, 99, 224, .14);
}
.fm-commerce-page .wc-block-components-button:not(.is-link) {
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--fm-gold), var(--fm-gold-dark));
	color: var(--fm-navy-dark);
	font-family: var(--fm-font-body);
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 10px 26px -14px rgba(242, 184, 28, .8);
}
.fm-commerce-page .wc-block-components-button:not(.is-link):hover {
	filter: brightness(1.03);
	transform: translateY(-1px);
}
.fm-commerce-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before { color: var(--fm-gold-dark); }
.fm-commerce-page .wc-block-components-notice-banner {
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--fm-shadow);
}

.fm-commerce-page .woocommerce table.shop_table {
	overflow: hidden;
	border: 1px solid var(--fm-stroke);
	border-collapse: separate;
	border-radius: var(--fm-radius);
	background: #fff;
	box-shadow: var(--fm-shadow);
}
.fm-commerce-page .woocommerce table.shop_table th,
.fm-commerce-page .woocommerce table.shop_table td { padding: 16px; border-color: var(--fm-stroke); }
.fm-commerce-page .woocommerce table.shop_table th { color: var(--fm-navy); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.fm-commerce-page .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}
.fm-commerce-page .woocommerce ul.products::before,
.fm-commerce-page .woocommerce ul.products::after { display: none; }
.fm-commerce-page .woocommerce ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	background: #fff;
	box-shadow: var(--fm-shadow);
}
.fm-commerce-page .woocommerce ul.products li.product a img { border-radius: 12px; }
.fm-commerce-page .woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--fm-navy); font-family: var(--fm-font-display); font-size: 20px; }
.fm-commerce-page .woocommerce ul.products li.product .price,
.fm-commerce-page .woocommerce div.product p.price,
.fm-commerce-page .woocommerce div.product span.price { color: var(--fm-blue); font-size: 19px; font-weight: 800; }
.fm-commerce-page .woocommerce div.product .woocommerce-product-gallery {
	overflow: hidden;
	border-radius: var(--fm-radius);
	background: #fff;
	box-shadow: var(--fm-shadow);
}
.fm-commerce-page .woocommerce div.product .summary {
	padding: clamp(22px, 3.5vw, 38px);
	border: 1px solid var(--fm-stroke);
	border-top: 4px solid var(--fm-gold);
	border-radius: var(--fm-radius);
	background: #fff;
	box-shadow: var(--fm-shadow);
}
.fm-commerce-page .woocommerce div.product .product_title { font-size: clamp(32px, 4.6vw, 48px); }
.fm-commerce-page .woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fm-commerce-page .woocommerce div.product .woocommerce-tabs {
	clear: both;
	padding-top: 34px;
}
.fm-commerce-page .woocommerce div.product .woocommerce-tabs ul.tabs { margin: 0; padding: 0; }
.fm-commerce-page .woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--fm-stroke); }
.fm-commerce-page .woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 6px 0 0;
	border-color: var(--fm-stroke);
	background: var(--fm-bg-soft);
}
.fm-commerce-page .woocommerce div.product .woocommerce-tabs .panel,
.fm-commerce-page .woocommerce .related.products {
	padding: 26px;
	border: 1px solid var(--fm-stroke);
	border-radius: 0 var(--fm-radius) var(--fm-radius);
	background: #fff;
}
.fm-commerce-page .woocommerce-cart-form,
.fm-commerce-page .cart-collaterals .cart_totals,
.fm-commerce-page .woocommerce-checkout-review-order,
.fm-commerce-page .woocommerce-billing-fields,
.fm-commerce-page .woocommerce-additional-fields,
.fm-commerce-page .woocommerce-MyAccount-content,
.fm-commerce-page .woocommerce-MyAccount-navigation {
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	background: #fff;
	box-shadow: var(--fm-shadow);
}
.fm-commerce-page .cart-collaterals .cart_totals { width: min(100%, 440px); }
.fm-commerce-page .woocommerce .quantity .qty { min-height: 42px; border: 1px solid var(--fm-stroke); border-radius: 10px; }

.fm-commerce-page .woocommerce form .form-row label { color: var(--fm-navy); font-size: 13.5px; font-weight: 800; }
.fm-commerce-page .woocommerce form .form-row input.input-text,
.fm-commerce-page .woocommerce form .form-row textarea,
.fm-commerce-page .woocommerce form .form-row select,
.fm-commerce-page .woocommerce .select2-container .select2-selection--single {
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid var(--fm-stroke);
	border-radius: 11px;
	background: #fff;
	color: var(--fm-ink);
	font-family: var(--fm-font-body);
}
.fm-commerce-page .woocommerce form .form-row textarea { min-height: 120px; }
.fm-commerce-page .woocommerce form .form-row input.input-text:focus,
.fm-commerce-page .woocommerce form .form-row textarea:focus,
.fm-commerce-page .woocommerce form .form-row select:focus {
	border-color: var(--fm-blue);
	box-shadow: 0 0 0 3px rgba(29, 99, 224, .14);
}
.fm-commerce-page .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 25px; padding-left: 0; }
.fm-commerce-page .select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px; right: 7px; }

.fm-commerce-journey { margin: 0 0 30px; }
.fm-commerce-journey ol {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fm-commerce-journey li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	background: rgba(255, 255, 255, .76);
	color: var(--fm-muted);
	font-size: 13.5px;
	font-weight: 800;
}
.fm-commerce-journey li span {
	display: grid;
	place-items: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--fm-bg-soft);
	color: var(--fm-muted);
	font-size: 12px;
}
.fm-commerce-journey li.is-current { color: var(--fm-navy); border-color: rgba(29, 99, 224, .45); background: rgba(29, 99, 224, .06); }
.fm-commerce-journey li.is-current span { background: var(--fm-blue); color: #fff; }
.fm-commerce-journey li.is-complete { color: #14683a; }
.fm-commerce-journey li.is-complete span { background: #1c7a3f; color: #fff; }

.fm-checkout-intro { max-width: 720px; margin: 0 0 30px; }
.fm-checkout-intro .fm-kicker { margin-bottom: 8px; }
.fm-checkout-intro h1 { margin-bottom: 10px; font-size: clamp(30px, 4.5vw, 44px); }
.fm-checkout-intro > p:last-child { margin: 0; color: var(--fm-muted); }
.fm-commerce-page form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 28px; align-items: start; }
.fm-commerce-page form.checkout #customer_details { min-width: 0; }
.fm-commerce-page form.checkout .col2-set .col-1,
.fm-commerce-page form.checkout .col2-set .col-2 { float: none; width: 100%; }
.fm-commerce-page form.checkout .col2-set .col-2 { margin-top: 24px; }
.fm-commerce-page form.checkout #order_review_heading,
.fm-commerce-page form.checkout #order_review { grid-column: 2; }
.fm-commerce-page form.checkout #order_review_heading { margin: 0 0 -16px; }
.fm-commerce-page .woocommerce-checkout-review-order { position: sticky; top: 96px; }
.fm-commerce-page .woocommerce-MyAccount-navigation { width: 26%; }
.fm-commerce-page .woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.fm-commerce-page .woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--fm-navy); text-decoration: none; }
.fm-commerce-page .woocommerce-MyAccount-navigation .is-active a,
.fm-commerce-page .woocommerce-MyAccount-navigation a:hover { background: var(--fm-bg-soft); color: var(--fm-blue); }
.fm-commerce-page .woocommerce-MyAccount-content { width: calc(74% - 28px); }
.fm-order-next { margin-top: 28px; padding: 24px; border-left: 4px solid var(--fm-gold); border-radius: var(--fm-radius); background: #fff; box-shadow: var(--fm-shadow); }
.fm-order-next h2 { margin-bottom: 8px; }
.fm-order-next p { margin-top: 0; color: var(--fm-muted); }

@media (max-width: 820px) {
	.fm-commerce-page .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fm-commerce-page :where(.wc-block-cart, .wc-block-checkout) { width: min(100%, calc(100% - 32px)); }
	.fm-commerce-page form.checkout { grid-template-columns: minmax(0, 1fr); }
	.fm-commerce-page form.checkout #order_review_heading,
	.fm-commerce-page form.checkout #order_review { grid-column: auto; }
	.fm-commerce-page .woocommerce-checkout-review-order { position: static; }
	.fm-commerce-page .woocommerce-MyAccount-navigation,
	.fm-commerce-page .woocommerce-MyAccount-content { float: none; width: 100%; }
	.fm-commerce-page .woocommerce-MyAccount-navigation { margin-bottom: 20px; }
}
@media (max-width: 560px) {
	.fm-commerce-page .fm-main { padding: 38px 0 60px; }
	.fm-commerce-page .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); }
	.fm-commerce-journey ol { grid-template-columns: minmax(0, 1fr); }
	.fm-commerce-page .shop_table_responsive .product-thumbnail { display: none; }
}

/* ---- Footer ------------------------------------------------------------- */

.fm-footer {
	background: var(--fm-navy-dark);
	color: rgba(255, 255, 255, .78);
	padding: 64px 0 28px;
	font-size: 15px;
}

.fm-footer-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
	gap: 40px;
	margin-bottom: 44px;
}
@media (max-width: 940px) { .fm-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fm-footer-grid { grid-template-columns: minmax(0, 1fr); } }

.fm-footer .fm-brand { margin: 0 0 14px; }
.fm-footer-tagline { margin: 0 0 18px; max-width: 300px; }

.fm-footer-social { display: flex; gap: 10px; }
.fm-footer-social-link {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .2);
	color: rgba(255, 255, 255, .8);
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.fm-footer-social-link:hover { border-color: var(--fm-gold); color: var(--fm-gold); }

.fm-footer-contact { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fm-footer-contact a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.fm-footer-contact a:hover { color: var(--fm-gold); }

.fm-footer-col h3 {
	color: #fff;
	font-family: var(--fm-font-body);
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0 0 16px;
}
.fm-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fm-footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.fm-footer-col a:hover { color: var(--fm-gold); }

.fm-footer-subscribe { margin-top: 26px; }
.fm-footer-subscribe p { margin: 0 0 12px; font-size: 14px; }
.fm-subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-subscribe-form input[type="email"] {
	flex: 1 1 170px;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	border-radius: 999px;
	padding: 10px 18px;
	font-family: var(--fm-font-body);
	font-size: 14.5px;
}
.fm-subscribe-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .5); }
.fm-subscribe-form .fm-btn { padding: 10px 20px; font-size: 14px; }
.fm-subscribe-done { color: var(--fm-gold); font-weight: 700; }

.fm-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-top: 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 26px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .55);
}
.fm-footer-bottom p { margin: 0; }
.fm-footer-note { font-family: var(--fm-font-display); font-style: italic; color: var(--fm-gold); }

/* Legal links: the bottom strip is where visitors look for these. */
.fm-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.fm-footer-legal a {
	color: rgba(255, 255, 255, .72);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.fm-footer-legal a:hover,
.fm-footer-legal a:focus-visible { color: #fff; border-bottom-color: var(--fm-gold); }
.fm-footer-legal span { color: rgba(255, 255, 255, .3); }

@media (max-width: 860px) {
	.fm-footer-bottom { justify-content: center; text-align: center; }
}

/* ---- Blog / prose ------------------------------------------------------- */

.fm-archive { padding: 64px 22px 84px; }
.fm-archive-header { margin-bottom: 40px; }
.fm-archive-header h1 { font-size: clamp(30px, 4.4vw, 44px); }
.fm-archive-sub { color: var(--fm-muted); font-size: 17px; }

.fm-post-list { display: flex; flex-direction: column; gap: 26px; }

.fm-post-card {
	display: grid;
	gap: 24px;
	background: #fff;
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	padding: 26px;
	box-shadow: var(--fm-shadow);
}
.fm-post-card--has-media { grid-template-columns: 240px minmax(0, 1fr); }
@media (max-width: 640px) { .fm-post-card--has-media { grid-template-columns: minmax(0, 1fr); } }

.fm-post-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	align-self: start;
	border-radius: 10px;
	background: var(--fm-pale);
}
.fm-post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fm-post-cats a { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.fm-post-card-title { font-size: 24px; margin: 6px 0 8px; }
.fm-post-card-title a { color: var(--fm-navy); text-decoration: none; }
.fm-post-card-title a:hover { color: var(--fm-blue); }

.fm-post-card-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--fm-muted); font-size: 14px; margin-bottom: 10px; }
.fm-post-card-excerpt { color: var(--fm-muted); margin: 0 0 14px; }
.fm-post-card-more { font-weight: 700; text-decoration: none; }

/* ---- Single post -------------------------------------------------------- */

.fm-read-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 1001;
	pointer-events: none;
}
.admin-bar .fm-read-progress { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .fm-read-progress { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .fm-read-progress { top: 0; }
}
.fm-read-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--fm-gold), var(--fm-gold-dark));
}

.fm-single { padding: 44px 0 40px; }

.fm-single-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 26px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: var(--fm-muted);
}
.fm-single-back:hover { color: var(--fm-blue); }

.fm-single-header { margin-bottom: 28px; }
.fm-single-title { font-size: clamp(30px, 4.6vw, 46px); }

.fm-single-meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.fm-single-avatar { border-radius: 50%; flex-shrink: 0; }
.fm-single-meta-text { display: grid; gap: 1px; }
.fm-single-author { font-weight: 700; color: var(--fm-navy); font-size: 15px; }
.fm-single-meta-sub { display: flex; flex-wrap: wrap; gap: 8px; color: var(--fm-muted); font-size: 14px; }

.fm-single-media { margin: 0 0 28px; }
.fm-single-media img { border-radius: var(--fm-radius); width: 100%; }
.fm-single-media figcaption {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--fm-muted);
	text-align: center;
}

.fm-prose-page { padding: 64px 0 84px; }
.fm-page-header h1 { font-size: clamp(30px, 4.4vw, 44px); }
.fm-legal-updated { color: var(--fm-muted); font-size: 14px; margin-top: -8px; }

.fm-prose { font-size: 17px; }
.fm-prose h2 { font-size: 26px; margin-top: 1.6em; }
.fm-prose h3 { font-size: 21px; margin-top: 1.4em; }
.fm-prose p, .fm-prose ul, .fm-prose ol { color: var(--fm-ink); }
.fm-prose img { border-radius: 12px; }
.fm-prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fm-prose li { margin-bottom: .35em; }
.fm-prose hr { border: 0; border-top: 1px solid var(--fm-stroke); margin: 2.2em 0; }

.fm-prose blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--fm-gold);
	font-family: var(--fm-font-display);
	font-size: 20px;
	font-style: italic;
	color: var(--fm-navy);
}
.fm-prose blockquote p { color: inherit; }
.fm-prose blockquote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--fm-font-body);
	font-size: 14px;
	font-style: normal;
	color: var(--fm-muted);
}

.fm-prose code {
	background: var(--fm-bg-soft);
	border: 1px solid var(--fm-stroke);
	border-radius: 6px;
	padding: 1px 6px;
	font-size: .88em;
}
.fm-prose pre {
	background: var(--fm-navy-dark);
	color: #e8eef8;
	border-radius: 12px;
	padding: 18px 20px;
	overflow-x: auto;
	font-size: 14.5px;
	line-height: 1.6;
}
.fm-prose pre code { background: none; border: 0; padding: 0; color: inherit; }

.fm-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; }
.fm-prose th, .fm-prose td { border: 1px solid var(--fm-stroke); padding: 10px 14px; text-align: left; }
.fm-prose th { background: var(--fm-bg-soft); color: var(--fm-navy); }

.fm-prose figure { margin: 1.8em 0; }
.fm-prose figcaption,
.fm-prose .wp-caption-text { font-size: 13.5px; color: var(--fm-muted); text-align: center; margin-top: 8px; }
.fm-prose .wp-caption { max-width: 100%; }
.fm-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.fm-prose .alignleft { float: left; margin: 4px 22px 12px 0; max-width: 46%; }
.fm-prose .alignright { float: right; margin: 4px 0 12px 22px; max-width: 46%; }
@media (max-width: 640px) {
	.fm-prose .alignleft, .fm-prose .alignright { float: none; margin: 1.4em 0; max-width: 100%; }
}

.fm-page-links { margin: 2em 0 0; font-weight: 700; }
.fm-page-links a { margin-left: 6px; }

/* Article footer: tags + share */

.fm-single-footer {
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--fm-stroke);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.fm-single-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-single-tags a {
	display: inline-block;
	padding: 5px 13px;
	border: 1px solid var(--fm-stroke);
	border-radius: 999px;
	background: var(--fm-bg-soft);
	color: var(--fm-navy);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.fm-single-tags a:hover { border-color: var(--fm-blue); color: var(--fm-blue); }

.fm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fm-share-label {
	font-size: 12.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fm-muted);
	margin-right: 2px;
}
.fm-share-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 1px solid var(--fm-stroke);
	border-radius: 999px;
	background: #fff;
	color: var(--fm-navy);
	font-family: var(--fm-font-body);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.fm-share-btn:hover { border-color: var(--fm-blue); color: var(--fm-blue); }
.fm-share-copy.is-copied { border-color: var(--fm-gold); background: #fdf9ee; color: var(--fm-gold-dark); }

/* Author box */

.fm-author-box {
	margin-top: 34px;
	display: flex;
	gap: 20px;
	padding: 24px 26px;
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	background: var(--fm-bg-soft);
}
.fm-author-box-avatar { border-radius: 50%; flex-shrink: 0; align-self: flex-start; }
.fm-author-box-kicker {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--fm-muted);
}
.fm-author-box-name { font-size: 20px; margin: 0 0 6px; }
.fm-author-box-bio { margin: 0 0 10px; color: var(--fm-muted); font-size: 15px; }
.fm-author-box-link { font-weight: 700; font-size: 14.5px; text-decoration: none; }
@media (max-width: 560px) {
	.fm-author-box { flex-direction: column; gap: 12px; }
}

/* Previous / next navigation */

.fm-post-nav {
	margin-top: 34px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.fm-post-nav-card {
	display: grid;
	gap: 4px;
	padding: 18px 20px;
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	text-decoration: none;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.fm-post-nav-card:hover { border-color: var(--fm-blue); box-shadow: var(--fm-shadow); }
.fm-post-nav-next { text-align: right; }
.fm-post-nav-label {
	font-size: 12.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fm-muted);
}
.fm-post-nav-title { font-weight: 700; color: var(--fm-navy); line-height: 1.35; }
.fm-post-nav-card:hover .fm-post-nav-title { color: var(--fm-blue); }
@media (max-width: 640px) {
	.fm-post-nav { grid-template-columns: 1fr; }
	.fm-post-nav-next { text-align: left; }
	.fm-post-nav-spacer { display: none; }
}

/* Related posts */

.fm-related { padding: 56px 0 64px; margin-top: 44px; }
.fm-related-title { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 26px; }
.fm-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
@media (max-width: 900px) { .fm-related-grid { grid-template-columns: 1fr; } }

.fm-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--fm-stroke);
	border-radius: var(--fm-radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--fm-shadow);
	transition: transform .15s ease, border-color .15s ease;
}
.fm-related-card:hover { transform: translateY(-3px); border-color: var(--fm-blue); }
.fm-related-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.fm-related-media img { width: 100%; height: 100%; object-fit: cover; }
.fm-related-body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.fm-related-cat {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fm-blue);
}
.fm-related-card-title {
	font-family: var(--fm-font-display);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--fm-navy);
}
.fm-related-card:hover .fm-related-card-title { color: var(--fm-blue); }
.fm-related-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--fm-muted); font-size: 13.5px; }

/* Comments */

.fm-comments { padding: 44px 0 84px; }
.fm-comments-title { font-size: 24px; margin-bottom: 22px; }

.fm-comment-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.fm-comment-list .children { list-style: none; margin: 14px 0 0; padding-left: 26px; display: grid; gap: 14px; }
@media (max-width: 640px) { .fm-comment-list .children { padding-left: 12px; } }

.fm-comment-list .comment-body {
	padding: 16px 18px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	background: #fff;
}
.fm-comment-list .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.fm-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fm-navy); }
.fm-comment-list .comment-author .avatar { border-radius: 50%; }
.fm-comment-list .comment-author .says { display: none; }
.fm-comment-list .comment-metadata { font-size: 13px; }
.fm-comment-list .comment-metadata a { color: var(--fm-muted); text-decoration: none; }
.fm-comment-list .comment-content p { margin: 0 0 .6em; }
.fm-comment-list .comment-content p:last-child { margin-bottom: 0; }
.fm-comment-list .reply { margin-top: 8px; font-size: 14px; font-weight: 700; }
.fm-comment-list .reply a { text-decoration: none; }
.fm-comment-list .comment-awaiting-moderation { color: var(--fm-muted); font-size: 13.5px; font-style: italic; }
.fm-comments-closed { color: var(--fm-muted); font-style: italic; }

.comment-respond .comment-reply-title { font-size: 22px; margin-bottom: 4px; }
.comment-respond .comment-notes,
.comment-respond .logged-in-as { color: var(--fm-muted); font-size: 14px; }
.comment-respond label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--fm-navy); }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	border: 1px solid var(--fm-stroke);
	border-radius: 10px;
	padding: 10px 14px;
	font-family: var(--fm-font-body);
	font-size: 15.5px;
	background: #fff;
	color: var(--fm-ink);
}
.comment-respond input:focus,
.comment-respond textarea:focus { outline: 2px solid var(--fm-blue); outline-offset: 1px; border-color: var(--fm-blue); }
.comment-respond .comment-form-comment,
.comment-respond .comment-form-author,
.comment-respond .comment-form-email,
.comment-respond .comment-form-url { margin: 0 0 14px; }
.comment-respond .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; }
.comment-respond .comment-form-cookies-consent label { display: inline; font-weight: 500; color: var(--fm-ink); }
.comment-respond .form-submit { margin: 0; }
.comment-respond .form-submit .submit {
	display: inline-flex;
	align-items: center;
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	background: var(--fm-navy);
	color: #fff;
	font-family: var(--fm-font-body);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.comment-respond .form-submit .submit:hover { background: var(--fm-blue); }

.fm-about-story h2 { font-size: clamp(24px, 3.4vw, 32px); }

/* Pagination */

.fm-archive .navigation.pagination { margin-top: 40px; }
.fm-archive .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-archive .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--fm-stroke);
	text-decoration: none;
	color: var(--fm-navy);
	font-weight: 700;
}
.fm-archive .page-numbers.current { background: var(--fm-navy); color: #fff; border-color: var(--fm-navy); }

/* ---- 404 ---------------------------------------------------------------- */

.fm-404 { padding: 110px 0; text-align: center; }
.fm-404-icon { font-size: 54px; margin-bottom: 16px; }
.fm-404 h1 { font-size: clamp(26px, 4vw, 38px); }
.fm-404 p { color: var(--fm-muted); }
.fm-site-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	max-width: 680px;
	margin: 28px auto;
}
.fm-site-search input {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid var(--fm-stroke);
	border-radius: 10px;
	background: #fff;
	color: var(--fm-ink);
	font: 600 15px var(--fm-font-body);
	box-shadow: 0 8px 24px rgba(11, 42, 91, .06);
}
.fm-site-search input:focus-visible {
	outline: 3px solid var(--fm-gold);
	outline-offset: 2px;
}
.fm-search-page h1 { margin-bottom: 8px; }
.fm-search-count { color: var(--fm-muted); margin: 0 0 20px; }
.fm-search-results { display: grid; gap: 16px; }
.fm-search-result {
	padding: 24px;
	border: 1px solid var(--fm-stroke);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(11, 42, 91, .06);
}
.fm-search-result h2 { margin: 3px 0 8px; font-size: clamp(20px, 3vw, 26px); }
.fm-search-result h2 a { color: var(--fm-navy); text-decoration: none; }
.fm-search-result h2 a:hover { color: var(--fm-blue); }
.fm-search-result > p:not(.fm-search-type) { color: var(--fm-muted); }
.fm-search-type {
	margin: 0;
	color: var(--fm-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.fm-search-empty { padding: 34px; text-align: center; border-radius: 16px; background: var(--fm-soft); }
.fm-search-empty p { color: var(--fm-muted); }
@media (max-width: 560px) {
	.fm-site-search { grid-template-columns: minmax(0, 1fr); }
	.fm-site-search .fm-btn { width: 100%; }
}

/* ---- Learning v2: sections, locks, quiz, notes, Q&A, progress card ------ */

/* Lesson list: section headings + locked lessons */

.fm-lesson-section {
	list-style: none;
	margin: 14px 0 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fm-muted);
}
.fm-lesson-list .fm-lesson-section:first-child { margin-top: 0; }
.fm-lesson-locked a { opacity: 0.55; }
.fm-lesson-locked .fm-lesson-mark { font-size: 12px; }
.fm-lesson-lock { margin-bottom: 6px; }

/* Quiz */

.fm-quiz {
	margin-top: 22px;
	padding: 18px 18px 8px;
	border: 1px solid var(--fm-stroke);
	border-radius: 14px;
	background: var(--fm-soft, #f8f7f4);
}
.fm-quiz-title { margin: 0 0 10px; font-size: 19px; }
.fm-quiz-meta { color: var(--fm-muted); font-size: 14px; }
.fm-quiz-question { border: 0; padding: 0; margin: 0 0 16px; }
.fm-quiz-question legend { font-weight: 700; margin-bottom: 8px; }
.fm-quiz-question-type { margin: -2px 0 9px; color: var(--fm-muted); font-size: 13px; font-weight: 650; }
.fm-choice-letter {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: rgba(29, 99, 224, .09);
	color: var(--fm-blue);
	font-size: 12px;
	font-weight: 800;
}
.fm-choice:has(input:checked) .fm-choice-letter { background: var(--fm-blue); color: #fff; }
.fm-quiz-question.has-error { padding: 10px; border: 1px solid #b32d2e; border-radius: 10px; }
.fm-quiz-answer-error { margin: 8px 0 0; color: #b32d2e; font-size: 13px; font-weight: 700; }
.fm-quiz-form .fm-btn { margin: 6px 0 12px; }

/* Instructor-reviewed assignment */
.fm-assignment { margin-top: 22px; padding: 18px; border: 1px solid var(--fm-stroke); border-radius: 14px; background: var(--fm-soft, #f8f7f4); }
.fm-assignment h3 { margin: 0 0 10px; font-size: 19px; }
.fm-assignment-instructions { margin-bottom: 12px; }
.fm-assignment-form label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; }
.fm-assignment-form input[type="file"] { padding: 10px; border: 1px solid var(--fm-stroke); border-radius: 10px; background: #fff; }

/* Course community and learning milestones */
.fm-course-engagement { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; margin-top: 16px; }
.fm-course-milestone { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 6px 10px; font-size: 13px; color: #fff; }
.fm-course-community-link { min-height: 0; padding: 7px 12px; font-size: 13px; }

/* Course-context AI help: calm, focused and clearly separate from lesson content. */
.fm-ai-lesson-help {
	position: relative;
	margin-top: 32px;
	padding: clamp(24px, 4vw, 34px);
	overflow: hidden;
	border: 1px solid #e0e8f3;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(11, 42, 91, .04), 0 22px 52px -38px rgba(11, 42, 91, .45);
}
.fm-ai-lesson-help::before {
	content: "";
	position: absolute;
	top: -90px;
	right: -70px;
	width: 210px;
	height: 210px;
	border-radius: 50%;
	background: rgba(47, 164, 231, .08);
	pointer-events: none;
}
.fm-ai-lesson-head {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 15px;
}
.fm-ai-lesson-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border: 1px solid #f3df9c;
	border-radius: 14px;
	background: #fff9e7;
	color: var(--fm-gold-dark);
	font-size: 19px;
}
.fm-ai-lesson-heading {
	min-width: 0;
	flex: 1;
}
.fm-ai-lesson-eyebrow {
	margin: 0 0 4px;
	color: var(--fm-blue);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.2;
	text-transform: uppercase;
}
.fm-ai-lesson-help h3 {
	margin: 0;
	color: var(--fm-navy);
	font-size: clamp(20px, 2.5vw, 25px);
	line-height: 1.2;
	letter-spacing: -.01em;
}
.fm-ai-lesson-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	padding: 7px 10px;
	border: 0;
	border-radius: 999px;
	background: #eef8f2;
	color: #245f3d;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}
.fm-ai-lesson-badge span { color: #218452; }
.fm-ai-lesson-intro {
	max-width: 620px;
	margin: 6px 0 0;
	color: var(--fm-muted);
	font-size: 13.5px;
	line-height: 1.55;
}
.fm-ai-lesson-form {
	position: relative;
	display: grid;
	gap: 15px;
	margin-top: 24px;
}
.fm-ai-question-field {
	position: relative;
	display: block;
}
.fm-ai-lesson-form textarea {
	display: block;
	width: 100%;
	min-height: 116px;
	resize: vertical;
	padding: 17px 76px 20px 18px;
	border: 1px solid #dce5f0;
	border-radius: 15px;
	background: #f8fafc;
	color: var(--fm-ink);
	font: inherit;
	font-size: 14.5px;
	line-height: 1.55;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.fm-ai-lesson-form textarea::placeholder {
	color: #7e8ca1;
	opacity: 1;
}
.fm-ai-lesson-form textarea:focus {
	border-color: #8bb1ed;
	outline: 0;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(29, 99, 224, .09);
}
.fm-ai-prompt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.fm-ai-prompt {
	min-height: 34px;
	padding: 6px 11px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #f1f5fa;
	color: #31577f;
	cursor: pointer;
	font: 700 11.5px var(--fm-font-body);
	transition: border-color .14s ease, background .14s ease, color .14s ease, transform .14s ease;
}
.fm-ai-prompt::before {
	content: "+";
	margin-right: 5px;
	color: var(--fm-blue);
	font-weight: 900;
}
.fm-ai-prompt:hover { border-color: #c3d7f2; background: #edf4fd; color: var(--fm-blue); transform: translateY(-1px); }
.fm-ai-prompt:focus-visible { outline: 3px solid rgba(29, 99, 224, .2); outline-offset: 2px; }
.fm-ai-lesson-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
.fm-ai-lesson-note {
	margin: -3px 0 0;
	color: #738197;
	font-size: 11.5px;
	line-height: 1.45;
}
.fm-ai-lesson-note::before { content: "✓"; margin-right: 6px; color: #218452; font-weight: 900; }
.fm-ai-character-count {
	position: absolute;
	right: 14px;
	bottom: 11px;
	padding: 2px 5px;
	border-radius: 5px;
	background: rgba(248, 250, 252, .92);
	color: #8a97aa;
	font-size: 10.5px;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	white-space: nowrap;
}
.fm-ai-question-field:focus-within .fm-ai-character-count { background: #fff; }
.fm-ai-lesson-actions .fm-btn {
	min-width: 128px;
	min-height: 44px;
	flex: 0 0 auto;
	padding: 10px 18px;
	font-size: 13.5px;
	box-shadow: 0 10px 24px -16px rgba(11, 42, 91, .9);
}
.fm-ai-lesson-actions .fm-btn:disabled { cursor: wait; opacity: .72; }
.fm-ai-lesson-answer {
	display: none;
	margin-top: 22px;
	padding: 19px 20px;
	border: 1px solid #dce7f5;
	border-radius: 15px;
	background: #f6f9fd;
	color: var(--fm-ink);
}
.fm-ai-answer-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--fm-navy); font-size: 12px; }
.fm-ai-answer-head span { color: var(--fm-gold); }
.fm-ai-answer-text { white-space: pre-wrap; line-height: 1.65; }
.fm-ai-lesson-help.has-answer .fm-ai-lesson-answer { display: block; }
.fm-ai-lesson-help.is-loading .fm-ai-answer-text { color: var(--fm-muted); font-style: italic; }
@media (max-width: 640px) {
	.fm-ai-lesson-help { padding: 21px 18px; border-radius: 18px; }
	.fm-ai-lesson-head { gap: 12px; }
	.fm-ai-lesson-icon { width: 42px; height: 42px; border-radius: 12px; }
	.fm-ai-lesson-badge { display: none; }
	.fm-ai-lesson-form { margin-top: 20px; }
	.fm-ai-lesson-form textarea { min-height: 108px; }
	.fm-ai-lesson-actions { align-items: stretch; flex-direction: column; gap: 12px; }
	.fm-ai-prompt { flex: 1 1 auto; }
	.fm-ai-lesson-actions .fm-btn { align-self: flex-end; }
}
@media (max-width: 420px) {
	.fm-ai-prompt { flex-basis: 100%; }
	.fm-ai-lesson-actions .fm-btn { width: 100%; }
}

/* Notes */

.fm-lesson-notes {
	width: 100%;
	margin-top: 26px;
	padding: 0;
	overflow: hidden;
	border: 1px solid #dfe7f1;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 34px -30px rgba(11, 42, 91, .45);
}
.fm-lesson-notes summary {
	display: flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	padding: 17px 20px;
	color: var(--fm-navy);
	font-size: 14.5px;
	font-weight: 800;
	list-style: none;
	transition: background .16s ease;
}
.fm-lesson-notes summary:hover { background: #f8fafc; }
.fm-lesson-notes summary::after {
	content: "+";
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: auto;
	border-radius: 50%;
	background: #eef3f9;
	color: var(--fm-blue);
	font-size: 18px;
	line-height: 1;
}
.fm-lesson-notes[open] summary::after { content: "−"; }
.fm-lesson-notes summary::-webkit-details-marker { display: none; }
.fm-lesson-notes[open] summary {
	border-bottom: 1px solid #e5ebf3;
	background: #fbfcfe;
}
.fm-lesson-notes form {
	width: 100%;
	padding: 20px;
}
.fm-lesson-notes textarea,
.fm-qa-form textarea {
	width: 100%;
	min-height: 164px;
	margin: 0;
	padding: 16px 17px;
	border: 1px solid #d9e3ef;
	border-radius: 14px;
	background: #f8fafc;
	color: var(--fm-ink);
	font-size: 14.5px;
	line-height: 1.55;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.fm-lesson-notes textarea::placeholder,
.fm-qa-form textarea::placeholder { color: #7f8ca0; opacity: 1; }
.fm-lesson-notes textarea:focus,
.fm-qa-form textarea:focus {
	border-color: #8bb1ed;
	outline: 0;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(29, 99, 224, .09);
}
.fm-lesson-notes form .fm-btn,
.fm-qa-form .fm-btn {
	min-width: 170px;
	align-self: flex-end;
}

/* Q&A / discussion */

.fm-lesson-qa {
	width: 100%;
	margin-top: 28px;
	padding: 22px;
	border: 1px solid #dfe7f1;
	border-radius: 18px;
	background: linear-gradient(145deg, #fff 0%, #fbfdff 100%);
	box-shadow: 0 14px 34px -30px rgba(11, 42, 91, .45);
}
.fm-qa-title { font-size: 21px; margin: 0 0 8px; }
.fm-qa-count { color: var(--fm-muted); font-weight: 500; font-size: 15px; }
.fm-lesson-qa > .fm-portal-meta { margin: 0 0 18px; }
.fm-qa-list { margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.fm-qa-item {
	list-style: none;
	padding: 15px 16px;
	border: 1px solid #e0e7f0;
	border-radius: 14px;
	background: #fff;
}
.fm-qa-reply { margin-left: 26px; }
.fm-qa-coach { border-color: var(--fm-gold, #c9a227); background: #fdf9ee; }
.fm-qa-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; }
.fm-qa-coach-chip {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--fm-navy);
	color: #fff;
}
.fm-qa-mentor-chip { background: var(--fm-gold, #c9a227); color: #1c1c1c; }
.fm-qa-badge-chip {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid var(--fm-gold, #c9a227);
	background: #fdf9ee;
	color: var(--fm-navy);
	white-space: nowrap;
}
.fm-qa-date { color: var(--fm-muted); font-size: 12px; margin-left: auto; }
.fm-qa-text p { margin: 0; }
.fm-qa-form textarea { min-height: 150px; }
@media (max-width: 520px) {
	.fm-lesson-notes form,
	.fm-lesson-qa { padding: 17px; }
	.fm-lesson-notes summary { padding: 15px 17px; }
	.fm-lesson-notes form .fm-btn,
	.fm-qa-form .fm-btn { width: 100%; }
}

/* Mentor-hosted course byline */

.fm-classroom-host { font-size: 14px; color: var(--fm-muted); margin: -4px 0 8px; }
.fm-hero .fm-classroom-host { color: rgba(255, 255, 255, 0.85); margin: 2px 0 6px; }

/* Portal "Invite a friend" (referrals) card */

.fm-referral-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--fm-navy);
	margin: 8px 0 4px;
}
.fm-referral-row { display: flex; gap: 8px; margin-bottom: 10px; }
.fm-referral-input {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	padding: 9px 10px;
	border: 1px solid var(--fm-stroke);
	border-radius: 10px;
	background: var(--fm-soft, #f8f7f4);
	color: var(--fm-ink, #1c1c1c);
}
.fm-referral-copy { white-space: nowrap; }
.fm-referral-note { font-size: 13px; }

/* Lesson resources row */

.fm-lesson-resources { display: flex; flex-wrap: wrap; gap: 10px; }

/* Phase 2: professional course facts and multimodal lessons */

.fm-course-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 8px 0 16px;
}
.fm-course-facts span,
.fm-lesson-format-line span {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid var(--fm-stroke);
	border-radius: 999px;
	background: var(--fm-bg-soft);
	color: var(--fm-muted);
	font-size: 12px;
	font-weight: 700;
}
.fm-course-facts-hero { justify-content: center; margin: 12px 0; }
.fm-course-facts-hero span {
	border-color: rgba(255, 255, 255, .24);
	background: rgba(255, 255, 255, .09);
	color: rgba(255, 255, 255, .9);
}
.fm-lesson-section strong,
.fm-lesson-section span { display: block; }
.fm-lesson-section span {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: none;
}
.fm-lesson-item a > span:last-child { min-width: 0; }
.fm-lesson-item small {
	display: block;
	margin-top: 2px;
	color: var(--fm-muted);
	font-size: 11px;
	font-weight: 600;
}
.fm-lesson-format-line {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -4px 0 18px;
}
.fm-lesson-media {
	margin: 0 0 22px;
	border: 1px solid var(--fm-stroke);
	border-radius: 14px;
	background: var(--fm-bg-soft);
	overflow: hidden;
}
.fm-lesson-audio { padding: 18px; }
.fm-lesson-media-label {
	margin: 0 0 10px;
	color: var(--fm-navy);
	font-weight: 800;
}
.fm-lesson-audio audio { display: block; width: 100%; }
.fm-live-lesson {
	padding: clamp(20px, 4vw, 34px);
	background:
		radial-gradient(circle at 90% 20%, rgba(201, 162, 39, .18), transparent 36%),
		var(--fm-navy);
	color: #fff;
}
.fm-live-lesson h3 { margin: 5px 0 16px; color: #fff; }
.fm-live-lesson .fm-kicker { color: var(--fm-gold); }
.fm-live-lesson .fm-btn-outline { border-color: rgba(255, 255, 255, .4); color: #fff; }
.fm-interactive-lesson iframe {
	display: block;
	width: 100%;
	height: var(--fm-embed-height, 640px);
	border: 0;
	background: #fff;
}
.fm-interactive-lesson p {
	margin: 0;
	padding: 10px 14px;
	border-top: 1px solid var(--fm-stroke);
	font-size: 13px;
	text-align: right;
}
.fm-interactive-lesson p a { font-weight: 700; text-decoration: none; }

/* Portal "My progress" card */

.fm-progress-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 10px 0 12px;
}
.fm-progress-stat {
	display: grid;
	gap: 2px;
	padding: 12px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	text-align: center;
	background: var(--fm-soft, #f8f7f4);
}
.fm-progress-stat-value { font-size: 20px; font-weight: 800; color: var(--fm-navy); }
.fm-progress-stat-label { font-size: 12px; color: var(--fm-muted); }
.fm-course-cert-link { text-decoration: none; margin-left: 6px; }

/* Course experience v3: clear catalogue, overview, and lesson states. */
.fm-learning-group + .fm-learning-group {
	margin-top: clamp(36px, 5vw, 64px);
}

.fm-learning-group > h2 {
	margin: 0 0 18px;
	font-family: var(--fm-font-display);
	font-size: clamp(24px, 3vw, 34px);
	color: var(--fm-navy);
}

.fm-course-state-chip {
	display: inline-flex;
	margin: 0;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(11, 42, 91, .08);
	color: var(--fm-navy);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.fm-course-state-continue {
	border-top: 4px solid var(--fm-gold);
}

.fm-course-state-completed .fm-course-state-chip {
	background: rgba(28, 122, 63, .12);
	color: #176334;
}

.fm-course-state-locked .fm-course-state-chip {
	background: rgba(100, 105, 112, .12);
	color: #50575e;
}

.fm-course-card-promise {
	margin: 0;
	color: var(--fm-muted);
	line-height: 1.6;
}

.fm-course-overview {
	margin-bottom: clamp(24px, 4vw, 42px);
	padding: clamp(22px, 3.2vw, 38px);
	border-top: 4px solid var(--fm-gold);
}

.fm-course-overview-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.fm-course-overview-header h2 {
	max-width: 780px;
	margin: 5px 0 0;
	font-size: clamp(24px, 3vw, 36px);
}

.fm-course-overview-header .fm-course-facts {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.fm-course-overview-description {
	max-width: 900px;
	margin: -2px 0 30px;
	color: var(--fm-muted);
	font-size: 17px;
	line-height: 1.75;
}

.fm-course-overview-description > :first-child {
	margin-top: 0;
}

.fm-course-overview-description > :last-child {
	margin-bottom: 0;
}

.fm-course-overview-description h3 {
	margin: 24px 0 9px;
	color: var(--fm-navy);
	font-size: 20px;
}

.fm-course-overview-description ul,
.fm-course-overview-description ol {
	padding-left: 22px;
}

.fm-course-overview-description li + li {
	margin-top: 7px;
}

.fm-course-overview-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 34px);
}

.fm-course-overview-grid > div {
	padding-top: 16px;
	border-top: 1px solid var(--fm-border);
}

.fm-course-overview-grid h3 {
	margin: 0 0 9px;
	font-size: 17px;
}

.fm-course-overview-grid p,
.fm-course-overview-grid ul {
	margin: 0;
	color: var(--fm-muted);
	line-height: 1.65;
}

.fm-course-overview-grid ul {
	padding-left: 20px;
}

.fm-course-reviews {
	scroll-margin-top: 96px;
	margin-bottom: clamp(24px, 4vw, 42px);
}

.fm-course-reviews-jump {
	margin: 18px 0 0;
}

.fm-course-reviews-jump a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--fm-gold);
	font-weight: 800;
	text-decoration: none;
}

.fm-course-reviews-jump a:hover {
	text-decoration: underline;
}

.fm-course-reviews-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}

.fm-course-reviews-header h2 {
	margin: 5px 0 0;
	font-size: clamp(24px, 3vw, 36px);
}

.fm-course-rating-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.fm-course-rating-summary > strong {
	color: var(--fm-navy);
	font-family: var(--fm-font-display);
	font-size: 38px;
	line-height: 1;
}

.fm-course-rating-summary > span {
	display: grid;
	gap: 2px;
}

.fm-course-rating-summary .fm-review-stars {
	margin: 0;
}

.fm-course-rating-summary small {
	color: var(--fm-muted);
}

.fm-course-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.fm-course-review {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 24px;
	border-top: 3px solid var(--fm-gold);
}

.fm-course-review blockquote {
	flex: 1;
	margin: 0 0 20px;
	color: var(--fm-navy);
	font-size: 16px;
	line-height: 1.65;
}

.fm-course-review figcaption {
	display: grid;
	gap: 2px;
	padding-top: 15px;
	border-top: 1px solid var(--fm-border);
}

.fm-course-review figcaption strong {
	color: var(--fm-navy);
}

.fm-course-review figcaption span {
	color: var(--fm-muted);
	font-size: 13px;
}

.fm-course-reviews-empty {
	padding: 24px;
	border: 1px dashed var(--fm-border);
	box-shadow: none;
	text-align: center;
}

.fm-course-reviews-empty p {
	margin: 0;
	color: var(--fm-muted);
}

.fm-course-review-cta {
	margin: 16px 0 0;
	text-align: right;
}

.fm-review-dialog {
	width: min(620px, calc(100% - 28px));
	max-height: min(820px, calc(100vh - 28px));
	margin: auto;
	padding: clamp(22px, 4vw, 36px);
	border: 0;
	border-radius: 20px;
	box-shadow: 0 28px 80px rgba(7, 29, 65, .28);
	color: var(--fm-navy);
}

.fm-review-dialog::backdrop {
	background: rgba(6, 22, 48, .68);
	backdrop-filter: blur(4px);
}

.fm-review-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.fm-review-dialog-header h2 {
	margin: 4px 0 0;
	font-size: clamp(24px, 4vw, 34px);
}

.fm-review-dialog-close {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--fm-border);
	border-radius: 50%;
	background: #fff;
	color: var(--fm-navy);
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
}

.fm-review-dialog-close:hover {
	background: var(--fm-soft);
}

.fm-review-dialog-intro {
	margin: 14px 0 22px;
	color: var(--fm-muted);
	line-height: 1.6;
}

.fm-review-dialog .fm-review-form {
	display: grid;
	gap: 19px;
}

.fm-review-dialog textarea {
	width: 100%;
	min-height: 150px;
	resize: vertical;
	border: 1px solid var(--fm-stroke);
	border-radius: 10px;
	padding: 12px;
	font-family: var(--fm-font-body);
	font-size: 15px;
}

.fm-review-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.fm-dialog-open {
	overflow: hidden;
}

.fm-lesson-state-label {
	color: #315b8f !important;
	font-weight: 700;
}

.fm-lesson-complete .fm-lesson-state-label {
	color: #176334 !important;
}

.fm-lesson-awaiting-review .fm-lesson-state-label,
.fm-lesson-revision .fm-lesson-state-label {
	color: #8a4b00 !important;
}

.fm-lesson-item.is-current {
	outline: 2px solid var(--fm-gold);
	outline-offset: -2px;
	border-radius: 10px;
}

.fm-lesson-expectations {
	display: grid;
	gap: 7px;
	margin: 16px 0 24px;
	padding: 14px 16px;
	border: 1px solid #cfe0f3;
	border-radius: 12px;
	background: #f4f8fd;
	color: var(--fm-navy);
}

.fm-lesson-expectations p {
	margin: 0;
	line-height: 1.55;
}

.fm-lesson-current-state {
	font-size: 13px;
}

.fm-classroom-aside {
	align-self: start;
}

.fm-classroom-aside .fm-lesson-list {
	max-height: min(70vh, 780px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.fm-lesson-item a:focus-visible,
.fm-course-overview a:focus-visible,
.fm-classroom-card a:focus-visible {
	outline: 3px solid var(--fm-gold);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.fm-course-overview-grid,
	.fm-course-reviews-grid {
		grid-template-columns: 1fr;
	}

	.fm-course-overview-header,
	.fm-course-reviews-header {
		flex-direction: column;
	}

	.fm-course-overview-header .fm-course-facts,
	.fm-course-rating-summary {
		justify-content: flex-start;
	}

	.fm-classroom-aside .fm-lesson-list {
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 620px) {
	.fm-course-overview {
		padding: 20px 17px;
	}

	.fm-classroom-card .fm-btn {
		width: 100%;
		justify-content: center;
	}

	.fm-lesson-expectations {
		padding: 13px;
	}

	.fm-quiz {
		margin-top: 16px;
		padding: 13px 12px 5px;
		border-radius: 12px;
	}
	.fm-quiz-title {
		margin-bottom: 6px;
		font-size: 18px;
	}
	.fm-quiz-meta {
		margin: 0 0 10px;
		font-size: 13.5px;
		line-height: 1.5;
	}
	.fm-quiz-form { gap: 12px; }
	.fm-quiz-question {
		min-width: 0;
		margin-bottom: 8px;
	}
	.fm-quiz-question legend {
		margin-bottom: 5px;
		line-height: 1.45;
	}
	.fm-quiz-question-type { margin: 0 0 7px; }
	.fm-choice-list {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 7px;
	}
	.fm-choice {
		width: 100%;
		gap: 8px;
		padding: 9px 10px;
		border-radius: 12px;
		font-size: 14px;
		line-height: 1.45;
	}
	.fm-choice input { width: 18px; height: 18px; }
	.fm-choice-letter { width: 22px; height: 22px; border-radius: 6px; }
	.fm-quiz-form .fm-btn {
		width: 100%;
		justify-content: center;
		margin: 0 0 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fm-classroom-card,
	.fm-lesson-item,
	.fm-course-continue {
		scroll-behavior: auto;
		transition: none !important;
	}
}

/* Portal account card: profile photo */

.fm-avatar-block {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 14px 0 16px;
	padding: 14px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	background: var(--fm-bg-soft);
}
.fm-avatar-preview { border-radius: 50%; flex-shrink: 0; }
.fm-avatar-fields { min-width: 0; flex: 1; }
.fm-avatar-label { display: block; font-weight: 800; font-size: 14px; color: var(--fm-navy); margin-bottom: 2px; }
.fm-avatar-fields .fm-portal-meta { margin: 0 0 10px; font-size: 13.5px; }
.fm-avatar-fields .fm-notice { padding: 8px 12px; margin-bottom: 10px; font-size: 13.5px; }
.fm-avatar-input { display: block; width: 100%; font-size: 13.5px; margin-bottom: 10px; }
.fm-avatar-input::file-selector-button {
	border: 1px solid var(--fm-stroke);
	border-radius: 999px;
	background: #fff;
	color: var(--fm-navy);
	font-family: var(--fm-font-body);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	margin-right: 10px;
	cursor: pointer;
}
.fm-avatar-input::file-selector-button:hover { border-color: var(--fm-blue); color: var(--fm-blue); }
.fm-avatar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fm-btn-small { padding: 8px 18px; font-size: 13.5px; }
.fm-avatar-remove {
	border: 0;
	background: none;
	padding: 0;
	font-family: var(--fm-font-body);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--fm-muted);
	cursor: pointer;
	text-decoration: underline;
}
.fm-avatar-remove:hover { color: #b3261e; }
@media (max-width: 560px) {
	.fm-avatar-block { flex-direction: column; }
}

/* Portal notification preferences */

.fm-notification-settings { scroll-margin-top: 96px; }
.fm-notification-settings > h2 { margin-bottom: 8px; }
.fm-notification-settings > .fm-portal-meta { max-width: 680px; }
.fm-notification-settings .fm-notice { margin: 18px 0 0; }
.fm-notification-form { margin-top: 22px; }
.fm-notification-options {
	display: grid;
	gap: 10px;
	margin-bottom: 20px;
}
.fm-notification-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "copy toggle";
	gap: 16px;
	align-items: center;
	padding: 15px 16px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
	background: var(--fm-bg-soft);
	cursor: pointer;
}
.fm-notification-option > span:first-child {
	grid-area: copy;
	display: grid;
	gap: 3px;
}
.fm-notification-option strong { color: var(--fm-navy); font-size: 14.5px; }
.fm-notification-option small { color: var(--fm-muted); font-size: 13px; line-height: 1.45; }
.fm-notification-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.fm-notification-switch {
	grid-area: toggle;
	position: relative;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #c8d1df;
	box-shadow: inset 0 0 0 1px rgba(11, 42, 91, .08);
	transition: background .16s ease;
}
.fm-notification-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(11, 42, 91, .22);
	transition: transform .16s ease;
}
.fm-notification-option input:checked + .fm-notification-switch { background: var(--fm-blue); }
.fm-notification-option input:checked + .fm-notification-switch::after { transform: translateX(20px); }
.fm-notification-option input:focus-visible + .fm-notification-switch {
	outline: 3px solid var(--fm-gold);
	outline-offset: 3px;
}
.fm-notification-digest {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
	gap: 16px;
	align-items: center;
	margin: 0 0 20px;
	padding: 15px 16px;
	border: 1px solid var(--fm-stroke);
	border-radius: 12px;
}
.fm-notification-digest label { display: grid; gap: 3px; }
.fm-notification-digest strong { color: var(--fm-navy); font-size: 14.5px; }
.fm-notification-digest small { color: var(--fm-muted); font-size: 13px; line-height: 1.45; }
.fm-notification-digest select {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--fm-stroke);
	border-radius: 10px;
	background: #fff;
	color: var(--fm-navy);
	font: 700 13.5px var(--fm-font-body);
}
@media (max-width: 560px) {
	.fm-notification-option { gap: 12px; padding: 14px; }
	.fm-notification-digest { grid-template-columns: minmax(0, 1fr); }
}

/* Certificates */

.fm-cert-list { margin: 0; padding: 0; display: grid; gap: 14px; max-width: 640px; margin-inline: auto; }
.fm-cert-item { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fm-cert-item .fm-btn { margin-left: auto; }

.fm-cert-stage { background: var(--fm-soft, #f8f7f4); }
.fm-certificate {
	max-width: 860px;
	margin: 0 auto;
	background: #fffdf7;
	border: 3px solid var(--fm-gold, #c9a227);
	border-radius: 6px;
	padding: 10px;
	box-shadow: 0 20px 50px rgba(16, 34, 62, 0.12);
}
.fm-certificate-inner {
	border: 1px solid var(--fm-gold, #c9a227);
	border-radius: 3px;
	padding: clamp(28px, 6vw, 64px);
	text-align: center;
}
.fm-cert-brand {
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 13px;
	color: var(--fm-navy);
	margin: 0 0 4px;
}
.fm-cert-kicker { color: var(--fm-muted); font-size: 13px; margin: 0 0 18px; }
.fm-cert-heading {
	font-family: Fraunces, serif;
	font-size: clamp(26px, 4.6vw, 42px);
	color: var(--fm-navy);
	margin: 0 0 22px;
}
.fm-cert-presented, .fm-cert-completed { color: var(--fm-muted); margin: 0 0 8px; font-size: 15px; }
.fm-cert-name {
	font-family: Fraunces, serif;
	font-size: clamp(24px, 4vw, 36px);
	color: var(--fm-ink);
	margin: 0 0 14px;
	border-bottom: 1px solid var(--fm-stroke);
	display: inline-block;
	padding: 0 22px 8px;
}
.fm-cert-course { font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; color: var(--fm-navy); margin: 0 0 34px; }
.fm-cert-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 18px;
	flex-wrap: wrap;
	text-align: left;
}
.fm-cert-signature { display: grid; }
.fm-cert-signature-name {
	font-family: Fraunces, serif;
	font-size: 20px;
	color: var(--fm-ink);
	border-top: 1px solid var(--fm-stroke);
	padding-top: 6px;
}
.fm-cert-signature-role { font-size: 12px; color: var(--fm-muted); }
.fm-cert-facts { display: grid; gap: 2px; font-size: 13px; color: var(--fm-muted); text-align: right; }
.fm-cert-verify { text-align: center; color: var(--fm-muted); font-size: 13px; margin: 16px auto 0; max-width: 640px; }
.fm-cert-actions { margin-top: 18px; }

@media print {
	.fm-header, .fm-footer, .fm-cert-verify, .fm-cert-actions, .fm-skip-link { display: none !important; }
	.fm-cert-stage { background: #fff; padding: 0; }
	.fm-certificate { box-shadow: none; }
	body { background: #fff; }
}

@media (max-width: 720px) {
	.fm-qa-reply { margin-left: 12px; }
	.fm-cert-item .fm-btn { margin-left: 0; }
}

/* =========================================================================
   Community: the dashboard card only. The community app itself ships its
   own stylesheet from the plugin (assets/community.css).
   ====================================================================== */

.fm-comm-mini { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; width: 100%; }
.fm-comm-mini li { display: flex; align-items: center; gap: 10px; }
.fm-comm-mini a { font-weight: 700; color: var(--fm-navy); text-decoration: none; flex: 1; min-width: 0; }
.fm-comm-mini a:hover { color: var(--fm-blue); }
.fm-comm-unread {
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
	background: var(--fm-blue); color: #fff; font-size: 11.5px; font-weight: 800;
	display: grid; place-items: center; flex: none;
}
.fm-comm-digest .fm-choice-list { margin-bottom: 12px; }

/* =========================================================================
   Design to Succeed — supplied 2026 landing-page direction
   ====================================================================== */

.fm-dts { --dts-navy: #071a33; --dts-navy-2: #0d294a; --dts-gold: #e0b43f; --dts-cream: #f8f4ea; overflow: hidden; }
.fm-dts section[id] { scroll-margin-top: 112px; }
.fm-dts-hero { position: relative; padding: clamp(54px, 6vw, 82px) 0 clamp(50px, 6vw, 74px); color: #fff; background: radial-gradient(circle at 78% 18%, rgba(31, 112, 164, .34), transparent 34%), linear-gradient(135deg, var(--dts-navy), var(--dts-navy-2)); }
.fm-dts-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, transparent, var(--dts-gold), transparent); }
.fm-dts-hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr); gap: clamp(34px, 4.5vw, 62px); align-items: center; }
.fm-dts-eyebrow { display: inline-flex; margin: 0 0 18px; padding: 7px 13px; border: 1px solid rgba(224,180,63,.55); border-radius: 999px; color: #f5d775; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fm-dts-hero h1 { max-width: 660px; margin: 0; color: #fff; font-family: Fraunces, Georgia, serif; font-size: clamp(40px, 4.1vw, 56px); line-height: 1.035; letter-spacing: -.032em; }
.fm-dts-hero h1 span { display: block; margin-top: .14em; color: var(--dts-gold); }
.fm-dts-lede { max-width: 630px; margin: 20px 0 24px; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.58; }
.fm-dts-intro-card { overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.08); box-shadow: 0 28px 64px rgba(0,0,0,.3); backdrop-filter: blur(10px); }
.fm-dts-intro-video, .fm-dts-testimonial-video { position: relative; aspect-ratio: 16 / 9; background: #020913; }
.fm-dts-intro-video iframe, .fm-dts-testimonial-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fm-dts-video-caption { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; }
.fm-dts-video-caption strong { color: #fff; }
.fm-dts-video-caption span { color: #f5d775; }
.fm-dts-trust { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; max-width: 620px; margin: 21px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.72); font-size: 12px; }
.fm-dts-trust li::before { content: "✓"; margin-right: 8px; color: var(--dts-gold); font-weight: 900; }

.fm-dts-problem .fm-container-narrow { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 22px clamp(34px,5vw,62px); align-items: start; max-width: 1120px; }
.fm-dts-problem .fm-section-head { grid-column: 1; margin: 0; text-align: left; }
.fm-dts-callout { grid-column: 1; margin: 0; padding: 20px 22px; border-left: 4px solid var(--dts-gold); background: var(--dts-cream); color: var(--dts-navy); font: 700 clamp(18px,2vw,23px)/1.42 Fraunces, Georgia, serif; }
.fm-dts-check { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: clamp(24px,3vw,34px); border: 1px solid var(--fm-stroke); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(7,26,51,.08); }
.fm-dts-check h3 { margin: 0 0 18px; color: var(--dts-navy); font-size: clamp(22px,2.5vw,28px); }
.fm-dts-check-list { display: grid; gap: 9px; }
.fm-dts-check-list label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid #dbe2e9; border-radius: 10px; cursor: pointer; transition: .2s ease; }
.fm-dts-check-list label:has(input:checked) { border-color: var(--dts-gold); background: #fffaf0; }
.fm-dts-check-list input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--dts-navy); }
.fm-dts-check-result { margin: 16px 0 0; color: var(--fm-muted); font-size: 14px; line-height: 1.55; font-weight: 650; }
.fm-dts-check-result.is-active { color: var(--dts-navy); }

.fm-dts-reposition-map { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 24px; align-items: center; margin-top: 40px; }
.fm-dts-node-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.fm-dts-node-group span { padding: 17px 12px; border-radius: 10px; text-align: center; font-weight: 800; }
.fm-dts-node-source span { border: 1px solid #cfd8e1; background: #fff; color: var(--dts-navy); }
.fm-dts-node-destination span { background: var(--dts-navy); color: #fff; box-shadow: inset 0 -3px 0 var(--dts-gold); }
.fm-dts-reposition-arrow { height: 2px; background: var(--dts-gold); position: relative; }
.fm-dts-reposition-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 13px; height: 13px; border-top: 2px solid var(--dts-gold); border-right: 2px solid var(--dts-gold); transform: translateY(-50%) rotate(45deg); }
.fm-dts-map-caption { max-width: 780px; margin: 28px auto 0; text-align: center; color: var(--fm-muted); font-weight: 650; }
.fm-dts-movement-tag { display: inline-flex; margin-top: 12px; padding: 7px 11px; border-radius: 999px; background: rgba(224,180,63,.14); color: #f5d775; font-size: 12px; font-weight: 800; }

.fm-dts-coach-grid { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); gap: clamp(38px,7vw,90px); align-items: center; }
.fm-dts-coach-photo { min-height: 470px; border-radius: 22px; overflow: hidden; background: linear-gradient(145deg,#dce6ee,#f8f4ea); }
.fm-dts-coach-photo img, .fm-dts-coach-photo .fm-portrait-placeholder { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.fm-dts-coach-role { margin: -4px 0 22px; color: var(--dts-gold); font-weight: 800; }
.fm-dts-coach-bio { font-size: 17px; line-height: 1.75; }
.fm-dts-coach-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.fm-dts-coach-stats li { padding: 14px 10px; border-top: 2px solid var(--dts-gold); background: #f6f8fa; }
.fm-dts-coach-stats strong, .fm-dts-coach-stats span { display: block; }
.fm-dts-coach-stats strong { color: var(--dts-navy); font-size: 21px; }
.fm-dts-coach-stats span { margin-top: 4px; color: var(--fm-muted); font-size: 11px; line-height: 1.35; }
.fm-dts-coach-quote { margin: 0; padding: 22px 24px; border-left: 4px solid var(--dts-gold); background: var(--dts-navy); color: #fff; font: 600 18px/1.55 Fraunces,Georgia,serif; }
.fm-dts-coach-quote cite { display: block; margin-top: 12px; color: #f5d775; font: 700 11px/1.4 system-ui,sans-serif; letter-spacing: .06em; text-transform: uppercase; }

.fm-dts-testimonial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.fm-dts-testimonial { overflow: hidden; border: 1px solid var(--fm-stroke); border-radius: 16px; background: #fff; box-shadow: 0 14px 35px rgba(7,26,51,.08); }
.fm-dts-testimonial-placeholder { display: grid; place-content: center; gap: 8px; aspect-ratio: 16 / 9; text-align: center; background: linear-gradient(145deg,var(--dts-navy),#143a60); color: #fff; }
.fm-dts-testimonial-placeholder span:last-child { color: rgba(255,255,255,.62); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fm-dts-play { width: 42px; height: 42px; margin: 0 auto 4px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.fm-dts-play::after { content: ""; display: block; width: 0; height: 0; margin: 13px 0 0 16px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--dts-gold); }
.fm-dts-testimonial-body { padding: 22px; }
.fm-dts-testimonial-body p { min-height: 76px; margin: 0 0 16px; color: var(--fm-ink); font-family: Fraunces,Georgia,serif; }
.fm-dts-testimonial-body strong, .fm-dts-testimonial-body span { display: block; }
.fm-dts-testimonial-body span { margin-top: 3px; color: var(--fm-muted); font-size: 12px; }
.fm-dts-pricing .fm-price-card { color: var(--fm-ink); }
.fm-dts-pricing .fm-pricing-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 24px; max-width: 1120px; }
.fm-dts-pricing .fm-price-card-addon { grid-template-columns: minmax(0,1fr); align-content: start; gap: 20px; padding: 34px 30px; background: #f3f6f9; }
.fm-dts-pricing .fm-price-card-addon .fm-price-addon-details { display: flex; flex-direction: column; flex: 1; }
.fm-dts-pricing .fm-price-card-addon .fm-btn { margin-top: auto; }
.fm-dts-final .fm-section-sub { color: rgba(255,255,255,.78); }

@media (max-width: 980px) {
	.fm-dts-hero-grid, .fm-dts-coach-grid { grid-template-columns: 1fr; }
	.fm-dts-intro-card { max-width: 680px; }
	.fm-dts-problem .fm-container-narrow { grid-template-columns: 1fr; max-width: 760px; }
	.fm-dts-problem .fm-section-head, .fm-dts-callout, .fm-dts-check { grid-column: 1; }
	.fm-dts-check { grid-row: auto; margin-top: 10px; }
	.fm-dts-reposition-map { grid-template-columns: 1fr; }
	.fm-dts-reposition-arrow { width: 2px; height: 64px; margin: 0 auto; }
	.fm-dts-reposition-arrow::after { right: 50%; top: auto; bottom: 0; transform: translateX(50%) rotate(135deg); }
	.fm-dts-testimonial-grid { grid-template-columns: 1fr 1fr; }
	.fm-dts-pricing .fm-pricing-grid { grid-template-columns: minmax(0,1fr); max-width: 760px; }
}
@media (max-width: 680px) {
	.fm-dts section[id] { scroll-margin-top: 88px; }
	.fm-dts-hero { padding: 48px 0 54px; }
	.fm-dts-hero h1 { font-size: clamp(36px,10.4vw,44px); line-height: 1.04; }
	.fm-dts-lede { margin: 18px 0 22px; font-size: 16px; }
	.fm-dts-trust, .fm-dts-node-group, .fm-dts-testimonial-grid { grid-template-columns: 1fr; }
	.fm-dts-coach-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.fm-dts-coach-photo, .fm-dts-coach-photo img, .fm-dts-coach-photo .fm-portrait-placeholder { min-height: 350px; }
	.fm-dts-video-caption { display: grid; }
}
