/**
 * Event Page — standalone one-pager styles.
 * Prefixed with `ep-` to avoid conflicts.
 */

/* Reset for standalone page */
.hem-event-page {
	margin: 0;
	padding: 0;
	font-family: var(--hem-font-sans);
	color: var(--hem-gray-800);
	background: var(--hem-white);
	-webkit-font-smoothing: antialiased;
}

.hem-event-page * { box-sizing: border-box; }

.ep-container {
	max-width: var(--ep-container-width, 960px);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ── Sticky Nav ── */
.ep-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--hem-gray-200);
	transform: translateY(-100%);
	transition: transform 0.3s ease;
}

.ep-nav--visible {
	transform: translateY(0);
}

.ep-nav__inner {
	max-width: var(--ep-container-width, 960px);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	height: 56px;
	gap: 2rem;
}

.ep-nav__brand {
	font-weight: 700;
	font-size: var(--hem-text-sm);
	color: var(--hem-gray-900);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

.ep-nav__links {
	display: flex;
	gap: 0.25rem;
	margin-left: auto;
}

.ep-nav__link {
	font-size: var(--hem-text-sm);
	font-weight: 500;
	color: var(--hem-gray-600);
	text-decoration: none;
	padding: 0.5rem 0.75rem;
	border-radius: var(--hem-radius);
	transition: color 0.15s, background 0.15s;
}

.ep-nav__link:hover {
	color: var(--ep-accent-on-white, var(--event-color));
	background: var(--hem-gray-50);
}

.ep-nav__toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	margin-left: auto;
}

.ep-nav__toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--hem-gray-700);
	margin: 4px 0;
	border-radius: 1px;
}

/* ── Hero ── */
.ep-hero {
	display: flex;
	background-size: cover;
	background-position: center;
	background-color: var(--event-color);
	position: relative;
	overflow: hidden;
}

.ep-hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
	border: none;
	pointer-events: none;
}

/* Native video covers naturally */
video.ep-hero__video {
	min-width: 100%;
	min-height: 100%;
	transform: translate(-50%, -50%);
	object-fit: cover;
}

/* Iframe (YouTube/Vimeo) — scale up ~20% to crop YT chrome bars */
iframe.ep-hero__video {
	width: calc(100% + 200px);
	height: calc(100% + 200px);
	min-width: 177.78vh; /* maintain 16:9 coverage */
	min-height: 56.25vw;
	transform: translate(-50%, -50%);
}

