/* ---------- Partner Insights slider ---------- */
.mcdp-insights {
	position: relative;
}
body .wp-block-post-content > .mcdp-insights {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
.mcdp-insights__controls {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	/* Above the rail's transparent activation strip; visible labels sit higher. */
	pointer-events: none;
	z-index: 95;
}
.mcdp-insights__controls > * {
	pointer-events: auto;
}
.mcdp-insights__arrow {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-accent, #e0effa);
	border: 1px solid #d2d8dd;
	color: #33475a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	font-family: inherit;
	padding: 0 0 3px;
}
.mcdp-insights__arrow:hover {
	background: #cfe6f7;
	transform: translateY(-2px);
}
.mcdp-insights__arrow:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-alt, #6fb0e0);
	outline-offset: 3px;
}
.mcdp-insights__dots {
	display: flex;
	align-items: center;
	gap: 14px;
}
.mcdp-insights__dots button {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: #d5dde3;
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
}
.mcdp-insights__dots button::before {
	content: "";
	position: absolute;
	top: -7px;
	right: -7px;
	bottom: -7px;
	left: -7px;
}
.mcdp-insights__dots button[aria-current="true"] {
	background: var(--wp--preset--color--eyebrow, #2c6396);
	width: 26px;
	/* active dot stretches to pill (Figma motion note) */
}
.mcdp-insights__viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y pinch-zoom;
	overscroll-behavior-x: contain;
	cursor: grab;
}
.mcdp-insights__track {
	display: flex;
	align-items: stretch;
	/* The script animates one slide, then normalizes the loop at rest. */
}
.mcdp-insights__viewport.is-swiping {
	cursor: grabbing;
}
.mcdp-insights__viewport.is-swiping,
.mcdp-insights__viewport.is-swiping * {
	-webkit-user-select: none;
	user-select: none;
}
.mcdp-insights__viewport img {
	-webkit-user-drag: none;
}
.mcdp-insights__track > .mcdp-insights__slide {
	flex: 0 0 100%;
	min-width: 100%;
	margin: 0;
}
/* The Partner Insights block is server-rendered, so its core Columns assets may
 * not be discovered by WordPress' on-demand block-style loader. Keep the
 * component's layout self-contained instead of relying on wp-block-columns.css. */
.mcdp-insights__slide {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 32px;
}
.mcdp-insights__slide > .wp-block-column {
	min-width: 0;
	margin-block-start: 0;
}
/* photo card: 489x686 portrait, scrim, play affordance */
.mcdp-insights__media {
	position: relative;
}
.mcdp-insights__media .wp-block-image,
.mcdp-insights__media .wp-block-image img {
	display: block;
	width: 100%;
	margin: 0;
}
.mcdp-insights__media .wp-block-image img {
	aspect-ratio: 489 / 686;
	object-fit: cover;
	object-position: center top;
	border-radius: 14px;
}
/* The figure matches the portrait exactly, so it can clip an editor-zoomed portrait. */
.mcdp-insights__media .wp-block-image {
	overflow: hidden;
	border-radius: 14px;
}
.mcdp-insights__media .wp-block-image::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(12, 29, 42, 0.1) 0%, rgba(12, 29, 42, 0.45) 100%);
	pointer-events: none;
}
.mcdp-insights blockquote {
	border: 0;
	padding: 0;
	margin-left: 0;
	background: none;
}
.mcdp-insights__quote-mark {
	display: block;
	width: 35px;
	height: 78px;
	padding-top: 4px;
	box-sizing: border-box;
	pointer-events: none;
}
.mcdp-insights__quote-mark img {
	display: block;
}
.mcdp-insights__quote-mark + p {
	margin-block: 32px 0;
}
@media (max-width: 599px) {
	.mcdp-insights__quote-mark {
		height: 48px;
	}
	.mcdp-insights__quote-mark + p {
		margin-top: 16px;
	}
}
.mcdp-insights__quote-reveal {
	color: #1e3040;
}
.mcdp-insights__word {
	color: #1e3040;
	opacity: calc(0.3 + (var(--word-progress, 0) * 0.7));
	/* Smoothing comes from the shared scroll playhead, without a second lag. */
}
@media (prefers-reduced-motion: reduce) {
	.mcdp-insights__word {
		opacity: 1;
		transition: none;
	}
}
body .wp-block-post-content > .mcdp-insights {
	padding-top: var(--mcdp-section-space);
	--mcdp-inline-padding-top: var(--mcdp-section-space);
}
@media (min-width: 1024px) {
	body .wp-block-post-content > .mcdp-insights {
		display: block !important;
		min-height: 0 !important;
		padding-bottom: 32px !important;
	}
	body .wp-block-post-content > .mcdp-insights > .mcdp-insights__viewport {
		width: 1248px;
		max-width: 100%;
	}
	.mcdp-insights > p:first-of-type,
	.mcdp-insights > h2,
	.mcdp-insights > hr {
		margin-block: 0;
	}
	.mcdp-insights > h2,
	.mcdp-insights > hr {
		margin-block-start: 16px;
	}
	.mcdp-insights > .mcdp-insights__viewport {
		margin-block-start: 24px;
	}
	.mcdp-insights__slide > .wp-block-column:first-child {
		/* Approximately 80% of Figma's 489px card. Size to page width so
		 * short viewports never turn the video into a narrow thumbnail. */
		flex: 0 0 max(320px, min(32vw, 392px));
		--mcdp-inline-flex-basis: max(320px, min(32vw, 392px));
	}
	.mcdp-insights__slide > .wp-block-column:last-child {
		min-width: 0;
	}
	.mcdp-insights__slide blockquote p {
		font-size: max(23px, min(2vw, 28px));
		--mcdp-inline-font-size: max(23px, min(2vw, 28px));
		line-height: 1.5;
	}
	.mcdp-insights__controls {
		margin-block-start: 16px;
	}
}
@media (max-width: 1199px) {
	body .wp-block-post-content > .mcdp-insights {
		width: 100%;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}
}
@media (max-width: 599px) {
	body .wp-block-post-content > .mcdp-insights {
		display: flex;
		gap: 28px;
		padding: 64px 20px !important;
		--mcdp-inline-padding-right: 20px;
	}
}
@media (max-width: 1023px) {
	.mcdp-insights__controls {
		position: static;
		justify-content: center;
		margin-top: 24px;
		order: 99;
	}
	.mcdp-insights__slide blockquote p {
		font-size: 22px;
		--mcdp-inline-font-size: 22px;
	}
}
@media (max-width: 599px) {
	.mcdp-insights__slide blockquote p {
		font-size: 20px !important;
		line-height: 1.5;
	}
}
/* play affordance (added by JS when a slide's image links to a video) */
.mcdp-play-btn {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	background: none;
	border: 0;
	cursor: pointer;
	color: #fff;
	z-index: 2;
}
.mcdp-play-btn__circle {
	width: clamp(60px, 7vw, 84px);
	height: clamp(60px, 7vw, 84px);
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	background: rgba(12, 29, 42, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background-color 0.2s ease;
	backdrop-filter: blur(2px);
	box-shadow: 0 10px 30px rgba(5, 15, 24, 0.35);
}
/* Keep the whole portrait clickable while placing the controls below faces. */
.mcdp-play-btn__content {
	position: absolute;
	top: 58%;
	right: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.mcdp-play-btn:hover .mcdp-play-btn__circle {
	transform: scale(1.06);
	background: rgba(12, 29, 42, 0.55);
}
.mcdp-play-btn__circle::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent #fff;
	margin-left: 6px;
}
.mcdp-play-btn__label {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.4px;
	text-shadow: 0 2px 12px rgba(5, 15, 24, 0.6);
}
.mcdp-play-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-alt, #6fb0e0);
	outline-offset: -4px;
	border-radius: 14px;
}

