/**
 * TechBBQ Event Guide Section — tabbed guide content block.
 *
 * Figma refs in widget PHP (1440 / 1024 / 768 / 380).
 *
 * Breakpoints (mobile-first): 0–767 (base), 768–1023, 1024–1440, 1440+.
 */

.techbbq-event-guide-section {
	--techbbq-event-guide-section-gap: var(--techbbq-space-3);
	--techbbq-event-guide-section-title-size: 32px;
	--techbbq-event-guide-section-card-padding: 20px;
	--techbbq-event-guide-section-card-gap: var(--techbbq-space-3);
	--techbbq-event-guide-section-card-radius: 12px;
	--techbbq-event-guide-section-heading-size: 22px;
	--techbbq-event-guide-section-body-size: var(--techbbq-text-paragraph-s-size);
	--techbbq-event-guide-section-media-radius: 4px;
	--techbbq-event-guide-section-content-gap: var(--techbbq-space-4);
	--techbbq-event-guide-section-content-body-gap: var(--techbbq-space-1);
	--techbbq-event-guide-section-body-letter-spacing: 0;
	--techbbq-event-guide-section-body-paragraph-gap: var(--techbbq-space-1);

	box-sizing: border-box;
	width: 100%;
	padding: var(--techbbq-space-2) 0 72px;
	color: var(--techbbq-content-primary);
	background-color: var(--techbbq-bg-main);
}

/* Section rhythm lives on the Elementor wrapper when present (e.g. LP Forum). */
.techbbq-event-guide-section-wrap .techbbq-event-guide-section {
	padding-top: 0;
	padding-bottom: 0;
}

.techbbq-event-guide-section__inner {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-event-guide-section-gap);
	align-items: center;
}

.techbbq-event-guide-section__header {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-2);
	align-items: center;
	text-align: center;
}

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

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

.techbbq-event-guide-section__tabs-wrap::-webkit-scrollbar {
	display: none;
}

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

.techbbq-event-guide-section__tab {
	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;
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-text-paragraph-s-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-event-guide-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-event-guide-section__tab:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
}

.techbbq-event-guide-section__panels {
	width: 100%;
}

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

.techbbq-event-guide-section__card {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-event-guide-section-card-gap);
	padding: var(--techbbq-event-guide-section-card-padding);
	border-radius: var(--techbbq-event-guide-section-card-radius);
	background-color: var(--techbbq-bg-surface);
}

.techbbq-event-guide-section__content {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-event-guide-section-content-gap);
	min-width: 0;
}

.techbbq-event-guide-section__content-body {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-event-guide-section-content-body-gap);
}

.techbbq-event-guide-section__heading,
h3.techbbq-event-guide-section__heading.techbbq-text-h4 {
	margin: 0;
	font-size: var(--techbbq-event-guide-section-heading-size);
}

.techbbq-event-guide-section__body,
.techbbq-event-guide-section__body.techbbq-text-paragraph-m {
	color: var(--techbbq-content-secondary);
	font-size: var(--techbbq-event-guide-section-body-size);
	letter-spacing: var(--techbbq-event-guide-section-body-letter-spacing);
}

.techbbq-event-guide-section__body p {
	margin: 0;
}

.techbbq-event-guide-section__body p + p {
	margin-top: var(--techbbq-event-guide-section-body-paragraph-gap);
}

.techbbq-event-guide-section__body--schedule p:nth-child(even) + p {
	margin-top: var(--techbbq-space-2);
}

.techbbq-event-guide-section__body strong {
	color: var(--techbbq-content-primary);
	font-weight: 400;
}

.techbbq-event-guide-section__body-subheader,
.techbbq-event-guide-section__body-subheader strong {
	color: var(--techbbq-content-primary);
	font-size: var(--techbbq-text-paragraph-m-size);
	font-weight: 400;
}

.techbbq-event-guide-section__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.techbbq-event-guide-section__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px;
	border: 1px solid var(--techbbq-border-tertiary);
	border-radius: var(--techbbq-radius-md);
	background: var(--techbbq-tag-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;
	color: var(--techbbq-content-primary);
}

.techbbq-event-guide-section__media {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: var(--techbbq-event-guide-section-media-radius);
}

.techbbq-event-guide-section__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 660 / 516;
	object-fit: cover;
	border-radius: inherit;
}

