/**
 * The Events Calendar's list and month views on the booking system.
 *
 * Layout only, plus TEC's own markup mapped onto the design system's tokens
 * (design-system.css):
 * the container, the events bar, the date navigation and its date picker
 * (drawn exactly like the class calendar: same grid, same day buttons),
 * month headings, rows, paging, and the month grid.
 */

/* TEC's variables, pointed at ours. */
.ql-sys.ql-tec-view .tribe-common {
	--tec-color-text-primary: var(--ql-color-dark);
	--tec-color-text-secondary: var(--ql-color-muted);
	--tec-color-text-event-date: var(--ql-color-muted);
	--tec-color-text-event-title: var(--ql-color-dark);
	--tec-color-link-primary: var(--ql-color-dark);
	--tec-color-link-accent: var(--ql-color-button);
	--tec-color-link-accent-hover: var(--ql-color-button-hover);
	--tec-color-accent-primary: var(--ql-color-button);
	--tec-color-accent-primary-hover: var(--ql-color-button-hover);
	--tec-color-accent-primary-active: var(--ql-color-button-press);
	--tec-color-accent-primary-multiday: var(--ql-color-tag-rust-bg);
	--tec-color-accent-primary-multiday-hover: var(--ql-color-button-tint-press);
	--tec-color-accent-primary-background: var(--ql-color-button-tint);
	--tec-color-accent-primary-background-datepicker: var(--ql-color-button);
	--tec-color-border-default: var(--ql-color-divider);
	--tec-color-border-secondary: var(--ql-color-divider);
	--tec-color-border-tertiary: var(--ql-color-divider);
	--tec-color-border-active-month-grid-hover: var(--ql-color-divider);
	--tec-color-background: var(--ql-color-surface);
	--tec-color-background-secondary: var(--ql-color-surface);
	--tec-color-background-secondary-hover: var(--ql-color-hover);
	--tec-color-background-transparent: transparent;
	--tec-color-day-marker-month: var(--ql-color-muted);
	--tec-color-day-marker-current-month: var(--ql-color-dark);
	--tec-color-day-marker-past-month: var(--ql-color-muted);
	--tec-color-icon-active: var(--ql-color-button);
	--tec-color-icon-focus: var(--ql-color-button);
	--tec-font-family-sans-serif: var(--ql-font-body);
	--tec-font-family-base: var(--ql-font-body);
	--tec-border-radius-default: var(--ql-radius);
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
}