.ep-hero__overlay {
	flex: 1;
	display: flex;
	align-items: flex-end;
	padding-top: var(--ep-hero-pad-top, 64px);
	padding-bottom: var(--ep-hero-pad-bottom, 64px);
	color: var(--ep-hero-text, #fff);
	position: relative;
	z-index: 1;
}

.ep-hero__badges {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ep-hero__badges .hem-type-badge,
.ep-hero__badges .hem-status-badge {
	background: rgba(255, 255, 255, 0.2);
	color: var(--ep-hero-text, #fff);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.ep-hero--light-bg .ep-hero__badges .hem-type-badge,
.ep-hero--light-bg .ep-hero__badges .hem-status-badge {
	background: rgba(0, 0, 0, 0.12);
	border-color: rgba(0, 0, 0, 0.15);
}

.ep-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
	color: var(--ep-hero-text, #fff);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ep-hero--light-bg .ep-hero__title {
	text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Transparent overlay — stronger shadows for readability on raw video/image */
.ep-hero--transparent .ep-hero__title {
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ep-hero--transparent .ep-hero__badges .hem-type-badge,
.ep-hero--transparent .ep-hero__badges .hem-status-badge {
	background: rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.2);
}

.ep-hero--transparent .ep-hero__meta-item {
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.ep-hero--transparent .ep-hero__cta {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ep-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: var(--hem-text-lg);
	color: var(--ep-hero-text-muted, rgba(255,255,255,0.9));
	margin-bottom: 2rem;
}

.ep-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ep-hero-text-muted, rgba(255,255,255,0.9));
}

.ep-hero__cta {
	display: inline-block;
	background: var(--ep-cta-bg, #fff);
	color: var(--ep-cta-text, var(--event-color));
	font-weight: 700;
	font-size: var(--hem-text-lg);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.875rem 2.5rem;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ep-hero__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ── Sections ── */
.ep-section {
	padding-top: var(--ep-pad-top, 80px);
	padding-bottom: var(--ep-pad-bottom, 80px);
}

.ep-section--alt {
	background: var(--hem-gray-50);
}

.ep-section--bordered > .ep-container {
	border: 1px solid var(--hem-gray-200);
	border-radius: var(--ep-border-radius, 8px);
	padding: 2.5rem;
}

.ep-section__title {
	font-size: var(--hem-text-3xl);
	font-weight: 800;
	text-align: center;
	margin: 0 0 3rem;
	color: var(--hem-gray-900);
}

/* ── Grid Layout ── */
.ep-grid {
	display: grid;
	gap: 2rem;
}

.ep-grid--1 { grid-template-columns: 1fr; }
.ep-grid--12-12 { grid-template-columns: 1fr 1fr; }
.ep-grid--13-23 { grid-template-columns: 1fr 2fr; }
.ep-grid--23-13 { grid-template-columns: 2fr 1fr; }
.ep-grid--13-13-13 { grid-template-columns: 1fr 1fr 1fr; }

.ep-snap-grid__col {
	min-width: 0;
	align-self: stretch;
	display: flex;
	flex-direction: column;
}

.ep-snap-grid__col .ep-section__title {
	text-align: left;
	font-size: var(--hem-text-2xl);
	margin-bottom: 1.5rem;
}

.ep-snap-grid__col .ep-about__content {
	max-width: none;
	margin: 0 0 1.5rem;
}

.ep-snap-grid__col .ep-speakers {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ep-snap-grid__col .ep-countdown {
	gap: 1rem;
}

.ep-snap-grid__col .ep-countdown__item {
	padding: 1rem;
}

/* ── About ── */
.ep-about__content {
	max-width: 720px;
	margin: 0 auto 3rem;
	font-size: var(--hem-text-lg);
	line-height: 1.8;
	color: var(--hem-gray-600);
}

.ep-about__content p { margin: 0 0 1.25rem; }
.ep-about__content p:last-child { margin-bottom: 0; }

.ep-about__details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	max-width: 720px;
	margin: 0 auto;
}

.ep-detail-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--hem-gray-50);
	border-radius: var(--hem-radius);
	border: 1px solid var(--hem-gray-200);
}

.ep-detail-card__icon {
	flex-shrink: 0;
}

.ep-detail-card__label {
	font-size: var(--hem-text-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hem-gray-500);
	font-weight: 600;
	margin-bottom: 0.125rem;
}

.ep-detail-card__value {
	font-weight: 600;
	color: var(--hem-gray-800);
}

/* ── Agenda Timeline ── */
.ep-agenda {
	max-width: 100%;
	margin: 0 auto;
	position: relative;
}

.ep-agenda__block {
	display: grid;
	grid-template-columns: 72px 24px 1fr;
	gap: 0;
	min-height: 48px;
	align-items: start;
}

.ep-agenda__time {
	text-align: right;
	padding-top: 0.875rem;
	padding-right: 1rem;
}

.ep-agenda__start {
	display: block;
	font-weight: 700;
	font-size: var(--hem-text-sm);
	color: var(--hem-gray-800);
}

.ep-agenda__end {
	display: block;
	font-size: var(--hem-text-xs);
	color: var(--hem-gray-400);
}

.ep-agenda__line {
	position: relative;
	display: flex;
	justify-content: center;
}

.ep-agenda__line::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--hem-gray-200);
}

.ep-agenda__block:first-child .ep-agenda__line::before {
	top: 1rem;
}

.ep-agenda__block:last-child .ep-agenda__line::before {
	bottom: auto;
	height: 1rem;
}

.ep-agenda__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px var(--hem-gray-200);
	position: relative;
	z-index: 1;
	margin-top: 1rem;
}

.ep-agenda__content {
	padding: 0.5rem 0 0.75rem 1rem;
}

.ep-agenda__type {
	display: inline-block;
	font-size: var(--hem-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.25rem;
}

.ep-agenda__title {
	font-size: var(--hem-text-lg);
	font-weight: 700;
	margin: 0 0 0.375rem;
	color: var(--hem-gray-900);
}

.ep-agenda__desc-wrap {
	margin: 0 0 0.75rem;
}
.ep-agenda__desc-wrap[data-collapsed="1"] .ep-agenda__desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ep-agenda__desc {
	font-size: var(--hem-text-sm);
	color: var(--hem-gray-500);
	margin: 0;
	line-height: 1.6;
}
.ep-agenda__read-more {
	background: none;
	border: none;
	padding: 0;
	margin-top: 4px;
	font-size: var(--hem-text-xs);
	color: var(--hem-primary, #2563eb);
	cursor: pointer;
	font-weight: 500;
}

.ep-agenda__speakers {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ep-agenda__speaker {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ep-agenda__speaker-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.ep-agenda__speaker-avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--hem-gray-200);
	color: var(--hem-gray-600);
	font-size: var(--hem-text-xs);
	font-weight: 700;
}

.ep-agenda__speaker-name {
	font-size: var(--hem-text-sm);
	font-weight: 500;
	color: var(--hem-gray-700);
}

/* ── Multi-track agenda: unified timeline ── */
.ep-agenda__day-label {
	font-size: var(--hem-text-lg);
	font-weight: 700;
	color: var(--hem-gray-800);
	padding: 1.5rem 0 0.5rem;
	margin: 0;
}
.ep-agenda__day-label:first-child {
	padding-top: 0;
}

/* ══════════════════════════════════════
   Multi-track: Grid-aligned layout
   ══════════════════════════════════════ */

/* Main grid container */
.ep-agenda--grid-aligned {
	display: grid;
	gap: 0.5rem;
	align-items: stretch;
}

/* Grid cells */
.ep-grid-cell--header {
	/* empty top-left corner */
}
.ep-grid-cell--time {
	display: flex;
	align-items: start;
	padding-top: 0.875rem;
	padding-right: 0.75rem;
	justify-content: flex-end;
}
.ep-grid-time {
	font-size: 11px;
	font-weight: 600;
	color: var(--hem-gray-400);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Track header */
.ep-track-col__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0.5rem;
	font-weight: 700;
	font-size: var(--hem-text-sm);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--hem-gray-800);
	border-bottom: 2px solid var(--hem-gray-200);
}
.ep-track-col__dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Session card — compact: time + title + optional speaker hint */
.ep-track-card {
	background: var(--hem-white);
	border: 1px solid var(--hem-gray-200);
	border-left: 4px solid var(--card-accent, var(--event-color));
	border-radius: var(--hem-radius-md, 6px);
	padding: 0.5rem 0.75rem;
	transition: box-shadow 0.2s;
	align-self: stretch;
	overflow: hidden;
}
.ep-track-card--clickable:hover {
	box-shadow: var(--hem-shadow-sm);
	border-color: var(--card-accent, var(--hem-gray-300));
}

.ep-track-card__time {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--hem-gray-500);
	font-variant-numeric: tabular-nums;
	margin-bottom: 0.125rem;
}
.ep-track-card__title {
	font-size: var(--hem-text-sm, 0.875rem);
	font-weight: 700;
	color: var(--hem-gray-900);
	margin: 0;
	line-height: 1.3;
}
.ep-track-card__speakers-hint {
	font-size: 0.7rem;
	color: var(--hem-gray-400);
	margin-top: 0.125rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Break cards: compact, muted */
.ep-track-card--break {
	background: var(--hem-gray-50);
	border-color: var(--hem-gray-200);
	padding: 0.5rem 1rem;
}
.ep-track-card--break .ep-track-card__title {
	font-size: var(--hem-text-sm);
	font-weight: 600;
	color: var(--hem-gray-600);
	margin-bottom: 0;
}

/* Cross-stage card (spans all track columns) */
.ep-track-card--cross {
	border-style: dashed;
	background: var(--hem-gray-50);
	text-align: center;
}

/* Track label — shown on mobile only (inside each card) */
.ep-track-card__track {
	display: none;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--card-accent, var(--event-color));
	margin-bottom: 0.125rem;
}

/* Hidden gap spacers — invisible but maintain grid alignment */
.ep-track-spacer {
	visibility: hidden;
	min-height: 0;
}

/* Responsive: collapse multi-track grid to single-column list on mobile */
@media (max-width: 768px) {
	.ep-agenda--grid-aligned {
		display: flex !important;
		flex-direction: column;
		gap: 0.5rem;
	}
	/* Hide grid-specific elements: time column, header corner, track headers, spacers */
	.ep-grid-cell--time,
	.ep-grid-cell--header,
	.ep-track-col__header,
	.ep-track-spacer {
		display: none !important;
	}
	/* Reset inline grid positioning on cards */
	.ep-track-card {
		grid-row: auto !important;
		grid-column: auto !important;
		width: 100%;
	}
	/* Show track label on mobile (hidden on desktop via .ep-track-card__track) */
	.ep-track-card__track {
		display: inline-block;
	}
}

/* Session card (used in multi-track grid) */
.ep-agenda__card {
	display: flex;
	border-radius: var(--hem-radius-md);
	overflow: hidden;
	background: var(--hem-white);
	border: 1px solid var(--hem-gray-200);
	transition: box-shadow 0.2s;
}

.ep-agenda__card:hover {
	box-shadow: var(--hem-shadow-sm);
}

.ep-agenda__card-accent {
	width: 4px;
	flex-shrink: 0;
	background: var(--block-color, var(--event-color));
}

.ep-agenda__card-body {
	padding: 0.75rem 1rem;
	flex: 1;
	min-width: 0;
}

.ep-agenda__card-time {
	font-size: var(--hem-text-xs);
	color: var(--hem-gray-500);
	margin-bottom: 0.25rem;
	font-variant-numeric: tabular-nums;
}

.ep-agenda__card-title {
	font-size: var(--hem-text-sm);
	font-weight: 600;
	color: var(--hem-gray-900);
	margin: 0 0 0.25rem;
}


/* Media / Layout Element blocks */
.ep-agenda__media-block {
	padding: 1.5rem 0;
}

/* Gallery — grid mode (full-width) */
.ep-gallery {
	display: grid;
	gap: 0.75rem;
}
.ep-gallery--cols-1 { grid-template-columns: 1fr; }
.ep-gallery--cols-2 { grid-template-columns: 1fr 1fr; }
.ep-gallery--cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.ep-gallery--cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.ep-gallery__img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--hem-radius);
}

