/*!
 * Client Logo Slider — frontend.
 *
 * Every rule here is static and cached once site-wide. A slider adds only custom
 * properties (see Frontend\StyleBuilder), which is the one mechanism that makes a
 * value both per-instance and per-breakpoint without a rule set per slider.
 *
 * Base resets sit inside :where() so a site's own CSS overrides them with a plain
 * class and never needs !important. There is no !important in this file.
 */

:where(.cls-slider) {
	/* Fallbacks, so the component is presentable before any instance CSS loads. */
	--cls-cols: 4;
	--cls-rows: 2;
	--cls-pages: 1;
	--cls-index: 0;
	--cls-gap-x: 24px;
	--cls-gap-y: 24px;
	--cls-cell-h: 90px;
	--cls-cell-pad: 8px;
	--cls-name-h: 0px; /* room under each logo for its name, see "names" */
	--cls-max-w: 1200px;
	--cls-fit: contain;
	--cls-opacity: 1;
	--cls-opacity-h: 1;
	--cls-gray: 0;
	--cls-gray-h: 0;
	--cls-scale-h: 1;
	--cls-fx: 200ms;
	--cls-duration: 450ms;
	--cls-ease: cubic-bezier(.22, .61, .36, 1);

	--cls-nav-size: 44px;
	--cls-nav-icon: 20px;
	--cls-nav-stroke: 2;
	--cls-nav-radius: 50%;
	--cls-nav-offset: 10px;
	--cls-nav-color: #1f2328;
	--cls-nav-bg: #ffffff;
	--cls-nav-border: #e6e6e6;
	--cls-nav-color-h: #ffffff;
	--cls-nav-bg-h: #1f2328;

	--cls-dot-size: 8px;
	--cls-dot-active-w: 22px;
	--cls-dot-gap: 8px;
	--cls-dot-margin: 22px;
	--cls-dot-radius: 999px;
	--cls-dot-color: #d3d7dc;
	--cls-dot-active: #1f2328;
	--cls-dot-hover: #b0b7bf;

	box-sizing: border-box;
	position: relative;
	inline-size: 100%;
	max-inline-size: var(--cls-max-w);
	margin-inline: auto;
}

:where(.cls-slider) *,
:where(.cls-slider) *::before,
:where(.cls-slider) *::after {
	box-sizing: border-box;
}

.cls-slider--align-left { margin-inline: 0 auto; }
.cls-slider--align-right { margin-inline: auto 0; }

/* ------------------------------------------------------------------ viewport */

.cls-slider__viewport {
	overflow: hidden;
}

/*
 * Pages are exactly one viewport wide with no gap between them. The track box
 * itself is one viewport wide too (the pages overflow it rather than widen it),
 * and a translate percentage is of the element's own width, so one step is
 * exactly -100%: a whole page, never a fraction of one. Navigating writes one
 * custom property and reads nothing — no measurement, no layout thrash, no
 * resize handler.
 */
.cls-slider__track {
	display: flex;
	will-change: transform;
	transition: transform var(--cls-duration) var(--cls-ease);
	transform: translateX(calc(var(--cls-index) * -100%));
}

[dir="rtl"] .cls-slider__track {
	transform: translateX(calc(var(--cls-index) * 100%));
}

/*
 * A jump of more than one page is placed, not slid: the script turns the
 * transition off for one frame, then fades the viewport in, so the pages in
 * between never sweep past.
 */
.cls-is-placing .cls-slider__track {
	transition: none;
}

.cls-slider__viewport.cls-is-fading {
	animation: cls-fade-in var(--cls-duration) var(--cls-ease) both;
}

@keyframes cls-fade-in {
	from {
		opacity: 0;
	}
}

/*
 * Wrapping flex rather than a grid, so a short last row (the end of the last
 * page, or a small industry) sits centred instead of hugging the left edge.
 * Each cell is exactly one column wide, so full rows look the same either way.
 */
.cls-slider__page {
	flex: 0 0 100%;
	min-inline-size: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: flex-start;
	column-gap: var(--cls-gap-x);
	row-gap: var(--cls-gap-y);
}

.cls-slider__page > * {
	flex: 0 0 calc((100% - (var(--cls-cols) - 1) * var(--cls-gap-x)) / var(--cls-cols));
	min-inline-size: 0;
}

/* ---------------------------------------------------------------------- cell */

.cls-slider__cell {
	block-size: calc(var(--cls-cell-h) + var(--cls-name-h));
	padding: var(--cls-cell-pad);
	display: flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 0;
}

