/**
 * Events archive — The Events Calendar's list, month and day views.
 *
 * The plugin ships a full stylesheet, so most of this is overrides. Its own
 * class names are used for the standing entries and the past-events list too,
 * so both lists share one set of rules.
 */

.tribe-events,
.tribe-events-view {
	--tec-color-accent-primary: var(--color-olive);
	--tec-color-accent-primary-hover: var(--color-olive-deep);
	--tec-color-accent-primary-active: var(--color-olive-deep);
	--tec-color-link-primary: black;
	--tec-color-link-accent: var(--color-olive);
	--tec-color-link-accent-hover: var(--color-olive);
	--tec-font-family-sans-serif: var(--font-mono);
}

.tribe-events .tribe-events-l-container {
	padding-block: var(--space-xl) var(--space-2xl);
}

.tribe-events .tribe-events-header__content-title {
	justify-content: center;
}

.tribe-events .tribe-events-header__content-title::after {
	display: none;
}

.tribe-events .tribe-events-header .rth-page-title {
	font-weight: 600;
	margin-bottom: clamp(2.5rem, 5vw, 5.5rem);
}

/* Search bar */
.tribe-events .tribe-events-c-events-bar {
	--rth-bar-radius: 12px;
	--rth-bar-bg: white;
	border-radius: var(--rth-bar-radius);
}

.tribe-events .tribe-events-c-events-bar:focus-within {
	--rth-bar-bg: var(--color-off-white);
}

.tribe-events .tribe-events-c-events-bar__search-container,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-events-bar .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__content {
	background: var(--rth-bar-bg);
	border-radius: var(--rth-bar-radius);
	transition: background-color 0.2s ease;
}

.tribe-events .tribe-events-c-search__input-control-input,
.tribe-events .tribe-events-c-search__button {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
}

.tribe-common.tribe-events button.tribe-events-c-events-bar__search-button,
.tribe-common.tribe-events button.tribe-events-c-search__button {
	background: var(--color-olive);
	border-radius: 8px;
	font-weight: 700;
	color: white;
}

.tribe-common.tribe-events button.tribe-events-c-events-bar__search-button:hover,
.tribe-common.tribe-events button.tribe-events-c-search__button:hover {
	background: var(--color-olive-deep);
}

.tribe-events .tribe-events-c-search__input-group {
	position: relative;
	margin-right: var(--space-sm);
}

.tribe-events .tribe-events-c-search__input {
	border-radius: var(--rth-bar-radius) 0 0 var(--rth-bar-radius);
}

.tribe-events .rth-events__search-clear {
	position: absolute;
	top: 50%;
	right: var(--space-sm);
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--color-olive-grey);
	cursor: pointer;
}

.tribe-events .rth-events__search-clear svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.tribe-events .rth-events__search-clear:hover,
.tribe-events .rth-events__search-clear:focus {
	background: transparent;
	color: var(--color-olive);
}

.tribe-events .tribe-events-c-search__input-group:has(.tribe-events-c-search__input:placeholder-shown) .rth-events__search-clear {
	display: none;
}

.tribe-events :focus:not(:focus-visible) {
	outline: none;
}

.tribe-events .tribe-events-c-search__input:focus,
.tribe-events .tribe-events-c-search__input:focus-visible {
	outline: none;
}

.tribe-common.tribe-events button.tribe-events-c-search__button:focus-visible,
.tribe-events .tribe-events-c-view-selector__list-item-link:focus-visible,
.tribe-events .tribe-events-c-view-selector__button:focus-visible {
	outline: 2px solid var(--color-olive);
	outline-offset: 2px;
}

.tribe-events .tribe-events-c-view-selector__list-item-text,
.tribe-events .tribe-events-c-view-selector__button-text {
	font-family: var(--font-display); /* Lexend */
	font-weight: 500;
	color: black;
}

/* Month top bar */
.tribe-events .tribe-events-header__top-bar {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-block: var(--space-lg) var(--space-md);
}

.tribe-events .tribe-events-c-top-bar__datepicker-button {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	color: black;
}

.tribe-common.tribe-events a.tribe-events-c-top-bar__today-button {
	flex: none;
	width: auto;
	padding: 0.375rem 1rem;
	border-color: var(--color-field-border);
	border-radius: var(--radius-pill);
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 500;
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	color: var(--color-olive-grey);
}

.tribe-common.tribe-events a.tribe-events-c-top-bar__today-button:hover,
.tribe-common.tribe-events a.tribe-events-c-top-bar__today-button:focus {
	border-color: var(--color-olive);
	color: var(--color-olive);
}

