/* Events Totem - kiosk design system (2025: lightning dark, glass, kinetic type). */

@font-face {
	font-family: 'Space Grotesk';
	src: url('../fonts/space-grotesk-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--et-dedi: #a679f3;
	--et-dedi-deep: #7c5bd0;
	--et-dedi-rgb: 166, 121, 243;
	--et-dedi-accent: #7c3aed;
	--et-dedi-accent-rgb: 124, 58, 237;
	--et-dedi-accent-ink: #ffffff;
}

#events-totem {
	--et-bg: #05050b;
	--et-bg-soft: #0b0b16;
	--et-ink: #f5f5ff;
	--et-muted: #8f8fae;
	--et-glass: rgba(255, 255, 255, 0.05);
	--et-glass-2: rgba(255, 255, 255, 0.09);
	--et-line: rgba(255, 255, 255, 0.1);
	--et-line-strong: rgba(255, 255, 255, 0.2);
	--et-accent: #7c3aed;
	--et-accent-2: #06b6d4;
	--et-accent-rgb: 124, 58, 237;
	--et-secondary-rgb: 6, 182, 212;
	--et-radius: 24px;
	--et-radius-m: 18px;
	--et-radius-s: 12px;
	--et-header-h: 64px;
	--et-desme-bar-h: 34px;
	--et-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
	--et-glass-blur: blur(18px) saturate(140%);

	position: relative;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background: var(--et-bg);
	color: var(--et-ink);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	touch-action: manipulation;
}

#events-totem *,
#events-totem *::before,
#events-totem *::after {
	box-sizing: border-box;
}

#events-totem [hidden] {
	display: none !important;
}

#events-totem img {
	max-width: 100%;
	display: block;
}

:where(#events-totem) button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

#events-totem h1, #events-totem h2, #events-totem h3, #events-totem h4 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	margin: 0;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

#events-totem ::selection {
	background: rgba(var(--et-accent-rgb), 0.5);
}

/* ---------- background layers ---------- */

.et-fx {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.et-fx-fallback {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(120% 90% at 15% -10%, rgba(var(--et-accent-rgb), 0.28), transparent 55%),
		radial-gradient(110% 80% at 90% 110%, rgba(var(--et-secondary-rgb), 0.22), transparent 60%),
		linear-gradient(180deg, #07070f, #05050b);
}

.et-aurora {
	position: absolute;
	inset: -20%;
	z-index: 1;
	pointer-events: none;
	opacity: 0.55;
	filter: blur(90px);
	background:
		radial-gradient(30% 36% at 22% 28%, rgba(var(--et-accent-rgb), 0.5), transparent 70%),
		radial-gradient(28% 32% at 78% 64%, rgba(var(--et-secondary-rgb), 0.4), transparent 70%),
		radial-gradient(24% 30% at 60% 20%, rgba(var(--et-dedi-rgb), 0.14), transparent 70%);
	animation: et-drift 38s ease-in-out infinite alternate;
}

@keyframes et-drift {
	0% { transform: translate3d(-2%, -1%, 0) scale(1) rotate(0.001deg); }
	50% { transform: translate3d(2%, 2%, 0) scale(1.06) rotate(0.001deg); }
	100% { transform: translate3d(-1%, 3%, 0) scale(1.02) rotate(0.001deg); }
}

.et-noise {
	position: absolute;
	inset: 0;
	z-index: 45;
	pointer-events: none;
	opacity: 0.05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Desme bar (always visible, brand identity) ---------- */

.et-desme-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 350;
	height: calc(env(safe-area-inset-top) + var(--et-desme-bar-h));
	padding: env(safe-area-inset-top) 16px 0;
	display: flex;
	align-items: center;
	background: #000000;
	pointer-events: none;
}

.et-desme-bar__label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 auto;
	min-width: 0;
	max-width: calc(100% - 32px);
}

.et-desme-bar__logo {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
}

.et-desme-bar__mark {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.et-desme-bar__text {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.et-desme-bar__wordmark {
	height: 10px;
	width: auto;
	display: block;
	flex: 0 0 auto;
}

/* Full-page kiosk: the rounding of the embedded-widget frame is pointless. */
body.events-totem-kiosk #events-totem {
	border-radius: 0;
}

/* ---------- header ---------- */

.et-header {
	position: absolute;
	top: calc(env(safe-area-inset-top) + var(--et-desme-bar-h) + 10px);
	left: 12px;
	right: 12px;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: var(--et-header-h);
	padding: 0 10px 0 12px;
	border-radius: 20px;
	border: 1px solid transparent;
	transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease;
}

.et-header[data-mode='hidden'] {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-8px);
}

.et-header[data-mode='solid'] {
	background: rgba(10, 10, 22, 0.66);
	border-color: var(--et-line);
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.et-header[data-mode='glass'] {
	background: linear-gradient(180deg, rgba(5, 5, 11, 0.62), rgba(5, 5, 11, 0.12));
	border-color: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.et-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 15px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	color: var(--et-ink);
	flex: 0 0 auto;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}

.et-header__btn:active {
	transform: scale(0.92);
	border-color: rgba(var(--et-accent-rgb), 0.6);
	box-shadow: 0 0 0 4px rgba(var(--et-accent-rgb), 0.18);
}

.et-header__btn svg {
	width: 20px;
	height: 20px;
}

.et-header__brand {
	/* Centered against the header itself: the back button must not shift it. */
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	max-width: calc(100% - 130px);
}

.et-brand-logo {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--et-line-strong), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.et-brand-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--et-accent), var(--et-accent-2));
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 17px;
	box-shadow: 0 0 0 1px var(--et-line-strong), 0 10px 26px rgba(var(--et-accent-rgb), 0.45);
}

.et-brand-name {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Dedi avatar (graphics from the Cluster Minit Dedi plugin) ---------- */

.et-dedi-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.et-dedi-avatar svg {
	width: 100%;
	height: 100%;
	display: block;
}

.et-dedi-avatar--btn {
	width: 30px;
	height: 24px;
	color: var(--et-dedi);
}

.et-dedi-avatar--fab {
	width: 42px;
	height: 34px;
	color: #0b0b14;
}

.et-dedi-avatar [data-dedi-eye] {
	animation: et-dedi-blink-idle 6s infinite;
}

.et-dedi-avatar [data-dedi-mouth] {
	display: none;
}

@keyframes et-dedi-blink-idle {
	0%, 91%, 100% { height: 22.0675px; }
	94% { height: 2px; }
	97% { height: 22.0675px; }
}

/* ---------- screens ---------- */

.et-screens {
	position: absolute;
	inset: 0;
	z-index: 10;
}

.et-screen {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: calc(var(--et-header-h) + env(safe-area-inset-top) + var(--et-desme-bar-h) + 26px) 0 56px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.et-screen::-webkit-scrollbar {
	display: none;
}

.et-screen--attract {
	padding: 0;
	overflow: hidden;
}

.et-pad {
	padding: 0 18px;
	max-width: 1200px;
	margin: 0 auto;
}

.et-title {
	font-size: 28px;
}

.et-sub {
	color: var(--et-muted);
	margin: 8px 0 0;
	font-size: 15px;
}

.et-page-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin: 2px 0 16px;
}

.et-page-title {
	font-size: clamp(26px, 6vw, 40px);
}

.et-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 30px 0 12px;
}

.et-section-title {
	font-size: 13px;
	font-family: 'Inter', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--et-muted);
	font-weight: 500;
}

.et-section-count {
	font-size: 12px;
	color: var(--et-muted);
	letter-spacing: 0.08em;
}

/* ---------- reveal / motion ---------- */

