/*
 * Eventsmaster skin for Events Manager.
 *
 * Self-contained: every color, font, radius and shadow comes from the --evm-* tokens below. In a block theme they read the theme.json presets; a classic theme can copy this file unchanged and either define the same --wp--preset--* variables or set the --evm-* tokens directly in its own :root.
 *
 * Markup comes from EM's own templates plus the theme's format overrides in plugins/events-manager/formats/ (cards: .evm-card, venue tiles: .evm-venue, single pages: .evm-single).
 */

/* Tokens
-------------------------------------------------------------- */
:root {
	--evm-bg: var(--wp--preset--color--base, #f6f5fb);
	--evm-surface: var(--wp--preset--color--surface, #ffffff);
	--evm-surface-2: var(--wp--preset--color--surface-2, #f8fafc);
	--evm-ink: var(--wp--preset--color--contrast, #0f172a);
	--evm-ink-soft: var(--wp--preset--color--contrast-soft, #334155);
	--evm-muted: var(--wp--preset--color--muted, #64748b);
	--evm-line: var(--wp--preset--color--line, #e6e8ee);
	--evm-primary: var(--wp--preset--color--primary, #7c3aed);
	--evm-primary-strong: var(--wp--preset--color--primary-strong, #6d28d9);
	--evm-primary-soft: var(--wp--preset--color--primary-soft, #ede9fe);
	--evm-primary-tint: var(--wp--preset--color--primary-tint, #f5f3ff);
	--evm-accent: var(--wp--preset--color--accent, #f43f5e);
	--evm-accent-strong: var(--wp--preset--color--accent-strong, #e11d48);
	--evm-deep: var(--wp--preset--color--deep, #2e1065);
	--evm-on-primary: var(--wp--preset--color--on-primary, #ffffff);
	--evm-success: #059669;
	--evm-success-tint: color-mix(in srgb, #10b981 12%, var(--evm-surface));
	--evm-warning: #b45309;
	--evm-warning-tint: color-mix(in srgb, #f59e0b 14%, var(--evm-surface));

	--evm-font-body: var(--wp--preset--font-family--body, Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
	--evm-font-display: var(--wp--preset--font-family--display, Sora, Geist, ui-sans-serif, system-ui, sans-serif);

	--evm-radius-sm: var(--wp--custom--radius--small, 0.5rem);
	--evm-radius-md: var(--wp--custom--radius--medium, 0.875rem);
	--evm-radius-lg: var(--wp--custom--radius--large, 1.125rem);
	--evm-radius-xl: var(--wp--custom--radius--x-large, 1.5rem);
	--evm-radius-pill: 999px;

	--evm-shadow-card: var(--wp--preset--shadow--card, 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12));
	--evm-shadow-pop: var(--wp--preset--shadow--pop, 0 8px 40px -12px rgba(76, 29, 149, 0.28));
	--evm-shadow-button: var(--wp--preset--shadow--button, 0 6px 20px -8px rgba(124, 58, 237, 0.7));

	--evm-wide: var(--wp--style--global--wide-size, 69rem);
	--evm-gutter: var(--wp--style--root--padding-left, clamp(1rem, 3vw, 1.5rem));
	--evm-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + 5.5rem);
	--evm-ease: var(--wp--custom--motion--ease, cubic-bezier(0.22, 1, 0.36, 1));
	--evm-focus: 2px solid var(--evm-primary);

	--evm-mesh: radial-gradient(60% 80% at 15% 10%, color-mix(in srgb, var(--evm-primary) 22%, transparent), transparent 60%), radial-gradient(50% 70% at 90% 0%, color-mix(in srgb, var(--evm-accent) 18%, transparent), transparent 55%), radial-gradient(60% 90% at 70% 90%, color-mix(in srgb, var(--evm-primary) 16%, transparent), transparent 60%);
}

/* Hand EM's own variables the same tokens, so anything not restyled below still matches. */
body .em,
body .em.pixelbones {
	--font-family: var(--evm-font-body);
	--font-size: 15px;
	--line-height: 1.55;
	--font-weight: 400;
	--text-color-richer: var(--evm-ink);
	--text-color-normal: var(--evm-ink);
	--text-color-softer: var(--evm-muted);
	--accent-color: var(--evm-primary);
	--accent-color-hover: var(--evm-primary-strong);
	--border-color: var(--evm-line);
	--border-color-softer: var(--evm-line);
	--background-color: transparent;
	--background-color-softer: var(--evm-surface-2);
	--background-color-inputs: var(--evm-surface);
	--background-color-checkboxes: var(--evm-surface);
	--code-background: var(--evm-surface-2);
	--button-primary-color: var(--evm-on-primary);
	--counter-background: var(--evm-accent);
	--input-padding: 0.5rem 0.875rem;
	--button-padding: 0 1.25rem;
	--main-bg: transparent;
	--main-h3-color: var(--evm-muted);
	--main-border-color: transparent;
	--palette-1-bg: var(--evm-surface-2);
	--palette-1-color: var(--evm-muted);
}

body .em.pixelbones a {
	color: var(--evm-primary-strong);
}

body .em.pixelbones :where(h1, h2, h3, h4, h5) {
	font-family: var(--evm-font-display);
	letter-spacing: -0.02em;
	color: var(--evm-ink);
}

body .em.pixelbones :where(a, button, input, select, textarea, summary):focus-visible {
	outline: var(--evm-focus) !important;
	outline-offset: 2px;
}

/* Form controls inside EM: inputs, selects, textareas and buttons
 * EM's own control styles stack up to five classes with !important, so these carry :not(#evm) to win on specificity instead of piling on more classes.
-------------------------------------------------------------- */
body .em.pixelbones :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], input[type="search"], input[type="date"], input[type="month"], select, textarea):not(#evm),
body .em.pixelbones.input :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea):not(#evm),
body .em .em-booking-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea):not(#evm) {
	min-height: 2.75rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-md) !important;
	background-color: var(--evm-surface) !important;
	color: var(--evm-ink) !important;
	font-family: var(--evm-font-body) !important;
	font-size: 0.9375rem !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .em.pixelbones textarea:not(#evm) {
	min-height: 6rem;
}

body .em.pixelbones :is(input, select, textarea):not(#evm):focus {
	border-color: color-mix(in srgb, var(--evm-primary) 55%, transparent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--evm-primary) 18%, transparent) !important;
	outline: none !important;
}

body .em.pixelbones :is(input, select, textarea):not(#evm)::placeholder {
	color: var(--evm-muted);
	opacity: 1;
}

body .em.pixelbones label:not(#evm) {
	color: var(--evm-ink-soft);
	font-size: 0.875rem;
	font-weight: 500;
}

body .em.pixelbones input[type="checkbox"]:not(#evm),
body .em.pixelbones input[type="radio"]:not(#evm) {
	accent-color: var(--evm-primary);
}

body .em.pixelbones :is(.button-primary, button.button-primary, input[type="submit"], .em-button.button-primary, .em-booking-submit, .em-form-submit):not(#evm),
body .em.pixelbones .input :is(.button-primary, input[type="submit"]):not(#evm) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	height: auto !important;
	padding: 0.625rem 1.25rem !important;
	border: 0 !important;
	border-radius: var(--evm-radius-md) !important;
	background: var(--evm-primary) !important;
	color: var(--evm-on-primary) !important;
	font-family: var(--evm-font-body) !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: var(--evm-shadow-button) !important;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

body .em.pixelbones :is(.button-primary, input[type="submit"], .em-booking-submit, .em-form-submit):not(#evm):hover {
	background: var(--evm-primary-strong) !important;
}

body .em.pixelbones :is(.button-primary, input[type="submit"], .em-booking-submit):not(#evm):active {
	transform: scale(0.98);
}

body .em.pixelbones :is(.button, .button-secondary, button.button-secondary, a.button):not(.button-primary):not(.em-clickable):not(#evm) {
	min-height: 2.5rem;
	height: auto !important;
	padding: 0.5rem 1rem !important;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-md) !important;
	background: var(--evm-surface) !important;
	color: var(--evm-ink) !important;
	font-family: var(--evm-font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

body .em.pixelbones :is(.button, .button-secondary, a.button):not(.button-primary):not(.em-clickable):not(#evm):hover {
	border-color: var(--evm-primary-soft) !important;
	background: var(--evm-surface-2) !important;
}

/* Notices */
body .em :is(.em-notice, .em-booking-message, .em-warning, .em-booking-message-success, .em-booking-message-error) {
	border-radius: var(--evm-radius-md) !important;
	font-size: 0.875rem;
}

body .em .em-booking-message-success,
body .em .em-notice-success {
	border-color: color-mix(in srgb, var(--evm-success) 35%, transparent) !important;
	background: var(--evm-success-tint) !important;
	color: var(--evm-success) !important;
}

body .em :is(.em-booking-message-error, .em-notice-error, .em-warning-errors) {
	border-color: color-mix(in srgb, var(--evm-accent) 35%, transparent) !important;
	background: color-mix(in srgb, var(--evm-accent) 8%, var(--evm-surface)) !important;
	color: var(--evm-accent-strong) !important;
}

/* Shared pieces: chips, date badge, icons
-------------------------------------------------------------- */
.evm-icon {
	width: 1em;
	height: 1em;
	flex: none;
	vertical-align: -0.125em;
}

.evm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.evm-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	border-radius: var(--evm-radius-pill);
	background: var(--evm-primary-tint);
	color: var(--evm-primary-strong);
	font-family: var(--evm-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	white-space: nowrap;
}

.evm-chip[style*="--evm-cat"]::before {
	content: "";
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 999px;
	background: var(--evm-cat);
}

a.evm-chip:hover {
	background: var(--evm-primary-soft);
}

.evm-date-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-md);
	background: var(--evm-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	text-align: center;
	line-height: 1;
}

.evm-date-badge__month {
	color: var(--evm-accent);
	font-family: var(--evm-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.evm-date-badge__day {
	margin-top: 0.1875rem;
	color: var(--evm-ink);
	font-family: var(--evm-font-display);
	font-size: 1.3125rem;
	font-weight: 700;
}

/* Event cards: lists, grids and the lists on venue, category and tag pages
-------------------------------------------------------------- */
body .em.em-events-list,
body .em.em-events-grid,
body .em .em-events-list,
.evm-card-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)) !important;
	justify-items: stretch !important;
	align-items: stretch !important;
	gap: 1.25rem !important;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: none !important;
}

/* Month headings in the grouped list; EM's pixelbones sizes h2 with more specificity, hence !important. */
body .em.em-events-list > :is(h2, h3, h4, .em-events-list-grouped-header),
body .em .em-events-list-grouped > h2 {
	grid-column: 1 / -1;
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	color: var(--evm-ink) !important;
	font-family: var(--evm-font-display) !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.3 !important;
}

body .em.em-events-list > :is(h2, h3, h4, .em-events-list-grouped-header):first-child,
body .em .em-events-list-grouped > h2:first-child {
	margin-top: 0 !important;
}

body .em.em-events-list > .em-pagination,
body .em.em-events-grid > .em-pagination,
body .em.em-events-list > :is(p, .em-list-no-items),
body .em.em-events-grid > :is(p, .em-list-no-items) {
	grid-column: 1 / -1;
}

.evm-card {
	position: relative;
	display: flex !important;
	max-width: none !important;
	width: auto !important;
	flex-direction: column;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-lg) !important;
	background: var(--evm-surface) !important;
	box-shadow: var(--evm-shadow-card) !important;
	color: var(--evm-ink);
	font-family: var(--evm-font-body);
	transition: transform 0.2s var(--evm-ease), box-shadow 0.2s ease;
	animation: evm-card-in 0.5s var(--evm-ease) both;
}

.evm-card:nth-child(2) { animation-delay: 0.04s; }
.evm-card:nth-child(3) { animation-delay: 0.08s; }
.evm-card:nth-child(4) { animation-delay: 0.12s; }
.evm-card:nth-child(5) { animation-delay: 0.16s; }
.evm-card:nth-child(n + 6) { animation-delay: 0.2s; }

@keyframes evm-card-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.evm-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--evm-shadow-pop) !important;
}

.evm-card:focus-within {
	outline: var(--evm-focus);
	outline-offset: 2px;
}

.evm-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--evm-mesh), var(--evm-primary-tint);
}

.evm-card__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.35s var(--evm-ease);
}

.evm-card:hover .evm-card__media img {
	transform: scale(1.05);
}

.evm-card__placeholder,
.evm-single__hero-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: color-mix(in srgb, var(--evm-primary) 45%, var(--evm-surface));
}

.evm-card__placeholder .evm-icon {
	width: 2.5rem;
	height: 2.5rem;
}

.evm-card__chip {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
}

.evm-card__chip .evm-chip {
	background: color-mix(in srgb, var(--evm-surface) 90%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.evm-card__body {
	display: flex;
	flex: 1;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 1rem;
}

.evm-card__info {
	min-width: 0;
	flex: 1;
}

body .em .evm-card .evm-card__title,
.evm-card .evm-card__title {
	display: -webkit-box;
	margin: 0 0 0.375rem !important;
	padding: 0 !important;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-family: var(--evm-font-display) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: -0.01em !important;
}

body .em .evm-card .evm-card__title a,
.evm-card .evm-card__title a {
	color: var(--evm-ink) !important;
	text-decoration: none !important;
}

/* One link per card: the title link stretches over the whole card. */
.evm-card .evm-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.evm-card .evm-card__title a:focus-visible {
	outline: none !important;
}

.evm-card:hover .evm-card__title a {
	color: var(--evm-primary-strong) !important;
}

body .em .evm-card :is(.evm-card__meta, .evm-card__price, .evm-card__flag),
.evm-card :is(.evm-card__meta, .evm-card__price, .evm-card__flag) {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0.25rem 0 0 !important;
	color: var(--evm-muted) !important;
	font-size: 0.8125rem !important;
	line-height: 1.45 !important;
}

.evm-card__meta span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.evm-card__meta .evm-icon {
	width: 0.875rem;
	height: 0.875rem;
}

body .em .evm-card .evm-card__price,
.evm-card .evm-card__price {
	margin-top: 0.5rem !important;
	color: var(--evm-primary-strong) !important;
	font-weight: 600;
}

body .em .evm-card .evm-card__flag,
.evm-card .evm-card__flag {
	width: fit-content;
	padding: 0.125rem 0.5rem;
	border-radius: var(--evm-radius-pill);
	background: color-mix(in srgb, var(--evm-accent) 12%, var(--evm-surface));
	color: var(--evm-accent-strong) !important;
	font-weight: 600;
}

.evm-card.is-cancelled .evm-card__media img {
	filter: grayscale(0.8);
	opacity: 0.8;
}

/* Event rows: the list and grouped list views
-------------------------------------------------------------- */
body .em.em-events-list:has(> .evm-row),
body .em .em-events-list:has(> .evm-row) {
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 0.75rem !important;
}

.evm-row {
	position: relative;
	display: grid !important;
	grid-template-columns: 4.5rem 11rem minmax(0, 1fr) auto !important;
	grid-template-areas: "date media body aside" !important;
	align-items: center !important;
	gap: 1.25rem !important;
	max-width: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0.75rem 1.25rem 0.75rem 0.75rem !important;
	/* EM core's .em.em-list .em-item sets its own two-column grid, top border and padding. */
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-lg) !important;
	background: var(--evm-surface) !important;
	box-shadow: var(--evm-shadow-card) !important;
	color: var(--evm-ink);
	font-family: var(--evm-font-body);
	transition: transform 0.2s var(--evm-ease), box-shadow 0.2s ease, border-color 0.2s ease;
	animation: evm-card-in 0.5s var(--evm-ease) both;
}

.evm-row:nth-child(2) { animation-delay: 0.03s; }
.evm-row:nth-child(3) { animation-delay: 0.06s; }
.evm-row:nth-child(4) { animation-delay: 0.09s; }
.evm-row:nth-child(n + 5) { animation-delay: 0.12s; }

.evm-row:hover {
	transform: translateY(-1px);
	border-color: var(--evm-primary-soft) !important;
	box-shadow: var(--evm-shadow-pop) !important;
}

.evm-row:focus-within {
	outline: var(--evm-focus);
	outline-offset: 2px;
}

.evm-date-block {
	grid-area: date;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	gap: 0.125rem;
	border-radius: var(--evm-radius-md);
	background: var(--evm-primary-tint);
	text-align: center;
	line-height: 1;
}

.evm-date-block__weekday,
.evm-date-block__month {
	font-family: var(--evm-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.evm-date-block__weekday {
	color: var(--evm-muted);
}

.evm-date-block__day {
	color: var(--evm-ink);
	font-family: var(--evm-font-display);
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.evm-date-block__month {
	color: var(--evm-accent);
}

.evm-row__media {
	grid-area: media;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--evm-radius-md);
	background: var(--evm-mesh), var(--evm-primary-tint);
}

.evm-row__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.35s var(--evm-ease);
}

.evm-row:hover .evm-row__media img {
	transform: scale(1.05);
}

.evm-row__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: color-mix(in srgb, var(--evm-primary) 45%, var(--evm-surface));
}

.evm-row__placeholder .evm-icon {
	width: 2rem;
	height: 2rem;
}

.evm-row__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.375rem;
	min-width: 0;
}

body .em .evm-row .evm-row__title,
.evm-row .evm-row__title {
	display: -webkit-box;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-family: var(--evm-font-display) !important;
	font-size: 1.125rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em !important;
}

body .em .evm-row .evm-row__title a,
.evm-row .evm-row__title a {
	color: var(--evm-ink) !important;
	text-decoration: none !important;
}

/* One link per row: the title link stretches over the whole row. */
.evm-row .evm-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.evm-row .evm-row__title a:focus-visible {
	outline: none !important;
}

.evm-row:hover .evm-row__title a {
	color: var(--evm-primary-strong) !important;
}

body .em .evm-row .evm-row__meta,
.evm-row .evm-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0 !important;
	color: var(--evm-muted) !important;
	font-size: 0.8125rem !important;
	line-height: 1.45 !important;
}

.evm-row__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
}

.evm-row__meta .evm-icon {
	width: 0.875rem;
	height: 0.875rem;
}

body .em .evm-row .evm-row__flag,
.evm-row .evm-row__flag {
	width: fit-content;
	margin: 0 !important;
	padding: 0.125rem 0.5rem;
	border-radius: var(--evm-radius-pill);
	background: color-mix(in srgb, var(--evm-accent) 12%, var(--evm-surface));
	color: var(--evm-accent-strong) !important;
	font-size: 0.75rem;
	font-weight: 600;
}

.evm-row__aside {
	grid-area: aside;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	text-align: right;
}

.evm-row__price {
	color: var(--evm-ink);
	font-family: var(--evm-font-display);
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
}

.evm-row__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.4375rem 0.875rem;
	border-radius: var(--evm-radius-pill);
	background: var(--evm-primary-tint);
	color: var(--evm-primary-strong);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.evm-row__cta::after {
	content: "";
	width: 0.875rem;
	height: 0.875rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.15s ease;
}

.evm-row:hover .evm-row__cta.is-tickets {
	background: var(--evm-primary);
	color: var(--evm-on-primary);
}

.evm-row:hover .evm-row__cta::after {
	transform: translateX(2px);
}

.evm-row__cta.is-sold-out {
	background: var(--evm-surface-2);
	color: var(--evm-muted);
}

.evm-row__cta.is-sold-out::after {
	display: none;
}

.evm-row.is-cancelled .evm-row__media img {
	filter: grayscale(0.8);
	opacity: 0.8;
}

@media (max-width: 47.99rem) {
	.evm-row {
		grid-template-columns: 3.75rem minmax(0, 1fr) 5.5rem !important;
		grid-template-areas:
			"date body media"
			"date aside aside" !important;
		align-items: start !important;
		gap: 0.25rem 0.875rem !important;
		padding: 0.75rem !important;
	}

	.evm-date-block__day {
		font-size: 1.375rem;
	}

	.evm-row__media {
		aspect-ratio: 1;
	}

	body .em .evm-row .evm-row__title,
	.evm-row .evm-row__title {
		font-size: 1rem !important;
	}

	.evm-row__aside {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		margin-top: 0.375rem;
	}

	.evm-row__cta {
		padding: 0.3125rem 0.75rem;
	}
}

/* Venue tiles
-------------------------------------------------------------- */
body .em.em-locations-list,
body .em.em-locations-grid,
body .em .em-locations-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)) !important;
	justify-items: stretch !important;
	align-items: stretch !important;
	gap: 1.25rem !important;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: none !important;
}

body .em.em-locations-list > .em-pagination,
body .em.em-locations-grid > .em-pagination {
	grid-column: 1 / -1;
}

.evm-venue {
	position: relative;
	display: flex !important;
	max-width: none !important;
	width: auto !important;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-lg) !important;
	background: var(--evm-surface) !important;
	box-shadow: var(--evm-shadow-card) !important;
	transition: transform 0.2s var(--evm-ease), box-shadow 0.2s ease;
}

.evm-venue:hover {
	transform: translateY(-2px);
	box-shadow: var(--evm-shadow-pop) !important;
}

.evm-venue:focus-within {
	outline: var(--evm-focus);
	outline-offset: 2px;
}

.evm-venue__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--evm-mesh), var(--evm-primary-tint);
}

