/* VAEM Archive — uses programm timeline layout + archive-specific styles */

/* Reuse programm timeline styles */
.vaem-timeline {
	margin-top: 0;
	max-width: var(--width-narrow, 768px);
	margin-left: auto;
	margin-right: auto;
}

.vaem-timeline__header {
	margin-bottom: var(--space-m, 1.75rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.vaem-timeline__back {
	font-size: 0.875rem;
	color: var(--color-muted, #595959);
	text-decoration: none;
}

.vaem-timeline__back:hover {
	color: var(--color-primary, #004f9f);
}

.vaem-timeline__downloads {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.vaem-timeline__download {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-ink, #27272A);
	text-decoration: none;
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--neutral-200, #E4E4E7);
	border-radius: 0.5rem;
	background: #fff;
}

.vaem-timeline__download:hover {
	border-color: var(--neutral-500, #A1A1AA);
}

.vaem-timeline__day {
	margin-bottom: var(--space-l, 2.5rem);
	border: 1px solid var(--neutral-200, #E4E4E7);
	border-radius: 0.75rem;
	overflow: hidden;
}

.vaem-timeline__day-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-ink, #27272A);
	margin: 0;
	padding: 0.75rem 1.25rem;
	background: var(--neutral-100, #F4F4F5);
	border-bottom: 1px solid var(--neutral-200, #E4E4E7);
}

.vaem-timeline__entry {
	display: flex;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--neutral-200, #E4E4E7);
	align-items: flex-start;
}

.vaem-timeline__entry:last-child {
	border-bottom: none;
}

.vaem-timeline__entry--session {
	background: #E4E4E7;
}

.vaem-timeline__entry-time {
	flex: 0 0 90px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-muted, #71717A);
	padding-top: 0.125rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vaem-timeline__entry-content {
	flex: 1;
	min-width: 0;
}

.vaem-timeline__entry-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-ink, #27272A);
	margin: 0 0 0.25rem;
	line-height: 1.4;
}

.vaem-timeline__entry-desc {
	font-size: 0.8125rem;
	color: var(--color-muted, #71717A);
	line-height: 1.4;
}

/* ── Archive-specific styles ──────────────────────────────────── */

.vaem-archive-preview-banner {
	background: #ffb900;
	color: #000;
	padding: 10px 20px;
	text-align: center;
	font-weight: 600;
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.vaem-archive-event-title {
	color: var(--color-primary, #00509b);
	font-size: 1.5rem;
	margin: 0 0 0.25rem;
}

.vaem-archive-event-date {
	color: var(--color-muted, #595959);
	font-size: 0.9rem;
	margin: 0 0 1rem;
}

.vaem-archive-desc {
	margin-bottom: 1.5rem;
}

.vaem-archive-desc__short {
	font-size: 0.9rem;
	color: var(--color-ink, #333);
	margin: 0;
}

.vaem-archive-desc__toggle {
	margin-top: 0.5rem;
}

.vaem-archive-desc__toggle summary {
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--color-primary, #00509b);
	font-weight: 500;
}

.vaem-archive-desc__full {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--color-ink, #333);
}

.vaem-archive-desc__full p {
	margin: 0 0 0.75rem;
}

.vaem-archive-intro {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 2rem;
}

/* Archive entry with video */
.vaem-archive-entry--has-video {
	cursor: pointer;
}

.vaem-archive-entry--has-video:hover {
	background: var(--neutral-100, #F8F8F8);
}

.vaem-archive-entry__action {
	flex: 0 0 auto;
	padding-top: 0.125rem;
}

.vaem-archive-play-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-primary, #004f9f);
	text-decoration: none;
	white-space: nowrap;
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--color-primary, #004f9f);
	border-radius: 0.5rem;
	transition: background 0.15s ease, color 0.15s ease;
}

.vaem-archive-play-btn:hover {
	background: var(--color-primary, #004f9f);
	color: #fff;
}

.vaem-archive-no-video {
	font-size: 0.75rem;
	color: var(--color-muted, #999);
	font-style: italic;
}

/* ── Modal ───────────────────────────────────────────────────── */
.vaem-archive-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vaem-archive-modal[hidden] {
	display: none;
}

.vaem-archive-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
}

.vaem-archive-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 800px;
	width: 95%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.vaem-archive-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 4px 8px;
	z-index: 1;
}

.vaem-archive-modal__close:hover {
	color: #333;
}

.vaem-archive-modal__body {
	padding: 1.5rem;
	text-align: center;
}

.vaem-archive-modal__body h3 {
	color: var(--color-primary, #00509b);
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.vaem-archive-modal__speaker {
	color: #666;
	font-size: 0.9rem;
	margin: 0 0 1rem;
}

.vaem-archive-player {
	width: 100%;
	max-width: 720px;
	height: auto;
	border-radius: 4px;
}

/* ── Sponsors section ────────────────────────────────────────── */
.vaem-ls-sponsors {
	margin-top: var(--space-xl, 3rem);
	padding-top: var(--space-l, 2.5rem);
	border-top: 1px solid var(--color-border, #dfdfdf);
	width: 100%;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50%;
	margin-right: -50%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.vaem-ls-sponsors__inner {
	max-width: var(--width-normal, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.vaem-ls-sponsors__title {
	color: var(--color-primary, #00509b);
	font-size: 1.3rem;
	font-weight: bold;
	margin-bottom: var(--space-m, 1.75rem);
	text-align: center;
}