/**
 * MedManageSCI toolkit progress + quiz styles.
 *
 * Matches the visual treatment from the Figma `Module2(Quiz-*)` frames:
 *   - Pill-shaped progress bar above the quiz with "X of Y questions answered"
 *   - "Nice work!" / "Not quite." feedback boxes after each graded question
 *   - Custom check/x answer chips on graded options
 *   - Pill-shaped Previous / Next / Submit nav buttons
 *
 * @see baytek-mms-content/app/BaytekMmsContent/Shortcodes/ModuleQuiz.php
 * @see baytek-mms-content/app/BaytekMmsContent/Shortcodes/Progress.php
 */

/* ------------------------------------------------------------------ */
/* Progress bar (shared across module / lesson / toolkit scopes)       */
/* ------------------------------------------------------------------ */

.mms-progress {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	margin: var(--wp--preset--spacing--30) 0;
}

.mms-progress__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--indigo);
	font-weight: 500;
}

.mms-progress__bar {
	background: var(--wp--preset--color--platinum);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	width: 100%;
}

.mms-progress__fill {
	background: var(--wp--preset--color--myrtle-green);
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.mms-progress.is-complete .mms-progress__fill {
	background: var(--wp--preset--color--myrtle-green);
}

.mms-progress-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.35em 0.85em;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--meta-small);
	font-weight: 500;
	background: var(--wp--preset--color--azureish-white-30);
	color: var(--wp--preset--color--myrtle-green);
}

.mms-progress-badge--done {
	background: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--cornsilk);
}

/* ------------------------------------------------------------------ */
/* Quiz container                                                       */
/* ------------------------------------------------------------------ */

.mms-quiz {
	max-width: var(--wp--custom--spacing--content-size);
	margin: var(--wp--preset--spacing--40) auto;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

/* Module quiz sits in the toolkit content column like any lesson page. */
.mms-quiz.mms-module-quiz {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--40);
}

.mms-quiz__header {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.mms-quiz__eyebrow {
	font-size: var(--wp--custom--typography--eyebrow-font-size);
	color: var(--wp--preset--color--myrtle-green);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
	font-weight: 500;
}

.mms-module-quiz .mms-quiz__eyebrow {
	color: var(--wp--preset--color--indigo-50);
}

.mms-quiz__title {
	font-size: var(--wp--preset--font-size--h-1);
	color: var(--wp--preset--color--indigo);
	margin: 0;
	line-height: 1.05;
}

.mms-quiz__intro {
	color: var(--wp--preset--color--black-coral);
	margin: 0;
	max-width: 60ch;
}

.mms-quiz__progress {
	margin-top: var(--wp--preset--spacing--20);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
}

.mms-quiz__progress-label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--indigo);
	margin: 0;
	font-weight: 500;
}

.mms-quiz__progress-bar {
	background: var(--wp--preset--color--platinum);
	border-radius: 999px;
	height: 6px;
	overflow: hidden;
}

.mms-quiz__progress-fill {
	background: var(--wp--preset--color--indigo);
	height: 100%;
	border-radius: 999px;
	transition: width 0.5s ease;
}

.mms-quiz__signin-notice {
	background: var(--wp--preset--color--azureish-white-30);
	border: 1px solid var(--wp--preset--color--azureish-white);
	color: var(--wp--preset--color--indigo);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--border--radius);
}

.mms-quiz__signin-notice p {
	margin: 0;
}

/* Anonymous-user gate: replaces the entire quiz UI with a sign-in CTA
 * (no questions are rendered until the user is authenticated). */
.mms-quiz__gate {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	align-items: flex-start;
	background: var(--wp--preset--color--azureish-white-30);
	border: 1px solid var(--wp--preset--color--azureish-white);
	color: var(--wp--preset--color--indigo);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--border--radius);
}

.mms-quiz__gate-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--indigo);
	line-height: 1.2;
}

.mms-quiz__gate-body {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--black-coral);
	line-height: 1.5;
	max-width: 60ch;
}