.evm-venue__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.35s var(--evm-ease);
}

.evm-venue:hover .evm-venue__media img {
	transform: scale(1.05);
}

.evm-venue__initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--evm-radius-lg);
	background: var(--evm-primary-soft);
	color: var(--evm-primary-strong);
	font-family: var(--evm-font-display);
	font-size: 1.25rem;
	font-weight: 700;
}

.evm-venue__body {
	padding: 0.875rem 1rem 1rem;
}

body .em .evm-venue .evm-venue__title,
.evm-venue .evm-venue__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--evm-font-display) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: -0.01em !important;
}

.evm-venue .evm-venue__title a {
	color: var(--evm-ink) !important;
	text-decoration: none !important;
}

.evm-venue .evm-venue__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.evm-venue .evm-venue__title a:focus-visible {
	outline: none !important;
}

body .em .evm-venue :is(.evm-venue__meta, .evm-venue__count),
.evm-venue :is(.evm-venue__meta, .evm-venue__count) {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0.25rem 0 0 !important;
	color: var(--evm-muted) !important;
	font-size: 0.8125rem !important;
}

body .em .evm-venue .evm-venue__count,
.evm-venue .evm-venue__count {
	color: var(--evm-primary-strong) !important;
	font-weight: 600;
}

/* Category and tag tiles
-------------------------------------------------------------- */
body .em.em-categories-list,
body .em.em-tags-list,
body .em .em-categories-list,
body .em .em-tags-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)) !important;
	justify-items: stretch !important;
	align-items: stretch !important;
	gap: 1.25rem !important;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: none !important;
}

