/**
 * Event Sponsors — front-end styles.
 *
 * Everything is scoped under .evsp and driven by custom properties that the
 * renderer sets inline, so a theme change never requires regenerating CSS.
 */

.evsp {
	--evsp-primary: #0a4b47;
	--evsp-accent: #b37629;
	--evsp-surface: #ffffff;
	--evsp-text: #ffffff;
	--evsp-radius: 14px;
	--evsp-cols: 2;
	--evsp-width: 600px;
	--evsp-inset: 20px;
	--evsp-ink: #12211f;
	--evsp-muted: rgba(255, 255, 255, 0.76);
	--evsp-hairline: rgba(255, 255, 255, 0.14);
	--evsp-shadow: 0 18px 48px -12px rgba(8, 30, 28, 0.45), 0 4px 12px -4px rgba(8, 30, 28, 0.28);

	box-sizing: border-box;
	color: var(--evsp-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
}

.evsp *,
.evsp *::before,
.evsp *::after {
	box-sizing: inherit;
}

/* ---------------------------------------------------------------- Layout */

.evsp--banner {
	position: fixed;
	z-index: 99990;
	width: min(var(--evsp-width), calc(100vw - (var(--evsp-inset) * 2)));
}

.evsp--inline {
	position: relative;
	width: 100%;
	margin: 1.5rem 0;
}

.evsp--pos-bottom-right {
	right: var(--evsp-inset);
	bottom: var(--evsp-inset);
}

.evsp--pos-bottom-left {
	left: var(--evsp-inset);
	bottom: var(--evsp-inset);
}

.evsp--pos-bottom-center {
	left: 50%;
	bottom: var(--evsp-inset);
	transform: translateX(-50%);
}

.evsp--pos-top-right {
	right: var(--evsp-inset);
	top: calc(var(--evsp-inset) + 32px);
}

.evsp--pos-top-left {
	left: var(--evsp-inset);
	top: calc(var(--evsp-inset) + 32px);
}

.evsp--pos-bottom-bar {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	--evsp-radius: 0px;
}

.evsp--pos-bottom-bar .evsp__panel {
	border-radius: 0;
	max-width: none;
}

/* ----------------------------------------------------------------- Panel */

.evsp__panel {
	background: linear-gradient(150deg, var(--evsp-primary) 0%, color-mix(in srgb, var(--evsp-primary) 76%, #000) 100%);
	border-radius: var(--evsp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.evsp--banner .evsp__panel {
	box-shadow: var(--evsp-shadow);
	max-height: min(76vh, 640px);
}

.evsp--inline .evsp__panel {
	box-shadow: 0 1px 3px rgba(8, 30, 28, 0.14);
}

/* Older browsers without color-mix still get a solid brand background. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.evsp__panel {
		background: var(--evsp-primary);
	}
}

.evsp.is-collapsed .evsp__panel {
	display: none;
}

/* ------------------------------------------------------------------ Head */

.evsp__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--evsp-accent) 0%, color-mix(in srgb, var(--evsp-accent) 82%, #000) 100%);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.evsp__head {
		background: var(--evsp-accent);
	}
}

.evsp__titles {
	flex: 1 1 auto;
	min-width: 0;
}

.evsp__eyebrow {
	margin: 0 0 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.85;
}

.evsp__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: inherit;
	line-height: 1.25;
}

.evsp__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.evsp__icon {
	appearance: none;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease, transform 0.18s ease;
}

.evsp__icon:hover,
.evsp__icon:focus-visible {
	background: rgba(255, 255, 255, 0.3);
}

.evsp__icon:focus-visible,
.evsp__nav:focus-visible,
.evsp__dot:focus-visible,
.evsp__pill:focus-visible,
.evsp__logo-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* CSS-drawn glyphs keep the plugin free of icon fonts and extra requests. */
.evsp__glyph-close,
.evsp__glyph-min,
.evsp__glyph-pause {
	position: relative;
	display: block;
	width: 12px;
	height: 12px;
}

.evsp__glyph-close::before,
.evsp__glyph-close::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 12px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.evsp__glyph-close::before {
	transform: rotate(45deg);
}

.evsp__glyph-close::after {
	transform: rotate(-45deg);
}

.evsp__glyph-min::before {
	content: "";
	position: absolute;
	bottom: 1px;
	left: 0;
	width: 12px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.evsp__glyph-pause::before,
.evsp__glyph-pause::after {
	content: "";
	position: absolute;
	top: 0;
	width: 3px;
	height: 12px;
	background: currentColor;
	border-radius: 1px;
}

.evsp__glyph-pause::before {
	left: 1px;
}

.evsp__glyph-pause::after {
	right: 1px;
}

.evsp__icon--pause.is-paused .evsp__glyph-pause::before {
	left: 2px;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid currentColor;
	background: none;
	border-radius: 0;
}

.evsp__icon--pause.is-paused .evsp__glyph-pause::after {
	display: none;
}

/* ------------------------------------------------------------------ Body */

.evsp__body {
	padding: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.evsp__empty {
	margin: 0;
	text-align: center;
	opacity: 0.7;
	font-size: 14px;
}

.evsp__group-label {
	margin: 4px 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--evsp-tier, var(--evsp-accent));
	display: flex;
	align-items: center;
	gap: 8px;
}

.evsp__group-label::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--evsp-hairline);
}

/* ------------------------------------------------------------------ Grid */

.evsp__pages {
	position: relative;
}

.evsp__page {
	display: grid;
	grid-template-columns: repeat(var(--evsp-cols), minmax(0, 1fr));
	gap: 12px;
}

.evsp__page[data-evsp-page]:not(.is-active) {
	display: none;
}

.evsp__page.is-static + .evsp__group-label {
	margin-top: 18px;
}

.evsp__card {
	background: var(--evsp-surface);
	border-radius: calc(var(--evsp-radius) - 4px);
	padding: 14px 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 108px;
	border-top: 3px solid var(--evsp-tier, transparent);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.evsp__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.4);
}