.cls-slider__link {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	block-size: 100%;
	color: inherit; /* the client name, when shown, is text, not a link colour */
	text-decoration: none;
}

.cls-slider__img {
	max-inline-size: 100%;
	max-block-size: 100%;
	inline-size: auto;
	block-size: auto;
	object-fit: var(--cls-fit);
	display: block;
	opacity: var(--cls-opacity);
	filter: grayscale(var(--cls-gray));
	transition:
		opacity var(--cls-fx) ease,
		filter var(--cls-fx) ease,
		transform var(--cls-fx) ease;
}

.cls-slider__cell:hover .cls-slider__img,
.cls-slider__link:focus-visible .cls-slider__img {
	opacity: var(--cls-opacity-h);
	filter: grayscale(var(--cls-gray-h));
	transform: scale(var(--cls-scale-h));
}

.cls-slider__link:focus-visible {
	outline: 2px solid var(--cls-nav-bg-h);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ controls */

.cls-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-block-start: var(--cls-dot-margin);
}

/*
 * Themes routinely style every bare <button> — Divi, Salient and Astra all do —
 * so each property is neutralised explicitly rather than hoping for the best.
 */
:where(.cls-slider) button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	line-height: 1;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
	min-block-size: 0;
	block-size: auto;
	box-shadow: none;
	border-radius: 0;
	cursor: pointer;
}

.cls-slider__nav {
	flex: none;
	inline-size: var(--cls-nav-size);
	block-size: var(--cls-nav-size);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cls-nav-color);
	background: var(--cls-nav-bg);
	border: 1px solid var(--cls-nav-border);
	border-radius: var(--cls-nav-radius);
	transition:
		color var(--cls-fx) ease,
		background-color var(--cls-fx) ease,
		border-color var(--cls-fx) ease,
		opacity var(--cls-fx) ease;
}

.cls-slider__nav:hover {
	color: var(--cls-nav-color-h);
	background: var(--cls-nav-bg-h);
	border-color: var(--cls-nav-bg-h);
}

.cls-slider__nav:focus-visible,
.cls-slider__dot:focus-visible,
.cls-slider__pause:focus-visible {
	outline: 2px solid var(--cls-nav-bg-h);
	outline-offset: 2px;
}

.cls-slider__nav[aria-disabled="true"] {
	opacity: .35;
	cursor: default;
}

.cls-slider__nav[aria-disabled="true"]:hover {
	color: var(--cls-nav-color);
	background: var(--cls-nav-bg);
	border-color: var(--cls-nav-border);
}

.cls-slider__icon {
	inline-size: var(--cls-nav-icon);
	block-size: var(--cls-nav-icon);
	display: block;
}

[dir="rtl"] .cls-slider__icon {
	transform: scaleX(-1);
}

/* Arrows beside the grid rather than under it. */
.cls-slider--nav-outside .cls-slider__viewport,
.cls-slider--nav-inside .cls-slider__viewport {
	margin-inline: 0;
}

.cls-slider--nav-outside {
	padding-inline: calc(var(--cls-nav-size) + var(--cls-nav-offset));
}

.cls-slider--nav-outside .cls-slider__nav,
.cls-slider--nav-inside .cls-slider__nav {
	position: absolute;
	inset-block-start: calc(
		(var(--cls-rows) * (var(--cls-cell-h) + var(--cls-name-h)) + (var(--cls-rows) - 1) * var(--cls-gap-y)) / 2
	);
	transform: translateY(-50%);
	z-index: 2;
}

.cls-slider--nav-outside .cls-slider__nav--prev { inset-inline-start: 0; }
.cls-slider--nav-outside .cls-slider__nav--next { inset-inline-end: 0; }
.cls-slider--nav-inside .cls-slider__nav--prev { inset-inline-start: var(--cls-nav-offset); }
.cls-slider--nav-inside .cls-slider__nav--next { inset-inline-end: var(--cls-nav-offset); }

/* Dots above the logos push them down by one row of dots. */
.cls-slider--dots-above.cls-slider--nav-outside .cls-slider__nav,
.cls-slider--dots-above.cls-slider--nav-inside .cls-slider__nav {
	inset-block-start: calc(
		var(--cls-dot-size) + var(--cls-dot-margin)
		+ (var(--cls-rows) * (var(--cls-cell-h) + var(--cls-name-h)) + (var(--cls-rows) - 1) * var(--cls-gap-y)) / 2
	);
}

