/**
 * TechBBQ People Section — people cards with optional tabs.
 *
 * Figma refs in widget PHP.
 *
 * Breakpoints (mobile-first): 0–767 (base), 768–1023, 1024–1440, 1440+.
 */

.techbbq-people-section,
.techbbq-partners-inquiries {
	--techbbq-people-section-gap: var(--techbbq-space-7);
	--techbbq-people-section-intro-gap: 12px;
	--techbbq-people-section-title-size: 30px;
	--techbbq-people-section-desc-max-width: 576px;
	--techbbq-people-section-list-gap: var(--techbbq-space-1);
	--techbbq-people-section-card-radius: 12px;
	--techbbq-people-section-card-padding: 12px;
	--techbbq-people-section-card-width: 100%;
	--techbbq-people-section-photo-width: 92px;
	--techbbq-people-section-photo-height: 100px;
	--techbbq-people-section-name-size: 20px;
	--techbbq-people-section-tab-height: 44px;
	--techbbq-people-section-tab-size: var(--techbbq-text-paragraph-m-size);

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

.techbbq-people-section__header,
.techbbq-people-section__tabs-wrap,
.techbbq-people-section__panels,
.techbbq-people-section__list {
	width: 100%;
}

.techbbq-people-section__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.techbbq-people-section__intro {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-people-section-intro-gap);
	align-items: center;
	width: 100%;
}

.techbbq-people-section__title {
	margin: 0;
	font-size: var(--techbbq-people-section-title-size);
}

.techbbq-people-section__description {
	max-width: var(--techbbq-people-section-desc-max-width);
	margin: 0;
	color: var(--techbbq-content-secondary);
}

.techbbq-people-section__tabs-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	text-align: center;
}

.techbbq-people-section__tabs-scroll::-webkit-scrollbar {
	display: none;
}

.techbbq-people-section__tabs {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: var(--techbbq-space-1);
	justify-content: flex-start;
	padding-bottom: 2px;
	vertical-align: top;
}

.techbbq-people-section__tab {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	min-height: var(--techbbq-people-section-tab-height);
	padding: 8px 24px;
	border: 1px solid var(--techbbq-border-tertiary);
	border-radius: var(--techbbq-radius-pill);
	background: transparent;
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-people-section-tab-size);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--techbbq-content-primary);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.techbbq-people-section__tab.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-people-section__tab:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
}

.techbbq-people-section__panels {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.techbbq-people-section__panel[hidden] {
	display: none;
}

.techbbq-people-section__list {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-people-section-list-gap);
}

.techbbq-people-section__card {
	--techbbq-people-section-card-hover-bg: url("../../images/speakers/card-hover.svg");

	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-shrink: 0;
	gap: var(--techbbq-space-2);
	align-items: flex-start;
	width: var(--techbbq-people-section-card-width);
	padding: var(--techbbq-people-section-card-padding);
	overflow: hidden;
	border-radius: var(--techbbq-people-section-card-radius);
	background: var(--techbbq-bg-surface);
	isolation: isolate;
}

.techbbq-people-section__card::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	height: 55%;
	background-color: transparent;
	background-image: var(--techbbq-people-section-card-hover-bg);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.techbbq-people-section__card:hover::before,
.techbbq-people-section__card:focus-within::before {
	opacity: 1;
}

.techbbq-people-section__photo {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	width: var(--techbbq-people-section-photo-width);
	height: var(--techbbq-people-section-photo-height);
	overflow: hidden;
	border-radius: 4px;
	background:
		radial-gradient(
			120% 120% at 66% 0%,
			#5a5a5a 0%,
			#373737 32%,
			#262626 52%,
			#151515 72%
		);
}

.techbbq-people-section__photo-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.techbbq-people-section__meta {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--techbbq-space-1);
	justify-content: space-between;
	min-width: 0;
	align-self: stretch;
}

.techbbq-people-section__identity {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.techbbq-people-section__name {
	margin: 0;
	font-size: var(--techbbq-people-section-name-size);
}

.techbbq-people-section__role {
	margin: 0;
	color: var(--techbbq-content-secondary);
}

.techbbq-people-section__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.techbbq-people-section__link {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	width: fit-content;
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-text-paragraph-xs-size);
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--techbbq-content-secondary);
	text-decoration: none;
	white-space: nowrap;
}

