:root {
	--move-credibility-bg: var(--move-color-dark, #0f2a4a);
	--move-credibility-text: var(--move-color-text-inverse, #e3e7ec);
	--move-credibility-accent: var(--move-color-accent, #689fdf);

	/* Measured off Figma's `quote-editorial` band: 16px Regular label (muted
	   blue-grey, not accent tagline), 40px Light display quote (not 18px italic pull-quote). */
	--move-credibility-font-title: var(--move-font-size-base, 1rem);      /* 16px */
	--move-credibility-font-text: var(--move-font-size-xl, 1.5rem);       /* 24px, mobile */
	/* 38px literal, not the scale's 4xl (40px) — Figma sets the roman at 38 so the 40px emphasis reads a step larger. */
	--move-credibility-font-text-lg: 2.375rem;                            /* 38px */
}

.move-credibility-quote {
	container-type: inline-size;
	container-name: move-credibility-quote;
	width: 100%;
	background: var(--move-credibility-bg);
	color: var(--move-credibility-text);
	font-family: var(--move-font-base);
}

.move-credibility-quote__container {
	/* 1000px of *content*, not a 1000px box — under border-box a flat 62.5rem cap
	   ate the padding and left the quote 936px wide, wrapping a line early. */
	max-width: calc(62.5rem + 2 * var(--move-container-gutter, 2rem));
	margin-inline: auto;
	padding: var(--move-section-padding, 6rem) var(--move-container-gutter, 2rem);
	text-align: center;
}

.move-credibility-quote__title {
	text-transform: uppercase;
	/* Figma sets letter-spacing/normal — no tracking, unlike the accent taglines elsewhere. */
	letter-spacing: var(--move-letter-spacing-normal, 0em);
	font-size: var(--move-credibility-font-title);
	font-weight: var(--move-font-weight-regular, 400);
	/* Deliberate deviation (same as the footer's legal line): Figma's text/span
	   (#627995) is 3.23:1 on navy, a real AA failure. Muted-inverse is the
	   smallest substitution that clears AA (10.07:1) while staying quieter than the quote. */
	color: var(--move-color-text-muted-inverse, #c6d9f2);
	line-height: var(--move-line-relaxed, 1.5);
	/* 40px literal — the spacing scale has no 40 step. */
	margin: 0 0 2.5rem;
}

.move-credibility-quote__empty {
	color: var(--move-color-text-muted-inverse, #c6d9f2);
}

.move-credibility-quote__text {
	margin: 0;
	color: var(--move-color-text-inverse-title, #ffffff);
	font-size: var(--move-credibility-font-text);
	font-weight: var(--move-font-weight-light, 300);
	/* Mobile keeps the proportional step; desktop swaps in Figma's absolute
	   -1px (same split as why-section/style.css) — too tight on a 24px line. */
	letter-spacing: var(--move-letter-spacing-tight, -0.01em);
	line-height: var(--move-line-snug, 1.3);
	/* SemiBold emphasis at every width; its size step is desktop-only so mobile emphasis doesn't tower over the line. */
	--move-em-weight: var(--move-font-weight-semibold, 600);
	/* Second level: Figma lifts connective words to 40px roman between emphasis
	   runs, one heavier than the rest. <strong> alone is the roman lift at Light;
	   <strong> nested in <em> is the heavier italic (rule below). Size step is desktop-only too. */
	--move-strong-weight: var(--move-font-weight-light, 300);
	/* Not italic as a whole: Figma keeps the roman face and uses Rosario italic
	   only on emphasised phrases — the sitewide em/i rule already delivers that. */
	font-style: normal;
}
/* Bold inside italic is the quote's heaviest run (Rosario Bold Italic). Written
   both nesting orders because TinyMCE nests whichever the editor pressed first. */
.move-credibility-quote__text :is(em, i) :is(strong, b),
.move-credibility-quote__text :is(strong, b) :is(em, i) {
	font-weight: var(--move-font-weight-bold, 700);
	font-size: inherit;
}

.move-credibility-quote__text p {
	margin: 0;
}
.move-credibility-quote__text p + p {
	margin-top: 1em;
}
.move-credibility-quote__text a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}
.move-credibility-quote__text a:focus-visible {
	outline: 2px solid var(--move-credibility-text);
	outline-offset: 2px;
}

@container move-credibility-quote (min-width: 768px) {
	.move-credibility-quote__text {
		font-size: var(--move-credibility-font-text-lg);
		/* Absolute -1px: Figma binds this to the letter-spacing/tight pixel variable, vs. -0.38px for the proportional em step. */
		letter-spacing: -1px;
		/* 40px against the 38px roman — the design's one-step emphasis lift. */
		--move-em-size: 2.5rem; /* 40px */
		--move-strong-size: 2.5rem; /* roman lift sits at the same 40px */
		/* -1px absolute is a desktop measurement (0.042em at this 40px size);
		   scoped here, not the mobile base, per the same rule the main text's
		   letter-spacing above already follows. */
		--move-strong-tracking: -1px;
	}
}

/* Fallback for before Swiper initialises, or if its script fails to load —
   same reasoning as move-study-carousel.css: keep every quote reachable via
   native horizontal scroll rather than clipped by .swiper's overflow:hidden. */
.move-credibility-quote__swiper:not(.swiper-initialized) {
	overflow-x: auto;
	display: flex;
}
.move-credibility-quote__swiper:not(.swiper-initialized) .move-credibility-quote__text {
	min-width: 100%;
	flex-shrink: 0;
}

.move-credibility-quote__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: var(--move-space-md, 1.5rem);
}

.move-credibility-quote__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	min-width: var(--move-target-min, 24px);
	min-height: var(--move-target-min, 24px);
	border-radius: 50%;
	border: var(--move-border-width, 1px) solid var(--move-credibility-text);
	background: transparent;
	color: var(--move-credibility-text);
	cursor: pointer;
	font-size: var(--move-font-size-xs, 0.75rem);
}
/* The FA icon has no font-size to inherit like the ‹ › glyphs it replaced —
   sized directly instead, matching the same value. */
.move-credibility-quote__arrow svg {
	width: var(--move-font-size-xs, 0.75rem);
	height: var(--move-font-size-xs, 0.75rem);
}
/* Swiper sets this when there is nowhere further to go — unreachable in
   loop mode (every arrow always has somewhere to go), kept for parity with
   the Study Carousel and as a defensive fallback. */
.move-credibility-quote__arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}
.move-credibility-quote__arrow:hover {
	border-color: var(--move-credibility-accent);
	color: var(--move-credibility-accent);
}
.move-credibility-quote__arrow:focus-visible {
	outline: 2px solid var(--move-credibility-accent);
	outline-offset: 2px;
}

.move-credibility-quote__counter {
	font-variant-numeric: tabular-nums;
	font-size: var(--move-font-size-xs, 0.75rem);
	color: var(--move-credibility-text);
	min-width: 3em;
}