.mms-quiz__gate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--10);
}

.mms-quiz__gate-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: var(--wp--preset--color--water);
	color: var(--wp--preset--color--indigo);
	border-radius: 999px;
	padding: 0.75em 1.5em;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	text-decoration: none;
	transition: var(--wp--custom--animation--default-transition);
}

.mms-quiz__gate-cta:hover,
.mms-quiz__gate-cta:focus {
	background: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--water);
}

.mms-quiz__gate-cta--ghost {
	background: transparent;
	border: 1px solid var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--indigo);
}

.mms-quiz__gate-cta--ghost:hover,
.mms-quiz__gate-cta--ghost:focus {
	background: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--cornsilk);
}

/* ------------------------------------------------------------------ */
/* Quiz Complete screen                                                 */
/* ------------------------------------------------------------------ */

/* Rendered into the stage in place of a question once the user has
 * answered every question and clicked Next on the final question.
 * Only Previous remains in the nav so they can review (locked) answers. */
.mms-quiz-complete {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	text-align: center;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--azureish-white-30);
	border: 1px solid var(--wp--preset--color--azureish-white);
	border-radius: var(--wp--custom--border--radius);
}

.mms-quiz-complete__icon {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--cornsilk);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	line-height: 1;
}

.mms-quiz-complete__icon::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Pro";
	font-weight: 700;
}

.mms-quiz-complete__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--h-2, var(--wp--preset--font-size--large));
	color: var(--wp--preset--color--indigo);
	font-weight: 600;
}

.mms-quiz-complete__score {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--indigo);
	font-weight: 500;
}

.mms-quiz-complete__body {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--black-coral);
	max-width: 60ch;
}

.mms-quiz-complete__next {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--cornsilk);
	border-radius: 999px;
	padding: 0.75em 1.5em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	margin-top: var(--wp--preset--spacing--10);
	transition: var(--wp--custom--animation--default-transition);
}

.mms-quiz-complete__next:hover,
.mms-quiz-complete__next:focus {
	background: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--cornsilk);
}

.mms-quiz--missing {
	background: var(--wp--preset--color--platinum);
	padding: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--border--radius);
	color: var(--wp--preset--color--black-coral);
}

/* ------------------------------------------------------------------ */
/* Question stage                                                       */
/* ------------------------------------------------------------------ */

.mms-quiz__stage {
	min-height: 200px;
}

.mms-quiz-question {
	border: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	/* Vertical rhythm inside a question card:
	 *   prompt → choices → feedback
	 * The gap below sets the *minimum* space between the prompt and the
	 * choice list. We also add extra `margin-top` on the choices below so
	 * the prompt has clear breathing room (Figma frame Module2(Quiz-*)). */
	gap: var(--wp--preset--spacing--30);
}

.mms-quiz-question__legend {
	display: block;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--indigo);
	font-weight: 600;
	line-height: 1.35;
}

.mms-quiz-question__number {
	font-weight: 700;
	margin-right: 0.15em;
}

.mms-quiz-question__choices {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	/* Extra space after the prompt so the answer list isn't crammed
	 * against the question text — this combines with the flex `gap`
	 * above for the final separation. */
	margin-top: var(--wp--preset--spacing--30);
}

.mms-quiz-choice {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--indigo);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
}

.mms-quiz-choice__label {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	cursor: pointer;
	user-select: none;
}

/* Hide native radio; rely on the custom indicator below for the visual. */
.mms-quiz-choice__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}

.mms-quiz-choice__indicator {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--platinum);
	background: var(--wp--preset--color--white);
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--wp--custom--animation--default-transition);
	box-sizing: border-box;
}

/* Square indicator for multi-select checkboxes — matches the radio metric
   so the layout doesn't shift when the type changes. */
.mms-quiz-choice__indicator--checkbox {
	border-radius: 4px;
}