@keyframes et-rise {
	from {
		opacity: 0;
		transform: translateY(22px) scale(0.985);
		filter: blur(8px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

.et-reveal {
	animation: et-rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: calc(var(--i, 0) * 65ms);
}

@keyframes et-float {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
	50% { transform: translate3d(0, -12px, 0) rotate(var(--rot, 0deg)); }
}

@keyframes et-pulse-ring {
	0% { transform: scale(0.85); opacity: 0.65; }
	100% { transform: scale(1.65); opacity: 0; }
}

@keyframes et-eq {
	0%, 100% { transform: scaleY(0.35); }
	50% { transform: scaleY(1); }
}

@keyframes et-spin {
	to { transform: rotate(1turn); }
}

@keyframes et-shimmer {
	to { background-position: 200% 0; }
}

@keyframes et-ticker {
	to { transform: translateX(-50%); }
}

/* ---------- attract ---------- */

.et-screen--attract {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.et-covers {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.et-cover-float {
	position: absolute;
	width: var(--w, 180px);
	height: calc(var(--w, 180px) * 0.66);
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
	opacity: var(--o, 0.85);
	filter: blur(var(--blur, 0));
	animation: et-float var(--dur, 9s) ease-in-out infinite;
	animation-delay: var(--delay, 0s);
}

.et-cover-float img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.et-cover-float::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(var(--et-accent-rgb), 0.14), rgba(5, 5, 11, 0.28));
}

.et-attract__center {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 0 28px;
	transform: translateY(-3vh);
}

.et-attract__logo {
	width: 112px;
	height: 112px;
	border-radius: 30px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--et-accent), var(--et-accent-2));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 48px;
	font-weight: 700;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 30px 80px rgba(var(--et-accent-rgb), 0.55);
	position: relative;
}

.et-attract__logo::after {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 33px;
	padding: 2px;
	background: conic-gradient(from 0deg, rgba(255,255,255,0), var(--et-accent), var(--et-accent-2), rgba(255,255,255,0));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	animation: et-spin 6s linear infinite;
	opacity: 0.9;
}

.et-attract__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.et-attract__range {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--et-dedi);
	text-shadow: 0 0 24px rgba(var(--et-dedi-rgb), 0.55);
}

.et-attract__title {
	font-size: clamp(46px, 11vw, 104px);
	line-height: 0.96;
	letter-spacing: -0.035em;
	background: linear-gradient(115deg, #ffffff 20%, var(--et-accent) 70%, var(--et-accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	max-width: 16ch;
}

.et-attract__title .et-word {
	display: inline-block;
	/* The gradient must live on the word itself: the parent's transparent
	   text fill is inherited, but its background is not. */
	background: linear-gradient(115deg, #ffffff 20%, var(--et-accent) 70%, var(--et-accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: et-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: calc(var(--i, 0) * 120ms + 150ms);
}

.et-attract__sub {
	color: var(--et-muted);
	max-width: 36ch;
	font-size: 16px;
}

.et-countdown {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.et-countdown__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--et-muted);
	margin-right: 4px;
}

.et-countdown__part {
	min-width: 62px;
	padding: 10px 12px;
	border-radius: 16px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 24px;
	line-height: 1;
	color: var(--et-ink);
}

.et-countdown__part small {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--et-muted);
	margin-top: 5px;
}

.et-attract__next {
	margin-top: 2px;
	padding: 12px 18px;
	border-radius: 16px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	font-size: 14px;
	color: var(--et-ink);
	max-width: 46ch;
}

.et-attract__next b {
	color: var(--et-dedi);
	font-weight: 500;
}

.et-ticker {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 108px;
	z-index: 3;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.et-ticker__track {
	display: flex;
	gap: 42px;
	width: max-content;
	animation: et-ticker 40s linear infinite;
}

.et-ticker__item {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(245, 245, 255, 0.5);
	white-space: nowrap;
}

.et-ticker__item::after {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--et-accent);
	margin-left: 42px;
	vertical-align: middle;
	box-shadow: 0 0 12px rgba(var(--et-accent-rgb), 0.9);
}

.et-install {
	position: absolute;
	top: calc(env(safe-area-inset-top) + var(--et-desme-bar-h) + 14px);
	right: 16px;
	z-index: 6;
	margin: 0;
	padding: 8px 15px;
	border-radius: 999px;
	background: var(--et-glass);
	border: 1px solid var(--et-line-strong);
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	color: var(--et-ink);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: transform 0.18s ease, border-color 0.2s ease;
}

.et-install:hover {
	border-color: rgba(var(--et-accent-rgb), 0.55);
}

.et-install:active {
	transform: scale(0.95);
}

.et-attract__hint {
	position: relative;
	margin-top: 12px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--et-dedi), var(--et-accent));
	border: 0;
	color: #0b0b14;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.01em;
	box-shadow: 0 18px 50px rgba(var(--et-dedi-rgb), 0.4);
	animation: et-breathe 2.6s ease-in-out infinite;
}

.et-attract__hint .et-attract__pulse {
	background: #0b0b14;
	box-shadow: none;
}

@keyframes et-breathe {
	0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(var(--et-accent-rgb), 0.25); }
	50% { transform: translateY(-3px); box-shadow: 0 0 0 12px rgba(var(--et-accent-rgb), 0); }
}

.et-attract__pulse {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--et-dedi);
	box-shadow: 0 0 0 0 rgba(var(--et-dedi-rgb), 0.65);
	animation: et-pulse-ring 2s ease-out infinite;
}

/* ---------- hero / home ---------- */

.et-hero {
	position: relative;
	padding: 22px 20px 24px;
	border-radius: 28px;
	background: linear-gradient(150deg, rgba(var(--et-accent-rgb), 0.2), rgba(var(--et-secondary-rgb), 0.1) 55%, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--et-line);
	overflow: hidden;
}

.et-hero__glow {
	position: absolute;
	top: -60%;
	right: -20%;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--et-accent-rgb), 0.5), transparent 65%);
	filter: blur(30px);
	pointer-events: none;
}

.et-hero__range {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--et-dedi);
	margin-bottom: 10px;
}

.et-hero__title {
	font-size: clamp(34px, 9vw, 64px);
	letter-spacing: -0.035em;
	background: linear-gradient(110deg, #fff 30%, rgba(255, 255, 255, 0.62));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ---------- live card ---------- */

.et-live {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 16px 0 6px;
	padding: 16px 18px;
	border-radius: 22px;
	background: linear-gradient(120deg, rgba(var(--et-accent-rgb), 0.3), rgba(var(--et-secondary-rgb), 0.14));
	border: 1px solid rgba(var(--et-accent-rgb), 0.45);
	box-shadow: 0 0 0 1px rgba(var(--et-accent-rgb), 0.12), 0 22px 60px rgba(var(--et-accent-rgb), 0.28);
	overflow: hidden;
}

.et-live::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
	background-size: 200% 100%;
	animation: et-shimmer 3.4s linear infinite;
	pointer-events: none;
}

.et-live__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #ff3b5c;
	box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.6);
	animation: et-pulse-ring 1.8s ease-out infinite;
	flex: 0 0 auto;
}

.et-live__eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 18px;
	flex: 0 0 auto;
}

.et-live__eq i {
	width: 3px;
	height: 100%;
	border-radius: 2px;
	background: var(--et-dedi);
	transform-origin: bottom;
	animation: et-eq 1s ease-in-out infinite;
}

.et-live__eq i:nth-child(2) { animation-delay: 0.15s; }
.et-live__eq i:nth-child(3) { animation-delay: 0.3s; }
.et-live__eq i:nth-child(4) { animation-delay: 0.45s; }

