/* =============================================================================
   TRP Events Customizations
============================================================================= */

body{
	--tec-color-accent-primary: #456f92;
	--tec-color-day-marker-month: #4a2213;
	--tec-color-day-marker-month-hover: #4a2213;
	--tec-color-day-marker-month-active: #4a2213;
	--tec-color-day-marker-current-month: #4a2213;
	--tec-color-day-marker-current-month-hover: #4a2213;
	--tec-color-day-marker-current-month-active: #4a2213;
	--tec-color-day-marker-past-month: #4a2213;
	--tec-color-day-marker-past-month-hover: #4a2213;
	--tec-color-day-marker-past-month-active: #4a2213;
	--tec-color-text-events-title: #000;
	--tec-color-text-event-title-list: #4a2213;
	--tec-color-text-events-title-day: #4a2213;
	--tec-color-text-events-title-latest-past: #000;
	--tec-color-text-events-title-month-multiday: #000;
	--tec-color-text-events-title-widget-list: #000;
}


/* ─── Event list ─────────────────────────────────────────────────────────── */

/*
 * Original rule — applies on the main /events/ page where the calendar IS
 * inside #primary.  Keep as-is for exact parity with the original CSS.
 */
#primary .tribe-events {
	--tec-color-day-marker-month:                          #4a2213;
	--tec-color-day-marker-month-hover:                    #4a2213;
	--tec-color-day-marker-month-active:                   #4a2213;
	--tec-color-day-marker-current-month:                  #4a2213;
	--tec-color-day-marker-current-month-hover:            #4a2213;
	--tec-color-day-marker-current-month-active:           #4a2213;
	--tec-color-day-marker-past-month:                     #4a2213;
	--tec-color-day-marker-past-month-hover:               #4a2213;
	--tec-color-day-marker-past-month-active:              #4a2213;
	--tec-color-text-secondary-event-date:                 #456f92;
	--tec-font-family-sans-serif:                          "proxima-nova";
	--tec-color-background-events-bar-submit-button:       #d88c5f;
	--tec-color-text-events-bar-submit-button:             #4a2213;
	--tec-color-background-events-bar-submit-button-hover: #ab6943;
}

/*
 * Duplicate for the Calendar Embed block, which is NOT inside #primary
 * (lives inside a Kadence group).  Lower specificity — no conflict.
 */
.tribe-events {
	--tec-color-day-marker-month:                          #4a2213;
	--tec-color-day-marker-month-hover:                    #4a2213;
	--tec-color-day-marker-month-active:                   #4a2213;
	--tec-color-day-marker-current-month:                  #4a2213;
	--tec-color-day-marker-current-month-hover:            #4a2213;
	--tec-color-day-marker-current-month-active:           #4a2213;
	--tec-color-day-marker-past-month:                     #4a2213;
	--tec-color-day-marker-past-month-hover:               #4a2213;
	--tec-color-day-marker-past-month-active:              #4a2213;
	--tec-color-text-secondary-event-date:                 #456f92;
	--tec-font-family-sans-serif:                          "proxima-nova";
	--tec-color-background-events-bar-submit-button:       #d88c5f;
	--tec-color-text-events-bar-submit-button:             #4a2213;
	--tec-color-background-events-bar-submit-button-hover: #ab6943;
}

/* Event title links — list view (already covers non-#primary via .tribe-events) */
#primary .tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link:visited {
	font-family: "proxima-sera";
	font-weight: 700;
	color: #4a2213;
}

.tooltipster-base.tribe-events-tooltip-theme .tooltipster-box .tooltipster-content a {
	color: #4a2213;
}

/* Event title links — month grid and tooltip (block embed needs no #primary) */
#primary .tribe-events .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title-link {
	color: #000;
}

.tribe-events .tribe-events-calendar-month__calendar-event-title,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:visited,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:focus,
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title,
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title-link:visited,
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title-link:hover,
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title-link:focus,
.tribe-events .tribe-events-calendar-month__multiday-event-bar-title,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link:visited,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link:hover,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link:focus,
.tribe-events .tribe-events-calendar-latest-past__event-title,
.tribe-events .tribe-events-calendar-latest-past__event-title-link,
.tribe-events .tribe-events-calendar-latest-past__event-title-link:visited,
.tribe-events .tribe-events-calendar-latest-past__event-title-link:hover,
.tribe-events .tribe-events-calendar-latest-past__event-title-link:focus {
	color: #000;
}

