/**
 * CSW Logo Carousel — namespaced component styles only.
 */

.csw-lc__announcer {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.csw-lc {
	position: relative;
	--csw-lc-max-img-h: 4rem;
	--csw-lc-gap: 1rem;
	--csw-lc-arrow: 2.25rem;
	/* Arrows: solid gray disc + white chevron (aligned with monochrome logos) */
	--csw-lc-arrow-bg: #6b7280;
	--csw-lc-arrow-bg-hover: #4b5563;
	--csw-lc-arrow-fg: #ffffff;
	--csw-lc-dot-ring: #cbd5e1;
	--csw-lc-dot-active: #4b5563;
	box-sizing: border-box;
	margin: 1.5rem 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.csw-lc *,
.csw-lc *::before,
.csw-lc *::after {
	box-sizing: border-box;
}

.csw-lc__inner {
	position: relative;
	display: grid;
	grid-template-columns: var(--csw-lc-arrow) 1fr var(--csw-lc-arrow);
	align-items: center;
	gap: 0.5rem;
	padding: 0 0.25rem;
}

.csw-lc__viewport {
	overflow: hidden;
	min-width: 0;
	outline: none;
}

.csw-lc__viewport:focus-visible {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2563eb;
	border-radius: 0.25rem;
}

.csw-lc__track {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--csw-lc-gap);
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* JS on: horizontal track, no wrap */
.csw-lc.csw-lc--js .csw-lc__track {
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0;
	padding: 0.5rem 0;
}

.csw-lc__slide {
	flex: 0 0 auto;
	width: 100%;
	max-width: 12rem;
}

.csw-lc.csw-lc--js .csw-lc__slide {
	max-width: none;
}

.csw-lc__slide-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(var(--csw-lc-max-img-h) + 1rem);
	padding: 0.25rem var(--csw-lc-gap);
}

.csw-lc.csw-lc--js .csw-lc__slide-inner {
	padding: 0.25rem;
}

.csw-lc__link {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	text-decoration: none;
}

.csw-lc__link:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 0.25rem;
}

.csw-lc__img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: var(--csw-lc-max-img-h);
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.85;
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.csw-lc__slide-inner:hover .csw-lc__img,
.csw-lc__slide-inner:focus-within .csw-lc__img,
.csw-lc__link:hover .csw-lc__img,
.csw-lc__link:focus-visible .csw-lc__img {
	filter: grayscale(0%);
	opacity: 1;
}

.csw-lc__arrow {
	display: none;
	width: var(--csw-lc-arrow);
	height: var(--csw-lc-arrow);
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--csw-lc-arrow-bg);
	color: var(--csw-lc-arrow-fg);
	cursor: pointer;
	align-self: center;
	justify-self: center;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.csw-lc.csw-lc--js .csw-lc__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
}

.csw-lc__arrow:hover {
	background: var(--csw-lc-arrow-bg-hover);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.14);
}

.csw-lc__arrow:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	background: var(--csw-lc-arrow-bg-hover);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.14);
}

.csw-lc__arrow-icon {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
}

.csw-lc__dots {
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0 1rem 0.25rem;
}

.csw-lc.csw-lc--js .csw-lc__dots {
	display: flex;
}

.csw-lc.csw-lc--js.csw-lc--single .csw-lc__arrow,
.csw-lc.csw-lc--js.csw-lc--single .csw-lc__dots {
	display: none;
}

.csw-lc__dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 1px solid var(--csw-lc-dot-ring);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

/* Logos that cannot be the first visible slot (e.g. 5th–7th when four show); click still scrolls to end. */
.csw-lc__dot--end {
	opacity: 0.55;
}

.csw-lc__dot:hover,
.csw-lc__dot:focus-visible {
	border-color: #94a3b8;
	background: rgba(148, 163, 184, 0.2);
	opacity: 1;
}

.csw-lc__dot:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.csw-lc__dot[aria-current="true"] {
	background: var(--csw-lc-dot-active);
	border-color: var(--csw-lc-dot-active);
	transform: scale(1.15);
}

.csw-lc__dot-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
