/* The Events Calendar (v2 / tribe-common) — map to SPES tokens */
.tribe-common {
	--tec-font-family-sans: var( --font-primary, "Poppins", sans-serif );
	--tec-color-text-primary: var( --text-primary, #3c3c3b );
	--tec-color-text-secondary: var( --text-secondary, #626161 );
	--tec-color-text-events-title: var( --color-purple, #642667 );
	--tec-color-text-events-title-on-event: var( --color-purple, #642667 );
	--tec-color-text-events-title-on-event--hover: var( --color-purple-deep, #4a1b4d );
	--tec-color-text-events-date: var( --color-cyan-dark, #049db6 );
	--tec-color-accent-primary: var( --color-purple, #642667 );
	--tec-color-icon-focus: var( --color-cyan, #05c3de );
}

body.tribe_events_page .tribe-common,
body.post-type-archive-tribe_events .tribe-common,
body.single-tribe_events .tribe-common,
body.tax-tribe_events_cat .tribe-common,
body.events-single .tribe-common {
	color: var( --text-primary );
}

body.spes-design-system .tribe-common-c-btn--border,
body.spes-design-system .tribe-common-c-btn {
	font-family: var( --font-primary ) !important;
}

body.spes-design-system a.tribe-common-c-btn--border,
body.spes-design-system button.tribe-common-c-btn--border,
body.spes-design-system a.tribe-common-b2--border {
	border-color: var( --color-purple ) !important;
	color: var( --color-purple ) !important;
	border-radius: var( --radius-full ) !important;
}

body.spes-design-system a.tribe-common-c-btn--primary,
body.spes-design-system button.tribe-common-c-btn--primary {
	background: var( --color-purple ) !important;
	border-color: var( --color-purple ) !important;
	color: #fff !important;
}

body.spes-design-system a.tribe-common-c-btn--primary:hover,
body.spes-design-system button.tribe-common-c-btn--primary:hover,
body.spes-design-system a.tribe-common-c-btn--primary:focus {
	background: var( --color-purple-deep ) !important;
}

body.spes-design-system h1.tribe-events-single-event-title,
body.spes-design-system .tribe-events-single-event-title {
	color: var( --color-purple ) !important;
	font-weight: 600;
	letter-spacing: var( --ls-tight, -0.02em );
}

body.spes-design-system .tribe-events-calendar-day__header-title,
body.spes-design-system .tribe-events-calendar-day__day-title,
body.spes-design-system .tribe-events-calendar-day__date-title,
body.spes-design-system .tribe-events-calendar-day__date-title a {
	color: var( --color-near-black ) !important;
}

body.spes-design-system .tribe-events-calendar-day__date-title a,
body.spes-design-system .tribe-events-c-nav a {
	text-decoration: none;
}

body.spes-design-system .tribe-events-calendar-day__date-title a:hover,
body.spes-design-system .tribe-events-c-nav a:hover,
body.spes-design-system .tribe-common-anchor {
	color: var( --color-purple-deep ) !important;
}

body.spes-design-system .tribe-events-c-nav a:focus-visible {
	outline: 3px solid var( --color-cyan, #05c3de ) !important;
}

body.spes-design-system .tribe-events-c-subscribe-dropdown__container {
	border-color: var( --color-grey-10, #c9c9c9 ) !important;
}

body.spes-design-system .tribe-events .tribe-events-calendar-day__day .tribe-events-c-day-marker {
	background: var( --color-purple-7, #f3eff6 ) !important;
}

body.spes-design-system .tribe-events .tribe-events-c-view-selector__item--active {
	background: var( --color-purple-7, #f3eff6 ) !important;
}

/* List view cards */
body.spes-design-system .tribe-common.tribe-common-l-container {
	background: var( --bg-page, #fdfaf7 );
}

body.spes-design-system .tribe-events-calendar-list__event {
	border-radius: var( --radius-md, 8px ) !important;
}