.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-list__event-datetime-featured-text,
.tribe-events .tribe-events-calendar-day__event-datetime,
.tribe-events .tribe-events-calendar-day__event-datetime-featured-text {
	color: #000 !important;
	font-weight: 700;
}

.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-list__event-title-link:visited,
.tribe-events .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-list__event-title-link:focus,
.tribe-events .tribe-events-calendar-day__event-title,
.tribe-events .tribe-events-calendar-day__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link:visited,
.tribe-events .tribe-events-calendar-day__event-title-link:hover,
.tribe-events .tribe-events-calendar-day__event-title-link:focus {
	color: #4a2213 !important;
	font-family: "proxima-sera";
	font-weight: 700;
}

.tribe-events .tribe-events-calendar-day__event-title,
.tribe-events .tribe-events-calendar-day__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link:visited,
.tribe-events .tribe-events-calendar-day__event-title-link:hover,
.tribe-events .tribe-events-calendar-day__event-title-link:focus,
#primary .tribe-events .tribe-events-calendar-day__event-title,
#primary .tribe-events .tribe-events-calendar-day__event-title-link,
#primary .tribe-events .tribe-events-calendar-day__event-title-link:visited,
#primary .tribe-events .tribe-events-calendar-day__event-title-link:hover,
#primary .tribe-events .tribe-events-calendar-day__event-title-link:focus {
	letter-spacing: 0 !important;
}

.tribe-events .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day-date-link,
.tribe-events .tribe-events-calendar-month__day-date-link:visited,
.tribe-events .tribe-events-calendar-month__day-date-link:hover,
.tribe-events .tribe-events-calendar-month__day-date-link:focus,
.tribe-events .tribe-events-calendar-month__day-date-daynum,
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link,
.tribe-events .tribe-events-calendar-month-mobile-events__day-marker,
.tribe-events .tribe-events-calendar-month-mobile-events__day-marker .tribe-events-c-day-marker__date {
	color: #4a2213;
}

.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date-link,
.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date-daynum {
	color: #fff !important;
}

.tribe-events .tribe-events-header__messages.tribe-events-c-messages,
#primary .tribe-events .tribe-events-header__messages.tribe-events-c-messages,
.tribe-events .tribe-events-header__messages.tribe-events-c-breadcrumbs__list-item-icon-svg,
#primary .tribe-events .tribe-events-header__messages.tribe-events-c-breadcrumbs__list-item-icon-svg {
	background: transparent !important;
	border: 0 !important;
	display: flex !important;
	height: auto !important;
	justify-content: center;
	margin: 0 0 8px !important;
	overflow: visible;
	padding: 0 !important;
	width: 100% !important;
}

@media (max-width: 767px) {
	.tribe-events .tribe-events-header__messages.tribe-events-c-messages:not(.tribe-events-header__messages--mobile),
	#primary .tribe-events .tribe-events-header__messages.tribe-events-c-messages:not(.tribe-events-header__messages--mobile) {
		display: none !important;
	}

	.tribe-events .tribe-events-header__messages.tribe-events-c-messages.tribe-events-header__messages--mobile,
	#primary .tribe-events .tribe-events-header__messages.tribe-events-c-messages.tribe-events-header__messages--mobile {
		display: flex !important;
	}
}

@media (min-width: 768px) {
	.tribe-events .tribe-events-header__messages.tribe-events-c-messages:not(.tribe-events-header__messages--mobile),
	#primary .tribe-events .tribe-events-header__messages.tribe-events-c-messages:not(.tribe-events-header__messages--mobile) {
		display: flex !important;
	}

	.tribe-events .tribe-events-header__messages.tribe-events-c-messages.tribe-events-header__messages--mobile,
	#primary .tribe-events .tribe-events-header__messages.tribe-events-c-messages.tribe-events-header__messages--mobile {
		display: none !important;
	}
}

.tribe-events .tribe-events-c-messages__message,
#primary .tribe-events .tribe-events-c-messages__message,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-messages__message,
#primary .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-messages__message {
	align-items: center;
	background: rgba(255, 255, 255, 0.65) !important;
	border: 1px solid rgba(74, 34, 19, 0.16) !important;
	border-radius: 6px !important;
	color: #4a2213 !important;
	display: inline-flex !important;
	gap: 12px;
	justify-content: center;
	margin: 0 auto !important;
	max-width: calc(100% - 32px);
	padding: 12px 18px !important;
	width: auto !important;
}