/* --------------------------------------------------------------------- dots */

.cls-slider__dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--cls-dot-gap);
}

/* A showcase hides its controls while the chosen industry fits on one page. */
.cls-slider__controls[hidden],
.cls-slider__dots[hidden] {
	display: none;
}

.cls-slider--dots-above .cls-slider__dots {
	margin-block-end: var(--cls-dot-margin);
}

.cls-slider__dot {
	position: relative;
	inline-size: var(--cls-dot-size);
	block-size: var(--cls-dot-size);
	border-radius: var(--cls-dot-radius);
	background: var(--cls-dot-color);
	transition:
		background-color var(--cls-fx) ease,
		inline-size var(--cls-fx) ease;
}

/*
 * The dots are the fallback control — and the only one on mobile when the arrows
 * are hidden — so they carry a 26px hit area regardless of how small they look.
 * WCAG 2.5.8 asks for 24.
 */
.cls-slider__dot::after {
	content: "";
	position: absolute;
	inset: 50% 50%;
	inline-size: 26px;
	block-size: 26px;
	transform: translate(-50%, -50%);
}

.cls-slider__dot:hover {
	background: var(--cls-dot-hover);
}

.cls-slider__dot[aria-current="true"] {
	background: var(--cls-dot-active);
	inline-size: var(--cls-dot-active-w);
}

/* -------------------------------------------------------------- pause button */

.cls-slider__pause {
	flex: none;
	inline-size: var(--cls-nav-size);
	block-size: var(--cls-nav-size);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cls-nav-color);
	border-radius: var(--cls-nav-radius);
}

.cls-slider__pause-icon {
	inline-size: 10px;
	block-size: 12px;
	border-inline: 3px solid currentColor;
}

.cls-slider__pause[data-cls-playing="false"] .cls-slider__pause-icon {
	inline-size: 0;
	block-size: 0;
	border: 6px solid transparent;
	border-inline-start: 10px solid currentColor;
}

/* ------------------------------------------------------------------- status */

.cls-slider__status {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cls-slider__notice {
	padding: 12px 16px;
	border: 1px dashed currentColor;
	opacity: .7;
	font-size: .9em;
}

/* ------------------------------------------------------------------ showcase */

/*
 * Pages of logos with an industry filter above them. The paging is the
 * slider's own (viewport, track, pages, arrows, dots), and so are the cell,
 * image and hover rules and the custom properties, so every tab means the same
 * thing in both modes.
 */
:where(.cls-showcase) {
	--cls-filter-accent: #1f2328;
	--cls-filter-accent-text: #ffffff;
	--cls-card-bg: #ffffff;
	--cls-card-border: #e6e8eb;
	--cls-filter-line: rgba(31, 35, 40, .16);

	/* What cards add around each cell, and the room kept for their shadow. */
	--cls-card-extra: 0px;
	--cls-page-pad-t: 0px;
	--cls-page-pad-b: 0px;
	--cls-page-h: calc(
		var(--cls-rows) * (var(--cls-cell-h) + var(--cls-card-extra) + var(--cls-name-h))
		+ (var(--cls-rows) - 1) * var(--cls-gap-y)
	);
}

.cls-showcase--cards {
	--cls-card-extra: 28px;
	--cls-page-pad-t: 4px;
	--cls-page-pad-b: 16px;
}

.cls-showcase__filters {
	display: grid;
	gap: 18px;
	justify-items: center;
	margin-block-end: 18px;
}

.cls-showcase__buttons {
	display: grid;
	gap: 14px;
	justify-items: center;
	max-inline-size: 100%;
}

.cls-showcase__sectors,
.cls-showcase__subs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-inline-size: 100%;
}

.cls-showcase__subs[hidden] {
	display: none;
}

/* Shared by both looks: layout, type and motion. */
.cls-showcase .cls-showcase__tab,
.cls-showcase .cls-showcase__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	white-space: nowrap;
	background: transparent;
	color: inherit;
	font-weight: 600;
	line-height: 1.2;
	transition:
		color var(--cls-fx) ease,
		background-color var(--cls-fx) ease,
		border-color var(--cls-fx) ease,
		box-shadow var(--cls-fx) ease;
}

.cls-showcase__tab:focus-visible,
.cls-showcase__chip:focus-visible {
	outline: 2px solid var(--cls-filter-accent);
	outline-offset: 2px;
}