/* ── Tablet (768–1023) ──────────────────────────────────────── */
@media (min-width: 768px) {
	.techbbq-event-guide-section {
		--techbbq-event-guide-section-gap: var(--techbbq-space-4);
		--techbbq-event-guide-section-title-size: 48px;
		--techbbq-event-guide-section-card-padding: 32px;
		--techbbq-event-guide-section-card-gap: var(--techbbq-space-5);
		--techbbq-event-guide-section-heading-size: 32px;
		--techbbq-event-guide-section-body-size: var(--techbbq-text-paragraph-m-size);
		--techbbq-event-guide-section-content-gap: var(--techbbq-section-space-medium);
		--techbbq-event-guide-section-content-body-gap: var(--techbbq-space-2);
		--techbbq-event-guide-section-body-paragraph-gap: var(--techbbq-space-1);

		padding-top: var(--techbbq-section-space-small);
		padding-bottom: var(--techbbq-section-space-medium);
	}

	.techbbq-event-guide-section__content {
		justify-content: flex-start;
	}

	.techbbq-event-guide-section__content-body {
		margin-top: 0;
	}

	.techbbq-event-guide-section__image {
		aspect-ratio: 656 / 512;
	}

	.techbbq-event-guide-section__body-subheader,
	.techbbq-event-guide-section__body-subheader strong {
		font-size: var(--techbbq-text-paragraph-l-size);
		letter-spacing: var(--techbbq-text-paragraph-letter-spacing);
	}

	.techbbq-event-guide-section__body--schedule p:nth-child(even) + p {
		margin-top: var(--techbbq-space-2);
	}
}

/* ── Desktop (1024–1440) ──────────────────────────────────────── */
@media (min-width: 1024px) {
	.techbbq-event-guide-section {
		--techbbq-event-guide-section-gap: var(--techbbq-space-5);
		--techbbq-event-guide-section-heading-size: 36px;
		--techbbq-event-guide-section-card-gap: 48px;
		--techbbq-event-guide-section-body-letter-spacing: var(--techbbq-text-paragraph-letter-spacing);
		padding-top: var(--techbbq-section-space-medium);
		padding-bottom: 88px;
	}

	.techbbq-event-guide-section__card {
		flex-direction: row;
		align-items: stretch;
		gap: var(--techbbq-event-guide-section-card-gap);
		min-height: 402px;
	}

	.techbbq-event-guide-section__content {
		flex: 1 1 0;
		justify-content: flex-start;
		gap: var(--techbbq-event-guide-section-content-gap);
		min-height: 0;
	}

	.techbbq-event-guide-section__content--has-tags {
		justify-content: space-between;
		gap: 0;
	}

	.techbbq-event-guide-section__content--has-tags .techbbq-event-guide-section__content-body {
		margin-top: auto;
	}

	.techbbq-event-guide-section__media {
		flex: 0 1 432px;
		width: 432px;
		max-width: 48%;
		align-self: stretch;
	}

	.techbbq-event-guide-section__image {
		width: 100%;
		height: 100%;
		min-height: 100%;
		aspect-ratio: auto;
	}
}

/* ── Large desktop (1440+) ──────────────────────────────────── */
@media (min-width: 1440px) {
	.techbbq-event-guide-section {
		--techbbq-event-guide-section-heading-size: var(--techbbq-text-h4-size);
		--techbbq-event-guide-section-card-gap: var(--techbbq-section-space-medium);
		--techbbq-event-guide-section-body-paragraph-gap: var(--techbbq-space-1);
		padding-bottom: var(--techbbq-section-space-large);
	}

	.techbbq-event-guide-section__title {
		font-size: var(--techbbq-text-h3-size);
	}

	.techbbq-event-guide-section__card {
		min-height: 580px;
	}

	.techbbq-event-guide-section__media {
		flex-basis: 660px;
		width: 660px;
	}

	.techbbq-event-guide-section__tag {
		box-sizing: border-box;
		height: 28px;
		padding-block: 0;
	}

	.techbbq-event-guide-section__body p br {
		display: block;
		margin-bottom: var(--techbbq-space-sm);
	}

	.techbbq-event-guide-section__body p br:last-of-type {
		margin-bottom: 0;
	}
}