.et-live__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #ffd7de;
	font-weight: 500;
}

.et-live__title {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.15;
}

.et-live__meta {
	color: rgba(240, 240, 255, 0.72);
	font-size: 13px;
	margin-top: 3px;
}

/* ---------- day tabs / chips / pills ---------- */

.et-day-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 18px 0 6px;
	padding: 6px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--et-line);
	scrollbar-width: none;
}

.et-day-tabs::-webkit-scrollbar {
	display: none;
}

.et-day-tab {
	flex: 1 0 auto;
	min-width: 92px;
	padding: 11px 16px;
	border-radius: 15px;
	background: transparent;
	color: var(--et-muted);
	white-space: nowrap;
	font-weight: 500;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-align: left;
	transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.et-day-tab:hover {
	background: rgba(var(--et-accent-rgb), 0.12);
	color: var(--et-ink);
}

.et-day-tab__chev {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	opacity: 0.5;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.et-day-tab:hover .et-day-tab__chev {
	transform: translateX(2px);
	opacity: 0.9;
}

.et-day-tab.is-active .et-day-tab__chev {
	opacity: 0.95;
}

.et-day-tab small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
	margin-top: 2px;
}

.et-day-tab.is-active {
	background: linear-gradient(135deg, var(--et-accent), var(--et-accent-2));
	color: #fff;
	box-shadow: 0 12px 34px rgba(var(--et-accent-rgb), 0.45);
	transform: translateY(-1px);
}

.et-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 16px;
}

.et-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border-radius: 999px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	color: var(--et-muted);
	font-size: 14px;
	transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.et-chip:active {
	transform: scale(0.94);
}

.et-chip.is-active {
	background: linear-gradient(135deg, var(--et-accent), var(--et-accent-2));
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 26px rgba(var(--et-accent-rgb), 0.4);
}

.et-room-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--room-color, var(--et-muted));
	box-shadow: 0 0 10px var(--room-color, transparent);
	flex: 0 0 auto;
}

.et-pills {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 18px 0 4px;
}

.et-pill {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 15px 14px;
	border-radius: 20px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	font-size: 13px;
	font-weight: 500;
	color: var(--et-ink);
	overflow: hidden;
	text-align: left;
	transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.et-pill::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 0%), rgba(var(--et-accent-rgb), 0.28), transparent 70%);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.et-pill:active {
	transform: scale(0.96);
}

.et-pill:active::before,
.et-pill:hover::before {
	opacity: 1;
}

.et-pill svg {
	width: 26px;
	height: 26px;
	padding: 4px;
	box-sizing: content-box;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, var(--et-accent), var(--et-accent-2));
	box-shadow: 0 8px 22px rgba(var(--et-accent-rgb), 0.4);
}

/* ---------- search ---------- */

.et-search {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 16px;
	padding: 14px 17px;
	border-radius: 18px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.et-search:focus-within {
	border-color: rgba(var(--et-accent-rgb), 0.7);
	box-shadow: 0 0 0 4px rgba(var(--et-accent-rgb), 0.18), 0 18px 50px rgba(var(--et-accent-rgb), 0.22);
	background: var(--et-glass-2);
}

.et-search svg {
	width: 20px;
	height: 20px;
	color: var(--et-muted);
	flex: 0 0 auto;
}

.et-search input {
	flex: 1;
	min-width: 0;
	background: none;
	border: 0;
	outline: none;
	color: var(--et-ink);
	font: inherit;
}

.et-search input::placeholder {
	color: var(--et-muted);
}

#events-totem button.et-search__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	min-height: 48px;
	padding: 10px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--et-secondary, #06b6d4) 20%, transparent);
	color: inherit;
	cursor: pointer;
}

#screen-listing .et-search { margin-bottom: 16px; }
#et-listing-types, #et-listing-chips {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 8px;
}
#et-listing-types .et-chip, #et-listing-chips .et-chip { flex-shrink: 0; }

/* ---------- cards ---------- */

.et-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.et-bento {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: auto;
	gap: 12px;
	align-items: start;
}

.et-bento > *:first-child {
	grid-column: span 2;
}

.et-bento > * .et-card__cover {
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
}

.et-bento > *:first-child .et-card__cover {
	aspect-ratio: 4 / 3;
}

.et-bento > *:first-child .et-card__title {
	font-size: 22px;
	-webkit-line-clamp: 3;
}

.et-bento > *:first-child .et-card__body {
	padding: 16px;
}

.et-rail {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 18px 10px;
	margin: 0 -18px;
	scrollbar-width: none;
}

.et-rail::-webkit-scrollbar {
	display: none;
}

.et-rail > * {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: 74%;
	max-width: 300px;
}

.et-card {
	position: relative;
	border-radius: var(--et-radius-m);
	overflow: hidden;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	text-align: left;
	display: flex;
	flex-direction: column;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.3s ease;
	will-change: transform;
}

.et-card:active {
	border-color: rgba(var(--et-accent-rgb), 0.55);
	box-shadow: 0 18px 50px rgba(var(--et-accent-rgb), 0.28);
}

.et-card__cover {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background:
		radial-gradient(120% 120% at 20% 0%, rgba(var(--et-accent-rgb), 0.55), transparent 60%),
		radial-gradient(120% 120% at 90% 100%, rgba(var(--et-secondary-rgb), 0.5), transparent 60%),
		#14142a;
}

.et-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.et-card:active .et-card__cover img {
	transform: scale(1.06);
}

.et-card__cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(220px 160px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.et-card:active .et-card__cover::after {
	opacity: 1;
}

.et-card__letter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 42px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.et-card__body {
	padding: 12px 13px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.et-card__title {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.et-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	color: var(--et-muted);
	margin-top: auto;
}

.et-badge {
	--badge-color: var(--et-accent);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--badge-color) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--badge-color) 48%, transparent);
	color: color-mix(in srgb, var(--badge-color) 55%, #ffffff);
	font-size: 11px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.et-badge--time {
	background: rgba(var(--et-dedi-rgb), 0.16);
	border-color: rgba(var(--et-dedi-rgb), 0.45);
	color: var(--et-dedi);
	font-weight: 500;
}

.et-badge--room {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.14);
}

.et-badge--curated {
	background: rgba(var(--et-dedi-rgb), 0.16);
	border-color: rgba(var(--et-dedi-rgb), 0.45);
	color: var(--et-dedi);
}

/* ---------- timeline ---------- */

.et-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 8px;
}

.et-timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--et-accent), var(--et-accent-2), transparent);
	opacity: 0.55;
}

.et-listing-day {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.et-listing-day__title {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	margin: 16px 0 2px;
	padding: 3px 10px 3px 0;
	background: var(--et-bg);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 17px;
	font-weight: 700;
}

.et-listing-day__title small {
	margin-left: 9px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--et-muted);
}

.et-event-row {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	align-items: stretch;
	padding: 2px 0;
	position: relative;
}

.et-event-row__time {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	padding-top: 16px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -0.01em;
	color: var(--et-ink);
}

.et-event-row__time small {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--et-muted);
	margin-top: 2px;
}

.et-event-row__card {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 11px;
	border-radius: var(--et-radius-m);
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	text-align: left;
	align-items: center;
	transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.22s ease, background 0.22s ease, box-shadow 0.25s ease;
}

.et-event-row__card:hover {
	background: var(--et-glass-2);
}

.et-event-row__card:active {
	transform: scale(0.985);
}

.et-event-row__card.is-live {
	border-color: rgba(255, 59, 92, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 59, 92, 0.3), 0 18px 50px rgba(255, 59, 92, 0.22);
	background: linear-gradient(120deg, rgba(255, 59, 92, 0.16), rgba(var(--et-accent-rgb), 0.1));
}