body .em :is(.em-categories-list, .em-tags-list) > .em-pagination,
body .em:is(.em-categories-list, .em-tags-list) > .em-pagination {
	grid-column: 1 / -1;
}

body .em .evm-term,
.evm-term {
	--evm-term-color: var(--evm-term, var(--evm-primary));
	position: relative;
	display: flex !important;
	max-width: none !important;
	width: auto !important;
	flex-direction: column !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-lg) !important;
	background: var(--evm-surface) !important;
	box-shadow: var(--evm-shadow-card) !important;
	transition: transform 0.2s var(--evm-ease), box-shadow 0.2s ease;
}

.evm-term:hover {
	transform: translateY(-2px);
	box-shadow: var(--evm-shadow-pop) !important;
}

.evm-term:focus-within {
	outline: var(--evm-focus);
	outline-offset: 2px;
}

.evm-term__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-bottom: 3px solid var(--evm-term-color);
	background: radial-gradient(70% 100% at 20% 0%, color-mix(in srgb, var(--evm-term-color) 30%, transparent), transparent 65%), color-mix(in srgb, var(--evm-term-color) 12%, var(--evm-surface));
}

.evm-term__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform 0.35s var(--evm-ease);
}

.evm-term:hover .evm-term__media img {
	transform: scale(1.05);
}