.tribe-events .tribe-events-c-messages__message div {
	color: #4a2213;
	font-family: var(--tec-font-family-sans-serif, "proxima-nova");
	font-size: 16px;
	line-height: 1.4;
}

.tribe-events .tribe-events-c-messages__message-icon-svg {
	color: #4a2213;
	flex: 0 0 auto;
}

.tribe-events .tribe-events-c-messages__message-icon-svg path,
.tribe-events .tribe-events-c-messages__message-icon-svg .tribe-common-c-svgicon__svg-stroke {
	stroke: #4a2213 !important;
}

.tribe-events .tribe-events-c-messages__message-icon-svg path:first-child {
	fill: #fff !important;
}

.tribe-events .tribe-events-c-top-bar__datepicker-button,
.tribe-events .tribe-events-c-top-bar__datepicker-time,
.tribe-events .tribe-events-c-top-bar__datepicker-desktop,
.tribe-events .tribe-events-c-top-bar__datepicker-mobile {
	letter-spacing: 0 !important;
}

.tribe-events .datepicker .day.active,
.tribe-events .datepicker .day.active:hover,
.tribe-events .datepicker .day.active.focused,
.tribe-events .datepicker .day.active:focus,
.tribe-events .datepicker .day.current,
.tribe-events .datepicker .day.current:hover,
.tribe-events .datepicker .day.current.focused,
.tribe-events .datepicker .day.current:focus,
.tribe-events .datepicker .month.active,
.tribe-events .datepicker .month.active:hover,
.tribe-events .datepicker .month.active.focused,
.tribe-events .datepicker .month.active:focus,
.tribe-events .datepicker .month.current,
.tribe-events .datepicker .month.current:hover,
.tribe-events .datepicker .month.current.focused,
.tribe-events .datepicker .month.current:focus,
#primary .tribe-events .datepicker .day.active,
#primary .tribe-events .datepicker .day.active:hover,
#primary .tribe-events .datepicker .day.active.focused,
#primary .tribe-events .datepicker .day.active:focus,
#primary .tribe-events .datepicker .day.current,
#primary .tribe-events .datepicker .day.current:hover,
#primary .tribe-events .datepicker .day.current.focused,
#primary .tribe-events .datepicker .day.current:focus {
	background: #d88c5f !important;
	color: #4a2213 !important;
	text-shadow: none !important;
}

.tribe-events .datepicker .day.active::before,
.tribe-events .datepicker .day.current::before,
.tribe-events .datepicker .month.active::before,
.tribe-events .datepicker .month.current::before,
#primary .tribe-events .datepicker .day.active::before,
#primary .tribe-events .datepicker .day.current::before {
	border-color: #4a2213 !important;
}

#primary .tribe-events .tribe-events-c-search__button, 
#primary .tribe-events button.tribe-events-c-search__button {
	background-color: #d88c5f!important;
	color:      #4a2213!important;
	border:     none!important;
}

#primary .tribe-events .tribe-events-c-search__button:hover, 
#primary .tribe-events button.tribe-events-c-search__button:hover {
	background-color: #ab6943!important;
	color:      #FFF!important;
}

/* ─── Event single ───────────────────────────────────────────────────────── */

body.wp-singular.tribe_events-template-default {
	--tec-color-text-primary:     #000;
	--tec-font-family-sans-serif: "proxima-nova";
}

body.wp-singular.tribe_events-template-default h2 {
	color:          #4a2213;
	font-size:      20px;
	font-family:    "proxima-nova";
	text-transform: uppercase;
}

body.wp-singular.tribe_events-template-default #tribe-events-content {
	box-shadow:  none;
	background:  transparent;
}

body.wp-singular.tribe_events-template-default .entry-title.tribe-events-single-event-title {
	font-family: "proxima-sera";
	font-weight: 700;
	color:       #4a2213;
}

body.wp-singular.tribe_events-template-default .tribe-events-content,
body.wp-singular.tribe_events-template-default .tribe-events-meta-label,
body.wp-singular.tribe_events-template-default .tribe-events-meta-value {
	color: #000;
}