/* ---- Look: pills */

.cls-showcase--look-pills .cls-showcase__tab,
.cls-showcase--look-pills .cls-showcase__chip {
	border: 1px solid var(--cls-filter-line);
	border-radius: 999px;
}

.cls-showcase--look-pills .cls-showcase__tab {
	min-block-size: 44px;
	padding: 10px 20px;
	font-size: 15px;
}

.cls-showcase--look-pills .cls-showcase__chip {
	min-block-size: 36px;
	padding: 7px 15px;
	font-size: 14px;
	font-weight: 500;
}

.cls-showcase--look-pills .cls-showcase__tab:hover,
.cls-showcase--look-pills .cls-showcase__chip:hover {
	border-color: var(--cls-filter-accent);
}

.cls-showcase--look-pills .cls-showcase__tab[aria-pressed="true"] {
	background: var(--cls-filter-accent);
	border-color: var(--cls-filter-accent);
	color: var(--cls-filter-accent-text);
}

/* The second row is quieter than the first: an outline, not a fill. */
.cls-showcase--look-pills .cls-showcase__chip[aria-pressed="true"] {
	border-color: var(--cls-filter-accent);
	box-shadow: inset 0 0 0 1px var(--cls-filter-accent);
	font-weight: 600;
}

/* ---- Look: tabs. Text on a hairline, the selected one underlined in the accent. */

.cls-showcase--look-tabs .cls-showcase__sectors {
	gap: 0 28px;
	border-block-end: 1px solid var(--cls-filter-line);
}

.cls-showcase--look-tabs .cls-showcase__tab {
	min-block-size: 44px;
	margin-block-end: -1px;
	padding: 12px 2px;
	border: 0;
	border-block-end: 2px solid transparent;
	border-radius: 0;
	font-size: 15px;
	font-weight: 500;
	opacity: .72;
}

.cls-showcase--look-tabs .cls-showcase__tab:hover {
	opacity: 1;
}

.cls-showcase--look-tabs .cls-showcase__tab[aria-pressed="true"] {
	border-block-end-color: var(--cls-filter-accent);
	color: var(--cls-filter-accent);
	font-weight: 600;
	opacity: 1;
}

.cls-showcase--look-tabs .cls-showcase__subs {
	gap: 4px 20px;
}

.cls-showcase--look-tabs .cls-showcase__chip {
	min-block-size: 32px;
	padding: 6px 2px;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	font-weight: 500;
	opacity: .65;
}

.cls-showcase--look-tabs .cls-showcase__chip:hover {
	opacity: 1;
}

.cls-showcase--look-tabs .cls-showcase__chip[aria-pressed="true"] {
	color: var(--cls-filter-accent);
	font-weight: 600;
	opacity: 1;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

/* ---- Dropdowns */

/*
 * One line, left to right: each label beside its dropdown, and the result
 * count (moved into this row by the template) pushed to the far end.
 */
.cls-showcase__dropdowns {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 12px 28px;
	inline-size: 100%;
	max-inline-size: 100%;
}

.cls-showcase__field {
	display: flex;
	align-items: center;
	gap: 12px;
	max-inline-size: 100%;
	margin: 0;
}

.cls-showcase__label {
	flex: none;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .65;
}

.cls-showcase__select {
	position: relative;
	display: block;
	inline-size: 260px;
	max-inline-size: 100%;
}

.cls-showcase .cls-showcase__dropdowns .cls-showcase__status {
	margin: 0 0 0 auto;
	text-align: end;
}

.cls-showcase__select[hidden] {
	display: none;
}

/* Themes style bare selects heavily, so each property is set, not assumed. */
.cls-showcase .cls-showcase__select select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	inline-size: 100%;
	block-size: 46px;
	margin: 0;
	padding: 0 42px 0 14px;
	border: 1px solid var(--cls-filter-line);
	border-radius: 6px;
	background: var(--cls-card-bg);
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color var(--cls-fx) ease;
}

.cls-showcase--look-tabs .cls-showcase__select select {
	border-radius: 0;
}

.cls-showcase .cls-showcase__select select:hover {
	border-color: var(--cls-filter-accent);
}

.cls-showcase .cls-showcase__select select:focus-visible {
	outline: 2px solid var(--cls-filter-accent);
	outline-offset: 1px;
}

.cls-showcase .cls-showcase__select select:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.cls-showcase__chevron {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 14px;
	inline-size: 18px;
	block-size: 18px;
	transform: translateY(-50%);
	pointer-events: none;
	opacity: .7;
}