/* Gallery — slideshow mode (inside grid column) */
.ep-snap-grid__col > .ep-gallery-slideshow,
.ep-snap-grid__col > div:has(> .ep-gallery-slideshow) {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.ep-gallery-slideshow {
	position: relative;
	width: 100%;
	min-height: 200px;
	flex: 1;
	border-radius: var(--hem-radius);
	overflow: hidden;
}
.ep-gallery-slideshow__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease;
}
.ep-gallery-slideshow__img--active {
	opacity: 1;
}

/* Video block — hero-style cover */
/* ── Event page: normal responsive video player (16:9) ── */
.ep-video-player {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	background: #000;
	border-radius: var(--hem-radius-md);
}
.ep-video-player iframe,
.ep-video-player video,
.ep-video-player object,
.ep-video-player embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}
/* Lazy video thumbnail placeholder */
.ep-video-lazy {
	position: absolute;
	inset: 0;
	cursor: pointer;
	z-index: 2;
	background-size: cover;
	background-position: center;
	background-color: #000;
}
.ep-video-lazy::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.15);
}
.ep-video-lazy__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(0,0,0,0.7);
	border-radius: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ep-video-lazy__play::after {
	content: '';
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #fff;
	margin-left: 3px;
}
.ep-video-lazy:hover .ep-video-lazy__play {
	background: rgba(200,0,0,0.9);
}

