/**
 * The Events Calendar — RAHA brand overrides
 * Loaded after TEC views CSS so fonts/colors win.
 */
body.tribe-events-page-template .page-title-section {
	display: none !important;
}

body.tribe-events-page-template #main,
body.tribe-events-page-template .tribe-events,
body.tribe-events-page-template .tribe-common {
	font-family: var(--raha-font-body, Arial, Helvetica, sans-serif) !important;
	color: var(--raha-rink-navy, #1B2D4F) !important;
}

body.tribe-events-page-template .tribe-events,
body.tribe-events-page-template .tribe-common {
	--tec-font-family-sans-serif: Arial, Helvetica, sans-serif;
	--tec-font-family-base: Arial, Helvetica, sans-serif;
	--tec-color-accent-primary: #1B2D4F;
	--tec-color-accent-primary-hover: #009E4F;
	--tec-color-accent-secondary: #FFD000;
	--tec-color-link-primary: #1B2D4F;
	--tec-color-link-accent: #009E4F;
	--tec-color-border-default: #e1e1e1;
	--tec-color-text-primary: #1B2D4F;
	--tec-color-text-secondary: #555555;
	--tec-color-text-events-title: #1B2D4F;
	--tec-color-text-event-date: #555555;
	--tec-color-text-day-of-week-month: #1B2D4F;
	--tec-color-background-events-bar-submit-button: #1B2D4F;
	--tec-color-background-events-bar-submit-button-hover: #009E4F;
	--tec-color-background-events-bar-submit-button-active: #009E4F;
	--tec-color-icon-active: #1B2D4F;
	--tec-color-icon-hover: #009E4F;
	--tec-color-day-marker-current-month: #1B2D4F;
	--tec-color-day-marker-current-month-hover: #009E4F;
	--tec-color-background-primary-datepicker: #FFD000;
	--tec-color-day-marker-month: #1B2D4F;
}

body.tribe-events-page-template .tribe-events {
	padding-top: 8px;
}

body.tribe-events-page-template .tribe-events-header__title-text,
body.tribe-events-page-template h1.tribe-common-h1 {
	font-family: var(--raha-font-headline, Impact, "Arial Narrow", Arial, sans-serif) !important;
	color: #1B2D4F !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 32px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
}

body.tribe-events-page-template .tribe-events-header__content-title,
body.tribe-events-page-template .tribe-events-header__content-title .tribe-events-header__content-title-text {
	display: none !important;
}

body.tribe-events-page-template .tribe-events-c-breadcrumbs__list-item-link {
	color: #1B2D4F !important;
	text-decoration: underline;
	text-decoration-color: #FFD000;
	text-underline-offset: 2px;
}

body.tribe-events-page-template .tribe-events-c-breadcrumbs__list-item-link:hover,
body.tribe-events-page-template .tribe-events-c-breadcrumbs__list-item-link:focus {
	color: #009E4F !important;
}

body.tribe-events-page-template .tribe-events-c-breadcrumbs__list-item-text {
	color: #555555 !important;
}

body.tribe-events-page-template .tribe-events-c-search__input,
body.tribe-events-page-template .tribe-common-form-control-text__input {
	border: 1px solid #e1e1e1 !important;
	border-radius: 4px !important;
	color: #1B2D4F !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-search__button,
body.tribe-events-page-template .tribe-events button.tribe-events-c-search__button,
body.tribe-events-page-template .tribe-common-c-btn:not(.tribe-common-c-btn__clear):not(.tribe-events-c-view-selector__button) {
	background: #1B2D4F !important;
	background-color: #1B2D4F !important;
	border-color: #1B2D4F !important;
	color: #ffffff !important;
	border-radius: 4px !important;
	font-family: Impact, "Arial Narrow", Arial, sans-serif !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-search__button:hover,
body.tribe-events-page-template .tribe-events .tribe-events-c-search__button:focus,
body.tribe-events-page-template .tribe-events button.tribe-events-c-search__button:hover,
body.tribe-events-page-template .tribe-events button.tribe-events-c-search__button:focus,
body.tribe-events-page-template .tribe-common-c-btn:not(.tribe-common-c-btn__clear):not(.tribe-events-c-view-selector__button):hover,
body.tribe-events-page-template .tribe-common-c-btn:not(.tribe-common-c-btn__clear):not(.tribe-events-c-view-selector__button):focus {
	background: #009E4F !important;
	background-color: #009E4F !important;
	border-color: #009E4F !important;
	color: #ffffff !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-view-selector__list-item-link {
	color: #1B2D4F !important;
	border-bottom: 2px solid transparent !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
body.tribe-events-page-template .tribe-events .tribe-events-c-view-selector__list-item-link--active,
body.tribe-events-page-template .tribe-events .tribe-events-c-view-selector__list-item-link[aria-current="page"] {
	border-bottom-color: #FFD000 !important;
	color: #1B2D4F !important;
	font-weight: 700 !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-top-bar__nav-link,
body.tribe-events-page-template .tribe-events .tribe-events-c-top-bar__today-button,
body.tribe-events-page-template .tribe-events .tribe-events-c-nav__list-item a,
body.tribe-events-page-template .tribe-events .tribe-events-c-top-bar__datepicker-button {
	color: #1B2D4F !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-top-bar__nav-link:hover,
body.tribe-events-page-template .tribe-events .tribe-events-c-top-bar__today-button:hover,
body.tribe-events-page-template .tribe-events .tribe-events-c-nav__list-item a:hover,
body.tribe-events-page-template .tribe-events .tribe-events-c-top-bar__datepicker-button:hover {
	color: #009E4F !important;
}

body.tribe-events-page-template .tribe-events-c-messages__message--notice {
	background: #F0F3F7 !important;
	border: 1px solid #e1e1e1 !important;
	border-left: 4px solid #FFD000 !important;
	border-radius: 4px !important;
	padding: 16px 18px !important;
	color: #555555 !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.tribe-events-page-template .tribe-events-c-messages__message--notice .tribe-events-c-messages__message-icon-svg {
	display: none;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-subscribe-dropdown__button {
	color: #1B2D4F !important;
	border-color: #1B2D4F !important;
	border-radius: 4px !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-subscribe-dropdown__button:hover,
body.tribe-events-page-template .tribe-events .tribe-events-c-subscribe-dropdown__button:focus {
	background: #1B2D4F !important;
	color: #ffffff !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-subscribe-dropdown__list-item a {
	color: #1B2D4F !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-c-subscribe-dropdown__list-item a:hover {
	color: #009E4F !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-list__month-separator-text,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__header-column-title,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__header-column-title .tribe-events-calendar-month__header-column-title-desktop,
body.tribe-events-page-template .tribe-events .tribe-common-b3.tribe-events-calendar-month__header-column-title {
	font-family: Impact, "Arial Narrow", Arial, sans-serif !important;
	color: #1B2D4F !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-row {
	border-bottom: 1px solid #e1e1e1;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-title-link,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-title a,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__calendar-event-title-link,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__calendar-event-title {
	color: #1B2D4F !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-weight: 700 !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-title-link:hover,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-list__event-title a:hover,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover {
	color: #009E4F !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__calendar-event-datetime {
	color: #555555 !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
	background: #FFD000 !important;
	color: #1B2D4F !important;
	border-radius: 50%;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__day-date-daynum {
	color: #1B2D4F !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__multiday-event-bar {
	background: #1B2D4F !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__multiday-event-bar-inner {
	background: #FFD000 !important;
	color: #1B2D4F !important;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__day:hover {
	background: #fafbfc;
}

body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-date-daynum {
	color: #999999 !important;
}

/* Event dots / markers in month cells */
body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__day-cell--selected,
body.tribe-events-page-template .tribe-events .tribe-events-calendar-month__day-cell-focus {
	box-shadow: inset 0 0 0 2px #FFD000;
}

/* =========================================================
   Single event — brand title, schedule, location + map
   ========================================================= */
body.single-tribe_events .tribe-events-single-event-title,
body.single-tribe_events #tribe-events-content .tribe-events-single-event-title,
body.single-tribe_events .page-title-section .entry-title {
	font-family: Impact, "Arial Narrow", Arial, sans-serif !important;
	color: #1B2D4F !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em;
	font-weight: 400 !important;
	font-size: 36px !important;
	line-height: 1.15 !important;
	margin: 0 0 12px !important;
}

body.single-tribe_events .tribe-events-schedule,
body.single-tribe_events .raha-ev-schedule {
	font-family: Arial, Helvetica, sans-serif !important;
	color: #1B2D4F !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	margin: 0 0 22px !important;
}

body.single-tribe_events .raha-ev-schedule__sep {
	font-weight: 500;
	color: #555555;
}

body.single-tribe_events .tribe-events-event-meta.primary {
	display: grid !important;
	grid-template-columns: 30% 1fr;
	gap: 24px;
	align-items: start;
	margin-top: 8px;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box;
}

body.single-tribe_events .tribe-events-event-meta.primary::before,
body.single-tribe_events .tribe-events-event-meta.primary::after {
	display: none !important;
	content: none !important;
}

body.single-tribe_events .tribe-events-meta-group-details {
	width: auto !important;
	max-width: none;
	min-width: 0;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

body.single-tribe_events .raha-ev-location-map {
	width: auto !important;
	min-width: 0;
	max-width: none;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

body.single-tribe_events .tribe-events-single-section-title,
body.single-tribe_events .raha-ev-location-map .tribe-events-single-section-title {
	font-family: Impact, "Arial Narrow", Arial, sans-serif !important;
	color: #1B2D4F !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 22px !important;
	font-weight: 400 !important;
	margin: 0 0 12px !important;
}

body.single-tribe_events .tribe-events-meta-label {
	color: #1B2D4F !important;
	font-weight: 700 !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.single-tribe_events .tribe-events-meta-value,
body.single-tribe_events .tribe-events-meta-value a {
	color: #1B2D4F !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

body.single-tribe_events .tribe-events-meta-value a:hover {
	color: #009E4F !important;
}

body.single-tribe_events .raha-ev-location__map {
	position: relative;
	width: 100%;
	height: 360px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px #e1e1e1;
	background: #F0F3F7;
}

body.single-tribe_events .raha-ev-location__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Prefer our map/location; hide stock TEC venue/map duplicates when present */
body.single-tribe_events .tribe-events-meta-group-venue,
body.single-tribe_events .tribe-events-meta-group-gmap:not(.raha-ev-location-map) {
	display: none !important;
}

/* Hide previous/next event links at bottom of single event */
body.single-tribe_events #tribe-events-footer {
	display: none !important;
}

/* Hide stray dt/dd if theme outputs both list + definition markup */
body.single-tribe_events .tribe-events-meta-group-details > dt,
body.single-tribe_events .tribe-events-meta-group-details > dd {
	display: none !important;
}

@media (max-width: 767px) {
	body.single-tribe_events .tribe-events-event-meta.primary {
		grid-template-columns: 1fr;
	}
	body.single-tribe_events .tribe-events-single-event-title,
	body.single-tribe_events #tribe-events-content .tribe-events-single-event-title,
	body.single-tribe_events .page-title-section .entry-title {
		font-size: 28px !important;
	}
	body.single-tribe_events .raha-ev-location__map {
		height: 220px;
	}
}