/*
 * Controls rendered only for phones stay out of the way on wider screens: the
 * whole dropdown row in the buttons style, the sector dropdown in the combo.
 */
.cls-showcase--style-buttons .cls-showcase__dropdowns,
.cls-showcase--style-combo .cls-showcase__field--sector {
	display: none;
}

.cls-showcase__num {
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	opacity: .6;
}

/*
 * Items and paragraphs are scoped under .cls-showcase on purpose. Themes style
 * every paragraph in page content with selectors like ".entry-content p"
 * (Divi, Astra and most others), which outrank a single class and would bring
 * back margins and bottom padding.
 */
.cls-showcase .cls-showcase__status {
	padding: 0;
	margin: 0 0 22px;
	text-align: center;
	font-size: 14px;
	opacity: .7;
}

.cls-showcase__status:empty {
	display: none;
}

/*
 * The arrows are placed against the logos, not the whole showcase, so the
 * stage holds them and, when they sit outside, the side padding they need.
 * The filters above keep the full width.
 */
.cls-slider__stage {
	position: relative;
}

.cls-showcase.cls-slider--nav-outside {
	padding-inline: 0;
}

.cls-showcase.cls-slider--nav-outside .cls-slider__stage {
	padding-inline: calc(var(--cls-nav-size) + var(--cls-nav-offset));
}

.cls-showcase.cls-slider--nav-outside .cls-slider__nav,
.cls-showcase.cls-slider--nav-inside .cls-slider__nav {
	inset-block-start: calc(var(--cls-page-pad-t) + var(--cls-page-h) / 2);
}

.cls-showcase.cls-slider--dots-above.cls-slider--nav-outside .cls-slider__nav,
.cls-showcase.cls-slider--dots-above.cls-slider--nav-inside .cls-slider__nav {
	inset-block-start: calc(var(--cls-dot-size) + var(--cls-dot-margin) + var(--cls-page-pad-t) + var(--cls-page-h) / 2);
}

/*
 * Always a full page tall, so the arrows, dots and everything below the
 * showcase stay put while visitors switch between large and small industries.
 */
.cls-showcase .cls-slider__viewport {
	position: relative;
	min-block-size: calc(var(--cls-page-h) + var(--cls-page-pad-t) + var(--cls-page-pad-b));
}

/* Room inside the clipped viewport for the cards' border and hover shadow. */
.cls-showcase .cls-slider__page {
	padding-block: var(--cls-page-pad-t) var(--cls-page-pad-b);
}

.cls-showcase--cards .cls-slider__page {
	padding-inline: 4px;
}

.cls-showcase .cls-showcase__item {
	margin: 0;
	padding: 0;
	min-inline-size: 0;
}

.cls-showcase__pool,
.cls-showcase__pool[hidden] {
	display: none;
}

.cls-showcase--cards .cls-slider__cell {
	block-size: calc(var(--cls-cell-h) + var(--cls-card-extra) + var(--cls-name-h));
	padding: calc(var(--cls-cell-pad) + var(--cls-card-extra) / 2);
	background: var(--cls-card-bg);
	border: 1px solid var(--cls-card-border);
	border-radius: 10px;
	transition:
		border-color var(--cls-fx) ease,
		box-shadow var(--cls-fx) ease;
}

.cls-showcase--cards .cls-slider__cell:hover {
	box-shadow: 0 4px 12px rgba(16, 24, 40, .08);
}

.cls-showcase .cls-slider__link {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	block-size: 100%;
}

.cls-showcase__item.is-entering {
	animation: cls-showcase-in 360ms var(--cls-ease) both;
	animation-delay: calc(var(--cls-i, 0) * 16ms);
}

@keyframes cls-showcase-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(.98);
	}
}

.cls-showcase .cls-showcase__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0;
	margin: 0;
	text-align: center;
	opacity: .7;
}

.cls-showcase__empty[hidden] {
	display: none;
}

/* Before the script runs the buttons cannot do anything, so they hold their
   space without inviting a click. The first page is visible regardless. */
.cls-showcase:not([data-cls-ready]) .cls-showcase__filters {
	visibility: hidden;
}