.evm-term__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--evm-radius-lg);
	background: var(--evm-term-color);
	color: #fff;
	box-shadow: 0 6px 16px -6px var(--evm-term-color);
}

.evm-term__icon svg {
	width: 1.375rem;
	height: 1.375rem;
}

.evm-term__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.875rem 1rem 1rem;
}

body .em .evm-term .evm-term__title,
.evm-term .evm-term__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--evm-font-display) !important;
	font-size: 1.0625rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em !important;
}

body .em .evm-term .evm-term__title a,
.evm-term .evm-term__title a {
	color: var(--evm-ink) !important;
	text-decoration: none !important;
}

.evm-term .evm-term__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.evm-term .evm-term__title a:focus-visible {
	outline: none !important;
}

body .em .evm-term :is(.evm-term__count, .evm-term__next),
.evm-term :is(.evm-term__count, .evm-term__next) {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0 !important;
	color: var(--evm-muted) !important;
	font-size: 0.8125rem !important;
	line-height: 1.45 !important;
}

body .em .evm-term .evm-term__count,
.evm-term .evm-term__count {
	color: var(--evm-primary-strong) !important;
	font-weight: 600;
}

body .em .evm-term .evm-term__count.is-empty,
.evm-term .evm-term__count.is-empty {
	color: var(--evm-muted) !important;
	font-weight: 400;
}

.evm-term__next svg {
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
}