.evsp__card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
}

.evsp__card-name {
	margin: 0;
	font-size: 13px;
	font-weight: 650;
	color: var(--evsp-ink);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.evsp__card-tier {
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--evsp-tier, #6b7280);
}

/* -------------------------------------------------------------- Carousel */

.evsp__slides {
	position: relative;
}

.evsp__slide {
	display: grid;
	gap: 12px;
	text-align: center;
}

.evsp__slide[data-evsp-page]:not(.is-active) {
	display: none;
}

.evsp__slide-logo {
	background: var(--evsp-surface);
	border-radius: calc(var(--evsp-radius) - 4px);
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 76px;
}

.evsp__thanks {
	margin: 0;
	font-size: 14px;
	color: var(--evsp-muted);
}

.evsp__sponsor-name {
	display: block;
	margin: 4px 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--evsp-text);
}

/* ------------------------------------------------------------------ List */

.evsp__list {
	display: grid;
	gap: 10px;
}

.evsp__row {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--evsp-hairline);
	border-radius: calc(var(--evsp-radius) - 4px);
	padding: 12px;
}

.evsp__row-logo {
	background: var(--evsp-surface);
	border-radius: 8px;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 62px;
}

.evsp__row-name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--evsp-text);
}

.evsp__row-note {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--evsp-muted);
}

/* ---------------------------------------------------------------- Ticker */

.evsp__ticker {
	display: flex;
	gap: 12px;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.evsp__ticker-run {
	display: flex;
	gap: 12px;
	flex: 0 0 auto;
	animation: evsp-marquee var(--evsp-ticker-duration, 30s) linear infinite;
}

.evsp__ticker:hover .evsp__ticker-run,
.evsp__ticker:focus-within .evsp__ticker-run,
.evsp.is-paused .evsp__ticker-run {
	animation-play-state: paused;
}

.evsp__card--ticker {
	width: 148px;
	flex: 0 0 auto;
}

@keyframes evsp-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-100%);
	}
}

/* ----------------------------------------------------------------- Meta */

.evsp__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--evsp-tier, var(--evsp-accent));
}

.evsp__event {
	display: grid;
	gap: 3px;
	margin-top: 8px;
	padding: 9px 11px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--evsp-hairline);
	text-align: left;
}

.evsp--mode-carousel .evsp__event {
	text-align: center;
}

.evsp__event-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--evsp-text);
	text-decoration: none;
}

a.evsp__event-name:hover {
	text-decoration: underline;
}

.evsp__event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 12px;
	color: var(--evsp-muted);
}

.evsp--mode-carousel .evsp__event-meta {
	justify-content: center;
}

/* ---------------------------------------------------------------- Logos */

.evsp__logo {
	max-width: 100%;
	max-height: 52px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.evsp__row-logo .evsp__logo {
	max-height: 46px;
}

.evsp__slide-logo .evsp__logo {
	max-height: 64px;
}

.evsp__logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 0;
	transition: opacity 0.18s ease;
}

.evsp__logo-link:hover {
	opacity: 0.82;
}

.evsp__monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--evsp-primary) 14%, #fff);
	color: var(--evsp-primary);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.04em;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.evsp__monogram {
		background: #eceff1;
		color: #33413f;
	}
}

/* ------------------------------------------------------------------ Foot */

