/*
 * Home page A/B test 2, "Industries we've served" on phones (functions/ab-industries.php).
 * B, under 768px only: the moving pill row is replaced by a thumbnail list, one row per
 * industry, and a "See all work" pill (partials/ab-industries-b.php).
 * Figma 9rmBkG751MLEsWAAlOj5ni, frame 12-752, "Industries B option 4, Thumbnail list"
 * (Eric's pick, 2026-11-22). The earlier wrapping-pill B (frame 4-505) is dropped.
 * The Cloudflare Worker sets data-industries-variant="b" on .industry-marquee-rows and
 * unwraps <template data-ab="industries-b"> for B visitors; A is the theme as is.
 * A phone turned wide (768px and up) sees A.
 */
.tailwind-scope.ind-b {
	/* 40px under the heading (its column already leaves 32px), 60px under the pill. */
	padding-top: 8px;
	padding-bottom: 60px;
	color: #b3d6d3;
}

@media (min-width: 768px) {
	.tailwind-scope.ind-b {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.industry-marquee-rows[data-industries-variant="b"] {
		display: none;
	}
}

.tailwind-scope.ind-b .ind-b__list {
	display: flex;
	flex-direction: column;
}

.tailwind-scope.ind-b .ind-b__row {
	display: flex;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
	min-height: 72px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(179, 214, 211, 0.35);
	color: #b3d6d3;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.tailwind-scope.ind-b .ind-b__row:last-child {
	border-bottom: 0;
}

.tailwind-scope.ind-b .ind-b__row:focus-visible {
	outline: 2px solid #b3d6d3;
	outline-offset: 2px;
}

.tailwind-scope.ind-b .ind-b__thumb {
	flex: 0 0 76px;
	width: 76px;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(179, 214, 211, 0.12);
}

.tailwind-scope.ind-b .ind-b__thumb picture {
	display: block;
}

/* The WebP plugin wraps the image in <picture> and moves its class there, so target the img. */
.tailwind-scope.ind-b .ind-b__thumb img {
	display: block;
	width: 76px;
	height: 56px;
	max-width: none;
	object-fit: cover;
}

.tailwind-scope.ind-b .ind-b__caption {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-right: 28px;
}

.tailwind-scope.ind-b .ind-b__name {
	font-family: "PP Mori", sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 22px;
	overflow-wrap: break-word;
}

.tailwind-scope.ind-b .ind-b__count {
	font-family: "PP Mori", sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 18.9px;
	white-space: nowrap;
}

/* Centered on the name's first 22px line, so a name that wraps keeps the arrow at the top. */
.tailwind-scope.ind-b .ind-b__arrow {
	position: absolute;
	top: 5.5px;
	right: 0;
	width: 14px;
	height: 11px;
	transition: transform 0.3s ease;
}

.tailwind-scope.ind-b .ind-b__cta {
	display: flex;
	margin-top: 40px;
}

.tailwind-scope.ind-b .ind-b__all-arrow {
	width: 20px;
	height: 16px;
	flex: 0 0 auto;
	transition: transform 0.3s ease;
}

@media (hover: hover) {
	.tailwind-scope.ind-b .ind-b__row:hover .ind-b__arrow,
	.tailwind-scope.ind-b .ind-b__all:hover .ind-b__all-arrow {
		transform: translateX(4px);
	}
}