.mms-quiz-choice__label:hover .mms-quiz-choice__indicator,
.mms-quiz-choice__input:focus-visible + .mms-quiz-choice__indicator {
	border-color: var(--wp--preset--color--indigo);
	opacity: 0.5;
}

.mms-quiz-choice__input:checked + .mms-quiz-choice__indicator {
	border-color: var(--wp--preset--color--indigo);
	background: var(--wp--preset--color--indigo);
	box-shadow: inset 0 0 0 4px var(--wp--preset--color--white);
	opacity: 1;
}

.mms-quiz-choice__input:checked + .mms-quiz-choice__indicator--checkbox {
	box-shadow: none;
}

.mms-quiz-choice__input:checked + .mms-quiz-choice__indicator--checkbox::after {
	content: "\f00c";
	font-family: "Font Awesome 6 Pro";
	font-weight: 700;
	font-size: 11px;
	color: var(--wp--preset--color--white);
}

.mms-quiz-choice__text {
	display: inline-block;
}

/* Graded question states ------------------------------------------- */

.mms-quiz-choice__icon {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	border: 1px solid var(--wp--preset--color--platinum);
	background: var(--wp--preset--color--white);
	box-sizing: border-box;
}

.mms-quiz-choice__icon::before {
	font-family: "Font Awesome 6 Pro";
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
}

.mms-quiz-choice__icon--correct {
	background: var(--wp--preset--color--myrtle-green);
	border-color: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--white);
}

.mms-quiz-choice__icon--correct::before {
	content: "\f00c";
}

.mms-quiz-choice__icon--incorrect {
	background: var(--wp--custom--forms--errors--color--text);
	border-color: var(--wp--custom--forms--errors--color--text);
	color: var(--wp--preset--color--white);
}

.mms-quiz-choice__icon--incorrect::before {
	content: "\f00d";
}

.mms-quiz-choice__icon--truth {
	background: var(--wp--preset--color--myrtle-green);
	border-color: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--white);
}

.mms-quiz-choice__icon--truth::before {
	content: "\f00c";
}

.mms-quiz-choice.is-graded {
	padding-left: 0;
}

.mms-quiz-choice.is-correct .mms-quiz-choice__text,
.mms-quiz-choice.is-truth .mms-quiz-choice__text {
	color: var(--wp--preset--color--indigo);
	font-weight: 500;
}

.mms-quiz-choice.is-incorrect .mms-quiz-choice__text {
	color: var(--wp--preset--color--indigo);
	font-weight: 500;
}

.mms-quiz-feedback {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	align-items: flex-start;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--border--radius);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.mms-quiz-feedback strong {
	font-weight: 600;
	flex-shrink: 0;
}

.mms-quiz-feedback--correct {
	background: #D4EAEB;
	color: var(--wp--preset--color--myrtle-green);
}

.mms-quiz-feedback--incorrect {
	background: var(--wp--custom--forms--errors--color--background);
	color: var(--wp--custom--forms--errors--color--text);
}

.mms-quiz-question__error {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--custom--forms--errors--color--text);
}

.mms-quiz-question__hint {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--black-coral);
	font-style: italic;
}

/* Retry state — the user got it wrong and can re-submit. We keep the inputs
   live but tint the previously-picked choice with the incorrect-marker chip
   so they see what they tried. */
.mms-quiz-question.is-retry .mms-quiz-choice.is-incorrect .mms-quiz-choice__indicator {
	border-color: var(--wp--custom--forms--errors--color--text);
}

/* ------------------------------------------------------------------ */
/* Question navigation pills                                            */
/* ------------------------------------------------------------------ */

.mms-quiz__question-nav {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--30);
	flex-wrap: wrap;
}

.mms-quiz__nav-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--platinum);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--indigo);
	box-shadow: var(--wp--custom--shadows--indigo-20);
	border-radius: 999px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: var(--wp--custom--animation--default-transition);
	font-family: inherit;
}