/* Container: the system's, under the band. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-l-container,
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container,
.ql-sys.ql-tec-view .tribe-common--breakpoint-full.tribe-events .tribe-events-l-container {
	max-width: calc(var(--ql-container-width) + 2 * var(--ql-gutter));
	min-height: 0;
	margin-inline: auto;
	padding: var(--ql-space-6) var(--ql-gutter) var(--ql-space-8);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-header {
	display: block;
	margin: 0;
	padding: 0;
	background: none;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-header__content-title,
.ql-sys.ql-tec-view .tribe-events .tribe-events-c-breadcrumbs {
	display: none;
}

/* Events bar ---------------------------------------------------------------- */
.ql-sys.ql-tec-view .tribe-events .ql-bar {
	display: flex;
	width: 100%;
	min-width: 0;
	flex-direction: column;
	gap: var(--ql-space-4);
	height: auto;
	margin: 0 0 var(--ql-space-5);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ql-space-4);
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__chips {
	min-width: 0;
	max-width: 100%;
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__views {
	margin-left: auto;
}

@media (max-width: 767px) {
	.ql-sys.ql-tec-view .tribe-events .ql-bar__views {
		margin-left: 0;
	}
}

/* Date navigation: prev and next, Today, and the range with its picker.
   Calendar view only; the list view's top bar template renders nothing
   (templates/tribe/events/v2/list/top-bar.php). */
.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ql-space-2);
	margin: 0 0 var(--ql-space-5);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar__nav {
	display: block;
	flex: none;
	margin: 0;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar__nav-list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar__nav-list-item {
	margin: 0;
	padding: 0;
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ql-list-chip-height);
	height: var(--ql-list-chip-height);
	padding: 0;
	border: var(--ql-border-width) solid var(--ql-color-input-border);
	border-radius: var(--ql-radius-pill);
	background: var(--ql-color-surface);
	color: var(--ql-color-dark);
	transition: background-color var(--ql-transition), transform 80ms ease, box-shadow 80ms ease;
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__nav-link:hover {
	background: var(--ql-color-hover);
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__nav-link:active {
	box-shadow: var(--ql-shadow-press);
	transform: translateY(1px);
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__nav-link--disabled {
	color: var(--ql-color-disabled-text);
	pointer-events: none;
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__nav-link-icon-svg {
	width: 8px;
	height: 12px;
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__nav-link-icon-svg path {
	fill: currentColor;
}

/* Today: the secondary button. */
.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__today-button {
	display: inline-flex;
	align-items: center;
	height: var(--ql-list-chip-height);
	margin: 0 var(--ql-space-2) 0 0;
	padding: 0 var(--ql-space-5);
	border: 1.5px solid var(--ql-color-button);
	border-radius: var(--ql-radius-pill);
	background: var(--ql-color-surface);
	color: var(--ql-color-button);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-button);
	font-weight: var(--ql-font-weight-button);
	line-height: calc(var(--ql-list-chip-height) - 3px);
	text-align: center;
	text-decoration: none;
	transition: background-color var(--ql-transition), transform 80ms ease, box-shadow 80ms ease;
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__today-button:hover {
	background: var(--ql-color-button-tint);
	color: var(--ql-color-button-hover);
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__today-button:active {
	background: var(--ql-color-button-tint-press);
	box-shadow: var(--ql-shadow-press);
	transform: translateY(1px);
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__datepicker-button {
	display: inline-flex;
	align-items: center;
	gap: var(--ql-space-2);
	height: var(--ql-tap-min);
	padding: 0 var(--ql-space-2);
	border: 0;
	border-radius: var(--ql-radius-pill);
	background: none;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-body);
	font-weight: var(--ql-font-weight-button);
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__datepicker-button:hover {
	background: var(--ql-color-hover);
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-top-bar__datepicker-button-icon-svg path {
	fill: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar__datepicker-time,
.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar__datepicker-desktop {
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-body);
	font-weight: var(--ql-font-weight-button);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar__actions {
	display: none;
}

/* The date picker, drawn like the class calendar: a card holding a
   7-column grid of day buttons. */
.ql-sys.ql-tec-view .tribe-events .datepicker {
	width: auto;
	margin-top: var(--ql-space-2);
	padding: var(--ql-space-4);
	border: var(--ql-border-width) solid var(--ql-color-card-border);
	border-radius: var(--ql-radius-card);
	background: var(--ql-color-surface);
	box-shadow: var(--ql-shadow-popover);
	font-family: var(--ql-font-body);
}

.ql-sys.ql-tec-view .tribe-events .datepicker::before,
.ql-sys.ql-tec-view .tribe-events .datepicker::after {
	display: none;
}

.ql-sys.ql-tec-view .tribe-events .datepicker table {
	width: auto;
	margin: 0;
	border-collapse: separate;
	border-spacing: var(--ql-day-gap);
	border: 0;
}

.ql-sys.ql-tec-view .tribe-events .datepicker table tr th,
.ql-sys.ql-tec-view .tribe-events .datepicker table tr td {
	padding: 0;
	border: 0;
	border-radius: var(--ql-radius-thumb);
	background: none;
	box-shadow: none;
	text-shadow: none;
}

.ql-sys.ql-tec-view .tribe-events .datepicker .datepicker-switch {
	height: var(--ql-day-size);
	color: var(--ql-color-dark);
	font-size: var(--ql-font-size-body);
	font-weight: var(--ql-weight-medium);
	text-align: center;
}

.ql-sys.ql-tec-view .tribe-events .datepicker .prev,
.ql-sys.ql-tec-view .tribe-events .datepicker .next {
	width: var(--ql-day-size);
	height: var(--ql-day-size);
	color: var(--ql-color-dark);
	cursor: pointer;
}

.ql-sys.ql-tec-view .tribe-events .datepicker .datepicker-switch:hover,
.ql-sys.ql-tec-view .tribe-events .datepicker .prev:hover,
.ql-sys.ql-tec-view .tribe-events .datepicker .next:hover {
	background: var(--ql-color-hover);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .prev svg path,
.ql-sys.ql-tec-view .tribe-events .datepicker .next svg path {
	fill: currentColor;
}

.ql-sys.ql-tec-view .tribe-events .datepicker .dow {
	width: var(--ql-day-size);
	height: 24px;
	color: var(--ql-color-muted);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-medium);
	letter-spacing: 0;
	text-transform: none;
}

/* A day (TEC renders buttons): the .ql-day--open look. Past days and other
   months are plain and muted, today ("current") is ringed, and the chosen
   day ("active") is selected. Months and years work the same way. */
.ql-sys.ql-tec-view .tribe-events .datepicker .day,
.ql-sys.ql-tec-view .tribe-events .datepicker .month,
.ql-sys.ql-tec-view .tribe-events .datepicker .year {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ql-day-size);
	height: var(--ql-day-size);
	margin: 0;
	padding: 0;
	border: 1.5px solid transparent;
	border-radius: var(--ql-radius-thumb);
	background: var(--ql-color-hover);
	box-shadow: none;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: var(--ql-day-font);
	font-weight: var(--ql-weight-medium);
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--ql-transition), border-color var(--ql-transition), color var(--ql-transition), transform 80ms ease;
}

/* Phones: TEC opens the picker beside its button, which runs off screen.
   Drop it under the button instead; !important beats the inline position
   the datepicker script writes. */
@media (max-width: 767px) {
	.ql-sys.ql-tec-view .tribe-events .tribe-events-c-top-bar__datepicker-container {
		max-width: 100%;
	}

	.ql-sys.ql-tec-view .tribe-events .datepicker {
		top: var(--ql-space-2) !important;
		left: 0 !important;
		min-width: 0;
		max-width: calc(100vw - 2 * var(--ql-gutter));
		padding: var(--ql-space-2);
	}
}

/* TEC draws its own square today ring; the border above is the ring. */
.ql-sys.ql-tec-view .tribe-events .datepicker .day::before,
.ql-sys.ql-tec-view .tribe-events .datepicker .month::before,
.ql-sys.ql-tec-view .tribe-events .datepicker .year::before {
	display: none;
}

/* Months and years: TEC's four-column grid of pills. */
.ql-sys.ql-tec-view .tribe-events .datepicker .datepicker-grid {
	gap: var(--ql-day-gap);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .month,
.ql-sys.ql-tec-view .tribe-events .datepicker .year {
	width: 100%;
	border-radius: var(--ql-radius-pill);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .datepicker-months td,
.ql-sys.ql-tec-view .tribe-events .datepicker .datepicker-years td {
	width: calc(7 * var(--ql-day-size) + 6 * var(--ql-day-gap));
}

.ql-sys.ql-tec-view .tribe-events .datepicker .day.past,
.ql-sys.ql-tec-view .tribe-events .datepicker .day.old,
.ql-sys.ql-tec-view .tribe-events .datepicker .day.new,
.ql-sys.ql-tec-view .tribe-events .datepicker .month.past,
.ql-sys.ql-tec-view .tribe-events .datepicker .year.past,
.ql-sys.ql-tec-view .tribe-events .datepicker .year.old,
.ql-sys.ql-tec-view .tribe-events .datepicker .year.new {
	background: transparent;
	color: var(--ql-color-muted);
	font-weight: var(--ql-weight-regular);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .day.old,
.ql-sys.ql-tec-view .tribe-events .datepicker .day.new {
	opacity: 0.55;
}

.ql-sys.ql-tec-view .tribe-events .datepicker .day:hover,
.ql-sys.ql-tec-view .tribe-events .datepicker .day.focused,
.ql-sys.ql-tec-view .tribe-events .datepicker .month:hover,
.ql-sys.ql-tec-view .tribe-events .datepicker .year:hover {
	border-color: var(--ql-color-button);
	color: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .day:active,
.ql-sys.ql-tec-view .tribe-events .datepicker .month:active,
.ql-sys.ql-tec-view .tribe-events .datepicker .year:active {
	transform: translateY(1px);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .day.current,
.ql-sys.ql-tec-view .tribe-events .datepicker .day.today,
.ql-sys.ql-tec-view .tribe-events .datepicker .month.current,
.ql-sys.ql-tec-view .tribe-events .datepicker .year.current {
	border: 1.5px solid var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .day.active,
.ql-sys.ql-tec-view .tribe-events .datepicker .day.active:hover,
.ql-sys.ql-tec-view .tribe-events .datepicker .month.active,
.ql-sys.ql-tec-view .tribe-events .datepicker .month.active:hover,
.ql-sys.ql-tec-view .tribe-events .datepicker .year.active,
.ql-sys.ql-tec-view .tribe-events .datepicker .year.active:hover {
	border-color: var(--ql-color-button);
	background: var(--ql-color-button);
	color: var(--ql-color-surface);
	opacity: 1;
}

.ql-sys.ql-tec-view .tribe-events .datepicker .day.disabled,
.ql-sys.ql-tec-view .tribe-events .datepicker .month.disabled,
.ql-sys.ql-tec-view .tribe-events .datepicker .year.disabled {
	background: transparent;
	color: var(--ql-color-disabled-text);
	cursor: not-allowed;
}

/* List -------------------------------------------------------------------- */
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-list {
	margin: 0;
	padding: 0;
}

/* Month heading: a full-width 1px rule under it, then the first row. */
.ql-sys.ql-tec-view .tribe-events .ql-list__month {
	margin: var(--ql-space-7) 0 0;
	border: 0;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__month:first-child {
	margin-top: 0;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__month::after,
.ql-sys.ql-tec-view .tribe-events .ql-list__month::before {
	display: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__month-title,
.ql-sys.ql-tec-view .tribe-events .ql-list__month-title time {
	font-family: var(--ql-font-heading);
	font-weight: var(--ql-weight-regular);
	line-height: var(--ql-line-height-heading);
}

.ql-sys.ql-tec-view .tribe-events .ql-row.tribe-events-calendar-list__event-row {
	margin: 0;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__month + .ql-row {
	padding-top: var(--ql-space-5);
}

/* Earlier and Later dates: a rule above, one at each end. */
.ql-sys.ql-tec-view .tribe-events .ql-list__nav {
	margin: var(--ql-space-6) 0 0;
	padding: var(--ql-space-6) 0 0;
	border: 0;
	border-top: var(--ql-border-width) solid var(--ql-color-divider);
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item {
	flex: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--next {
	margin-left: auto;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav .ql-btn::before,
.ql-sys.ql-tec-view .tribe-events .ql-list__nav .ql-btn::after {
	display: none;
}

/* Messages ("no events"): a quiet notice. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-header__messages {
	margin: 0 0 var(--ql-space-5);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-messages__message {
	margin: 0;
	padding: var(--ql-space-4) var(--ql-space-5);
	border: var(--ql-border-width) solid var(--ql-color-card-border);
	border-radius: var(--ql-radius-card);
	background: var(--ql-color-surface);
	color: var(--ql-color-dark);
	font-size: var(--ql-font-size-body);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-messages__message-icon-svg {
	display: none;
}

/* Month grid ------------------------------------------------------------- */

/* White grid, 1px lines, no cream cells. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month {
	margin: 0;
	border-collapse: collapse;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__header-column {
	padding: 0 0 var(--ql-space-2);
	border: 0;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__header-column-title {
	color: var(--ql-color-muted);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-regular);
	letter-spacing: 0;
	text-transform: none;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__body {
	border: var(--ql-border-width) solid var(--ql-color-divider);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day,
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day {
	border-color: var(--ql-color-divider);
	background: var(--ql-color-surface);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day:hover::after {
	display: none;
}

/* Day numbers: 14px, top left; navy in the month being viewed, muted grey
   for the previous and next month's days; today in a small rust circle. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-date {
	margin: 0;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-regular);
	line-height: 1;
}

/* The Events Calendar fades past days; the color alone says which month. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day .tribe-events-calendar-month__day-date,
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day .tribe-events-calendar-month__day-date :is(a, time) {
	opacity: 1;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__day-date {
	color: var(--ql-color-muted);
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day-date {
	padding: 10px 10px 6px;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-date-link,
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-date-daynum {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

/* Today: a 28px rust circle, the number white and centered. The circle is
   the day number; a link inside it (a day with events) fills it. */
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	margin: -7px 0 0 -7px;
	padding: 0;
	border-radius: 50%;
	background: var(--ql-color-button);
	color: #ffffff;
	font-size: 14px;
	font-weight: var(--ql-weight-medium);
	line-height: 1;
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: none;
	color: #ffffff;
	font-weight: var(--ql-weight-medium);
	line-height: 1;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date {
	color: var(--ql-color-dark);
	opacity: 1;
}

/* Events: flat chips; time 12px muted, title 13px navy, grey on hover. No left borders. */
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__calendar-event {
	margin: 0 4px 2px;
	padding: 5px 6px;
	border: 0;
	border-radius: var(--ql-radius);
	background: transparent;
	box-shadow: none;
	transition: background-color var(--ql-transition);
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__calendar-event::before {
	display: none;
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__calendar-event:hover {
	background: var(--ql-color-hover);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-featured-image-wrapper {
	display: none;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-datetime {
	margin: 0 0 2px;
	color: var(--ql-color-muted);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-small);
	line-height: 1.3;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-title {
	margin: 0;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-medium);
	line-height: 1.3;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-title-link,
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-title-link:visited {
	border: 0;
	color: var(--ql-color-dark);
	text-decoration: none;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-title-link:hover {
	color: var(--ql-color-button);
}

/* Multi-day: one flat light-rust bar with the title. */
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__multiday-event-bar {
	border-radius: 0;
	background: var(--ql-color-tag-rust-bg);
	box-shadow: none;
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__multiday-event--start .tribe-events-calendar-month__multiday-event-bar {
	border-top-left-radius: var(--ql-radius);
	border-bottom-left-radius: var(--ql-radius);
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__multiday-event--end .tribe-events-calendar-month__multiday-event-bar {
	border-top-right-radius: var(--ql-radius);
	border-bottom-right-radius: var(--ql-radius);
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__multiday-event-bar:hover,
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__multiday-event--hover .tribe-events-calendar-month__multiday-event-bar {
	background: var(--ql-color-button-tint-press);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__multiday-event-bar-title {
	color: var(--ql-color-tag-rust-text);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-medium);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__multiday-event-bar-featured-icon {
	display: none;
}

/* "+2 more" */
.ql-sys.ql-tec-view .tribe-events .ql-month__more {
	margin: 2px 10px 8px;
}

.ql-sys.ql-tec-view .tribe-events .ql-month__more-link,
.ql-sys.ql-tec-view .tribe-events .ql-month__more-link:visited {
	color: var(--ql-color-button);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-medium);
	text-decoration: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-month__more-link:hover {
	text-decoration: underline;
}

/* Phones: the grid becomes day buttons with a dot, the day's events below. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-cell--mobile {
	color: var(--ql-color-dark);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-cell--selected,
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-cell--selected:hover,
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-cell--selected:focus {
	background: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date {
	color: var(--ql-color-surface);
	opacity: 1;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__mobile-events-icon--event {
	background: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__mobile-events-icon--event {
	background: var(--ql-color-surface);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month-mobile-events__mobile-day {
	border-color: var(--ql-color-divider);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title,
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title-link {
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-body);
	font-weight: var(--ql-weight-medium);
	text-decoration: none;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-datetime {
	color: var(--ql-color-muted);
	font-size: var(--ql-font-size-small);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month-mobile-events__day-marker {
	color: var(--ql-color-dark);
	font-family: var(--ql-font-heading);
	font-size: var(--ql-font-size-h4);
	font-weight: var(--ql-weight-regular);
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-nav__today,
.ql-sys.ql-tec-view .tribe-events .tribe-events-c-nav__prev,
.ql-sys.ql-tec-view .tribe-events .tribe-events-c-nav__next {
	color: var(--ql-color-button);
	font-family: var(--ql-font-body);
	font-weight: var(--ql-font-weight-button);
}

/* TEC forces Today to display:block from tablet up; the line-height above
   keeps its label centered. */
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar__today-button {
	width: auto;
}

/* Category colors draw a left rule on month events; the system has none. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-details,
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-details {
	padding-left: 0;
	border-left: 0;
}

/* Phones: no rule beside the selected day's heading. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month-mobile-events__day-marker::after {
	display: none;
}

/* Weekday letters in the date picker: no abbr underline. */
.ql-sys.ql-tec-view .tribe-events .datepicker abbr {
	border: 0;
	text-decoration: none;
	cursor: default;
}

/* List pages: values from the list mock (QL-mock-list.html) -------------- */

/*
 * Scoped to the list and calendar pages (body.ql-tec-view), so the
 * homepage, hub and booking pages keep the shared values. --ql-* overrides
 * here change these pages only; --ql-list-* are new.
 */
.ql-sys.ql-tec-view {
	--ql-color-selected: var(--ql-color-button-tint);
	--ql-color-selected-text: var(--ql-list-rust-deep);
	--ql-list-chip-border: #dccbb6;
	--ql-list-rust-deep: #7e3415; /* Selected chip text, club tag text. */
	--ql-list-tag-class-bg: #e8eef6;
	--ql-list-tag-club-bg: #fbf4e9;
	--ql-list-day-size: 26px;
	--ql-list-thumb-width: 160px;
	--ql-list-thumb-ratio: 16 / 9;
	--ql-list-thumb-radius: 10px;
	--ql-list-control-height: 48px; /* List | Calendar and the pager. */
	--ql-list-chip-height: 44px;
	--ql-list-row-button-height: 44px;
	--ql-list-date-width: 60px;
	--ql-list-bar-space: var(--ql-space-7); /* Filter row to the first month. */
	--ql-list-row-padding: 24px; /* Roomier than the mock's 14px. */
	--ql-list-row-gap: 6px; /* Title, meta line and tag. */
}

/* The mock's narrower column (about 1040px) for the band's text, the
   filter row, the list and the pager; the band's color stays full width. */
.ql-sys.ql-tec-view .ql-band .ql-band__body,
.ql-sys.ql-tec-view .tribe-events .tribe-events-l-container,
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container,
.ql-sys.ql-tec-view .tribe-common--breakpoint-full.tribe-events .tribe-events-l-container {
	max-width: calc(var(--ql-container-width) + 2 * var(--ql-gutter));
}

/* Filter chips: separate pills. */
.ql-sys.ql-tec-view .tribe-events .ql-bar__chips {
	flex-wrap: wrap;
	gap: 8px;
	height: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__chips .ql-toggle__item {
	min-height: var(--ql-list-chip-height);
	padding: 0 18px;
	border: 1.5px solid var(--ql-list-chip-border);
	background: var(--ql-color-surface);
	color: var(--ql-color-dark);
	font-size: var(--ql-font-size-button);
	font-weight: var(--ql-weight-regular);
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__chips .ql-toggle__item:hover {
	background: var(--ql-color-hover);
}

/* List | Calendar: one pill, as before. */
.ql-sys.ql-tec-view .tribe-events .ql-bar__views {
	height: var(--ql-list-control-height);
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__views .ql-toggle__item {
	padding: 0 16px;
	font-size: var(--ql-font-size-button);
	font-weight: var(--ql-weight-regular);
}

/* Selected chip and view: light rust tint, rust border, deep rust text. */
.ql-sys.ql-tec-view .tribe-events .ql-toggle .ql-toggle__item:is([aria-current="true"], [aria-current="page"], [aria-pressed="true"], .is-selected) {
	border-color: var(--ql-color-button);
	background: var(--ql-color-selected);
	box-shadow: inset 0 0 0 1.5px var(--ql-color-button);
	color: var(--ql-color-selected-text);
	font-weight: var(--ql-weight-medium);
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__chips .ql-toggle__item:is([aria-current="true"], [aria-current="page"], [aria-pressed="true"], .is-selected) {
	box-shadow: none;
}

/* Month headings: bigger than the mock's 22px (brief), navy. Past the
   first page, "Earlier dates" sits at the right end of the first one. */
.ql-sys.ql-tec-view .tribe-events .ql-list__month {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ql-space-4);
	padding: 0 0 var(--ql-list-row-padding); /* The same space as inside a row. */
	border-bottom: 0;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__earlier,
.ql-sys.ql-tec-view .tribe-events .ql-list__earlier:visited {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	color: var(--ql-color-link);
	font: var(--ql-type-link);
	text-decoration: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__earlier:hover {
	color: var(--ql-color-button-hover);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__month-title,
.ql-sys.ql-tec-view .tribe-events .ql-list__month-title time {
	color: var(--ql-color-dark);
	font-size: var(--ql-size-h2);
}

/* Rows: a line above each, roomy padding, 20px gaps. */
.ql-sys.ql-tec-view .tribe-events .ql-row,
.ql-sys.ql-tec-view .tribe-events .ql-list__month + .ql-row {
	padding: var(--ql-list-row-padding) 0;
	border-top: 1px solid var(--ql-color-card-border);
}

@media (min-width: 700px) {
	.ql-sys.ql-tec-view .tribe-events .ql-row__inner {
		grid-template-columns: var(--ql-list-date-width) var(--ql-list-thumb-width) minmax(0, 1fr) auto;
		gap: 20px;
	}
}

.ql-sys.ql-tec-view .tribe-events .ql-row__date {
	gap: 12px;
}

.ql-sys.ql-tec-view .tribe-events .ql-row__weekday {
	color: var(--ql-color-muted);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-regular);
	letter-spacing: 0;
	text-transform: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-row__day {
	font-family: var(--ql-font-heading); /* The one exception to Tipique for big headings only. */
	font-size: var(--ql-list-day-size);
	font-weight: var(--ql-weight-regular);
	line-height: 1;
}

.ql-sys.ql-tec-view .tribe-events .ql-row__media {
	aspect-ratio: var(--ql-list-thumb-ratio);
	border-radius: var(--ql-list-thumb-radius);
}

.ql-sys.ql-tec-view .tribe-events .ql-row__body {
	gap: var(--ql-list-row-gap);
}

.ql-sys.ql-tec-view .tribe-events .ql-row__title {
	font-size: var(--ql-font-size-body);
	font-weight: var(--ql-weight-medium);
	line-height: 1.3;
}

.ql-sys.ql-tec-view .tribe-events .ql-row__meta {
	color: var(--ql-color-muted);
	font-size: var(--ql-font-size-small);
}

.ql-sys.ql-tec-view .tribe-events .ql-row__meta .ql-avail--low {
	color: var(--ql-color-button); /* "Only N left": rust, 4.9:1 on white. */
	font-weight: var(--ql-weight-medium);
}

/* Buttons: the row's button and Earlier / Later dates, white with a rust
   outline. TEC colors its nav links grey and rust, so these set every state. */
.ql-sys.ql-tec-view .tribe-events :is(.ql-row__cta, .ql-list__nav) .ql-btn,
.ql-sys.ql-tec-view .tribe-events :is(.ql-row__cta, .ql-list__nav) .ql-btn:is(:visited, :focus) {
	gap: 8px;
	min-height: var(--ql-list-control-height);
	padding: 0 24px;
	background: var(--ql-color-surface);
	box-shadow: inset 0 0 0 1.5px var(--ql-color-button);
	color: var(--ql-color-button);
	font-size: var(--ql-font-size-button);
	font-weight: var(--ql-weight-medium);
	white-space: nowrap;
}

.ql-sys.ql-tec-view .tribe-events .ql-row__cta .ql-btn,
.ql-sys.ql-tec-view .tribe-events .ql-row__cta .ql-btn:is(:visited, :focus) {
	min-height: var(--ql-list-row-button-height);
	padding: 0 20px;
	font-size: var(--ql-font-size-button);
}

.ql-sys.ql-tec-view .tribe-events :is(.ql-row__cta, .ql-list__nav) .ql-btn:is(:hover, :active) {
	background: var(--ql-color-button-tint);
	color: var(--ql-list-rust-deep);
}

.ql-sys.ql-tec-view .tribe-events .ql-row__cta .ql-btn--disabled,
.ql-sys.ql-tec-view .tribe-events .ql-row__cta .ql-btn--disabled:is(:hover, :active) {
	background: var(--ql-color-disabled-bg);
	box-shadow: none;
	color: var(--ql-color-disabled-text);
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav .ql-btn svg {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
}

/* Subscribe to calendar: a small text link at the left end of the pager
   row (list/nav.php). Its list of links floats over the page, opening
   upward when there is no room below (tec-views.js). */
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe {
	align-self: center;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__container,
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown {
	position: relative;
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__content {
	width: max-content;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list {
	list-style: none;
}

.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list-item-link {
	display: block;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	text-decoration: none;
}

.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list-item-link:hover {
	background: var(--ql-color-hover);
	color: var(--ql-color-button);
}

/* No box on click; an outline for keyboard focus only. */
.ql-sys.ql-tec-view .tribe-events .tribe-events-c-subscribe-dropdown__button:is(:focus, :focus-within, :hover),
.ql-sys.ql-tec-view .tribe-events .tribe-events-c-subscribe-dropdown__button.tribe-events-c-subscribe-dropdown__button--active,
.ql-sys.ql-tec-view .tribe-common .tribe-events-c-subscribe-dropdown__button-text:focus {
	border: 0;
	outline: none;
	background: none;
	box-shadow: none;
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-subscribe-dropdown__button-text:focus-visible {
	outline: var(--ql-focus-width) solid var(--ql-focus-color);
	outline-offset: var(--ql-focus-offset);
	border-radius: 2px;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-subscribe-dropdown__button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-common .tribe-events-c-subscribe-dropdown__button-text,
.ql-sys.ql-tec-view .tribe-common .tribe-events-c-subscribe-dropdown__button-text:is(:hover, :focus) {
	padding: 0;
	background: none;
	color: var(--ql-color-button);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-small);
	font-weight: var(--ql-weight-medium);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-c-subscribe-dropdown__button-icon {
	width: 10px;
	color: var(--ql-color-button);
}

/* Filter row to the first month heading; the band a third shorter. */
.ql-sys.ql-tec-view .tribe-events .ql-bar {
	margin-bottom: var(--ql-list-bar-space);
}

.ql-sys.ql-tec-view .ql-band .ql-band__body {
	padding-top: var(--ql-band-space-compact);
	padding-bottom: var(--ql-band-space-compact);
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe + .ql-list__nav-item--prev {
	margin-left: var(--ql-space-4);
}

/* Pager row: Subscribe to calendar on the left; Earlier and Later dates
   together on the right, 8px apart. */
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-list {
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--prev,
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe + .ql-list__nav-item--prev,
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--next {
	margin-left: auto;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--prev + .ql-list__nav-item--next {
	margin-left: 0;
}

/* The arrow side a little tighter, so arrow and text sit balanced. */
.ql-sys.ql-tec-view .tribe-events .ql-list__nav .tribe-events-c-nav__prev.ql-btn {
	padding-left: 18px;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav .tribe-events-c-nav__next.ql-btn {
	padding-right: 18px;
}

/* Subscribe to calendar: an outlined button like the pager's, with its
   chevron. The whole pill is the click target (TEC's own button inside
   it fills it). */
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button,
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button:is(:focus, :focus-within, :hover),
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button.tribe-events-c-subscribe-dropdown__button--active {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--ql-list-control-height);
	padding: 0 20px 0 24px;
	border: 0;
	border-radius: var(--ql-radius-pill);
	background: var(--ql-color-surface);
	box-shadow: inset 0 0 0 1.5px var(--ql-color-button);
	color: var(--ql-color-button);
	cursor: pointer;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button:hover,
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button.tribe-events-c-subscribe-dropdown__button--active {
	background: var(--ql-color-button-tint);
}

.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button-text,
.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button-text:is(:hover, :focus, :active) {
	position: static;
	padding: 0;
	border: 0;
	outline: none;
	background: none;
	box-shadow: none;
	color: var(--ql-color-button);
	font-family: var(--ql-font-body);
	font-size: var(--ql-font-size-button);
	font-weight: var(--ql-weight-medium);
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

/* The inner button covers the pill, so a click anywhere on it opens the list. */
.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button-text::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button-text:focus-visible {
	outline: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button:has(:focus-visible) {
	outline: var(--ql-focus-width) solid var(--ql-focus-color);
	outline-offset: var(--ql-focus-offset);
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button-icon {
	width: 12px;
	height: 8px;
	margin: 0;
	color: var(--ql-color-button);
	pointer-events: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button-icon path {
	fill: currentColor;
}

/* Its list: one white box below the button, over the page. */
.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__content {
	position: absolute;
	top: calc(100% + 8px);
	bottom: auto;
	left: 0;
	z-index: 30;
	min-width: 240px;
	margin: 0;
	padding: 8px 0;
	border: 0;
	border-radius: 12px;
	background: var(--ql-color-surface);
	box-shadow: 0 1px 3px rgb(31 36 56 / 6%), 0 8px 24px rgb(31 36 56 / 8%);
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list-item {
	margin: 0;
	padding: 0;
	border: 0;
}

.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list-item-link {
	padding: 10px 20px;
	font-size: var(--ql-font-size-body);
	line-height: var(--ql-line-height-item);
}

.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list-item-link:focus {
	outline: none;
}

.ql-sys.ql-tec-view .tribe-common .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__list-item-link:focus-visible {
	outline: var(--ql-focus-width) solid var(--ql-focus-color);
	outline-offset: -2px;
}

/* Category band: the hero (eyebrow, title, description, image). The image
   keeps its shape, up to 280px high. */
.ql-sys.ql-tec-view .ql-band .ql-hero__media img {
	max-height: 280px;
}

.ql-sys.ql-tec-view .ql-band .ql-hero__description {
	max-width: 760px;
	margin-top: 0;
}

/* Calendar view on the type scale: event titles 14px/500, times 12px
   muted on one line; a multi-day event's title the same. */
.ql-sys.ql-tec-view .tribe-events :is(.tribe-events-calendar-month__calendar-event-title, .tribe-events-calendar-month__calendar-event-title-link, .tribe-events-calendar-month__multiday-event-hidden-title, .tribe-events-calendar-month__multiday-event-bar-title) {
	font: var(--ql-type-link);
}

.ql-sys.ql-tec-view .tribe-events :is(.tribe-events-calendar-month__calendar-event-datetime, .tribe-events-calendar-month__calendar-event-datetime *) {
	color: var(--ql-color-muted);
	font: var(--ql-weight-regular) 12px / 1.3 var(--ql-font-body);
	white-space: nowrap;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__calendar-event-datetime {
	overflow: hidden;
	text-overflow: ellipsis;
}

.ql-sys.ql-tec-view .tribe-events .tribe-events-calendar-month__header-column-title * {
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
}

/* The line under a row's meta ("Every Tue & Thu · See all dates", "Part of
   {Club}"): plain muted 14px text, the link underlined. No pills. */
.ql-sys.ql-tec-view .tribe-events .ql-row__tag {
	margin: 0;
	color: var(--ql-color-muted);
	font: var(--ql-type-meta);
}

.ql-sys.ql-tec-view .tribe-events .ql-row__tag a,
.ql-sys.ql-tec-view .tribe-events .ql-row__tag a:visited {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.ql-sys.ql-tec-view .tribe-events .ql-row__tag a:hover {
	color: var(--ql-color-button);
}

/* Calendar (month) view fixes --------------------------------------------- */

/* Grid (the full calendar, from TEC's medium breakpoint): one 1px line
   everywhere. Each day draws its right and bottom lines, each week its
   left line, the body the top line. */
.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__body {
	border: 0;
	border-top: 1px solid var(--ql-color-divider);
}

.ql-sys.ql-tec-view .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__week {
	border-left: 1px solid var(--ql-color-divider);
}

/* "Subscribe to calendar" under the grid: the list view's row. */
.ql-sys.ql-tec-view .tribe-events .ql-list__nav--subscribe-only {
	margin-top: var(--ql-space-5);
}

/* An empty month: our notice between the month controls and the grid. */
.ql-sys.ql-tec-view .tribe-events .ql-month__empty {
	margin: 0 0 var(--ql-space-4);
	color: var(--ql-color-text);
	font: var(--ql-type-body);
}

/* Event hover card: white, 1px border, card radius, the soft shadow, 16px
   padding. Tooltipster moves it to the end of <body>. */
.ql-sys.ql-tec-view .tribe-events-tooltip-theme,
.ql-sys.ql-tec-view .tribe-events-tooltip-theme .tooltipster-box {
	border: 0;
	background: none;
	box-shadow: none;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .tooltipster-box {
	padding: 16px;
	border: 1px solid #e6daca;
	border-radius: var(--ql-radius-card);
	background: #ffffff;
	box-shadow: var(--ql-shadow-summary);
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .tooltipster-content {
	padding: 0;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .tooltipster-arrow {
	display: none;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--ql-font-body);
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop > * {
	margin: 0;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__media {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-bottom: 4px;
	overflow: hidden;
	border-radius: var(--ql-radius);
	background: var(--ql-color-hover);
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__img--contain {
	object-fit: contain;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__when {
	color: #6b6e7b;
	font: var(--ql-type-meta);
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__title,
.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__title a,
.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__title a:is(:visited, :hover, :focus) {
	border: 0;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__title a:hover {
	color: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__text {
	display: -webkit-box;
	overflow: hidden;
	color: #131313;
	font: var(--ql-type-meta);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme :is(.ql-pop__price, .ql-pop__status) {
	color: var(--ql-color-dark);
	font: var(--ql-type-meta);
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__status {
	color: #6b6e7b;
}

.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__btn,
.ql-sys.ql-tec-view .tribe-events-tooltip-theme .ql-pop__btn:is(:visited, :hover, :focus) {
	min-height: 0;
	padding: 6px 14px;
	color: var(--ql-color-button);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

/* Month picker: matching outlined square arrows; months and years as plain
   text buttons, a faint rust tint on hover, the selected one filled. */
.ql-sys.ql-tec-view .tribe-events .datepicker :is(.prev, .next),
.ql-sys.ql-tec-view .tribe-events .datepicker :is(.prev, .next):is(:hover, :focus, :active) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--ql-color-divider);
	border-radius: var(--ql-radius);
	background: #ffffff;
	box-shadow: none;
	color: var(--ql-color-dark);
}

.ql-sys.ql-tec-view .tribe-events .datepicker :is(.prev, .next):hover {
	border-color: var(--ql-color-button);
	color: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events .datepicker .datepicker-switch,
.ql-sys.ql-tec-view .tribe-events .datepicker .datepicker-switch:is(:hover, :focus) {
	background: none;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: 16px;
	font-weight: 500;
}

.ql-sys.ql-tec-view .tribe-events .datepicker :is(.month, .year),
.ql-sys.ql-tec-view .tribe-events .datepicker :is(.month, .year).current {
	border: 0;
	border-radius: var(--ql-radius);
	background: none;
	color: var(--ql-color-dark);
	font-weight: var(--ql-weight-regular);
}

.ql-sys.ql-tec-view .tribe-events .datepicker :is(.month, .year):is(:hover, .focused) {
	background: rgb(176 87 58 / 8%);
	color: var(--ql-color-button);
}

.ql-sys.ql-tec-view .tribe-events .datepicker :is(.month, .year).active,
.ql-sys.ql-tec-view .tribe-events .datepicker :is(.month, .year).active:is(:hover, .focused) {
	background: var(--ql-color-button);
	color: #ffffff;
	font-weight: var(--ql-weight-medium);
}

/* Focus, on every Events Calendar control here: nothing on a mouse click;
   for the keyboard, one 2px rust outline. */
.ql-sys.ql-tec-view .tribe-events :is(a, button, input, select, [tabindex]):focus,
.ql-sys.ql-tec-view .tribe-events .datepicker :is(.day, .month, .year, .prev, .next, .datepicker-switch):focus {
	outline: none;
}

.ql-sys.ql-tec-view .tribe-events :is(a, button, input, select, [tabindex]):focus-visible,
.ql-sys.ql-tec-view .tribe-events .datepicker :is(.day, .month, .year, .prev, .next, .datepicker-switch):focus-visible {
	outline: 2px solid var(--ql-color-button);
	outline-offset: 2px;
}

.ql-sys.ql-tec-view .tribe-events :is(.tribe-events-calendar-month__calendar-event-title-link, .tribe-events-c-top-bar__nav-link, .tribe-events-c-top-bar__datepicker-button):is(:focus, :focus-visible) {
	box-shadow: none;
}

/* The subscribe button's ring is drawn on its pill (doubled class: an
   earlier 3px rule is otherwise as specific). */
.ql-sys.ql-tec-view.ql-tec-view .tribe-events.tribe-events .ql-list__nav-item--subscribe .tribe-events-c-subscribe-dropdown__button:has(:focus-visible) {
	outline: 2px solid var(--ql-color-button);
	outline-offset: 2px;
}

/* The focus tokens for anything here that reads them. */
.ql-sys.ql-tec-view .tribe-events {
	--ql-focus-color: var(--ql-color-button);
	--ql-focus-width: 2px;
	--ql-focus-offset: 2px;
}

/* Clubs dropdown --------------------------------------------------------------
   The chip is a button with a chevron; its menu is a Material-style popup
   of links. The popup is position: fixed and placed by tec-views.js under
   the chip, so the chip row never clips it and it stays inside the screen. */
.ql-sys.ql-tec-view .tribe-events .ql-bar__chips .ql-menu {
	position: relative;
}

.ql-sys.ql-tec-view .tribe-events .ql-bar__chips .ql-menu__button {
	gap: 6px;
	height: auto;
	padding-right: 14px;
	font-family: var(--ql-font-body);
	letter-spacing: normal;
	text-transform: none;
	appearance: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__chevron {
	flex: none;
	width: 16px;
	height: 16px;
	transition: transform 120ms ease;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__button[aria-expanded="true"] .ql-menu__chevron {
	transform: rotate(180deg);
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__popup {
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	box-sizing: border-box;
	min-width: 220px;
	max-width: calc(100vw - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.16);
	opacity: 0;
	transform: scale(0.96);
	transform-origin: top left;
	transition: opacity 120ms ease, transform 120ms ease;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__popup[hidden] {
	display: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__popup.is-open {
	opacity: 1;
	transform: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__list {
	margin: 0;
	padding: 8px 0;
	list-style: none;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__list > li {
	margin: 0;
	padding: 0;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__item,
.ql-sys.ql-tec-view .tribe-events .ql-menu__item:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 8px 24px 8px 16px;
	border: 0;
	background: transparent;
	color: var(--ql-color-dark);
	font-family: var(--ql-font-body);
	font-size: 16px;
	font-weight: var(--ql-weight-regular);
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__item:is(:hover, :focus, :focus-visible) {
	background: var(--ql-color-hover);
	color: var(--ql-color-dark);
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__item:focus-visible {
	outline-offset: -3px;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__item[aria-current="true"] {
	font-weight: var(--ql-weight-medium);
}

/* The check's space is kept only while something in the menu is chosen;
   with nothing chosen the labels sit at the normal left padding. */
.ql-sys.ql-tec-view .tribe-events .ql-menu__check {
	display: none;
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--ql-color-button);
	visibility: hidden;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__list--checked .ql-menu__check {
	display: block;
}

/* "Clear filter": an action, not a choice. Under a thin divider, smaller,
   in the link color, with an x. The row stays 48px tall for touch. */
.ql-sys.ql-tec-view .tribe-events .ql-menu__list > li.ql-menu__clear {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--ql-color-divider);
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__item.ql-menu__item--action,
.ql-sys.ql-tec-view .tribe-events .ql-menu__item.ql-menu__item--action:visited,
.ql-sys.ql-tec-view .tribe-events .ql-menu__item.ql-menu__item--action:is(:hover, :focus, :focus-visible) {
	gap: 8px;
	color: var(--ql-color-link);
	font-size: 14px;
	font-weight: var(--ql-weight-regular);
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__x {
	flex: none;
	width: 14px;
	height: 14px;
}

.ql-sys.ql-tec-view .tribe-events .ql-menu__item[aria-current="true"] .ql-menu__check {
	visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
	.ql-sys.ql-tec-view .tribe-events .ql-menu__popup,
	.ql-sys.ql-tec-view .tribe-events .ql-menu__chevron {
		transition: none;
	}

	.ql-sys.ql-tec-view .tribe-events .ql-menu__popup {
		transform: none;
	}
}