body.wp-singular.tribe_events-template-default .tribe-events-schedule * {
	font-family: "proxima-nova";
	font-weight: 700;
	color:       #456f92;
	font-size:   20px;
}

@media (max-width: 768px) {
	body.wp-singular.tribe_events-template-default #primary .tribe-events-schedule,
	body.wp-singular.tribe_events-template-default #primary .tribe-events-schedule h2,
	body.wp-singular.tribe_events-template-default #primary .tribe-events-schedule * {
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}
}

body.wp-singular.tribe_events-template-default .tribe-related-events-thumbnail {
	display: none;
}

body.wp-singular.tribe_events-template-default .tribe-events-single ul.tribe-related-events li {
	background: white;
}

body.wp-singular.tribe_events-template-default .tribe-events-single ul.tribe-related-events li .tribe-related-event-info {
	padding:    10px;
	background: white;
}

body.wp-singular.tribe_events-template-default #primary .tribe-blocks-editor .tribe-events-event-meta {
	background: transparent;
	border:     none;
}

body.wp-singular.tribe_events-template-default #primary .tribe-block__venue {
	border: none;
}

/* ─── Category filter dropdown ───────────────────────────────────────────── */
/* Sits after the datepicker ("May 2026 ∨") in the top-bar.                 */

.trp-category-filter {
	display:     inline-flex;
	align-items: center;
	margin-left: 16px;
	margin-right: auto;
	position:    relative;
}

.trp-category-button::after {
	border-color: var(--tec-color-accent-primary, #456f92);
	border-style: solid;
	border-width: 0 1.5px 1.5px 0;
	content: "";
	height: 7px;
	pointer-events: none;
	display: inline-block;
	margin-left: 10px;
	transform: translateY(-3px) rotate(45deg);
	width: 7px;
}

.trp-category-filter--loading {
	opacity: 0.65;
}

.trp-category-button {
	font-family:    var(--tec-font-family-sans-serif, "proxima-nova");
	font-weight:    700;
	letter-spacing: 0;
	color:          var(--tec-color-accent-primary, #456f92);

	background:         transparent;
	background-image:   none !important;
	border:             none;
	cursor:             pointer;
	max-width:          260px;
	min-height:         0;
	padding:            0;
}

.tribe-events button.trp-category-button {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--tec-color-accent-primary, #456f92);
	outline: 0;
	padding: 0;
}

.tribe-events button.trp-category-button.tribe-events-c-top-bar__datepicker-button:focus,
.tribe-events button.trp-category-button.tribe-events-c-top-bar__datepicker-button:hover,
.tribe-events button.trp-category-button.tribe-events-c-top-bar__datepicker-button:active {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--tec-color-accent-primary, #456f92);
	opacity: 1;
	outline: 0;
	text-shadow: none;
}

.trp-category-button.tribe-events-c-top-bar__datepicker-button {
	display: inline-flex;
	align-items: center;
	text-align: left;
}

.trp-category-menu {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	left: 0;
	list-style: none;
	margin: 8px 0 0;
	min-width: 220px;
	padding: 6px;
	position: absolute;
	top: 100%;
	z-index: 50;
}

.trp-category-menu[hidden] {
	display: none;
}

.trp-category-menu li {
	margin: 0;
}

.trp-category-option {
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: #222;
	cursor: pointer;
	display: block;
	font-family: var(--tec-font-family-sans-serif, "proxima-nova");
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0 !important;
	line-height: 1.4;
	padding: 8px 14px;
	text-align: left;
	text-transform: none;
	width: 100%;
}

.tribe-events button.trp-category-option {
	padding: 8px 14px;
}

.trp-category-option:hover,
.trp-category-option:focus,
.tribe-events button.trp-category-option:hover,
.tribe-events button.trp-category-option:focus {
	background: #eef4f8;
	color: #222;
}

.trp-category-option[aria-selected="true"],
.tribe-events button.trp-category-option[aria-selected="true"] {
	background: var(--tec-color-accent-primary, #456f92);
	color: #fff;
}

.trp-category-option[aria-selected="true"]:hover,
.trp-category-option[aria-selected="true"]:focus,
.tribe-events button.trp-category-option[aria-selected="true"]:hover,
.tribe-events button.trp-category-option[aria-selected="true"]:focus {
	background: var(--tec-color-accent-primary, #456f92);
	color: #fff;
}

.trp-category-button:focus {
	outline: none;
}