/* `display: inline-flex` above otherwise overrides the user-agent
 * `[hidden] { display: none }` rule (equal specificity, later wins),
 * so toggling `.hidden` from JS does nothing. This rule restores the
 * intended "hidden = invisible" behaviour and is what enforces the
 * Submit-only ↔ Prev/Next nav swap. */
.mms-quiz__nav-btn[hidden] {
	display: none !important;
}

.mms-quiz__nav-btn--prev {
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--20);
}

.mms-quiz__nav-btn--next,
.mms-quiz__nav-btn--submit {
	margin-left: auto;
	padding-right: var(--wp--preset--spacing--20);
}

.mms-quiz__nav-btn::before,
.mms-quiz__nav-btn::after {
	font-family: "Font Awesome 6 Pro";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--wp--preset--color--azureish-white);
	color: var(--wp--preset--color--myrtle-green);
	font-size: var(--wp--preset--font-size--meta-small);
	font-weight: 400;
	transition: var(--wp--custom--animation--default-transition);
}

.mms-quiz__nav-btn--prev::before {
	content: "\f104"; /* fa-angle-left */
}

.mms-quiz__nav-btn--next::after {
	content: "\f105"; /* fa-angle-right */
}

.mms-quiz__nav-btn--submit::after {
	content: "\f2f6"; /* fa-right-to-bracket — submit / enter affordance */
}

.mms-quiz__nav-btn:hover::before,
.mms-quiz__nav-btn:hover::after {
	background: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--azureish-white);
}

.mms-quiz__nav-btn[disabled],
.mms-quiz__nav-btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Page-based toolkit UI enhancements                                   */
/* ------------------------------------------------------------------ */

.mms-module-card__top-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.mms-module-card__status {
	color: var(--wp--preset--color--myrtle-green);
	font-style: normal;
	font-weight: 600;
}

.mms-module-card__status--not-started {
	color: #5C6468;
}

.mms-module-card__status--in-progress {
	color: #1E3765;
}

.mms-module-card__status--complete {
	color: #247071;
}

/*
 * Toolkit status dial — used on toolkit module cards and inside the
 * breadcrumb bar. The progress arc is a `conic-gradient` so the icon
 * reads as a filled pie slice (not a donut/ring).
 *
 * Variants:
 *   default / --in-progress  → solid pie wedge that fills as the user
 *                              moves through the module (myrtle-green
 *                              on traversed slice, platinum on remaining)
 *   --not-started            → 0% wedge ⇒ flat platinum disc inside the
 *                              myrtle-green outline
 *   --complete               → solid green disc with a check glyph
 */
.mms-status-icon {
	--mms-size: 32px;
	--mms-progress-percent: 0;
	width: var(--mms-size);
	height: var(--mms-size);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid var(--wp--preset--color--myrtle-green);
	background: conic-gradient(
		var(--wp--preset--color--myrtle-green) calc(var(--mms-progress-percent) * 1%),
		var(--wp--preset--color--platinum) 0
	);
	color: var(--wp--preset--color--myrtle-green);
	position: relative;
}

/*
 * No inner cutout on the default + in-progress states — the
 * conic-gradient is meant to be visible as a solid pie. Only the
 * `--complete` state paints `::before` (as a full-size green disc that
 * gives the checkmark a clean backdrop, in case the conic edge
 * antialiases).
 */
.mms-status-icon--complete {
	--mms-progress-percent: 100;
	border-color: var(--wp--preset--color--myrtle-green);
}

.mms-status-icon--complete::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--myrtle-green);
}

.mms-status-icon--complete::after {
	content: "\f00c";
	font-family: "Font Awesome 6 Pro";
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--cornsilk);
	position: absolute;
}

.mms-status-icon--in-progress {
	border: 1px solid var(--wp--preset--color--myrtle-green);
	background: conic-gradient(
		var(--wp--preset--color--myrtle-green) calc(var(--mms-progress-percent) * 1%),
		var(--wp--preset--color--platinum) 0
	);
}

.mms-status-icon--not-started {
	--mms-progress-percent: 0;
}