.evm-term__next span {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body .em .evm-term .evm-term__next,
.evm-term .evm-term__next {
	align-items: flex-start;
}

.evm-term__next svg {
	margin-top: 0.15rem;
}

@media (max-width: 47.99rem) {
	.evm-term__media {
		aspect-ratio: 16 / 5;
	}
}

/* Single event and venue pages
-------------------------------------------------------------- */
.evm-single {
	font-family: var(--evm-font-body);
	color: var(--evm-ink);
}

.evm-single__hero {
	position: relative;
	aspect-ratio: 3 / 1;
	max-height: 30rem;
	width: 100%;
	overflow: hidden;
	background: var(--evm-mesh), var(--evm-primary-tint);
	border-bottom: 1px solid var(--evm-line);
}

.evm-single__hero img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}

.evm-single__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--evm-ink) 60%, transparent), color-mix(in srgb, var(--evm-ink) 8%, transparent) 50%, transparent);
	pointer-events: none;
}

.evm-single__hero-fallback .evm-icon {
	width: 4rem;
	height: 4rem;
}

.evm-single__price {
	position: absolute;
	top: 1.5rem;
	right: max(1.5rem, calc((100% - var(--evm-wide)) / 2));
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.875rem;
	border-radius: var(--evm-radius-pill);
	background: color-mix(in srgb, var(--evm-surface) 95%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: var(--evm-shadow-card);
	color: var(--evm-primary-strong);
	font-size: 0.875rem;
	font-weight: 600;
}

.evm-single__wrap {
	box-sizing: content-box;
	max-width: var(--evm-wide);
	margin: 0 auto;
	padding: 0 var(--evm-gutter);
}

.evm-single__head {
	position: relative;
	z-index: 2;
	margin-top: -5.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-lg);
	background: var(--evm-surface);
	box-shadow: var(--evm-shadow-card);
	animation: evm-card-in 0.5s var(--evm-ease) both;
}

.evm-single__head .evm-chips {
	margin-bottom: 0.875rem;
}

.evm-single__title {
	margin: 0;
	font-family: var(--evm-font-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--evm-ink);
}

.evm-single__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-top: 1rem;
	color: var(--evm-ink-soft);
	font-size: 0.875rem;
}

.evm-single__facts > span {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.evm-single__facts .evm-icon {
	color: var(--evm-primary);
	width: 1rem;
	height: 1rem;
}

.evm-single__facts a {
	color: var(--evm-primary-strong);
	font-weight: 500;
	text-decoration: none;
}

.evm-single__facts a:hover {
	text-decoration: underline;
}

.evm-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	margin-top: 2.5rem;
}

@media (min-width: 64rem) {
	.evm-single__grid {
		grid-template-columns: minmax(0, 1fr) 23.5rem;
		align-items: start;
	}

	.evm-single__aside {
		position: sticky;
		top: var(--evm-sticky-top);
	}
}

.evm-single__main,
.evm-single__aside {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

.evm-single__about h2,
.evm-single__events h2 {
	margin: 0 0 1rem;
	font-family: var(--evm-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.evm-single__events .evm-card-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.evm-single .evm-prose {
	max-width: 65ch;
	color: var(--evm-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.7;
}

.evm-single .evm-prose > :first-child {
	margin-top: 0;
}

.evm-single .evm-prose > :last-child {
	margin-bottom: 0;
}

.evm-single__tags {
	margin-top: 1.25rem;
	font-size: 0.8125rem;
}

.evm-single__tags :is(ul, ol) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.evm-single__tags a {
	display: inline-block;
	padding: 0.25rem 0.625rem;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-pill);
	color: var(--evm-ink-soft);
	text-decoration: none;
}

.evm-panel {
	padding: 1.5rem;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-lg);
	background: var(--evm-surface);
	box-shadow: var(--evm-shadow-card);
}

.evm-panel h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-family: var(--evm-font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--evm-ink);
}

.evm-panel h2 .evm-icon,
.evm-booking__head h2 .evm-icon {
	color: var(--evm-primary);
	width: 1rem;
	height: 1rem;
}

.evm-panel__lead {
	margin: 0;
	font-weight: 600;
}

.evm-panel__lead a {
	color: var(--evm-ink);
	text-decoration: none;
}

.evm-panel__lead a:hover {
	color: var(--evm-primary-strong);
}

.evm-panel__muted {
	margin: 0.25rem 0 0;
	color: var(--evm-muted);
	font-size: 0.875rem;
}

.evm-panel__actions {
	margin-top: 1rem;
}

.evm-details {
	display: grid;
	gap: 0.75rem;
	margin: 0;
}

.evm-details > div {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 0.75rem;
	align-items: baseline;
}

.evm-details dt {
	color: var(--evm-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.evm-details dd {
	margin: 0;
	color: var(--evm-ink-soft);
	font-size: 0.9375rem;
}

.evm-map {
	margin-top: 1rem;
	overflow: hidden;
	border-radius: var(--evm-radius-md);
}

.evm-map:empty,
.evm-map:has(> i:only-child) {
	display: none;
}

/* Add to calendar */
body .evm-single button.em-event-add-to-calendar {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0.5rem 1rem !important;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-md) !important;
	background-color: var(--evm-surface) !important;
	color: var(--evm-ink) !important;
	font-family: var(--evm-font-body) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	text-transform: none !important;
	cursor: pointer;
}

/* background-color, not the shorthand: EM draws the dropdown chevron as a no-repeat background image, and the shorthand resets its repeat and size so it tiles across the button. */
body .evm-single button.em-event-add-to-calendar:hover {
	border-color: var(--evm-primary-soft) !important;
	background-color: var(--evm-surface-2) !important;
}

/* Booking panel
-------------------------------------------------------------- */
.evm-booking {
	overflow: hidden;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-lg);
	background: var(--evm-surface);
	box-shadow: var(--evm-shadow-card);
	scroll-margin-top: var(--evm-sticky-top);
}

.evm-booking__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--evm-line);
	background: linear-gradient(180deg, var(--evm-surface-2), var(--evm-surface));
}

.evm-booking__head h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-family: var(--evm-font-display);
	font-size: 1.0625rem;
	font-weight: 700;
}

.evm-booking__price {
	color: var(--evm-primary-strong);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: right;
}

.evm-booking__body {
	padding: 1.25rem;
}

.evm-booking__body > :first-child {
	margin-top: 0;
}

body .em .em-booking-form {
	margin: 0;
}

body .em .em-booking-form section + section {
	margin-top: 1.25rem;
}

body .em.em-event-booking-form .em-booking-section {
	padding: 0 !important;
}

body .em .em-booking-form .em-booking-section-title,
body .em.em-event-booking-form h3.em-booking-section-title {
	background: none !important;
	margin: 0 0 0.75rem !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--evm-muted) !important;
	font-family: var(--evm-font-body) !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
}

