/* Parties & Side Events: day schedule. Colours are the E:3 brand palette
   (same values as the Elementor global swatches); fonts follow the kit. */
.ecom-parties {
	--ep-violet: #7C2CE6;
	--ep-violet-hover: #6521C4;
	--ep-deep: #2B1466;
	--ep-ink: #181D27;
	--ep-text: #414651;
	--ep-muted: #535862;
	--ep-line: #E9EAEB;
	--ep-tint: #EFE7FD;
	--ep-tint-mid: #E4D8FB;
	--ep-grad: linear-gradient(100deg, #ED8A38 0%, #E9487F 26%, #7C2CE6 52%, #4371F2 78%, #5CC9C2 100%);
	--ep-serif: var(--e-global-typography-primary-font-family, "Instrument Serif"), Georgia, serif;
	--ep-sans: var(--e-global-typography-text-font-family, "Lexend Deca"), system-ui, sans-serif;
	font-family: var(--ep-sans);
	color: var(--ep-text);
	margin-top: 8px;
}
.ecom-parties * { box-sizing: border-box; }

.ecom-parties__title {
	font-family: var(--ep-serif);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.15;
	color: var(--ep-ink);
	margin: 0;
}
.ecom-parties__sub {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--ep-muted);
	max-width: 66ch;
}

/* day tabs */
.ecom-parties__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}
.ecom-parties__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 400;
	color: var(--ep-deep);
	background: var(--ep-tint);
	border: 1px solid var(--ep-tint-mid);
	border-radius: 999px;
	padding: 8px 14px 8px 16px;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.ecom-parties__tab b { font-weight: 600; }
.ecom-parties__tab-count {
	font-size: 12px;
	font-weight: 600;
	background: #fff;
	color: var(--ep-deep);
	border-radius: 999px;
	padding: 1px 7px;
	font-variant-numeric: tabular-nums;
}
.ecom-parties__tab:hover,
.ecom-parties__tab.is-active {
	background: var(--ep-deep);
	border-color: var(--ep-deep);
	color: #fff;
}
.ecom-parties__tab:focus-visible { outline: 3px solid var(--ep-tint-mid); outline-offset: 2px; }

/* day groups */
.ecom-parties__day { margin-top: 40px; scroll-margin-top: 110px; }
.ecom-parties__day-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ep-line);
	position: relative;
}
.ecom-parties__day-head::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 64px;
	height: 3px;
	border-radius: 2px;
	background: var(--ep-grad);
}
.ecom-parties__day-title {
	font-family: var(--ep-serif);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--ep-ink);
	margin: 0;
}
.ecom-parties__day-title span { color: var(--ep-violet); margin-left: 10px; }
.ecom-parties__day-count { margin: 0; font-size: 13px; color: var(--ep-muted); }

.ecom-parties__rows { list-style: none; margin: 0; padding: 0; }
.ecom-parties__row {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--ep-line);
}
.ecom-parties__row:last-child { border-bottom: 0; }

.ecom-parties__when { font-variant-numeric: tabular-nums; line-height: 1.25; }
.ecom-parties__when b { display: block; font-size: 17px; font-weight: 600; color: var(--ep-ink); }
.ecom-parties__when small { display: block; font-size: 12.5px; color: var(--ep-muted); }
.ecom-parties__when small.ecom-parties__tz { font-size: 11px; }

.ecom-parties__kind {
	display: inline-block;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--ep-violet);
	background: var(--ep-tint);
	border-radius: 6px;
	padding: 2px 8px;
	margin-bottom: 6px;
}
.ecom-parties__name {
	font-family: var(--ep-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	color: var(--ep-ink);
}
.ecom-parties__host { margin: 2px 0 0; font-size: 13px; color: var(--ep-muted); }

/* Links: the Elementor kit styles every anchor with ".elementor-kit-6 a"
   (two classes), so link rules here carry element + two classes to win on
   specificity, not on load order. */
.ecom-parties a.ecom-parties__tab,
.ecom-parties a.ecom-parties__tab:visited { color: var(--ep-deep); font-size: 14px; line-height: 1.3; }
.ecom-parties a.ecom-parties__tab:hover,
.ecom-parties a.ecom-parties__tab.is-active { color: #fff; }
.ecom-parties h5.ecom-parties__name a,
.ecom-parties h5.ecom-parties__name a:visited { color: inherit; font-size: inherit; line-height: inherit; text-decoration: none; }
.ecom-parties h5.ecom-parties__name a:hover { color: var(--ep-violet); }

/* the one solid element in the row */
.ecom-parties a.ecom-parties__register,
.ecom-parties a.ecom-parties__register:visited,
.ecom-parties a.ecom-parties__register:hover,
.ecom-parties a.ecom-parties__register:focus {
	color: #fff;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
}
.ecom-parties__register {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ep-violet);
	color: #fff;
	font-family: var(--ep-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	padding: 12px 22px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 2px 0 rgba(43, 20, 102, .18);
	transition: background .15s;
}
.ecom-parties__register::after { content: "\2192"; font-size: 15px; }
.ecom-parties__register:hover { background: var(--ep-violet-hover); }
.ecom-parties__register:focus-visible { outline: 3px solid var(--ep-tint-mid); outline-offset: 2px; }

@media (max-width: 767px) {
	.ecom-parties { margin-top: 36px; }
	.ecom-parties__title { font-size: 28px; }
	.ecom-parties__day-title { font-size: 30px; }
	.ecom-parties__row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
	.ecom-parties__when { display: flex; gap: 8px; align-items: baseline; }
	.ecom-parties__when b { font-size: 15px; }
	.ecom-parties__register { justify-self: start; }
	.ecom-parties__day { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
	.ecom-parties * { transition: none !important; }
}
