/**
 * TechBBQ Careers List: filter pills and one row per open position.
 * Section spacing lives on the Elementor container, not here.
 * Breakpoints (mobile-first): base, 768, 1024, 1440.
 */

.techbbq-careers-list {
	--techbbq-careers-list-gap: var(--techbbq-space-3);
	--techbbq-careers-list-title-size: 30px;
	--techbbq-careers-list-row-pad-y: 20px;
	--techbbq-careers-list-row-pad-x: 20px;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--techbbq-careers-list-gap);
	width: 100%;
	padding: 0;
	color: var(--techbbq-content-primary);
	background-color: var(--techbbq-bg-main);
}

.techbbq-careers-list__header,
.techbbq-careers-list__filters-wrap,
.techbbq-careers-list__list-wrap,
.techbbq-careers-list__footer,
.techbbq-careers-list__empty {
	width: 100%;
}

.techbbq-careers-list__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.techbbq-careers-list__title {
	margin: 0;
	font-size: var(--techbbq-careers-list-title-size);
}

.techbbq-careers-list__description {
	max-width: 660px;
	margin: 0;
	color: var(--techbbq-content-secondary);
}

.techbbq-careers-list__filters-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	text-align: center;
}

.techbbq-careers-list__filters-wrap::-webkit-scrollbar {
	display: none;
}

.techbbq-careers-list__filters {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: var(--techbbq-space-1);
	align-items: center;
	vertical-align: top;
}

.techbbq-careers-list__filter {
	box-sizing: border-box;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 24px;
	border: 1px solid var(--techbbq-border-tertiary);
	border-radius: var(--techbbq-radius-pill);
	background: transparent;
	color: var(--techbbq-content-primary);
	font-family: inherit;
	font-size: var(--techbbq-text-paragraph-s-size);
	line-height: 1.4;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.techbbq-careers-list__filter.is-active {
	border-color: var(--techbbq-btn-primary-fill-default);
	background-color: var(--techbbq-btn-primary-fill-default);
	color: var(--techbbq-content-oncolor-primary);
}

.techbbq-careers-list__filter:focus-visible,
.techbbq-careers-list__link:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
}

.techbbq-careers-list__list {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.techbbq-careers-list__item.is-filter-hidden {
	display: none;
}

.techbbq-careers-list__link {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	padding: var(--techbbq-careers-list-row-pad-y) var(--techbbq-careers-list-row-pad-x);
	border: 1px solid transparent;
	border-radius: 12px;
	background-color: var(--techbbq-bg-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.techbbq-careers-list__link:hover {
	border-color: var(--techbbq-border-secondary);
	background-color: var(--techbbq-bg-surface-alt);
}

.techbbq-careers-list__main {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.techbbq-careers-list__job-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
}

.techbbq-careers-list__meta,
.techbbq-careers-list__date {
	color: var(--techbbq-content-secondary);
}

.techbbq-careers-list__date {
	white-space: nowrap;
}

.techbbq-careers-list__chevron {
	flex-shrink: 0;
	margin-left: auto;
	color: var(--techbbq-content-primary);
	transition: transform 0.2s ease;
}

.techbbq-careers-list__link:hover .techbbq-careers-list__chevron {
	transform: translateX(4px);
}

.techbbq-careers-list__footer,
.techbbq-careers-list__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--techbbq-space-3);
	text-align: center;
}

.techbbq-careers-list__empty-text {
	max-width: 660px;
	margin: 0;
	color: var(--techbbq-content-secondary);
}

@media (min-width: 768px) {
	.techbbq-careers-list {
		--techbbq-careers-list-gap: var(--techbbq-space-5);
		--techbbq-careers-list-title-size: 41px;
		--techbbq-careers-list-row-pad-y: 24px;
		--techbbq-careers-list-row-pad-x: 32px;
	}

	.techbbq-careers-list__link {
		flex-wrap: nowrap;
	}

	.techbbq-careers-list__job-title {
		font-size: 24px;
	}

	.techbbq-careers-list__chevron {
		margin-left: 0;
	}
}

@media (min-width: 1024px) {
	.techbbq-careers-list {
		--techbbq-careers-list-title-size: 44px;
	}

	.techbbq-careers-list__filter {
		font-size: var(--techbbq-text-paragraph-l-size);
	}
}

@media (min-width: 1440px) {
	.techbbq-careers-list {
		--techbbq-careers-list-title-size: var(--techbbq-text-h3-size);
	}
}