/* Month grid */
.tribe-events .tribe-events-calendar-month__header-column {
	width: 100%;
	padding: var(--space-sm) var(--space-sm) var(--space-xs);
	border-top: 1px solid var(--color-hairline);
	border-right: 1px solid var(--color-hairline);
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(0.75rem * var(--fs-scale)); /* 12px */
	letter-spacing: 0.04em;
	text-align: left;
	color: var(--color-olive-grey);
}

.tribe-events .tribe-events-calendar-month__header tr {
	border-left: 1px solid var(--color-hairline);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__header-column,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__header tr {
	border: 0;
}

.tribe-events .tribe-events-calendar-month__day {
	border-color: var(--color-hairline);
}

.tribe-events .tribe-events-calendar-month__day-date,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day-date {
	padding: var(--space-sm);
}

.tribe-events:not(.tribe-common--breakpoint-xsmall) .tribe-events-calendar-month__day-date {
	padding-top: var(--space-xs);
}

.tribe-events:not(.tribe-common--breakpoint-xxsmall) .tribe-events-calendar-month__day-date {
	padding-top: 0.25rem; /* 4px */
}

/* The number sits in its own <time>, which the plugin colours separately. */
.tribe-events .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day-date-daynum {
	margin-bottom: var(--space-xs);
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1.125rem * var(--fs-scale)); /* 18px */
	line-height: 1.2;
	letter-spacing: 0;
	color: black;
}

.tribe-events .tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__day-date-daynum {
	color: var(--color-placeholder);
}

/* Today gets a filled marker rather than just the plugin's heavier weight. */
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding-inline: 0.25rem;
	background: var(--color-olive);
	border-radius: 50%;
	color: white;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-cell--selected,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-cell--selected:focus,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-cell--selected:hover {
	background-color: var(--color-pale-green);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date {
	color: black;
}

/* Day dots */
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-date,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-date-daynum {
	margin-bottom: 0;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day-date {
	padding-bottom: 0;
}

/* Today's marker  */
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
	min-width: 1.5rem;
	height: 1.5rem;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .rth-events__day-dots {
	display: flex;
	flex: none;
	justify-content: center;
	gap: 2px;
	margin-top: 3px;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .rth-events__day-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rth-cat, var(--color-olive-grey));
}

/* Matching how the plugin dims a past day's dot. */
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-month__day--past .rth-events__day-dots {
	opacity: 0.6;
}

/* The category colour reads as a rule down the side of each entry. */
.tribe-events .tribe-events-calendar-month__calendar-event {
	padding-left: 0.625rem;
	border-left: 3px solid var(--rth-cat, var(--color-olive-grey));
}

.tribe-events .tribe-events-calendar-month__calendar-event-datetime {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(0.75rem * var(--fs-scale)); /* 12px */
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--color-olive-grey);
}

.tribe-events .tribe-events-calendar-month__calendar-event-title {
	margin: 0;
}

.tribe-events .tribe-events-calendar-month__calendar-event-title-link {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	line-height: 1.3;
	letter-spacing: 0;
	text-decoration: none;
}

.tribe-events .rth-events__standing {
	margin-bottom: var(--space-xl);
}

.tribe-events .rth-events__heading {
	margin: 0 0 var(--space-md);
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(2rem * var(--fs-scale)); /* 32px */
	line-height: 1.2;
	letter-spacing: 0;
	color: black;
}

.tribe-events .rth-events__subheading {
	margin: 0 0 var(--space-md);
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1.3125rem * var(--fs-scale)); /* 21px */
	line-height: 1.2;
	letter-spacing: 0;
	color: black;
}

.rth-events__standing-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
	gap: var(--space-xl);
	align-items: start;
}

.tribe-events .rth-events__standing-item + .rth-events__standing-item {
	margin-top: 1.25rem;
}

.tribe-events .rth-events__standing-when {
	margin: 0 0 0.25rem;
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--color-olive-grey);
}

.tribe-events .rth-events__standing-title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1.5rem * var(--fs-scale)); /* 24px */
	line-height: 1.2;
	letter-spacing: 0;
}

/* The three category colours, set once on whatever carries the category so the
   standing entries, both event lists and the month chips can all read them. */
.rth-events__standing-item--health-check,
.tribe-events .tribe_events_cat-health-check {
	--rth-cat: var(--color-brick);
}

.rth-events__standing-item--transport,
.tribe-events .tribe_events_cat-transport {
	--rth-cat: var(--color-gold);
}

.rth-events__standing-item--fundraiser,
.tribe-events .tribe_events_cat-fundraiser {
	--rth-cat: var(--color-olive);
}