body .em .em-booking-form p {
	margin: 0 0 0.875rem;
}

body .em .em-booking-form p > label:first-child {
	display: block;
	margin-bottom: 0.375rem;
}

body .em .em-booking-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

/* EM repeats the sign-in prompt above the guest fields; the one above the tickets is enough. */
body .em .em-booking-form-details > .em-login-trigger {
	display: none;
}

/* Ticket table */
body .em table.em-tickets,
body .em.em-event-booking-form table.em-tickets {
	width: 100% !important;
	margin: 0;
	border: 0 !important;
	border-collapse: collapse;
	font-size: 0.875rem;
}

body .em table.em-tickets :is(th, td),
body .em.em-event-booking-form .em-tickets tr :is(td, th) {
	padding: 0.75rem 0.25rem !important;
	border: 0 !important;
	border-bottom: 1px solid var(--evm-line) !important;
	background: none !important;
	vertical-align: middle;
	text-align: left;
}

body .em table.em-tickets thead th {
	padding-top: 0 !important;
	padding-bottom: 0.5rem !important;
	color: var(--evm-muted) !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body .em table.em-tickets tr:last-child td {
	border-bottom: 0 !important;
}

body .em table.em-tickets .em-bookings-ticket-table-type {
	color: var(--evm-ink);
	font-weight: 500;
}

body .em table.em-tickets .em-bookings-ticket-table-price {
	color: var(--evm-primary-strong);
	font-weight: 600;
	white-space: nowrap;
}

body .em table.em-tickets .em-bookings-ticket-table-spaces {
	width: 4.75rem;
	text-align: right;
}

body .em table.em-tickets select.em-ticket-select:not(#evm) {
	width: 4.5rem !important;
	min-height: 2.25rem !important;
	padding: 0.25rem 0.5rem !important;
}

/* Booking summary */
body .em .em-booking-summary {
	padding: 0.875rem 1rem;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-md);
	background: var(--evm-surface-2);
	color: var(--evm-ink-soft);
	font-size: 0.875rem;
}

body .em .em-booking-summary .em-bs-row-total,
body .em .em-booking-summary .em-bs-row-total :is(.em-bs-cell-desc, .em-bs-cell-price) {
	color: var(--evm-ink) !important;
	font-family: var(--evm-font-display);
	font-size: 1rem !important;
	font-weight: 700 !important;
}

body .em .em-booking-form-buttons {
	margin-top: 1.25rem;
}

body .em .em-booking-form-buttons .em-booking-submit,
body .em .em-booking-form-buttons input[type="submit"] {
	width: 100%;
}

/* Login prompt above the form */
body .em .em-login-trigger {
	font-style: normal !important;
	margin-bottom: 1rem;
	padding: 0.625rem 0.875rem;
	border-radius: var(--evm-radius-md);
	background: var(--evm-primary-tint);
	color: var(--evm-ink-soft);
	font-size: 0.8125rem;
}

body .em .em-login-trigger a {
	font-weight: 600;
}

body .em .em-login-content {
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-md);
}

body .em .em-consent-checkbox label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--evm-muted);
}

/* Search bar
-------------------------------------------------------------- */
body .em.em-search {
	margin-bottom: 1.75rem;
}

/* EM core paints the form white behind the rounded bar, which shows at its corners on any non-white background. */
body .em.em-search .em-search-form {
	background: transparent !important;
}

body .em.em-search .em-search-main-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-lg);
	background: var(--evm-surface);
	box-shadow: var(--evm-shadow-card);
}

body .em.em-search .em-search-main-bar > .em-search-field {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0 !important;
}

body .em.em-search .em-search-main-bar .em-search-field :is(input[type="text"], .em-date-input, .em-datepicker-data, .em-search-scope .button):not(#evm) {
	width: 100% !important;
	min-height: 2.75rem;
	border-color: transparent !important;
	background-color: var(--evm-surface-2) !important;
	box-shadow: none !important;
}

body .em.em-search .em-search-main-bar .em-search-field input[type="text"]:not(#evm):focus {
	border-color: color-mix(in srgb, var(--evm-primary) 45%, transparent) !important;
	background-color: var(--evm-surface) !important;
}

body .em.em-search .em-search-main-bar .em-search-text input[type="text"]:not(#evm) {
	padding-left: 2.5rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: 0.875rem center !important;
	background-size: 1rem !important;
}

/* EM core sizes the sort and view wrappers at 25px and pads them, so the 44px tiles inside hang below the bar; reset them to wrap the tiles. */
body .em.em-search .em-search-main-bar :is(.em-search-advanced-trigger, .em-search-sort, .em-search-views) {
	display: flex;
	flex: none;
	align-items: center;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body .em.em-search .em-search-main-bar :is(.em-search-sort-trigger, .em-search-views-trigger) {
	display: flex !important;
	align-items: center;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body .em.em-search .em-search-main-bar .em-clickable,
body .em.em-search .em-search-main-bar .em-search-views-trigger {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.75rem !important;
	height: 2.75rem !important;
	border-radius: var(--evm-radius-md) !important;
	background-color: var(--evm-surface-2) !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: 1.25rem auto !important;
	transition: background-color 0.15s ease;
}

body .em.em-search .em-search-main-bar .em-clickable:hover,
body .em.em-search .em-search-main-bar .em-search-views-trigger:hover {
	background-color: var(--evm-primary-tint) !important;
}

/* The view switcher is a tile with a dropdown chevron: the tile is the trigger, the current view's icon sits in it without a tile of its own. */
body .em.em-search .em-search-main-bar .em-search-views-trigger {
	justify-content: flex-start;
	width: 3.75rem !important;
	padding-left: 0.75rem !important;
	background-image: var(--icon-point-down) !important;
	background-position: right 0.625rem center !important;
	background-size: 0.75rem auto !important;
	cursor: pointer;
}

body .em.em-search .em-search-main-bar .em-search-views-trigger .em-search-view-option:not(#evm) {
	width: 1.25rem !important;
	height: 1.25rem !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	background-size: 1.25rem auto !important;
	pointer-events: none;
}

body .em.em-search .em-search-main-bar .em-search-submit {
	flex: none;
	margin: 0 !important;
}

body .em.em-search .em-search-main-bar .em-search-submit .button-primary:not(#evm) {
	min-width: 7rem;
}

body .em.em-search .em-search-views-options {
	border-radius: var(--evm-radius-md) !important;
	box-shadow: var(--evm-shadow-pop) !important;
}

@media (max-width: 40rem) {
	body .em.em-search .em-search-main-bar .em-search-submit {
		flex: 1 1 100%;
	}

	body .em.em-search .em-search-main-bar .em-search-submit .button-primary:not(#evm) {
		width: 100%;
	}
}

/* Modals (advanced search, calendar day previews) */
body .em.em-modal .em-modal-popup {
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-xl) !important;
	background: var(--evm-surface) !important;
	box-shadow: var(--evm-shadow-pop) !important;
	font-family: var(--evm-font-body);
}

body .em.em-modal .em-modal-popup header {
	border-bottom: 1px solid var(--evm-line) !important;
}

body .em.em-modal .em-modal-title {
	font-family: var(--evm-font-display) !important;
	font-weight: 700 !important;
}

/* Calendar
-------------------------------------------------------------- */
body .em.em-calendar {
	overflow: hidden;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-xl) !important;
	background: var(--evm-surface) !important;
	box-shadow: var(--evm-shadow-card) !important;
	font-family: var(--evm-font-body) !important;
}