/* ── Registration page: full-bleed video cover with overlay ── */
.ep-section:has(.ep-video__overlay) {
	position: relative;
	overflow: hidden;
	min-height: 480px;
	display: flex;
	padding: 0;
}
.ep-section:has(.ep-video__overlay) > .ep-container {
	max-width: none;
	padding: 0;
	display: contents;
}
.ep-section:has(.ep-video__overlay) > .ep-container > iframe,
.ep-section:has(.ep-video__overlay) > .ep-container > video {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
	border: none;
	pointer-events: none;
}
.ep-section:has(.ep-video__overlay) > .ep-container > iframe {
	width: calc(100% + 200px);
	height: calc(100% + 200px);
	min-width: 177.78vh;
	min-height: 56.25vw;
	transform: translate(-50%, -50%);
}
.ep-section:has(.ep-video__overlay) > .ep-container > video {
	min-width: 100%;
	min-height: 100%;
	transform: translate(-50%, -50%);
	object-fit: cover;
}
.ep-video__overlay {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.15));
}
.ep-video__title {
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	font-size: var(--hem-text-3xl);
	margin: 0;
}

.ep-richcontent {
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.7;
	color: var(--hem-gray-700);
}

/* ── Speakers Grid ── */
.ep-speakers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2rem;
}