.evsp__foot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 16px 14px;
	background: rgba(0, 0, 0, 0.12);
}

.evsp__nav {
	appearance: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease;
}

.evsp__nav:hover {
	background: rgba(255, 255, 255, 0.24);
}

.evsp__dots {
	display: flex;
	align-items: center;
	gap: 7px;
}

.evsp__dot {
	appearance: none;
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.34);
	cursor: pointer;
	transition: width 0.22s ease, background 0.22s ease;
}

.evsp__dot.is-active {
	width: 22px;
	background: var(--evsp-accent);
}

.evsp__live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------------- Collapsed */

.evsp__pill {
	display: none;
	align-items: center;
	gap: 9px;
	padding: 9px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--evsp-primary);
	color: var(--evsp-text);
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	cursor: pointer;
	box-shadow: var(--evsp-shadow);
}

.evsp.is-collapsed .evsp__pill {
	display: inline-flex;
}

.evsp--banner.is-collapsed {
	width: auto;
}

.evsp__pill-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--evsp-accent);
}

.evsp__pill-count {
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-size: 12px;
}

/* ------------------------------------------------------------ Animations */

.evsp--banner.evsp--anim-slide .evsp__panel {
	animation: evsp-slide 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.evsp--banner.evsp--anim-fade .evsp__panel {
	animation: evsp-fade 0.42s ease both;
}

.evsp--banner.evsp--anim-rise .evsp__panel {
	animation: evsp-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.evsp--banner.evsp--anim-zoom .evsp__panel {
	animation: evsp-zoom 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes evsp-slide {
	from {
		transform: translateX(12%);
		opacity: 0;
	}
}

@keyframes evsp-fade {
	from {
		opacity: 0;
	}
}

@keyframes evsp-rise {
	from {
		transform: translateY(16px);
		opacity: 0;
	}
}

@keyframes evsp-zoom {
	from {
		transform: scale(0.94);
		opacity: 0;
	}
}

.evsp.is-closing {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

/* -------------------------------------------------------- Region widget */

.evsp-regions {
	margin: 1.25rem 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f6f7f8;
	border-left: 4px solid var(--evsp-accent, #b37629);
	color: #12211f;
}

.evsp-regions__label {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 15px;
}

.evsp-regions__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.evsp-regions__select {
	flex: 1 1 220px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #c9cfd3;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: inherit;
}

.evsp-regions__submit {
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--evsp-accent, #b37629);
	color: #fff;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.evsp-regions__group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.evsp-regions__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid #c9cfd3;
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font-weight: 650;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.evsp-regions__btn:hover {
	border-color: var(--evsp-accent, #b37629);
}

.evsp-regions__btn.is-active {
	background: var(--evsp-accent, #b37629);
	border-color: transparent;
	color: #fff;
}

.evsp-regions__count {
	font-size: 12px;
	opacity: 0.75;
}

.evsp-regions__form.is-auto .evsp-regions__submit {
	display: none;
}

/* --------------------------------------------------------- Event list */

.evsp-events {
	list-style: none;
	margin: 1.25rem 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.evsp-events__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #e3e6e8;
	border-radius: 12px;
	background: #fff;
	color: #12211f;
}

.evsp-events__main {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.evsp-events__title {
	font-weight: 700;
	font-size: 16px;
	color: inherit;
	text-decoration: none;
}

.evsp-events__meta {
	font-size: 13px;
	color: #5b6b69;
}

.evsp-events__sponsors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.evsp-events__sponsor .evsp__logo {
	max-height: 34px;
}

.evsp-events--empty {
	padding: 16px;
	border-radius: 12px;
	background: #f6f7f8;
	color: #5b6b69;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 782px) {
	.evsp--banner {
		--evsp-inset: 8px;
		left: var(--evsp-inset);
		right: var(--evsp-inset);
		width: auto;
		transform: none;
	}

	.evsp--banner:not(.evsp--pos-top-left):not(.evsp--pos-top-right) {
		top: auto;
		bottom: var(--evsp-inset);
	}

	.evsp--banner .evsp__panel {
		max-height: 68vh;
	}

	.evsp--banner.is-collapsed {
		left: auto;
	}

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

	.evsp__row {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.evsp__title {
		font-size: 16px;
	}
}

@media (max-width: 420px) {
	.evsp__card {
		min-height: 92px;
		padding: 11px 9px;
	}

	.evsp__card-logo {
		height: 44px;
	}

	.evsp__logo {
		max-height: 42px;
	}
}

@media print {
	.evsp--banner {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.evsp *,
	.evsp *::before,
	.evsp *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.evsp__ticker-run {
		animation: none;
	}

	.evsp__ticker {
		overflow-x: auto;
	}
}
