/**
 * Pause / play controls for auto-moving content (WCAG 2.2.2 Pause, Stop, Hide).
 *
 * The buttons are injected by assets/js/app.js next to each moving region, so
 * they only ever appear when the motion they control is actually running.
 * They are painted as a solid light pill rather than inheriting the section's
 * colours, because the same control sits on light sections (bank logos,
 * "Featured in") and on the black awards section.
 */

.motion-controls {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

/* Sits under left-aligned copy rather than under the content it controls. */
.motion-controls--start {
	justify-content: flex-start;
}

.motion-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 14px;
	border: 1px solid rgba(3, 5, 37, 0.25);
	border-radius: 999px;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(6, 14, 33, 0.08);
	color: #030525;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease-out, color 0.2s ease-out,
		border-color 0.2s ease-out;
}

.motion-toggle:hover {
	border-color: #030525;
	background-color: #030525;
	color: #fff;
}

/* Focus ring lives in assets/css/focus-indicator.css. */

.motion-toggle__icon {
	display: inline-flex;
}

.motion-toggle__icon svg {
	display: block;
}

/* The hero animation only runs from the medium breakpoint up. */
.motion-controls--desktop,
.motion-toggle--desktop {
	display: none;
}

/* The bank logo marquees only run at the desktop breakpoint. */
.motion-controls--wide,
.motion-toggle--wide {
	display: none;
}

@media (min-width: 1200px) {
	.motion-controls--wide {
		display: flex;
	}

	.motion-toggle--wide {
		display: inline-flex;
	}
}

@media (min-width: 768px) {
	.motion-controls--desktop {
		display: flex;
	}

	.motion-toggle--desktop {
		display: inline-flex;
	}

	/* The "Featured in" marquee only auto-scrolls below this breakpoint. */
	.motion-controls--mobile,
	.motion-toggle--mobile {
		display: none;
	}
}