.mcdp-insights__slide > .wp-block-column:last-child { flex: 1 1 0; }
.mcdp-insights__slide blockquote { margin-block: 0 24px; }

@media (min-width: 1024px) and (max-height: 800px) {
 .mcdp-insights__slide blockquote p { font-size: 24px !important; }
}

@media (max-width: 1023px) {
.mcdp-insights {
		display: flex;
		flex-direction: column;
	}

.mcdp-insights > * {
		width: 100%;
	}

.mcdp-insights__controls {
		order: 99;
		justify-content: flex-start;
	}
}
@media (max-width: 599px) {
.mcdp-insights__controls {
		justify-content: center;
	}
}
@media (min-width: 600px) and (max-width: 1023px) {
.mcdp-insights__slide {
		display: flex;
		flex-wrap: nowrap;
		gap: 24px;
	}

.mcdp-insights__slide > .wp-block-column:first-child {
		flex: 0 0 40%;
		--mcdp-inline-flex-basis: 40%;
	}

.mcdp-insights__slide > .wp-block-column:last-child {
		flex: 1 1 60%;
		min-width: 0;
	}
}
@media (max-width: 599px) {
.mcdp-insights__slide > .wp-block-column:last-child {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
	}

.mcdp-insights__slide {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

.mcdp-insights .wp-block-columns.mcdp-insights__slide > .wp-block-column {
		flex: 0 0 auto !important;
		flex-basis: auto !important;
		--mcdp-inline-flex-basis: auto;
		width: 100%;
	}

.mcdp-insights__slide > .wp-block-column:last-child > * {
		width: 100%;
		margin: 0;
	}
}

.mcdp-insights,
.mcdp-insights__viewport,
.mcdp-insights__track,
.mcdp-insights__slide {
	min-width: 0;
	max-width: 100%;
}
@media (max-width: 599px) {
.mcdp-insights__controls { gap: 8px; }

.mcdp-insights__dots { gap: 8px; }

.mcdp-insights__arrow { width: 40px; height: 40px; flex-shrink: 0; }

.mcdp-insights__slide blockquote {
		width: 100%;
		margin: 0;
	}
}

.mcdp-insights {
	overflow-x: clip;
}

body .wp-block-post-content > .mcdp-insights > .mcdp-insights__viewport {
	width: min(1248px, calc(100vw - 64px)) !important;
}
@media (max-width: 1199px) {
body .wp-block-post-content > .mcdp-insights > .mcdp-insights__viewport {
		width: 100% !important;
		max-width: none;
	}
}
@media (max-width: 599px) {
body .wp-block-post-content > .mcdp-insights > p:first-of-type,
	body .wp-block-post-content > .mcdp-insights > h2,
	body .wp-block-post-content > .mcdp-insights > hr,
	body .wp-block-post-content > .mcdp-insights > .mcdp-insights__viewport,
	body .wp-block-post-content > .mcdp-insights > .mcdp-insights__controls {
		width: 100%;
		max-width: none;
		margin: 0 !important;
	}

body .wp-block-post-content > .mcdp-insights > hr {
		width: 64px;
	}

body .wp-block-post-content > .mcdp-insights > p:first-of-type {
		font-size: 15px;
		line-height: 1.2;
	}

body .wp-block-post-content > .mcdp-insights > h2 {
		font-size: 30px;
		line-height: 1.18;
		letter-spacing: -.3px;
	}
}