.et-event-row__thumb {
	width: 76px;
	height: 58px;
	border-radius: 14px;
	overflow: hidden;
	flex: 0 0 auto;
	background:
		radial-gradient(120% 120% at 20% 0%, rgba(var(--et-accent-rgb), 0.5), transparent 60%),
		radial-gradient(120% 120% at 90% 100%, rgba(var(--et-secondary-rgb), 0.45), transparent 60%),
		#14142a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 22px;
}

.et-event-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.et-event-row__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.et-event-row__title {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- detail ---------- */

.et-detail__hero {
	position: relative;
	margin: 10px 18px 0;
	border-radius: 24px;
	height: min(44vh, 420px);
	overflow: hidden;
	background:
		radial-gradient(120% 120% at 20% 0%, rgba(var(--et-accent-rgb), 0.5), transparent 60%),
		radial-gradient(120% 120% at 90% 100%, rgba(var(--et-secondary-rgb), 0.45), transparent 60%),
		#14142a;
}

.et-detail__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.et-detail__hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 5, 11, 0.35) 0%, rgba(5, 5, 11, 0.08) 40%, rgba(5, 5, 11, 0.98) 100%);
}

.et-detail__hero-letter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 84px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
}

.et-detail__head {
	position: relative;
	margin: -96px 18px 0;
	padding: 0 16px;
	z-index: 2;
	max-width: 1164px;
}

.et-detail__title {
	font-size: clamp(30px, 8vw, 52px);
	letter-spacing: -0.035em;
	text-wrap: balance;
	/* Always over the hero image: light in both themes. */
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 10px 44px rgba(0, 0, 0, 0.72);
}

.et-detail__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 14px 0 4px;
}

.et-detail__badges .et-badge {
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	background: rgba(10, 10, 22, 0.55);
	border-color: var(--et-line-strong);
	padding: 7px 13px;
	font-size: 12px;
}

.et-detail__summary {
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: var(--et-radius-m);
	background: linear-gradient(120deg, rgba(var(--et-accent-rgb), 0.2), rgba(var(--et-secondary-rgb), 0.1));
	border: 1px solid rgba(var(--et-accent-rgb), 0.3);
	color: var(--et-ink);
	position: relative;
	overflow: hidden;
}

.et-detail__summary::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, var(--et-accent), var(--et-accent-2));
}

.et-detail__section {
	margin: 26px 0;
}

.et-detail__section h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--et-muted);
	margin-bottom: 12px;
}

.et-detail__section h3::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--et-line-strong), transparent);
}

.desc-text {
	color: rgba(245, 245, 255, 0.86);
	font-size: 15.5px;
}

.desc-text p {
	margin: 0 0 10px;
}

.desc-text img {
	max-width: 100%;
	border-radius: 14px;
}

.desc-text a {
	color: var(--et-dedi);
}

.et-resource {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 16px;
	border-radius: var(--et-radius-m);
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	margin-bottom: 9px;
	width: 100%;
	text-align: left;
	transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.et-resource:active {
	transform: scale(0.985);
	border-color: rgba(var(--et-accent-rgb), 0.5);
}

.et-resource svg {
	width: 20px;
	height: 20px;
	color: var(--et-dedi);
	flex: 0 0 auto;
}

.et-resource__label {
	flex: 1;
	min-width: 0;
	font-weight: 500;
}

.et-resource__label small {
	display: block;
	color: var(--et-muted);
	font-weight: 400;
	font-size: 12px;
	margin-top: 2px;
}

.et-resource > svg:last-child {
	color: var(--et-muted);
}

/* LinkedIn profile card: QR first (kiosk users scan with their phone). */
.et-linkedin {
	margin: 18px 0;
	padding: 18px;
	border-radius: var(--et-radius-m);
	background: var(--et-glass);
	border: 1px solid var(--et-line);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.et-linkedin__info {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	border-radius: 12px;
	transition: background 0.2s ease;
}

.et-linkedin__info:hover,
.et-linkedin__info:active {
	background: rgba(var(--et-accent-rgb), 0.1);
}

.et-linkedin__info:hover .et-linkedin__text b {
	color: #0a66c2;
}

.et-linkedin__info:hover .et-linkedin__text small {
	text-decoration: underline;
}

.et-linkedin__icon {
	width: 34px;
	height: 34px;
	color: #0a66c2;
	flex: 0 0 auto;
}

.et-linkedin__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-align: left;
}

.et-linkedin__text b {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 15.5px;
}

.et-linkedin__text small {
	color: var(--et-muted);
	font-size: 12.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.et-linkedin__qr {
	width: min(200px, 48vw);
	height: auto;
	padding: 10px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.et-linkedin__hint {
	color: var(--et-muted);
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.et-catalog {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 9px;
}

.et-catalog__row {
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
}

.et-catalog__row small {
	display: block;
	color: var(--et-muted);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin-bottom: 4px;
}

.et-related-group {
	margin-bottom: 16px;
}

.et-related-group h4 {
	margin: 0 0 10px;
	font-size: 12px;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	color: var(--et-muted);
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.et-related-rail {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 2px 2px 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.et-related-rail::-webkit-scrollbar {
	display: none;
}

.et-mouse-scrolling,
.et-mouse-dragging {
	scroll-snap-type: none;
	scroll-behavior: auto;
}

.et-mouse-dragging,
.et-mouse-dragging * {
	cursor: grabbing !important;
	user-select: none;
}

.et-related-rail .et-card {
	width: 168px;
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.et-fab {
	position: absolute;
	right: calc(20px + env(safe-area-inset-right));
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 20;
	height: 64px;
	padding: 0 24px 0 13px;
	gap: 11px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--et-dedi), var(--et-accent));
	box-shadow: 0 20px 55px rgba(var(--et-dedi-rgb), 0.45);
	transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.et-fab__label {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.01em;
	color: #0b0b14;
	white-space: nowrap;
}

.et-fab:active {
	transform: scale(0.92);
}

.et-fab__ring {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 2px solid rgba(var(--et-dedi-rgb), 0.6);
	animation: et-pulse-ring 2.4s ease-out infinite;
	pointer-events: none;
}

.et-fab__ring--delay {
	animation-delay: 1.2s;
}

/* ---------- org info ---------- */

.et-orginfo__cover {
	margin: 10px 18px 0;
	border-radius: 24px;
	height: min(40vh, 400px);
	overflow: hidden;
	background:
		radial-gradient(120% 120% at 20% 0%, rgba(var(--et-accent-rgb), 0.5), transparent 60%),
		radial-gradient(120% 120% at 90% 100%, rgba(var(--et-secondary-rgb), 0.45), transparent 60%),
		#14142a;
}

.et-orginfo__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.et-orginfo__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: -40px;
	position: relative;
	z-index: 2;
}

.et-orginfo__logo {
	width: 86px;
	height: 86px;
	border-radius: 26px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--et-accent), var(--et-accent-2));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 34px;
	font-weight: 700;
	box-shadow: 0 0 0 1px var(--et-line-strong), 0 24px 60px rgba(0, 0, 0, 0.55);
	flex: 0 0 auto;
}

.et-orginfo__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.et-orginfo__meta {
	display: grid;
	gap: 9px;
	margin: 20px 0;
}

.et-orginfo__meta div {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	color: rgba(245, 245, 255, 0.85);
	padding: 12px 14px;
	border-radius: 15px;
	background: var(--et-glass);
	border: 1px solid var(--et-line);
}

.et-orginfo__meta svg {
	width: 18px;
	height: 18px;
	color: var(--et-dedi);
	flex: 0 0 auto;
	margin-top: 2px;
}

/* ---------- chat / Dedi (Cluster Minit plugin component, kiosk skin) ---------- */

.et-chat {
	position: absolute;
	top: calc(env(safe-area-inset-top) + var(--et-desme-bar-h));
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	background: rgba(7, 7, 14, 0.92);
	backdrop-filter: blur(26px) saturate(140%);
	-webkit-backdrop-filter: blur(26px) saturate(140%);
	animation: et-rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.et-chat__header {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--et-line);
	background: linear-gradient(120deg, rgba(var(--et-dedi-rgb), 0.1), rgba(var(--et-accent-rgb), 0.12));
}

.et-chat__heading {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.et-chat__name {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 21px;
	letter-spacing: -0.01em;
	background: linear-gradient(100deg, var(--et-dedi), #ffffff 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
}

.et-chat__scope {
	font-size: 12px;
	color: var(--et-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0.04em;
}

/* The plugin component fills the panel: original look preserved
   (surface, bubbles, source popup, graph popup, animated robot),
   only the frame is adapted to the totem. */

.et-chat__body.et-dedi {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
}

.et-chat__body.et-dedi .et-dedi__messages {
	flex: 1;
	height: auto;
	padding: 18px 16px 10px;
}

.et-chat__body.et-dedi .et-dedi__form {
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.et-chat__body.et-dedi .et-dedi__message {
	font-size: 16px;
	max-width: min(88%, 760px);
}

.et-chat__body.et-dedi .et-dedi__input {
	font-size: 16px;
	min-height: 48px;
}

/* Kiosk skin for the bundled chat component: org colors + dark surfaces. */

/* The component sets its own defaults on `.et-dedi`: override on the host too. */

#events-totem,
.et-chat__body.et-dedi {
	--et-dedi-white: rgba(255, 255, 255, 0.07);
	--et-dedi-black: rgba(255, 255, 255, 0.2);
	--et-dedi-surface: rgba(255, 255, 255, 0.04);
	--et-dedi-yellow: var(--et-accent);
	--et-dedi-lime: rgba(var(--et-accent-rgb), 0.16);
	--et-dedi-soft: rgba(var(--et-accent-rgb), 0.16);
	--et-dedi-secondary-soft: rgba(255, 255, 255, 0.08);
}

/* The kiosk button reset would strip the component button styles. */

#events-totem .et-dedi__send {
	background: var(--et-dedi-accent);
	color: var(--et-dedi-accent-ink);
	border: 1px solid rgba(255, 255, 255, 0.24);
}

#events-totem .et-dedi__send:hover:not(:disabled) {
	background: var(--et-dedi);
	color: #131802;
}

#events-totem button.et-dedi__chip {
	background: var(--et-dedi-soft);
	border: 1px solid var(--et-dedi-accent);
	color: var(--et-dedi-accent-ink);
}

#events-totem .et-dedi__ref {
	background: var(--et-dedi-accent);
	color: var(--et-dedi-accent-ink);
}

#events-totem .et-dedi__message--ai {
	color: var(--et-ink);
}

#events-totem .et-dedi__message--ai a {
	color: var(--et-dedi);
}

#events-totem .et-dedi__message--ai code,
#events-totem .et-dedi__message--ai pre {
	background: rgba(var(--et-accent-rgb), 0.16);
	border-color: rgba(var(--et-accent-rgb), 0.3);
	color: var(--et-ink);
}