/* :visited is spelled out because a browser will otherwise repaint these in its
   own visited colour, and computed styles report the unvisited one. */
.tribe-events .rth-events__standing-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-day__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link:visited,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link:visited {
	color: var(--rth-cat, black);
}

.tribe-events .rth-events__standing-text p {
	margin: 0;
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	line-height: 1.75;
	letter-spacing: 0;
	color: black;
}

.tribe-events .rth-events__standing-text a,
.tribe-events .rth-events__standing-text a:link,
.tribe-events .rth-events__standing-text a:visited {
	color: var(--color-olive);
	text-decoration: underline;
}

.tribe-events .rth-events__standing-text a:hover,
.tribe-events .rth-events__standing-text a:focus {
	color: var(--color-olive);
}

.tribe-events .rth-events__btn {
	display: inline-block;
	margin-top: var(--space-lg);
	padding: 0.75rem 1.5rem;
	background: var(--color-gold);
	border-radius: 8px;
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	line-height: 1.4;
	letter-spacing: 0;
	text-decoration: none;
	color: var(--color-green-darker);
	transition: background-color 0.2s ease;
}

.tribe-events .rth-events__btn,
.tribe-events .rth-events__btn:link,
.tribe-events .rth-events__btn:visited,
.tribe-events .rth-events__btn:hover,
.tribe-events .rth-events__btn:focus,
.tribe-events .rth-events__btn:active {
	color: var(--color-green-darker);
}

.tribe-events .rth-events__btn:hover,
.tribe-events .rth-events__btn:focus {
	background: var(--color-gold-hover);
}

.tribe-events .rth-events__standing-img {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
	border-radius: 12px;
}

/* Event rows, upcoming and past alike */
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-day__event-title {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1.3125rem * var(--fs-scale)); /* 21px */
	line-height: 1.2;
}

.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link {
	text-decoration: none;
}

.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-list__event-venue,
.tribe-events .tribe-events-calendar-list__event-description,
.tribe-events .tribe-events-calendar-list__event-cost,
.tribe-events .tribe-events-calendar-day__event-datetime,
.tribe-events .tribe-events-calendar-day__event-venue,
.tribe-events .tribe-events-calendar-day__event-description,
.tribe-events .tribe-events-calendar-day__event-cost {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	line-height: 1.7;
	color: var(--color-olive-grey);
}

.tribe-events .tribe-events-calendar-list__event-description,
.tribe-events .tribe-events-calendar-day__event-description {
	color: black;
}

.tribe-events .rth-events__time-range {
	white-space: nowrap;
}

.tribe-events .tribe-events-calendar-list__event-date-tag-weekday,
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
	font-family: var(--font-mono); /* JetBrains Mono */
	color: black;
}