/* ============================================================================
 * TOOLKIT BREADCRUMB STRIP
 *
 * The bar must render identically across:
 *   - signed-in lessons      (no class on the bar, JS wraps content in __row)
 *   - signed-in quiz pages   (newly-provisioned bars carry .mms-toolkit-breadcrumb-bar)
 *   - signed-out lessons     (no class, no JS — bar renders as authored)
 *
 * Lesson pages were provisioned before the marker class existed, so the bar's
 * className is inconsistent in the database. Targeting via the structural
 * classes the editor emits for every variant (the alignwide + rounded +
 * azureish-white background combo) keeps a single rendering for all three
 * states regardless of whether the marker class is present.
 * ============================================================================ */

.mms-toolkit-subpage main .entry-content {
	--mms-breadcrumb-bar-inline: var(--wp--preset--spacing--30);
}

/* Outer bar: standard .alignwide width (lines up with the columns below),
 * compact vertical rhythm, flush horizontal padding so the inner row paints
 * its own gutters. */
.mms-toolkit-subpage main .entry-content > .wp-block-group.alignwide.is-style-rounded.has-azureish-white-background-color {
	display: block !important;
	padding-top: var(--wp--preset--spacing--10) !important;
	padding-bottom: var(--wp--preset--spacing--10) !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-inline-start: 0 !important;
	padding-inline-end: 0 !important;
}

/* Inner layout container: either the JS-injected __row (signed-in with a
 * progress pie) or the GCB breadcrumbs group (signed-out or pages without
 * a module progress pie). Both flex-rows fill the bar and paint matching
 * gutters. `.is-layout-constrained > *` would otherwise center the
 * breadcrumbs at content-size and yield a centered trail on signed-out
 * variants — this rule forces width:100% so the trail can flow flush-left. */
.mms-toolkit-subpage main .entry-content > .wp-block-group.alignwide.is-style-rounded.has-azureish-white-background-color > .mms-toolkit-breadcrumb-bar__row,
.mms-toolkit-subpage main .entry-content > .wp-block-group.alignwide.is-style-rounded.has-azureish-white-background-color > .breadcrumbs,
.mms-toolkit-subpage main .entry-content > .wp-block-group.alignwide.is-style-rounded.has-azureish-white-background-color > .wp-block-group.breadcrumbs {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	padding-left: var(--mms-breadcrumb-bar-inline) !important;
	padding-right: var(--mms-breadcrumb-bar-inline) !important;
	padding-inline-start: var(--mms-breadcrumb-bar-inline) !important;
	padding-inline-end: var(--mms-breadcrumb-bar-inline) !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	box-sizing: border-box;
}

/* No-pie variant: keep the crumb trail tight together at the left. */
.mms-toolkit-subpage main .entry-content > .wp-block-group.alignwide.is-style-rounded.has-azureish-white-background-color > .breadcrumbs,
.mms-toolkit-subpage main .entry-content > .wp-block-group.alignwide.is-style-rounded.has-azureish-white-background-color > .wp-block-group.breadcrumbs {
	justify-content: flex-start !important;
	column-gap: var(--wp--preset--spacing--20);
}

/* Pie variant: the JS-injected __row owns the flush-left trail + flush-right
 * pie split. The trail (inner `.breadcrumbs`) clusters at the left; the
 * `.mms-breadcrumb-progress` icon is pushed right by its own margin-left:auto. */
.mms-toolkit-subpage main .entry-content > .wp-block-group.alignwide.is-style-rounded.has-azureish-white-background-color > .mms-toolkit-breadcrumb-bar__row {
	justify-content: flex-start !important;
	column-gap: var(--wp--preset--spacing--20);
}

