/**
 * TechBBQ announcement banner — Figma component banner (4205:9926).
 * 360 frame: node 4299:20472 — centered single message.
 * 1440 frame: marquee of repeated items, 112px gap.
 */

.techbbq-banner {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	height: var(--techbbq-banner-height);
	overflow: hidden;
	contain: paint;
	background-color: var(--techbbq-bg-main);
	padding: 2px 0 4px;
}

.techbbq-banner__viewport {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	contain: paint;
}

/* Mobile: one centered message (Figma 360). */
.techbbq-banner__track {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.techbbq-banner__group + .techbbq-banner__group {
	display: none;
}

.techbbq-banner__item + .techbbq-banner__item {
	display: none;
}

.techbbq-banner__group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 112px;
}

.techbbq-banner__item {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: var(--techbbq-content-primary);
	font-family: var(--techbbq-font-family-body);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.techbbq-banner__item:hover,
.techbbq-banner__item:focus-visible {
	color: var(--techbbq-content-primary);
}

.techbbq-banner__icon {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	opacity: 0.5;
}

/* Tablet/desktop: horizontal marquee (Figma 1440). */
@media (min-width: 768px) {
	/* Flex gap applies between items inside a group only; add trailing
	 * space so the loop seam (last item → first item of duplicate group)
	 * matches the 112px inter-item gap.
	 */
	.techbbq-banner__group {
		padding-right: 112px;
	}

	.techbbq-banner__group + .techbbq-banner__group {
		display: flex;
	}

	.techbbq-banner__item + .techbbq-banner__item {
		display: inline-flex;
	}

	.techbbq-banner__track {
		justify-content: flex-start;
		width: max-content;
		animation: techbbq-banner-marquee 40s linear infinite;
	}

	.techbbq-banner__track--static {
		animation: none;
	}
}

@keyframes techbbq-banner-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.techbbq-banner__track {
		animation: none;
	}
}
