/**
 * TechBBQ Event Programme — time + title accordion rows.
 *
 * Figma Nordic Africa Startup Summit: 7358:71445 (1440).
 * Section vertical spacing lives on the Elementor wrapper container.
 *
 * Breakpoints (mobile-first): 0–767, 768–1023, 1024–1439, 1440+.
 */

.techbbq-event-programme {
	--techbbq-ep-header-gap: var(--techbbq-space-3);
	--techbbq-ep-section-gap: var(--techbbq-space-4);
	--techbbq-ep-time-width: 100%;
	--techbbq-ep-icon-size: 32px;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	color: var(--techbbq-content-primary);
	background-color: var(--techbbq-bg-main);
}

.techbbq-event-programme__inner {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-ep-section-gap);
}

.techbbq-event-programme__header {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-ep-header-gap);
	align-items: center;
	text-align: center;
}

.techbbq-event-programme__header .techbbq-event-programme__title {
	margin: 0;
}

.techbbq-event-programme__list {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.techbbq-event-programme__tabs-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

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

.techbbq-event-programme__tabs-wrap .techbbq-filter-tabs__list {
	justify-content: flex-start;
}

.techbbq-event-programme__panels {
	width: 100%;
}

.techbbq-event-programme__panel-wrap[hidden] {
	display: none;
}

.techbbq-event-programme--has-tabs .techbbq-event-programme__header {
	align-items: flex-start;
	text-align: left;
}

.techbbq-event-programme__item {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-1);
	align-items: flex-start;
	min-width: 0;
	max-width: 100%;
	padding: var(--techbbq-space-3) var(--techbbq-space-2);
	border-bottom: 1px solid var(--techbbq-border-tertiary);
}

.techbbq-event-programme__item.is-highlight {
	background-color: var(--techbbq-bg-surface);
}

.techbbq-event-programme__row {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-1);
	align-items: flex-start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.techbbq-event-programme__time {
	flex-shrink: 0;
	width: var(--techbbq-ep-time-width);
	margin: 0;
	padding-top: 2px;
	color: var(--techbbq-content-primary);
}

.techbbq-event-programme__content {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--techbbq-space-1);
	align-items: flex-start;
	min-width: 0;
	max-width: 100%;
	width: 100%;
}

.techbbq-event-programme__heading {
	margin: 0;
	min-width: 0;
	width: 100%;
}

.techbbq-event-programme__trigger {
	display: flex;
	flex-direction: row;
	gap: var(--techbbq-space-1);
	align-items: flex-start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	white-space: normal;
	cursor: pointer;
}

[type="button"].techbbq-event-programme__trigger:hover,
[type="button"].techbbq-event-programme__trigger:focus,
button.techbbq-event-programme__trigger:hover,
button.techbbq-event-programme__trigger:focus {
	background: transparent;
	border-color: transparent;
	color: inherit;
}

.techbbq-event-programme__trigger:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.techbbq-event-programme__title-text {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding-top: 2px;
	overflow-wrap: break-word;
	word-wrap: break-word;
	color: var(--techbbq-content-primary);
}

.techbbq-event-programme__static-title {
	display: block;
	margin: 0;
	padding-top: 2px;
	overflow-wrap: break-word;
	word-wrap: break-word;
	color: var(--techbbq-content-primary);
}

.techbbq-event-programme__icon {
	display: flex;
	flex-shrink: 0;
	align-items: flex-start;
	justify-content: center;
	width: var(--techbbq-ep-icon-size);
	height: var(--techbbq-ep-icon-size);
	margin-left: auto;
	color: var(--techbbq-content-primary);
	transition: transform 0.2s ease;
}

.techbbq-event-programme__icon svg {
	display: block;
	width: var(--techbbq-ep-icon-size);
	height: var(--techbbq-ep-icon-size);
}

.techbbq-event-programme__icon svg path {
	transition: stroke-opacity 0.2s ease;
}

.techbbq-event-programme__item.is-open .techbbq-event-programme__icon {
	transform: rotate(180deg);
}

.techbbq-event-programme__item.is-open .techbbq-event-programme__icon svg path {
	stroke-opacity: 1;
}

.techbbq-event-programme__item:not(.is-open) .techbbq-event-programme__icon svg path {
	stroke-opacity: 0.4;
}

.techbbq-event-programme__trigger:hover .techbbq-event-programme__icon svg path {
	stroke-opacity: 1;
}

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

.techbbq-event-programme__description {
	margin: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
	color: var(--techbbq-content-secondary);
}

/* ── Tablet (768–1023) ── */
@media (min-width: 768px) {
	.techbbq-event-programme {
		--techbbq-ep-time-width: min(342px, 34%);
	}

	.techbbq-event-programme__row {
		flex-direction: row;
		gap: var(--techbbq-space-1);
		align-items: flex-start;
	}

	.techbbq-event-programme__content {
		padding-right: var(--techbbq-ep-icon-size);
	}
}
