/**
 * EventPlus front-end typography isolation.
 * Inherits font-family from the active theme; sizes, spacing, and weights use plugin defaults.
 * Uses px (not rem) so theme html { font-size } tricks cannot inflate plugin text.
 *
 * List/grid card typography is also enforced via <eventplus-list> shadow CSS (eventplus-list-shadow.css).
 * Rules below remain for calendar, registration, coordinators, timeline, and no-JS fallback.
 */

.eventplus-element,
.eventplus-single-event-page .eventplus-single-event,
.eventplus-registration-form,
.eventplus-attendees {
	font-family: inherit;
	font-size: 16px !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	font-weight: 400 !important;
	font-style: normal !important;
	text-transform: none !important;
	text-decoration: none;
	color: #334155;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.eventplus-element *,
.eventplus-element *::before,
.eventplus-element *::after,
.eventplus-single-event-page .eventplus-single-event *,
.eventplus-single-event-page .eventplus-single-event *::before,
.eventplus-single-event-page .eventplus-single-event *::after,
.eventplus-registration-form *,
.eventplus-registration-form *::before,
.eventplus-registration-form *::after,
.eventplus-attendees *,
.eventplus-attendees *::before,
.eventplus-attendees *::after {
	font-family: inherit;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Theme bleed prevention — block themes, Salient, Divi, Elementor wrappers */
body :is(.entry-content, .wp-block-post-content, .post-content, #main-content, .main-content, .container, .post-area) .eventplus-element,
body .eventplus-element.eventplus-element {
	font-size: 16px !important;
	line-height: 1.5 !important;
}

/* Theme resets — aggressive themes often inflate heading size/line-height/margin. */
body .eventplus-element :is(h1, h2, h3, h4, h5, h6),
body .eventplus-single-event-page .eventplus-single-event :is(h1, h2, h3, h4, h5, h6),
body .eventplus-attendees :is(h1, h2, h3, h4, h5, h6),
body :is(.entry-content, .wp-block-post-content) .eventplus-element :is(h1, h2, h3, h4, h5, h6) {
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	font-style: normal !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	line-height: 1.35 !important;
}

body .eventplus-element :is(p, time, li, span, div),
body .eventplus-single-event-page .eventplus-single-event :is(p, time, li, span, div),
body :is(.entry-content, .wp-block-post-content) .eventplus-element :is(p, time, li, span, div) {
	letter-spacing: normal !important;
	text-transform: none !important;
}

body .eventplus-element :is(p, time, li),
body .eventplus-element .eventplus-event-card__description,
body .eventplus-element .eventplus-event-card__categories,
body .eventplus-element .eventplus-event-card__location,
body .eventplus-element .eventplus-modern-list .event-description,
body .eventplus-element .eventplus-modern-list .event-location,
body .eventplus-element .eventplus-modern-list .event-categories,
body .eventplus-element .eventplus-coordinators__bio,
body .eventplus-element .eventplus-coordinators__position,
body .eventplus-element .eventplus-coordinators__email,
body .eventplus-element .eventplus-coordinators__phone,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__description,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__categories,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__location {
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1.45 !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

body .eventplus-element .eventplus-event-card__date,
body .eventplus-element .eventplus-carousel__date,
body .eventplus-element .eventplus-timeline__date,
body .eventplus-element .eventplus-modern-list .event-month,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__date {
	font-size: 13px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
}

body .eventplus-element .eventplus-event-card__title,
body .eventplus-element h3.eventplus-event-card__title,
body .eventplus-element .eventplus-carousel__title,
body .eventplus-element h3.eventplus-carousel__title,
body .eventplus-element .eventplus-timeline__title,
body .eventplus-element h3.eventplus-timeline__title,
body .eventplus-element .eventplus-modern-list .event-title,
body .eventplus-element h3.eventplus-modern-list .event-title,
body .eventplus-element .eventplus-coordinators__name,
body .eventplus-element h3.eventplus-coordinators__name,
body :is(.entry-content, .wp-block-post-content) .eventplus-element h3.eventplus-event-card__title,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__title {
	font-size: 18px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
}

body .eventplus-element .eventplus-event-card__title a,
body .eventplus-element .eventplus-carousel__title a,
body .eventplus-element .eventplus-timeline__title a,
body .eventplus-element .eventplus-modern-list .event-title a,
body .eventplus-element .eventplus-coordinators__email a,
body .eventplus-element .eventplus-coordinators__social a,
body .eventplus-element .eventplus-event-card__link,
body .eventplus-element .eventplus-modern-list .event-read-more,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__link,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__title a {
	font-family: inherit !important;
	font-size: 18px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

body .eventplus-element .eventplus-event-card__link,
body .eventplus-element .eventplus-modern-list .event-read-more,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__link {
	font-size: 15px !important;
	margin-top: 8px !important;
}

body .eventplus-element .eventplus-event-card__link:hover,
body .eventplus-element .eventplus-modern-list .event-read-more:hover,
body .eventplus-element .eventplus-event-card__title a:hover,
body .eventplus-element .eventplus-carousel__title a:hover,
body .eventplus-element .eventplus-timeline__title a:hover,
body .eventplus-element .eventplus-modern-list .event-title a:hover {
	text-decoration: underline !important;
}

body .eventplus-element .eventplus-modern-list .event-day {
	font-size: 20px !important;
	line-height: 1 !important;
	font-weight: 700 !important;
}

body .eventplus-element .eventplus-event-card__body,
body :is(.entry-content, .wp-block-post-content) .eventplus-element .eventplus-event-card__body {
	font-size: 15px !important;
	line-height: 1.45 !important;
}

body .eventplus-element .eventplus-event-card__actions {
	margin: 0 !important;
	padding: 0 !important;
}

body .eventplus-element .eventplus-element__empty {
	font-size: 15px !important;
	line-height: 1.5 !important;
	margin: 0 !important;
}

/* Map popups — isolate from theme h3/p inflation (Salient, etc.). */
body .eventplus-element .eventplus-map-popup,
body .eventplus-element .eventplus-map-popup__title,
body .eventplus-element .eventplus-map-popup__date,
body .eventplus-element .eventplus-map-popup__location,
body .eventplus-element .eventplus-map-popup__link {
	letter-spacing: normal !important;
	text-transform: none !important;
}

body .eventplus-element .eventplus-map-popup__title {
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 !important;
}

body .eventplus-element .eventplus-map-popup__date,
body .eventplus-element .eventplus-map-popup__location {
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	margin: 0 !important;
}

body .eventplus-element .eventplus-map-popup__link {
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}
