.wp-block-wnydocs-footer-logo-bar.wnydocs-footer-logo-bar {
	--wnydocs-logo-gap: clamp(14px, 1.5vw, 22px);
	--wnydocs-logo-cell-width: 150px;
	--wnydocs-logo-cell-height: 72px;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-block: 0;
	padding: clamp(24px, 3vw, 42px) max(20px, env(safe-area-inset-left));
	border-top: 1px solid rgba(0, 82, 135, 0.12);
	border-bottom: 1px solid rgba(0, 82, 135, 0.12);
	background: #fff;
}

.wnydocs-footer-logo-bar__inner {
	width: min(100%, 1280px);
	margin-inline: auto;
}

.wnydocs-footer-logo-bar__heading {
	margin: 0 0 clamp(20px, 2.5vw, 30px);
	color: #005287;
	font-size: clamp(1.25rem, 1.5vw, 1.65rem);
	line-height: 1.25;
	text-align: center;
}

.wnydocs-footer-logo-bar__viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.wnydocs-footer-logo-bar__viewport::-webkit-scrollbar {
	display: none;
}

.wnydocs-footer-logo-bar__track {
	display: flex;
	justify-content: center;
	width: max-content;
	min-width: 100%;
}

.wnydocs-footer-logo-bar__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wnydocs-logo-gap);
	width: 100%;
}

.wnydocs-footer-logo-bar__logos--duplicate {
	display: none;
}

.wnydocs-footer-logo-bar--grid .wnydocs-footer-logo-bar__logos {
	display: grid;
	flex: none;
	grid-template-rows: repeat(2, var(--wnydocs-logo-cell-height));
	grid-auto-columns: var(--wnydocs-logo-cell-width);
	grid-auto-flow: column dense;
	align-items: stretch;
	justify-content: start;
	gap: var(--wnydocs-logo-gap);
	width: max-content;
}

.wnydocs-footer-logo-bar__item {
	display: flex;
	flex: 0 1 210px;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	min-height: 72px;
}

.wnydocs-footer-logo-bar__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 72px;
	padding: 4px;
	border-radius: 3px;
}

.wnydocs-footer-logo-bar__link:focus-visible {
	outline: 3px solid #f1bf39;
	outline-offset: 4px;
}

.wnydocs-footer-logo-bar__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 76px;
	object-fit: contain;
}

.wnydocs-footer-logo-bar--grid .wnydocs-footer-logo-bar__item {
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	padding: 7px 10px;
}

.wnydocs-footer-logo-bar--grid .wnydocs-footer-logo-bar__item--large {
	grid-row: span 2;
	grid-column: span 2;
}

.wnydocs-footer-logo-bar--grid .wnydocs-footer-logo-bar__item--medium {
	grid-row: span 1;
	grid-column: span 2;
}

.wnydocs-footer-logo-bar--grid .wnydocs-footer-logo-bar__item--small {
	grid-row: span 1;
	grid-column: span 1;
}

.wnydocs-footer-logo-bar--grid .wnydocs-footer-logo-bar__link {
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
}

.wnydocs-footer-logo-bar--grid .wnydocs-footer-logo-bar__image {
	max-width: 100%;
	max-height: 100%;
}

.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__track {
	justify-content: flex-start;
	animation: wnydocs-footer-logo-scroll var(--wnydocs-logo-scroll-duration, 40s) linear infinite;
	will-change: transform;
}

.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__logos {
	padding-right: var(--wnydocs-logo-gap);
}

.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__logos--duplicate {
	display: grid;
}

.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__viewport:hover .wnydocs-footer-logo-bar__track,
.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__viewport:focus-within .wnydocs-footer-logo-bar__track,
.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__viewport:active .wnydocs-footer-logo-bar__track {
	animation-play-state: paused;
}

@keyframes wnydocs-footer-logo-scroll {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.wnydocs-footer-logo-bar__screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.wnydocs-footer-logo-bar--placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 120px;
	padding: 24px;
	border: 2px dashed #8c8f94;
	background: #f6f7f7;
	color: #50575e;
	text-align: center;
}

@media (max-width: 600px) {
	.wp-block-wnydocs-footer-logo-bar.wnydocs-footer-logo-bar {
		--wnydocs-logo-gap: 14px;
		--wnydocs-logo-cell-width: 112px;
		--wnydocs-logo-cell-height: 60px;
		padding-block: 24px;
	}

	.wnydocs-footer-logo-bar__item {
		flex-basis: calc(50% - 14px);
		min-width: 0;
		min-height: 58px;
	}

	.wnydocs-footer-logo-bar__link {
		min-height: 58px;
	}

	.wnydocs-footer-logo-bar__image {
		max-height: 60px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__track {
		animation: none;
		transform: none;
	}

	.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__logos--primary {
		padding-right: 0;
	}

	.wnydocs-footer-logo-bar--scrolling .wnydocs-footer-logo-bar__logos--duplicate {
		display: none;
	}
}

/* Sponsor rail duplicate guard: 1.2.2 */
.wnydocs-footer-logo-bar--grid:not(.wnydocs-footer-logo-bar--scrolling) .wnydocs-footer-logo-bar__logos--duplicate {
	display: none !important;
}