#events-totem .et-dedi__message--ai hr,
#events-totem .et-dedi__message--ai th,
#events-totem .et-dedi__message--ai td {
	border-color: rgba(255, 255, 255, 0.18);
}

#events-totem .et-dedi__message--ai th {
	background: rgba(255, 255, 255, 0.06);
}

#events-totem .et-dedi__message--ai blockquote {
	border-left-color: var(--et-accent);
}

#events-totem .et-dedi__message--error {
	border-color: rgba(255, 92, 122, 0.7);
	color: #ff9db1;
}

#events-totem .et-dedi__thinking {
	border-color: rgba(255, 255, 255, 0.24);
}

#events-totem .et-dedi__thinking summary {
	color: rgba(255, 255, 255, 0.68);
}

#events-totem .et-dedi__thinking-body {
	border-top-color: rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.72);
}

#events-totem .et-dedi__sources {
	border-top-color: rgba(255, 255, 255, 0.18);
}

#events-totem .et-dedi__sources-label {
	color: var(--et-dedi);
}

#events-totem .et-dedi__chip:hover,
#events-totem a.et-dedi__chip:hover {
	background: rgba(var(--et-accent-rgb), 0.3);
}

#events-totem .et-dedi__input {
	color: var(--et-ink);
}

#events-totem .et-dedi__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

#events-totem .et-dedi__form {
	background: rgba(255, 255, 255, 0.03);
}

/* The source/graph popups live on the body: keep them readable on dark. */

.et-dedi-modal {
	--et-dedi-white: rgba(255, 255, 255, 0.06);
	--et-dedi-black: rgba(255, 255, 255, 0.2);
	--et-dedi-surface: rgba(255, 255, 255, 0.05);
	--et-dedi-soft: rgba(var(--et-dedi-accent-rgb), 0.18);
}

.et-dedi-modal__panel,
.et-dedi-modal__header {
	background: #14142a;
}

.et-dedi-modal__header {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.et-dedi-modal__body {
	color: #e8e8f5;
}

.et-dedi-modal__loading,
.et-dedi-modal__empty {
	color: rgba(255, 255, 255, 0.55);
}

.et-dedi-modal__sep {
	border-top-color: rgba(255, 255, 255, 0.1);
}

.et-dedi-modal__close {
	color: var(--et-dedi);
}

@media (orientation: landscape) and (min-width: 760px) {
	.et-chat {
		left: auto;
		width: min(560px, 100%);
		right: 0;
		border-left: 1px solid var(--et-line);
		box-shadow: -30px 0 90px rgba(0, 0, 0, 0.6);
	}
}

/* ---------- panel / sheet / toast ---------- */

.et-panel {
	position: absolute;
	inset: 0;
	z-index: 70;
	display: flex;
	flex-direction: column;
	background: rgba(6, 6, 12, 0.96);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	padding-top: env(safe-area-inset-top);
	animation: et-rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.et-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--et-line);
	font-family: 'Space Grotesk', sans-serif;
}

.et-panel__body {
	flex: 1;
	min-height: 0;
	overflow: auto;
}

.et-panel__body iframe {
	width: 100%;
	height: 62vh;
	border: 0;
	background: #fff;
}

.et-panel__body img {
	width: 100%;
}

.et-panel__ai {
	padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
	color: rgba(245, 245, 255, 0.86);
}