.techbbq-people-section__description--html a {
	color: var(--techbbq-content-accent-2);
	text-decoration: none;
}

/* ── Tablet (768–1023) ──────────────────────────────────────── */
@media (min-width: 768px) {
	.techbbq-people-section,
	.techbbq-partners-inquiries {
		--techbbq-people-section-title-size: 41px;
		--techbbq-people-section-desc-max-width: 660px;
		--techbbq-people-section-tab-size: var(--techbbq-text-paragraph-l-size);
	}

	.techbbq-people-section__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--techbbq-space-1);
	}

	.techbbq-people-section__card {
		flex-direction: column;
		width: auto;
		padding: var(--techbbq-space-2);
	}

	.techbbq-people-section__photo {
		width: 100%;
		height: auto;
		aspect-ratio: 306 / 332;
	}

	.techbbq-people-section__meta {
		gap: 6px;
	}

	.techbbq-people-section__name {
		font-size: 24px;
	}
}

/* ── Desktop (1024–1440) ──────────────────────────────────────── */
@media (min-width: 1024px) {
	.techbbq-people-section,
	.techbbq-partners-inquiries {
		--techbbq-people-section-title-size: 44px;
	}

	.techbbq-people-section__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ── Large desktop (1440+) ──────────────────────────────────────── */
@media (min-width: 1440px) {
	.techbbq-people-section,
	.techbbq-partners-inquiries {
		--techbbq-people-section-title-size: var(--techbbq-text-h3-size);
	}

	.techbbq-people-section__list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Single centered contact card — Figma section / contacts (7166:88157, 7164:70801) */
.techbbq-people-section--single-centered {
	--techbbq-people-section-gap: var(--techbbq-space-3);
	--techbbq-people-section-list-gap: 0;
}

.techbbq-people-section--single-centered .techbbq-people-section__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.techbbq-people-section--single-centered .techbbq-contact-card {
	align-self: stretch;
	width: 100%;
	max-width: none;
}

@media (min-width: 768px) {
	.techbbq-people-section--single-centered {
		--techbbq-people-section-gap: var(--techbbq-space-5);
	}

	.techbbq-people-section--single-centered .techbbq-contact-card {
		align-self: center;
		width: 342px;
		max-width: 100%;
	}
}

/* Contact card grid — Figma section / contacts (7366:74606, 7366:75486, 7366:75659) */
.techbbq-people-section--contact-grid {
	--techbbq-people-section-gap: var(--techbbq-space-3);
	--techbbq-people-section-list-gap: var(--techbbq-space-1);
}

.techbbq-people-section--contact-grid .techbbq-people-section__list {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-people-section-list-gap);
	align-items: stretch;
	width: 100%;
}

.techbbq-people-section--contact-grid .techbbq-contact-card {
	align-self: stretch;
	width: 100%;
	max-width: none;
}

@media (min-width: 768px) {
	.techbbq-people-section--contact-grid {
		--techbbq-people-section-gap: var(--techbbq-space-5);
	}

	.techbbq-people-section--contact-grid .techbbq-people-section__list {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: stretch;
	}

	.techbbq-people-section--contact-grid .techbbq-contact-card {
		flex: 1 1 calc(50% - 4px);
		align-self: stretch;
		width: auto;
		max-width: 342px;
	}
}

@media (min-width: 1024px) {
	.techbbq-people-section--contact-grid .techbbq-contact-card {
		flex: 0 1 342px;
		width: 342px;
		max-width: none;
	}
}

@media (min-width: 1440px) {
	.techbbq-people-section--contact-grid .techbbq-people-section__list {
		flex-wrap: nowrap;
	}

	.techbbq-people-section--contact-grid .techbbq-contact-card {
		flex: 0 0 342px;
		width: 342px;
	}
}

/* ── Card opens LinkedIn when profile URL is present (no photo icon) ── */

.techbbq-people-section__card--linkedin,
.techbbq-contact-card--linkedin {
	cursor: pointer;
}