.mms-toolkit-breadcrumb-bar__row > .breadcrumbs,
.mms-toolkit-breadcrumb-bar__row > .wp-block-group.breadcrumbs {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	column-gap: var(--wp--preset--spacing--20);
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.mms-breadcrumb-progress {
	flex: 0 0 auto;
	flex-shrink: 0;
	margin-left: auto !important;
	margin-inline-start: auto !important;
	margin-right: 0 !important;
	margin-inline-end: 0 !important;
	--mms-size: 24px;
	display: flex;
	line-height: 0;
	margin-block-start: 0;
	margin-top: 0;
}

.wp-block-navigation.is-style-accordion .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wp-block-navigation.is-style-accordion .wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.mms-nav-dot {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: #e8ebef;
	color: #9ba4b4;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 7px;
	line-height: 1;
	align-self: flex-start;
	transform: translateY(4px);
}

.mms-nav-dot::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Pro";
	font-weight: 700;
}

.mms-nav-dot.is-complete::before {
	content: "\f00c";
}

/* Quiz sidebar dot: only show checkmark once the quiz is actually complete */
.mms-nav-quiz-root .mms-nav-dot:not(.is-complete)::before {
	/*content: none;*/
}

.mms-nav-dot.is-complete {
	background: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--white);
}

.mms-nav-dot.is-current {
	background: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--white);
}

/* Sidebar rows: make the full row hoverable + clickable for both lessons and the quiz item. */
.wp-block-navigation.is-style-accordion .wp-block-navigation__submenu-container .wp-block-navigation-item {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--border--radius-small);
	transition: background-color 0.15s ease;
}

.wp-block-navigation.is-style-accordion .wp-block-navigation__submenu-container .wp-block-navigation-item:hover {
	background-color: rgba(255, 248, 220, 0.55);
}

.wp-block-navigation.is-style-accordion .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	padding: 0.25em 0.5em;
}

/* Top-level Quiz row: align dot + label like submenu lessons (8px gap). */
.wp-block-navigation.is-style-accordion .mms-nav-quiz-root {
	border-radius: var(--wp--custom--border--radius-small);
	transition: background-color 0.15s ease;
	margin-left: -0.5em;
	width: calc(100% + 0.5em);
}

.wp-block-navigation.is-style-accordion .mms-nav-quiz-root:hover {
	background-color: rgba(255, 248, 220, 0.55);
}

.wp-block-navigation.is-style-accordion .mms-nav-quiz-root > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	width: 100%;
	box-sizing: border-box;
	cursor: pointer;
	padding: 0.25em 0.5em;
}

.wp-block-navigation.is-style-accordion .mms-nav-quiz-root.current-menu-item {
	background-color: var(--wp--preset--color--cornsilk);
}

.mms-inline-get-started {
	background: var(--wp--preset--color--myrtle-green);
	color: var(--wp--preset--color--azureish-white);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
	border-radius: var(--wp--custom--border--radius);
	box-shadow: var(--wp--custom--shadows--indigo-20);
	text-align: center;
}

.mms-inline-get-started h3 {
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--azureish-white);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.15;
}

.mms-inline-get-started p {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--azureish-white);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.mms-inline-get-started__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	gap: 12px;
	background: var(--wp--preset--color--azureish-white);
	color: var(--wp--preset--color--myrtle-green);
	border-radius: 999px;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	box-sizing: border-box;
	transition: var(--wp--custom--animation--default-transition);
	border: solid 1px transparent;

	&:is(:hover,:focus) {
		background: var(--wp--preset--color--myrtle-green);
		color: var(--wp--preset--color--azureish-white);
		border-color: var(--wp--preset--color--azureish-white);
	}
}

.mms-inline-get-started__cta::before {
	content: "\e09f";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1;
}

/*
 * Toolkit subpages have no landing hero; the hero’s ::before still paints a
 * water-30 → white fade behind the next section (see shared/hero.css).
 * Apply the same gradient to the top of <main> so the band under the header
 * matches /toolkit/.
 */
body.mms-toolkit-subpage main.wp-block-group {
	background-color: var(--wp--preset--color--white);
	background-image: var(--wp--preset--gradient--water-to-white);
	background-repeat: no-repeat;
	background-size: 100% 400px;
	background-position: top;
}