@media (max-width: 782px) {
	/*
	 * One scrolling row per level instead of a wall of wrapped buttons, which on
	 * a phone could push the logos below the fold entirely.
	 */
	.cls-showcase__filters {
		justify-items: stretch;
	}

	.cls-showcase__sectors,
	.cls-showcase__subs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding: 2px;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
	}

	.cls-showcase__sectors::-webkit-scrollbar,
	.cls-showcase__subs::-webkit-scrollbar {
		display: none;
	}

	.cls-showcase .cls-showcase__tab,
	.cls-showcase .cls-showcase__chip {
		scroll-snap-align: start;
	}

	.cls-showcase--look-pills .cls-showcase__tab {
		min-block-size: 40px;
		padding: 8px 16px;
		font-size: 14px;
	}

	.cls-showcase--look-tabs .cls-showcase__sectors {
		gap: 0 22px;
	}

	.cls-showcase--look-tabs .cls-showcase__tab {
		font-size: 14px;
	}

	.cls-showcase__dropdowns {
		align-items: stretch;
	}

	.cls-showcase__field {
		display: grid;
		gap: 6px;
		inline-size: 100%;
	}

	.cls-showcase__select {
		inline-size: 100%;
	}

	.cls-showcase .cls-showcase__dropdowns .cls-showcase__status {
		inline-size: 100%;
		margin: 0;
		text-align: center;
	}

	/* On phones the dropdowns take over entirely, when enabled. */
	.cls-showcase--mobile-dropdowns .cls-showcase__buttons {
		display: none;
	}

	.cls-showcase--mobile-dropdowns .cls-showcase__dropdowns,
	.cls-showcase--mobile-dropdowns .cls-showcase__field--sector {
		display: grid;
	}

	.cls-showcase--mobile-dropdowns .cls-showcase__dropdowns {
		grid-template-columns: minmax(0, 1fr);
		inline-size: 100%;
		gap: 12px;
	}

	.cls-showcase--cards {
		--cls-card-extra: 16px;
	}
}

/* --------------------------------------------------------------------- names */

.cls-slider__name {
	display: block;
	max-inline-size: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
	color: inherit;
}

/* Always shown: a line under the logo, in room added to the cell, so the
   logos keep the height they were given. */
.cls-slider--names-below {
	--cls-name-h: 26px;
}

.cls-slider--names-below .cls-slider__cell,
.cls-slider--names-below .cls-slider__link {
	flex-direction: column;
	gap: 8px;
}

.cls-slider--names-below .cls-slider__img {
	min-block-size: 0;
	max-block-size: calc(100% - var(--cls-name-h));
}

.cls-slider--names-below .cls-slider__name {
	flex: none;
	opacity: .7;
}

/* On hover: a label that rises over the foot of the logo. Keyboard focus
   shows it too, so tabbing through linked logos reads the same. */
.cls-slider--names-hover .cls-slider__cell {
	position: relative;
}

.cls-slider--names-hover .cls-slider__name {
	position: absolute;
	inset-block-end: 6px;
	inset-inline: 6px;
	z-index: 1;
	inline-size: fit-content;
	max-inline-size: calc(100% - 12px);
	margin-inline: auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(31, 35, 40, .9);
	color: #fff;
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition:
		opacity var(--cls-fx) ease,
		transform var(--cls-fx) ease;
}

.cls-slider--names-hover .cls-slider__cell:hover .cls-slider__name,
.cls-slider--names-hover .cls-slider__cell:focus-within .cls-slider__name {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 782px) {
	/*
	 * Decision D-1: arrows off below 783px returns about 22% of the width to the
	 * logos. The dots stay — the sanitiser guarantees it — so the slider is still
	 * reachable by keyboard, and swipe covers the pointer case.
	 */
	.cls-slider--nav-hide-mobile .cls-slider__nav {
		display: none;
	}

	.cls-slider--nav-hide-mobile.cls-slider--nav-outside,
	.cls-slider--nav-hide-mobile.cls-slider--nav-outside .cls-slider__stage {
		padding-inline: 0;
	}
}

/* ----------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	.cls-slider__track,
	.cls-slider__img,
	.cls-slider__nav,
	.cls-slider__dot {
		transition: none;
	}

	.cls-slider__cell:hover .cls-slider__img {
		transform: none;
	}

	.cls-slider--names-hover .cls-slider__name {
		transition: none;
	}

	.cls-showcase__item.is-entering,
	.cls-slider__viewport.cls-is-fading {
		animation: none;
	}

	.cls-showcase .cls-showcase__tab,
	.cls-showcase .cls-showcase__chip,
	.cls-showcase--cards .cls-slider__cell {
		transition: none;
	}
}