.et-toast {
	position: absolute;
	left: 50%;
	bottom: calc(30px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 80;
	max-width: 86%;
	padding: 13px 20px;
	border-radius: 16px;
	background: rgba(16, 16, 36, 0.95);
	border: 1px solid var(--et-line-strong);
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	box-shadow: var(--et-shadow);
	font-size: 14px;
	animation: et-rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.et-more {
	display: block;
	margin: 20px auto 0;
	padding: 13px 26px;
	border-radius: 16px;
	background: var(--et-glass);
	border: 1px solid var(--et-line-strong);
	transition: transform 0.18s ease, border-color 0.2s ease;
}

.et-more:active {
	transform: scale(0.95);
	border-color: rgba(var(--et-accent-rgb), 0.6);
}

.et-empty {
	color: var(--et-muted);
	text-align: center;
	padding: 30px 0;
}

.et-noscript {
	color: #fff;
	text-align: center;
	padding: 40px 20px;
}

/* ---------- graphs ---------- */

.et-graph {
	position: absolute;
	inset: 0;
	padding-top: calc(var(--et-header-h) + env(safe-area-inset-top));
}

.et-graph-badge {
	position: absolute;
	top: calc(var(--et-header-h) + env(safe-area-inset-top) + 14px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 15;
	padding: 9px 18px;
	border-radius: 999px;
	background: rgba(10, 10, 22, 0.7);
	border: 1px solid var(--et-line);
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	font-size: 13px;
	font-family: 'Space Grotesk', sans-serif;
}

/* ---------- landscape / large screens ---------- */

@media (orientation: landscape) and (min-width: 760px) {
	.et-pad {
		padding: 0 30px;
	}

	.et-detail__hero {
		max-width: 1200px;
		margin: 14px auto 0;
		border-radius: 28px;
		height: min(62vh, 640px);
	}

	.et-orginfo__cover {
		max-width: 1200px;
		margin: 14px auto 0;
		border-radius: 28px;
		height: min(44vh, 420px);
	}

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

	.et-bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.et-bento > *:first-child {
		grid-column: span 2;
	}

	.et-pills {
		grid-template-columns: repeat(6, 1fr);
	}

	.et-pill {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}

	.et-rail > * {
		width: 300px;
	}

	.et-event-row {
		grid-template-columns: 76px 1fr;
	}

	.et-screen {
		padding-bottom: 70px;
	}

	.et-detail__head {
		margin-left: auto;
		margin-right: auto;
		padding: 0 16px;
	}
}

@media (min-width: 1200px) {
	.et-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	#events-totem * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.et-reveal {
		animation: none;
		opacity: 1;
	}
}

/* Embedded in Elementor (non kiosk page). */
.events-totem--elementor {
	border-radius: 28px;
	overflow: hidden;
}

body.events-totem-kiosk {
	margin: 0 !important;
	padding: 0;
	overflow: hidden;
	background: #05050b;
}

html:has(body.events-totem-kiosk) {
	margin-top: 0 !important;
}

body.events-totem-kiosk #wpadminbar {
	display: none !important;
}

body.events-totem-kiosk .site-header,
body.events-totem-kiosk .site-footer {
	display: none;
}


/* Contrast: accents tinted towards white on dark surfaces. */

.et-dedi-modal__title,
.et-dedi-modal__label,
.et-dedi-modal__close {
	color: color-mix(in srgb, var(--et-dedi) 55%, #ffffff);
}

.et-dedi-modal__title::before {
	background: color-mix(in srgb, var(--et-dedi) 55%, #ffffff);
}

#events-totem .et-dedi__chip,
#events-totem .et-dedi__chip--item,
#events-totem .et-dedi__chip--link,
#events-totem .et-dedi__chip--tools,
#events-totem .et-dedi__chip--graph,
.et-dedi-modal .et-dedi__chip {
	cursor: pointer;
	color: color-mix(in srgb, var(--et-dedi) 62%, #ffffff);
}

#events-totem .et-dedi__chip:hover,
.et-dedi-modal .et-dedi__chip:hover {
	color: var(--et-dedi-accent-ink);
}

.et-dedi-modal button.et-dedi__chip:disabled,
#events-totem [data-switch-org]:disabled,
#events-totem [data-switch-item]:disabled {
	cursor: default;
	opacity: 0.45;
}

#events-totem .et-dedi__sources-label {
	color: color-mix(in srgb, var(--et-dedi) 62%, #ffffff);
}

/* ---------- audit fixes: popups + covers ---------- */

.et-dedi-modal__graph {
	background: #101024;
}

.et-dedi-legend-item {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(245, 245, 255, 0.82);
}

.et-dedi-legend-dot {
	background: rgba(245, 245, 255, 0.92);
	border-color: rgba(255, 255, 255, 0.4);
}

.et-dedi-legend-dot--used {
	border-color: rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.et-dedi-modal__legend {
	border-top-color: rgba(255, 255, 255, 0.08);
}

.et-dedi-modal__explore {
	color: rgba(245, 245, 255, 0.82);
}

.et-dedi-modal .et-dedi__chip--action {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.et-dedi-modal__resource .et-dedi__chip {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.et-dedi-modal__close {
	background: rgba(255, 255, 255, 0.08);
}

.et-dedi-modal__loading::after {
	border-color: rgba(255, 255, 255, 0.15);
	border-top-color: var(--et-dedi-accent);
}

@media (max-width: 600px) {
	.et-dedi-modal__header::before {
		background: rgba(255, 255, 255, 0.18);
	}

	/* Mobile: the Dedi avatar stays visible next to the input. */
	#events-totem .et-dedi__avatar {
		display: inline-flex;
		width: 36px;
		height: 30px;
	}
}

/* Covers: the whole image, never cropped, on a neutral surface. */

/* Non-replaced wrapper: stretches with inset, so the image resolves 100%. */

.et-cover-fit {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
}

.et-cover-fit img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.et-cover-fit .et-cover-bg {
	object-fit: cover;
	filter: blur(22px) saturate(1.3) brightness(0.55);
	transform: scale(1.2);
}

.et-cover-fit .et-cover-fg {
	object-fit: contain;
	z-index: 1;
}

.et-card__cover,
.et-detail__hero,
.et-event-row__thumb,
.et-orginfo__cover {
	background-color: #0e0e1c;
}

.et-detail__hero::after,
.et-card__cover::after {
	z-index: 2;
}

.et-event-row__thumb,
.et-orginfo__cover {
	position: relative;
}


/* Reviewer fixes */

/* Elementor's `.elementor img { height: auto }` loads after this file with the
   same specificity and collapses our absolutely positioned cover images.
   Restore the intended size (object-fit stays defined per surface below). */
#events-totem .et-cover-fit img,
#events-totem .et-detail__hero img,
#events-totem .et-card__cover img,
#events-totem .et-event-row__thumb img,
#events-totem .et-orginfo__cover img,
#events-totem .et-orginfo__logo img,
#events-totem .et-attract__logo img,
#events-totem .et-cover-float img {
	width: 100%;
	height: 100%;
}

#events-totem .et-brand-logo {
	width: 34px;
	height: 34px;
}

/* Same framing for every image: fit decided per surface, focus always centered. */
#events-totem img {
	object-position: center;
}

/* Card covers fill edge to edge; the blurred layer stays for the big heroes. */
.et-card__cover .et-cover-fg,
.et-event-row__thumb .et-cover-fg {
	object-fit: cover;
}

/* Org title sits half over the cover: dark scrim + light text reads in both themes. */
.et-orginfo__cover::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(5, 5, 11, 0.28) 0%, rgba(5, 5, 11, 0) 45%, rgba(5, 5, 11, 0.62) 100%);
}

.et-orginfo__head .et-title {
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 10px 44px rgba(0, 0, 0, 0.72);
}

.et-orginfo__cover--plain {
	height: min(24vh, 220px);
}

.et-dedi__message .et-chat__suggest {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.et-dedi__message .et-chat__suggest .et-dedi__chip {
	cursor: pointer;
}

/* Follow-up chips live in the flow, right below the answer. */
.et-chat__suggest--flow {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding: 2px 16px 14px;
}

.et-chat__questions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	flex-basis: 100%;
}