body .em.em-calendar {
	--date-border: 0;
	--date-background: transparent;
	--date-color: var(--evm-ink-soft);
	--date-box-border: 1px solid var(--evm-line);
	--event-text-color: var(--evm-ink);
}

body .em.em-calendar .em-cal-nav {
	gap: 0.75rem;
	margin: 0 !important;
	padding: 1.125rem 1.25rem !important;
	border-bottom: 1px solid var(--evm-line);
	background: var(--evm-mesh), var(--evm-surface);
}

body .em.em-calendar .em-cal-nav > div {
	margin: 0 !important;
}

body .em.em-calendar .em-cal-nav .month {
	justify-self: start;
	margin-left: 0 !important;
}

body .em.em-calendar .em-cal-nav .month input.em-month-picker:not(#evm),
body .em.em-calendar .em-cal-nav .month .em-month-picker:not(#evm),
body .em.em-calendar .em-cal-nav .month span.marker {
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--evm-ink) !important;
	font-family: var(--evm-font-display) !important;
	font-size: clamp(1.375rem, 3vw, 1.875rem) !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em;
}

body .em.em-calendar .em-cal-nav .month-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

body .em.em-calendar .em-cal-nav .em-calnav:not(.em-calnav-today) {
	display: inline-flex !important;
	width: 2.75rem !important;
	height: 2.75rem !important;
	border: 1px solid var(--evm-line) !important;
	border-radius: 999px !important;
	background-color: var(--evm-surface) !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

body .em.em-calendar .em-cal-nav .em-calnav-prev:hover {
	transform: translateX(-2px);
	border-color: var(--evm-primary-soft) !important;
}

body .em.em-calendar .em-cal-nav .em-calnav-next:hover {
	transform: translateX(2px);
	border-color: var(--evm-primary-soft) !important;
}

body .em.em-calendar .em-cal-nav .em-calnav:not(.em-calnav-today) {
	align-items: center;
	justify-content: center;
}

body .em.em-calendar .em-cal-nav .em-calnav svg {
	width: 1.125rem !important;
	height: 1.125rem !important;
}

body .em.em-calendar .em-cal-nav .em-calnav-today:not(#evm) {
	border-radius: 999px !important;
	color: var(--evm-ink-soft) !important;
}

body .em.em-calendar .em-cal-nav .em-calnav-today.is-today:not(#evm) {
	background: var(--evm-primary-tint) !important;
	border-color: var(--evm-primary-soft) !important;
	color: var(--evm-primary-strong) !important;
}

body .em.em-calendar .em-cal-head {
	margin: 0 !important;
	border-bottom: 1px solid var(--evm-line);
	background: linear-gradient(180deg, var(--evm-surface-2), var(--evm-surface));
}

body .em.em-calendar .em-cal-head > div {
	padding: 0.75rem 0.75rem !important;
	color: var(--evm-muted) !important;
	font-size: 0.6875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left !important;
}

/* Weekend column labels; the body class comes from the site's "week starts on" setting. */
.evm-week-starts-1 .em.em-calendar .em-cal-head > div:nth-last-child(-n + 2),
.evm-week-starts-0 .em.em-calendar .em-cal-head > div:is(:first-child, :last-child),
.evm-week-starts-6 .em.em-calendar .em-cal-head > div:nth-child(-n + 2) {
	color: var(--evm-primary) !important;
}

body .em.em-calendar .em-cal-body {
	margin: 0 !important;
	border: 0 !important;
	gap: 0 !important;
}

body .em.em-calendar .em-cal-body > .em-cal-day {
	border: 0 !important;
	border-right: 1px solid var(--evm-line) !important;
	border-bottom: 1px solid var(--evm-line) !important;
	border-radius: 0 !important;
	background: var(--evm-surface);
	transition: background-color 0.15s ease;
}

body .em.em-calendar .em-cal-body > .em-cal-day.em-cal-col-7 {
	border-right: 0 !important;
}

body .em.em-calendar .em-cal-body > .em-cal-day:nth-last-child(-n + 7) {
	border-bottom: 0 !important;
}

body .em.em-calendar .em-cal-body > :is(.eventless-pre, .eventless-post, .eventful-pre, .eventful-post) {
	background: var(--evm-surface-2) !important;
}

body .em.em-calendar .em-cal-body > :is(.eventless-pre, .eventless-post, .eventful-pre, .eventful-post) .em-cal-day-date {
	opacity: 0.55;
}

body .em.em-calendar .em-cal-body .em-cal-day-date {
	color: var(--evm-ink-soft) !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
}

body .em.em-calendar .em-cal-body .em-cal-day-date a {
	color: var(--evm-ink) !important;
	text-decoration: none !important;
}

body .em.em-calendar .em-cal-body > :is(.eventless-today, .eventful-today) {
	background: var(--evm-primary-tint) !important;
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--evm-primary) 35%, transparent);
}

body .em.em-calendar .em-cal-body > :is(.eventless-today, .eventful-today) .em-cal-day-date :is(span, a) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	border: 0 !important;
	background: linear-gradient(135deg, var(--evm-primary), var(--evm-accent)) !important;
	color: #fff !important;
	--date-color: #fff;
}

body .em.em-calendar.size-large .em-cal-body > .em-cal-day {
	min-height: 7rem;
	padding: 0.5rem !important;
}

body .em.em-calendar .em-cal-body.event-style-pill .em-cal-event {
	height: 1.75rem;
	margin: 0.25rem 0 0 !important;
}

