/* Homepage featured-article carousel + leftover shortcode shims */

.ba-autoplay-post-slider {
	margin: 1.5rem 0 2rem;
	width: 100%;
}

.ba-autoplay-post-slider__viewport {
	overflow: hidden;
	width: 100%;
}

.ba-autoplay-post-slider__track {
	display: flex;
	gap: 16px;
	will-change: transform;
	transition: transform 0.55s ease;
}

.ba-autoplay-post-slider__card {
	flex: 0 0 calc((100% - 64px) / 5);
	min-width: 0;
	margin: 0;
	background: #fff;
	border: 1px solid #e6edf4;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.ba-autoplay-post-slider__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 18px 16px 20px;
	color: inherit;
	text-decoration: none;
	box-sizing: border-box;
}

.ba-autoplay-post-slider__link:hover,
.ba-autoplay-post-slider__link:focus {
	text-decoration: none;
	color: inherit;
}

.ba-autoplay-post-slider__category {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5b6b7c;
	line-height: 1.3;
}

.ba-autoplay-post-slider__title {
	display: block;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.35;
	color: #1b2430;
}

.ba-autoplay-post-slider__link:hover .ba-autoplay-post-slider__title {
	color: #1d4ed8;
}

.ba-social-follow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ba-social-follow__link {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #f3f6fa;
	color: #1b2430;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.ba-social-follow__link:hover {
	background: #e7eef7;
	text-decoration: none;
}

.ba-latest-members {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ba-latest-members__item {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.ba-latest-members__link img {
	width: var(--ba-member-size, 70px);
	height: var(--ba-member-size, 70px);
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

@media (max-width: 1100px) {
	.ba-autoplay-post-slider__card {
		flex-basis: calc((100% - 32px) / 3);
	}
}

@media (max-width: 782px) {
	.ba-autoplay-post-slider__card {
		flex-basis: calc((100% - 16px) / 2);
	}
}

@media (max-width: 520px) {
	.ba-autoplay-post-slider__card {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ba-autoplay-post-slider__track {
		transition: none;
	}
}