#events-totem .et-chat__suggest button.et-chat__more {
	min-height: 40px;
	background: var(--et-secondary, #06b6d4);
	border: 1px solid var(--et-secondary, #06b6d4);
	color: var(--et-secondary-ink, #ffffff);
	font-weight: 600;
	cursor: pointer;
}

#events-totem .et-chat__suggest button.et-chat__more:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Submitted questions and controls waiting for a reply are disabled. */
.et-chat__suggest .et-dedi__chip:disabled {
	opacity: 0.45;
	cursor: default;
}

.et-graph-hint {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(22px + env(safe-area-inset-bottom));
	z-index: 15;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(10, 10, 22, 0.72);
	border: 1px solid var(--et-line);
	backdrop-filter: var(--et-glass-blur);
	-webkit-backdrop-filter: var(--et-glass-blur);
	font-size: 12.5px;
	color: var(--et-muted);
}

/* Idle session expiring dialog (port of the TOTEM inactivity flow). */
.et-idle {
	position: absolute;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(5, 5, 11, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.et-idle__dialog {
	width: min(320px, 86vw);
	padding: 30px 26px 24px;
	border-radius: 24px;
	background: var(--et-bg-soft);
	border: 1px solid var(--et-line);
	box-shadow: var(--et-shadow);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.et-idle__icon {
	width: 54px;
	height: 54px;
	border-radius: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(var(--et-accent-rgb), 0.14);
	color: var(--et-dedi);
}

.et-idle__icon svg {
	width: 27px;
	height: 27px;
}

.et-idle__title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 21px;
	font-weight: 700;
}

.et-idle__sub {
	color: var(--et-muted);
	font-size: 14px;
	line-height: 1.4;
}

#et-idle-countdown {
	font-weight: 700;
	color: var(--et-dedi);
}

.et-idle__btn {
	margin-top: 10px;
	width: 100%;
	padding: 13px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--et-dedi), var(--et-accent));
	border: 0;
	color: #0b0b14;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 15px;
	font-weight: 700;
}

.et-idle__btn--ghost {
	margin-top: 2px;
	background: transparent;
	border: 1px solid var(--et-line-strong);
	color: var(--et-ink);
}

/* The confirm dialog must sit above the Dedi popups (on <body>). */
#et-confirm {
	z-index: 100020;
}

.et-chat__welcome-switch {
	margin-top: 12px;
}

#events-totem .et-chat__welcome-switch button.et-dedi__chip {
	background: color-mix(in srgb, var(--et-secondary, #06b6d4) 18%, var(--et-dedi-surface, #ffffff));
	border-color: color-mix(in srgb, var(--et-secondary, #06b6d4) 65%, var(--et-dedi-accent));
}

#events-totem.et-theme-light .et-idle {
	background: rgba(243, 243, 249, 0.72);
}

/* Vertical kiosk: "Chiedi a Dedi" lives in a full-width bar at the bottom,
   like the TOTEM detail bar. Landscape keeps the floating pill. */
@media (orientation: portrait) {
	.et-fab {
		left: 18px;
		right: 18px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		height: 62px;
		justify-content: center;
		padding: 0 22px;
		border-radius: 20px;
	}

	.et-fab__label {
		font-size: 17px;
	}

	.et-screen {
		padding-bottom: calc(100px + env(safe-area-inset-bottom));
	}
}

/* ---------- Light theme (organization theme_mode = light) ---------- */

#events-totem.et-theme-light {
	--et-bg: #f3f3f9;
	--et-bg-soft: #ffffff;
	--et-ink: #16162e;
	--et-muted: #5d5d7c;
	--et-glass: rgba(255, 255, 255, 0.8);
	--et-glass-2: rgba(255, 255, 255, 0.96);
	--et-line: rgba(22, 22, 46, 0.12);
	--et-line-strong: rgba(22, 22, 46, 0.22);
	--et-shadow: 0 26px 70px rgba(22, 22, 46, 0.18);

	--et-dedi-white: #ffffff;
	--et-dedi-black: rgba(22, 22, 46, 0.85);
	--et-dedi-surface: rgba(22, 22, 46, 0.04);
	--et-dedi-soft: rgba(var(--et-accent-rgb), 0.12);
	--et-dedi-secondary-soft: rgba(22, 22, 46, 0.05);
}

#events-totem.et-theme-light .et-fx {
	display: none;
}

#events-totem.et-theme-light .et-fx-fallback {
	background:
		radial-gradient(120% 90% at 15% -10%, rgba(var(--et-accent-rgb), 0.18), transparent 55%),
		radial-gradient(110% 80% at 90% 110%, rgba(var(--et-secondary-rgb), 0.14), transparent 60%),
		linear-gradient(180deg, #ffffff, #f1f1f8);
}

#events-totem.et-theme-light .et-aurora {
	opacity: 0.4;
}

#events-totem.et-theme-light .et-noise {
	opacity: 0.03;
	mix-blend-mode: multiply;
}

#events-totem.et-theme-light .et-header[data-mode='solid'] {
	background: rgba(255, 255, 255, 0.75);
}

#events-totem.et-theme-light .et-header[data-mode='glass'] {
	background: linear-gradient(180deg, rgba(243, 243, 249, 0.7), rgba(243, 243, 249, 0.08));
}

#events-totem.et-theme-light .et-attract__title .et-word,
#events-totem.et-theme-light .et-hero__title {
	background: linear-gradient(115deg, var(--et-accent) 8%, #16162e 92%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

#events-totem.et-theme-light .et-badge {
	color: color-mix(in srgb, var(--badge-color) 70%, #16162e);
	background: color-mix(in srgb, var(--badge-color) 12%, transparent);
	border-color: color-mix(in srgb, var(--badge-color) 38%, transparent);
}

#events-totem.et-theme-light .et-badge--time {
	color: color-mix(in srgb, var(--et-dedi) 50%, #16162e);
	background: rgba(var(--et-dedi-rgb), 0.16);
}

#events-totem.et-theme-light .et-badge--curated {
	color: color-mix(in srgb, var(--et-dedi) 50%, #16162e);
	background: rgba(var(--et-dedi-rgb), 0.16);
}

#events-totem.et-theme-light .et-badge--room {
	background: rgba(22, 22, 46, 0.06);
	border-color: rgba(22, 22, 46, 0.12);
	color: #3a3a55;
}

/* Badges on the detail hero sit on the photo: keep the dark glass in light mode too. */
#events-totem.et-theme-light .et-detail__badges .et-badge,
#events-totem.et-theme-light .et-detail__badges .et-badge--time,
#events-totem.et-theme-light .et-detail__badges .et-badge--curated,
#events-totem.et-theme-light .et-detail__badges .et-badge--room {
	color: #fff;
	background: rgba(10, 10, 22, 0.62);
	border-color: rgba(255, 255, 255, 0.28);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

#events-totem.et-theme-light .desc-text {
	color: rgba(22, 22, 46, 0.86);
}

#events-totem.et-theme-light .et-orginfo__meta div {
	color: rgba(22, 22, 46, 0.82);
}

#events-totem.et-theme-light .et-ticker__item {
	color: rgba(22, 22, 46, 0.45);
}

#events-totem.et-theme-light .et-ticker__item::after {
	box-shadow: 0 0 12px rgba(var(--et-accent-rgb), 0.5);
}

#events-totem.et-theme-light .et-live {
	border-color: rgba(var(--et-accent-rgb), 0.35);
	box-shadow: 0 0 0 1px rgba(var(--et-accent-rgb), 0.08), 0 18px 50px rgba(22, 22, 46, 0.12);
}

#events-totem.et-theme-light .et-attract__hint {
	background: linear-gradient(135deg, var(--et-dedi), var(--et-accent));
	border-color: transparent;
	color: #0b0b14;
}