body .em.em-calendar .em-cal-body.event-style-pill .em-cal-event > div {
	height: 1.75rem;
	padding: 0.3125rem 0.5rem !important;
	border: 0 !important;
	border-left: 3px solid var(--event-background-color, var(--evm-primary)) !important;
	border-radius: var(--evm-radius-sm) !important;
	background: color-mix(in srgb, var(--event-background-color, var(--evm-primary)) 13%, var(--evm-surface)) !important;
	color: var(--evm-ink-soft) !important;
	font-size: 0.75rem !important;
	line-height: 1.2 !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body .em.em-calendar .em-cal-body.event-style-pill .em-cal-event:not(.multiday) > div {
	left: 0;
	width: 100%;
}

body .em.em-calendar .em-cal-body.event-style-pill .em-cal-event > div:hover {
	filter: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.18);
}

body .em.em-calendar .em-cal-body.event-style-pill .em-cal-event > div a {
	color: var(--evm-ink) !important;
	font-weight: 600;
	text-decoration: none !important;
}

body .em.em-calendar .em-cal-body .em-cal-dot {
	box-shadow: 0 0 0 2px var(--evm-surface);
}

/* Small (phone) calendar: compact cells, dots instead of pills. */
body .em.em-calendar.size-small .em-cal-nav {
	padding: 0.875rem 1rem !important;
}

body .em.em-calendar.size-small .em-cal-head > div {
	padding: 0.5rem 0 !important;
	text-align: center !important;
}

body .em.em-calendar.size-small .em-cal-body > .em-cal-day {
	border-right-color: transparent !important;
	border-bottom-color: transparent !important;
	background: var(--evm-surface) !important;
}

body .em.em-calendar.size-small .em-cal-body > :is(.eventful, .eventful-today) .em-cal-day-date a {
	color: var(--evm-primary-strong) !important;
	font-weight: 700 !important;
}

/* Pagination
-------------------------------------------------------------- */
body .em .em-pagination,
body .em-pagination {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.375rem;
	margin-top: 1.5rem;
	border: 0 !important;
}

body .em .em-pagination .page-numbers,
body .em-pagination .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem !important;
	padding: 0 0.75rem !important;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-md) !important;
	background-color: var(--evm-surface) !important;
	color: var(--evm-ink) !important;
	font-size: 0.875rem !important;
	font-weight: 500;
	text-decoration: none !important;
	opacity: 1 !important;
	transition: border-color 0.15s ease;
}

body .em .em-pagination .page-numbers:hover {
	border-color: var(--evm-primary-soft) !important;
}

body .em .em-pagination .page-numbers.current {
	border-color: var(--evm-primary) !important;
	background-color: var(--evm-primary) !important;
	color: var(--evm-on-primary) !important;
	box-shadow: var(--evm-shadow-button);
}

body .em .em-pagination .page-numbers:is(.next, .prev) {
	width: 2.5rem;
	padding: 0 !important;
	font-size: 0 !important;
	background-size: 1.25rem !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}

/* My bookings and other EM tables
-------------------------------------------------------------- */
body .em :is(.em-my-bookings, .em-bookings-table) table,
body .em table.em-my-bookings-table,
body .em table.widefat {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--evm-line) !important;
	border-radius: var(--evm-radius-lg);
	border-collapse: separate !important;
	border-spacing: 0;
	background: var(--evm-surface);
	box-shadow: var(--evm-shadow-card);
	font-size: 0.875rem;
}

body .em :is(.em-my-bookings, .em-bookings-table) table :is(th, td):not(#evm),
body .em table.widefat :is(th, td):not(#evm) {
	padding: 0.875rem 1rem !important;
	border: 0 !important;
	border-bottom: 1px solid var(--evm-line) !important;
	text-align: left;
	vertical-align: middle;
}

body .em :is(.em-my-bookings, .em-bookings-table) table thead th:not(#evm),
body .em table.widefat thead th:not(#evm) {
	background: var(--evm-surface-2) !important;
	color: var(--evm-muted) !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body .em :is(.em-my-bookings, .em-bookings-table) table tbody tr:last-child td:not(#evm),
body .em table.widefat tbody tr:last-child td:not(#evm) {
	border-bottom: 0 !important;
}

body .em :is(.em-my-bookings, .em-bookings-table) table tbody tr:hover td:not(#evm) {
	background: var(--evm-surface-2);
}

body .em.em-my-bookings table td a {
	color: var(--evm-ink);
	font-weight: 600;
	text-decoration: none;
}

body .em.em-my-bookings table td a:hover {
	color: var(--evm-primary-strong);
}

/* Categories and tags pages
-------------------------------------------------------------- */
.evm-taxonomy__desc:empty {
	display: none;
}

.evm-taxonomy__desc:not(:empty) {
	max-width: 48rem;
	margin-bottom: 1.75rem;
	color: var(--evm-ink-soft);
}

body .em :is(.em-categories-list, .em-tags-list) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}

/* Tooltips and dropdowns */
body .em-tooltip-ddm-content,
body .tippy-box {
	border-radius: var(--evm-radius-md) !important;
	box-shadow: var(--evm-shadow-pop) !important;
	font-family: var(--evm-font-body);
}

/* Motion preferences
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.evm-card,
	.evm-row,
	.evm-single__head {
		animation: none;
	}

	.evm-card,
	.evm-row,
	.evm-venue,
	.evm-term,
	.evm-term__media img,
	.evm-card__media img,
	.evm-row__media img,
	.evm-venue__media img,
	body .em.em-calendar .em-cal-event > div {
		transition: none;
	}

	.evm-card:hover,
	.evm-row:hover,
	.evm-venue:hover,
	.evm-term:hover,
	.evm-term:hover .evm-term__media img,
	.evm-card:hover .evm-card__media img,
	.evm-row:hover .evm-row__media img,
	.evm-venue:hover .evm-venue__media img,
	body .em.em-calendar .em-cal-body.event-style-pill .em-cal-event > div:hover,
	body .em.em-calendar .em-cal-nav .em-calnav:hover {
		transform: none !important;
	}
}

/* Phones
-------------------------------------------------------------- */
@media (max-width: 40rem) {
	.evm-single__hero {
		aspect-ratio: 16 / 10;
	}

	.evm-single__head {
		margin-top: -2.5rem;
	}

	.evm-single__price {
		top: 1rem;
		right: 1rem;
	}

	.evm-panel,
	.evm-booking__body {
		padding: 1.125rem;
	}

	.evm-details > div {
		grid-template-columns: 1fr;
		gap: 0.125rem;
	}
}