.ep-speaker-card {
	text-align: center;
	padding: 2rem 1.5rem;
	background: var(--hem-white);
	border-radius: 12px;
	border: 1px solid var(--hem-gray-200);
	transition: box-shadow 0.2s, transform 0.2s;
}

.ep-speaker-card:hover {
	box-shadow: var(--hem-shadow-lg);
	transform: translateY(-2px);
}

.ep-speaker-card__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	margin: 0 auto 1.25rem;
	overflow: hidden;
	background: var(--hem-gray-100);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ep-speaker-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ep-speaker-card__initials {
	font-size: var(--hem-text-2xl);
	font-weight: 700;
	color: var(--hem-gray-400);
}

.ep-speaker-card__name {
	font-size: var(--hem-text-lg);
	font-weight: 700;
	margin: 0 0 0.25rem;
	color: var(--hem-gray-900);
}

.ep-speaker-card__role {
	font-size: var(--hem-text-sm);
	color: var(--ep-accent-on-white, var(--event-color));
	font-weight: 500;
	margin: 0 0 0.75rem;
}

.ep-speaker-card__bio {
	font-size: var(--hem-text-sm);
	color: var(--hem-gray-500);
	line-height: 1.6;
	margin: 0;
	text-align: left;
}

/* ── Sponsors ── */
.ep-sponsors {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	align-items: center;
}

.ep-sponsor {
	padding: 1.5rem 2rem;
	background: var(--hem-white);
	border-radius: var(--hem-radius);
	border: 1px solid var(--hem-gray-200);
	transition: box-shadow 0.15s;
}

.ep-sponsor:hover {
	box-shadow: var(--hem-shadow-md);
}

.ep-sponsor a {
	text-decoration: none;
	color: inherit;
}

.ep-sponsor__logo {
	max-height: 60px;
	max-width: 160px;
	object-fit: contain;
}

.ep-sponsor__name {
	font-weight: 600;
	color: var(--hem-gray-700);
	font-size: var(--hem-text-lg);
}

/* ── Registration ── */
.ep-register {
	max-width: 600px;
	margin: 0 auto;
}

/* ── Footer ── */
.ep-footer {
	padding: 2rem 0;
	text-align: center;
	border-top: 1px solid var(--hem-gray-200);
	color: var(--hem-gray-400);
	font-size: var(--hem-text-sm);
}

.ep-footer p { margin: 0; }

.ep-footer__text {
	margin: 0 0 0.5rem;
	color: var(--hem-gray-600);
}

.ep-footer__links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.ep-footer__links a {
	color: var(--hem-gray-500);
	text-decoration: none;
	transition: color 0.15s;
}