#events-totem.et-theme-light .et-card__cover,
#events-totem.et-theme-light .et-detail__hero,
#events-totem.et-theme-light .et-event-row__thumb,
#events-totem.et-theme-light .et-orginfo__cover {
	background-color: #e5e5f1;
}

#events-totem.et-theme-light .et-card {
	box-shadow: 0 10px 30px rgba(22, 22, 46, 0.06);
}

#events-totem.et-theme-light .et-catalog__row,
#events-totem.et-theme-light .et-resource {
	background: rgba(255, 255, 255, 0.85);
}

#events-totem.et-theme-light .et-day-tabs {
	background: rgba(255, 255, 255, 0.7);
}

#events-totem.et-theme-light .et-chat {
	background: rgba(248, 248, 252, 0.96);
}

#events-totem.et-theme-light .et-chat__header {
	background: linear-gradient(120deg, rgba(var(--et-dedi-rgb), 0.2), rgba(var(--et-accent-rgb), 0.12));
}

#events-totem.et-theme-light .et-chat__name {
	background: linear-gradient(100deg, var(--et-accent), #16162e 92%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Bundled chat dark overrides are neutralized on light surfaces. */

#events-totem.et-theme-light .et-dedi__message--ai {
	background: #ffffff;
	border-color: rgba(22, 22, 46, 0.12);
	color: #1b1b1b;
}

#events-totem.et-theme-light .et-dedi__message--ai a {
	color: var(--et-accent);
}

#events-totem.et-theme-light .et-dedi__message--ai hr,
#events-totem.et-theme-light .et-dedi__message--ai th,
#events-totem.et-theme-light .et-dedi__message--ai td {
	border-color: rgba(22, 22, 46, 0.15);
}

#events-totem.et-theme-light .et-dedi__thinking {
	border-color: rgba(22, 22, 46, 0.25);
}

#events-totem.et-theme-light .et-dedi__thinking summary {
	color: rgba(22, 22, 46, 0.6);
}

#events-totem.et-theme-light .et-dedi__thinking-body {
	border-top-color: rgba(22, 22, 46, 0.15);
	color: rgba(22, 22, 46, 0.7);
}

#events-totem.et-theme-light .et-dedi__sources {
	border-top-color: rgba(22, 22, 46, 0.15);
}

#events-totem.et-theme-light .et-dedi__sources-label {
	color: var(--et-accent);
}

#events-totem.et-theme-light .et-dedi__chip {
	color: var(--et-accent);
}

#events-totem.et-theme-light .et-dedi__chip:hover,
#events-totem.et-theme-light button.et-dedi__chip:hover {
	background: rgba(var(--et-accent-rgb), 0.18);
	color: #16162e;
}

#events-totem.et-theme-light button.et-dedi__chip {
	background: rgba(var(--et-accent-rgb), 0.1);
	border-color: rgba(var(--et-accent-rgb), 0.4);
	color: var(--et-accent);
}

#events-totem.et-theme-light .et-dedi__input {
	color: #16162e;
	background: #ffffff;
	border-color: rgba(22, 22, 46, 0.16);
}

#events-totem.et-theme-light .et-dedi__input::placeholder {
	color: rgba(22, 22, 46, 0.45);
}

#events-totem.et-theme-light .et-dedi__form {
	background: #f6f6fa;
	border-top-color: rgba(22, 22, 46, 0.1);
}

#events-totem.et-theme-light .et-dedi__send:hover:not(:disabled) {
	color: #16162e;
}

#events-totem.et-theme-light .et-msg--user,
#events-totem.et-theme-light .et-dedi__message--user {
	color: var(--et-dedi-accent-ink, #ffffff);
}

/* Popups appended to <body>. */

.et-theme-light .et-dedi-modal {
	--et-dedi-white: #ffffff;
	--et-dedi-black: rgba(22, 22, 46, 0.85);
	--et-dedi-surface: rgba(22, 22, 46, 0.04);
	--et-dedi-soft: rgba(var(--et-dedi-accent-rgb), 0.12);
}

.et-theme-light .et-dedi-modal__panel,
.et-theme-light .et-dedi-modal__header {
	background: #ffffff;
}

.et-theme-light .et-dedi-modal__header {
	border-bottom-color: rgba(22, 22, 46, 0.08);
}

.et-theme-light .et-dedi-modal__body {
	color: #1b1b1b;
}

.et-theme-light .et-dedi-modal__title,
.et-theme-light .et-dedi-modal__label,
.et-theme-light .et-dedi-modal__close {
	color: var(--et-dedi-accent, #16162e);
}

.et-theme-light .et-dedi-modal__title::before {
	background: var(--et-dedi-accent, #16162e);
}

.et-theme-light .et-dedi-modal__close {
	background: rgba(22, 22, 46, 0.06);
}

.et-theme-light .et-dedi-modal__legend {
	border-top-color: rgba(22, 22, 46, 0.08);
}

.et-theme-light .et-dedi-legend-item {
	background: rgba(22, 22, 46, 0.05);
	color: rgba(22, 22, 46, 0.75);
}

.et-theme-light .et-dedi-legend-dot {
	background: #ffffff;
	border-color: rgba(22, 22, 46, 0.4);
}

.et-theme-light .et-dedi-legend-dot--used {
	border-color: rgba(22, 22, 46, 0.7);
	box-shadow: 0 0 0 3px rgba(22, 22, 46, 0.06);
}

.et-theme-light .et-dedi-modal__graph {
	background: #f6f6f9;
}

.et-theme-light .et-dedi-modal__explore {
	color: rgba(22, 22, 46, 0.8);
}

.et-theme-light .et-dedi-modal .et-dedi__chip {
	color: var(--et-dedi-accent, #16162e);
}

body.et-theme-light {
	background: #f3f3f9;
}

body.et-theme-light .et-dedi-modal__backdrop {
	background: rgba(240, 240, 246, 0.6);
}

/* Dark organizations: the Dedi popups (on <body>) follow the kiosk skin. */

body.et-theme-dark .et-dedi-modal__backdrop {
	background: rgba(4, 8, 12, 0.68);
}

body.et-theme-dark .et-dedi-modal__panel,
body.et-theme-dark .et-dedi-modal__header {
	background: #14141f;
	border-color: rgba(255, 255, 255, 0.08);
}

body.et-theme-dark .et-dedi-modal__body {
	color: rgba(240, 240, 255, 0.92);
}

body.et-theme-dark .et-dedi-modal__title,
body.et-theme-dark .et-dedi-modal__label,
body.et-theme-dark .et-dedi-modal__close {
	color: var(--et-dedi-accent, #ffffff);
}

body.et-theme-dark .et-dedi-modal__close {
	background: rgba(255, 255, 255, 0.08);
}

body.et-theme-dark .et-dedi-modal__quote {
	background: rgba(255, 255, 255, 0.05);
}

body.et-theme-dark .et-dedi-modal__sep {
	border-top-color: rgba(255, 255, 255, 0.1);
}

body.et-theme-dark .et-dedi-modal__loading,
body.et-theme-dark .et-dedi-modal__empty {
	color: rgba(255, 255, 255, 0.55);
}

body.et-theme-dark .et-dedi-modal__graph {
	background: #14141f;
}

body.et-theme-dark .et-dedi-modal__explore {
	color: rgba(240, 240, 255, 0.82);
}

body.et-theme-dark .et-dedi-legend-item {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.78);
}

body.et-theme-dark .et-dedi-modal__legend {
	border-top-color: rgba(255, 255, 255, 0.08);
}

/* Questions for the item behind a source passage. */
.et-dedi-modal__ask {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed rgba(var(--et-dedi-accent-rgb, 124, 58, 237), 0.35);
}
