/* "How the MRT works" step-through (steps.js). Theme-independent: uses the
   active theme's colour tokens when it has them. */
.wp-block-video.sgr-steps.is-stepper {
	position: relative;
	container-type: inline-size;
	container-name: mrt-steps;
}
.wp-block-video.sgr-steps.is-stepper video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1280 / 686;
	background: #fff;
}

/* Buttons over the arrows drawn in the animation (◀ at 81.1%, ▶ at 87.1%
   across, 92.9% down). Shown when the arrows are big enough to tap. */
.sgr-steps__hotspot {
	position: absolute;
	top: 0;
	width: 4.6%;
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	translate: -50% -50%;
	display: none;
}
.sgr-steps__hotspot--previous { left: 81.1%; }
.sgr-steps__hotspot--next { left: 87.1%; }
.sgr-steps__hotspot:focus-visible {
	outline: 3px solid var(--blueberry, #2E5597);
	outline-offset: 2px;
}

/* A visible control bar where the drawn arrows would be too small to tap. */
.sgr-steps__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}
.sgr-steps__bar-button {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--line-strong, #C6D3E8);
	border-radius: var(--radius-pill, 999px);
	background: var(--white, #fff);
	color: var(--blueberry, #2E5597);
	cursor: pointer;
	touch-action: manipulation;
}
.sgr-steps__bar-button[hidden] { display: grid; visibility: hidden; }
.sgr-steps__bar-button:focus-visible {
	outline: 3px solid var(--blueberry, #2E5597);
	outline-offset: 2px;
}
.sgr-steps__label {
	min-width: 6.5em;
	text-align: center;
	color: var(--text, #3D4F6E);
	font-weight: 600;
}

@container mrt-steps (width >= 40rem) {
	.sgr-steps__hotspot {
		/* 92.9% down the video: the figure is as tall as the video here. */
		top: calc(100cqw * 686 / 1280 * 0.929);
		display: block;
	}
	.sgr-steps__hotspot[hidden] { display: none; }
	.sgr-steps__bar { display: none; }
}

.sgr-steps__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