.ep-footer__links a:hover {
	color: var(--ep-accent-on-white, var(--event-color));
}

/* ── Gated Placeholder ── */
.ep-gated {
	text-align: center;
	padding: 3rem 2rem;
	background: var(--hem-gray-50);
	border: 2px dashed var(--hem-gray-200);
	border-radius: 12px;
}

.ep-gated p {
	margin: 1rem 0;
	color: var(--hem-gray-500);
	font-size: var(--hem-text-lg);
}

/* ── Countdown ── */
.ep-countdown {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.ep-countdown__item {
	text-align: center;
	min-width: 80px;
}

.ep-countdown__num {
	display: block;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	color: var(--ep-accent-on-white, var(--event-color));
	line-height: 1.1;
}

.ep-countdown__label {
	display: block;
	font-size: var(--hem-text-sm);
	color: var(--hem-gray-500);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 0.25rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.ep-hero__meta {
		flex-direction: column;
		gap: 0.75rem;
	}

	.ep-section {
		padding-top: var(--ep-pad-top, 48px);
		padding-bottom: var(--ep-pad-bottom, 48px);
	}

	.ep-section__title {
		font-size: var(--hem-text-2xl);
		margin-bottom: 2rem;
	}

	.ep-grid {
		grid-template-columns: 1fr !important;
	}

	/* Single-track timeline: stack vertically on mobile */
	.ep-agenda__block {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.ep-agenda__time {
		text-align: left;
		padding: 0 0 0.25rem 0;
	}
	.ep-agenda__line {
		display: none;
	}
	.ep-agenda__content {
		padding-left: 0;
	}

	/* Container width: reset track-scaled width on mobile */
	.hem-event-page {
		--ep-container-width: 100% !important;
	}

	.ep-speakers {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 1rem;
	}

	.ep-gallery--cols-3,
	.ep-gallery--cols-4 {
		grid-template-columns: 1fr 1fr;
	}

	.ep-gallery-slideshow {
		min-height: 250px;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.ep-speaker-card {
		padding: 1.5rem 1rem;
	}

	.ep-speaker-card__photo {
		width: 72px;
		height: 72px;
	}

	.ep-nav__links {
		display: none;
		position: absolute;
		top: 56px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: #fff;
		border-bottom: 1px solid var(--hem-gray-200);
		padding: 0.5rem;
		box-shadow: var(--hem-shadow-lg);
	}

	.ep-nav__links--open {
		display: flex;
	}

	.ep-nav__toggle {
		display: block;
	}

	.ep-about__details {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.ep-gallery--cols-2,
	.ep-gallery--cols-3,
	.ep-gallery--cols-4 {
		grid-template-columns: 1fr;
	}
	.ep-countdown__grid {
		gap: 1rem;
	}
	.ep-countdown__number {
		font-size: var(--hem-text-3xl);
	}
	.ep-container {
		padding: 0 1rem;
	}
	.ep-section--bordered > .ep-container {
		padding: 1.25rem;
	}
	.ep-session-modal__panel {
		padding: 1.25rem;
		width: 95%;
	}
	.ep-day-tab {
		padding: 0.4rem 0.75rem;
	}
}

/* Hide WP admin bar on event page */
.hem-event-page #wpadminbar {
	display: none !important;
}

html:has(.hem-event-page) {
	margin-top: 0 !important;
}

.hem-event-page {
	margin-top: 0 !important;
}

/* ── Day tabs for multi-day events ── */
.ep-day-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid var(--hem-gray-200, #e5e7eb);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.ep-day-tabs::-webkit-scrollbar {
	display: none;
}
.ep-day-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.5rem 1.25rem;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	color: var(--hem-gray-500, #6b7280);
	transition: color 0.15s, border-color 0.15s;
	gap: 1px;
}
.ep-day-tab:hover {
	color: var(--hem-gray-700, #374151);
}
.ep-day-tab--active {
	color: var(--event-color, #2563eb);
	border-bottom-color: var(--event-color, #2563eb);
}
.ep-day-tab__label {
	font-size: 0.875rem;
	font-weight: 700;
}
.ep-day-tab__date {
	font-size: 0.75rem;
}

/* ── Language switcher ── */
.ep-lang-switcher {
	display: flex;
	gap: 2px;
	margin-bottom: 1rem;
	background: #f1f5f9;
	border-radius: 8px;
	padding: 2px;
	width: fit-content;
}

.ep-lang-btn {
	padding: 0.3rem 0.75rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.15s;
}

.ep-lang-btn:hover {
	color: #475569;
}

.ep-lang-btn--active {
	background: white;
	color: var(--event-color, #2563eb);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ── Session detail modal ── */
.ep-session-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ep-session-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.ep-session-modal__panel {
	position: relative;
	background: var(--hem-white, #fff);
	border-radius: var(--hem-radius-lg, 12px);
	padding: 2rem;
	max-width: 540px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.ep-session-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--hem-gray-400);
	line-height: 1;
	padding: 0.25rem;
}
.ep-session-modal__close:hover {
	color: var(--hem-gray-700);
}
.ep-session-modal__type {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}
.ep-session-modal__title {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
	color: var(--hem-gray-900);
}
.ep-session-modal__time {
	font-size: 0.875rem;
	color: var(--hem-gray-500);
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.ep-session-modal__room {
	font-size: 0.8rem;
	color: var(--hem-gray-400);
	margin-bottom: 1rem;
}
.ep-session-modal__desc {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--hem-gray-700);
	margin-bottom: 1.25rem;
	white-space: pre-line;
}
.ep-session-modal__speakers {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.ep-session-modal__speaker {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.ep-session-modal__speaker-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.ep-session-modal__speaker-info {
	display: flex;
	flex-direction: column;
}
.ep-session-modal__speaker-info strong {
	font-size: 0.875rem;
	color: var(--hem-gray-900);
}
.ep-session-modal__speaker-info span {
	font-size: 0.75rem;
	color: var(--hem-gray-500);
}

/* ========================================
   Multi-Track Media (video/interaction per track)
   ======================================== */
.ep-track-media-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}
.ep-track-media-col {
	flex: 1;
	min-width: 0;
}
.ep-track-video {
	position: relative;
	border-radius: var(--hem-radius-md);
	overflow: hidden;
}
.ep-track-video__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	z-index: 5;
	transition: background 0.2s;
}
.ep-track-video:hover .ep-track-video__overlay {
	background: rgba(0, 0, 0, 0.5);
}

/* Expanded track panel — uses ep-grid for responsive stacking */
.ep-track-expanded {
	margin-bottom: 1rem;
}
.ep-track-expanded .ep-grid {
	align-items: stretch;
}
/* Interaction slot: contain:size prevents children from inflating the grid row.
   Grid row height is set by the video column. Slot stretches to match, content scrolls. */
.ep-track-int-slot {
	overflow: hidden;
	contain: size;
}
.ep-track-int-slot .ep-track-interaction,
.ep-track-int-slot .hem-interaction--embedded {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.ep-track-int-slot .hem-interaction-sidebar {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.ep-track-int-slot .hem-panel.hem-panel--active {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.ep-track-int-slot .hem-panel--active.hem-chat,
.ep-track-int-slot .hem-panel--active.hem-qa {
	flex: 1;
	flex-direction: column;
	min-height: 0;
}
.ep-track-int-slot .hem-chat__messages,
.ep-track-int-slot .hem-qa__questions {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
}
.ep-track-int-slot .hem-panel__footer,
.ep-track-int-slot .hem-qa__submit {
	flex-shrink: 0;
}
.ep-track-expanded__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
}
.ep-track-expanded__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--hem-gray-800);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.ep-track-expanded__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--hem-gray-400);
	cursor: pointer;
	padding: 4px;
}
.ep-track-expanded__close:hover {
	color: var(--hem-gray-700);
}
@media (max-width: 768px) {
	.ep-track-media-row {
		flex-direction: column;
	}
}