.tribe-events .tribe-events-calendar-list__month-separator-text {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	color: black;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-featured-image-wrapper,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-day__event-featured-image-wrapper {
	flex: 0 0 auto;
	width: auto;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-details,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-day__event-details {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.tribe-events .tribe-events-calendar-list__event-featured-image,
.tribe-events .tribe-events-calendar-day__event-featured-image {
	width: 400px;
	max-width: 100%;
	border-radius: 12px;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-day__event::before {
	content: none;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-day__event-content {
	flex: 1 1 0;
	min-width: 0;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-day__event > .tribe-events-calendar-list__event-date-tag {
	padding-inline: 0;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-content:not(:has(.tribe-events-calendar-list__event-featured-image-wrapper))::before,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-day__event-content:not(:has(.tribe-events-calendar-day__event-featured-image-wrapper))::before,
.tribe-common--breakpoint-medium.tribe-events .rth-events__past .tribe-events-calendar-list__event:not(:has(.tribe-events-calendar-list__event-featured-image-wrapper))::before {
	content: "";
	flex: 0 0 calc(400px + var(--space-md) * 2); /* image plus the row gutters */
}

/* Past events */
.tribe-events .rth-events__past {
	margin-top: var(--space-2xl);
}

/* Category key */
.tribe-events .rth-events__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-md);
	margin: var(--space-xl) 0 0;
	padding: 0;
	list-style: none;
}

.rth-events__legend-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	line-height: 1.4;
	color: black;
}

.rth-events__legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--color-olive-grey);
}

.rth-events__legend-dot--health-check {
	background: var(--color-brick);
}

.rth-events__legend-dot--transport {
	background: var(--color-gold);
}

.rth-events__legend-dot--fundraiser {
	background: var(--color-olive);
}

/* List pagination */
.tribe-events .tribe-events-calendar-list-nav:has(.tribe-events-c-nav__prev[disabled]):has(.tribe-events-c-nav__next[disabled]) {
	display: none;
}

.tribe-events .tribe-events-calendar-list-nav .tribe-events-c-nav__prev[disabled],
.tribe-events .tribe-events-calendar-list-nav .tribe-events-c-nav__next[disabled] {
	visibility: hidden;
}

.tribe-events .tribe-events-c-nav__list-item--today {
	display: none;
}

/* The plugin clips this second word below its medium breakpoint, where
   "Events" was too long. "Page" isn't, so these are its own unclipping values
   without the breakpoint. */
.tribe-events .tribe-events-c-nav__prev-label-plural,
.tribe-events .tribe-events-c-nav__next-label-plural {
	position: static;
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
}

/* Responsive Layout */
.tribe-events:not(.tribe-common--breakpoint-medium) .rth-events__standing-body {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-lg);
	justify-items: center;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .rth-events__standing-col {
	width: 100%;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .rth-events__standing-media {
	order: -1;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .rth-events__standing-img,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-list__event-featured-image,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-day__event-featured-image {
	margin-inline: auto;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .rth-events__btn {
	display: block;
	width: fit-content;
	margin-inline: auto;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-list__event-featured-image-wrapper,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-calendar-day__event-featured-image-wrapper {
	display: flex;
	justify-content: center;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-search__input {
	padding-left: var(--space-sm);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-events-bar__search-button,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-events-bar__search-button:hover,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-events-bar__search-button:focus,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-events-bar__search-button:active {
	flex: none;
	width: auto;
	height: auto;
	padding: 0.75rem;
	border-radius: 8px;
}

.tribe-events .tribe-events-c-events-bar__search-button {
	--tec-color-icon-events-bar: white;
	--tec-color-icon-events-bar-active: white;
}

.tribe-events .tribe-events-c-events-bar__search-button-icon-svg {
	width: 24px;
	height: 24px;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__button,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__button:focus,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__button:active {
	flex: none;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	background: var(--color-gold);
	border-radius: 8px;
	color: var(--color-green-darker);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__button:hover,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__button:focus {
	background: var(--color-gold-hover);
	color: var(--color-green-darker);
}

/* Views dropdown */
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__content {
	padding: var(--space-xs);
	background: white;
	border: 1px solid var(--color-field-border);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__list-item-link {
	padding: 0.5rem 1rem;
	border-radius: 8px;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__list-item-link:hover,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__list-item-link:focus {
	background: var(--color-mist-light);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link {
	background: var(--color-mist-light);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__list-item-text {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--color-green-darker);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector__button::before {
	display: none;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector--labels .tribe-events-c-view-selector__button-text {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	line-height: 1.4;
	color: var(--color-green-darker);
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-events-bar__views,
.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-view-selector {
	flex: none;
	width: auto;
}

.tribe-events:not(.tribe-common--breakpoint-medium) .tribe-events-c-events-bar__views {
	display: flex;
	align-items: center;
}

/* ---------------------------------------------------------------------------
   Single event
   --------------------------------------------------------------------------- */

/* These pages come from the plugin's own stylesheet, which never sees the
   .tribe-events hook the archive tokens hang off, so they are re-pointed here.
   .tribe-common is listed too: the plugin re-declares the accent on that class,
   which the icons read through currentColor. */
.single-tribe_events,
.single-tribe_events .tribe-common {
	--tec-color-accent-primary: var(--color-olive);
	--tec-color-accent-primary-hover: var(--color-olive-deep);
	--tec-color-accent-primary-active: var(--color-olive-deep);
	--tec-color-link-primary: black;
	--tec-color-link-accent: var(--color-olive);
	--tec-color-link-accent-hover: var(--color-olive);
	--tec-color-button-primary: var(--color-olive);
	--tec-color-button-primary-hover: var(--color-olive-deep);
	--tec-color-button-primary-active: var(--color-olive-deep);
	--tec-font-family-sans-serif: var(--font-mono);
}

.single-tribe_events .tribe-events-back a {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 500;
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	letter-spacing: 0;
	text-decoration: none;
	color: var(--color-olive-grey);
}

.single-tribe_events .tribe-events-back a:hover,
.single-tribe_events .tribe-events-back a:focus {
	color: var(--color-olive);
}

.single-tribe_events .tribe-events-single-event-title {
	margin: var(--space-sm) 0 var(--space-xs);
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(clamp(2.25rem, 4vw, 3.5rem) * var(--fs-scale)); /* 56px */
	line-height: 1.15;
	letter-spacing: 0;
	color: black;
}

/* The colour the archive gives this event's title, carried onto the page the
   visitor lands on. The title is a sibling of the post, hence :has(). */
.single-tribe_events .tribe-events-single:has(.tribe_events_cat-health-check) .tribe-events-single-event-title {
	color: var(--color-brick);
}

.single-tribe_events .tribe-events-single:has(.tribe_events_cat-transport) .tribe-events-single-event-title {
	color: var(--color-gold-deep);
}

.single-tribe_events .tribe-events-single:has(.tribe_events_cat-fundraiser) .tribe-events-single-event-title {
	color: var(--color-olive);
}

/* The plugin only spaces the cost off the time from 768px up. A column gap
   covers every width, and unlike a margin it leaves no indent on the narrow
   screens where the cost wraps onto its own line. */
.single-tribe_events .tribe-events-schedule {
	column-gap: var(--space-xs);
	margin: 0 0 var(--space-lg);
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--color-olive-grey);
}

.single-tribe_events .tribe-events-cost {
	margin-inline: 0; /* The plugin's own 768px-up spacing, now the gap's job. */
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 500;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	color: var(--color-olive);
}

.single-tribe_events .tribe-events-event-image {
	margin-bottom: var(--space-lg);
}

.single-tribe_events .tribe-events-event-image img,
.single-tribe_events .tribe-events-venue-map {
	border-radius: 18px;
}

/* The map is an iframe, so the radius only shows if the wrapper clips it. */
.single-tribe_events .tribe-events-venue-map {
	width: 100%;
	overflow: hidden;
}

.single-tribe_events .tribe-events-venue-map iframe {
	width: 100%;
}

.single-tribe_events .tribe-events-single-event-description {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(1.125rem * var(--fs-scale)); /* 18px */
	line-height: 1.75;
	letter-spacing: 0;
	color: black;
}

.single-tribe_events .tribe-events-single-event-description a,
.single-tribe_events .tribe-events-meta-list a,
.single-tribe_events .tribe-events-single-event-description a:link,
.single-tribe_events .tribe-events-meta-list a:link,
.single-tribe_events .tribe-events-single-event-description a:visited,
.single-tribe_events .tribe-events-meta-list a:visited {
	color: var(--color-olive);
	text-decoration: underline;
}

.single-tribe_events .tribe-events-single-event-description a:hover,
.single-tribe_events .tribe-events-meta-list a:hover,
.single-tribe_events .tribe-events-single-event-description a:focus,
.single-tribe_events .tribe-events-meta-list a:focus {
	color: var(--color-olive);
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
	border-radius: 8px;
}

.single-tribe_events .tribe-common button.tribe-events-c-subscribe-dropdown__button-text {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	color: inherit;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown button.tribe-events-c-subscribe-dropdown__button-text:focus:not(:focus-visible) {
	outline: none;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown {
	width: max-content;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown__content {
	width: max-content;
	min-width: 100%;
}

.single-tribe_events .tribe-events-single-section.tribe-events-event-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-lg);
	width: 100%;
	margin-top: var(--space-lg);
	padding-block: var(--space-lg);
	border-top: 1px solid var(--color-hairline);
}

.single-tribe_events .tribe-events-event-meta::before {
	content: none;
}

.single-tribe_events .tribe-events-meta-group {
	order: 0;
	width: auto;
	margin: 0;
	padding: 0;
	border-top: 0;
}

.single-tribe_events .tribe-events-single-section-title {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1.3125rem * var(--fs-scale)); /* 21px */
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: black;
}

.single-tribe_events .tribe-events-meta-label {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 500;
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	color: var(--color-olive-grey);
}

.single-tribe_events .tribe-events-meta-list,
.single-tribe_events .tribe-events-meta-value,
.single-tribe_events .tribe-events-meta-group .tribe-events-address {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	line-height: 1.6;
	color: black;
}

.single-tribe_events .tribe-events-abbr {
	border-bottom: 0;
	text-decoration: none;
}

/* The divider above prev/next belongs to the nav's wrapper, which the plugin
   styles by id — so this has to carry one to outrank it. */
.single-tribe_events #tribe-events-footer {
	border-color: var(--color-hairline);
}

.single-tribe_events .tribe-events-sub-nav a {
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 500;
	font-size: calc(0.9375rem * var(--fs-scale)); /* 15px */
	text-decoration: none;
	color: var(--color-olive-grey);
}

.single-tribe_events .tribe-events-sub-nav a:hover,
.single-tribe_events .tribe-events-sub-nav a:focus {
	color: var(--color-olive);
}
