/**
 * Classes calendar list (/classes/) — undo global button/link smear and match site CTAs.
 * Scoped to TEC listing views.
 */

body.fos-events-listing {
	--fos-navy: #0a1628;
	--fos-primary: #8c031c;
	--fos-accent: #e85a24;
	--fos-text: #334155;
	--fos-muted: #64748b;
	--fos-font-ui: "Varela", "Source Sans 3", "Source Sans Pro", sans-serif;
	--fos-font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", sans-serif;
}

body.fos-events-listing .tribe-events a.tribe-events-calendar-list__event-title-link,
body.fos-events-listing .tribe-events a.tribe-common-anchor-thin {
	color: var(--fos-navy);
	text-decoration: none;
	border-bottom: 0;
	box-shadow: none;
	font-family: var(--fos-font-body);
}

body.fos-events-listing .tribe-events a.tribe-events-calendar-list__event-title-link:hover,
body.fos-events-listing .tribe-events a.tribe-events-calendar-list__event-title-link:focus,
body.fos-events-listing .tribe-events a.tribe-common-anchor-thin:hover,
body.fos-events-listing .tribe-events a.tribe-common-anchor-thin:focus {
	color: var(--fos-primary);
	text-decoration: underline;
}

body.fos-events-listing .tribe-events .tribe-events-calendar-list__event-datetime,
body.fos-events-listing .tribe-events .tribe-events-calendar-list__event-venue {
	color: var(--fos-muted);
}

/* Calendar chrome: icon / text controls — not solid wine bricks */
body.fos-events-listing .tribe-events button.tribe-common-c-btn-icon,
body.fos-events-listing .tribe-events button.tribe-events-c-top-bar__datepicker-button,
body.fos-events-listing .tribe-events button.tribe-events-c-view-selector__button,
body.fos-events-listing .tribe-events button.tribe-events-c-events-bar__search-button,
body.fos-events-listing .tribe-events button.tribe-events-c-subscribe-dropdown__button,
body.fos-events-listing .tribe-events button.tribe-events-c-top-bar__today-button,
body.fos-events-listing .tribe-events .tribe-events-c-nav button,
body.fos-events-listing .tribe-events a.tribe-events-c-nav__prev,
body.fos-events-listing .tribe-events a.tribe-events-c-nav__next,
body.fos-events-listing .tribe-events a.tribe-events-c-nav__today,
body.fos-events-listing .tribe-events button.tribe-common-c-btn-border,
body.fos-events-listing .tribe-events button.tribe-common-c-btn-border-small {
	background: transparent !important;
	background-image: none !important;
	color: var(--fos-navy) !important;
	border: 1px solid rgba(10, 22, 40, 0.16) !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	font-family: var(--fos-font-ui);
	font-weight: 600;
}

body.fos-events-listing .tribe-events button.tribe-common-c-btn-icon:hover,
body.fos-events-listing .tribe-events button.tribe-events-c-top-bar__datepicker-button:hover,
body.fos-events-listing .tribe-events button.tribe-events-c-view-selector__button:hover,
body.fos-events-listing .tribe-events button.tribe-events-c-subscribe-dropdown__button:hover,
body.fos-events-listing .tribe-events a.tribe-events-c-nav__prev:hover,
body.fos-events-listing .tribe-events a.tribe-events-c-nav__next:hover,
body.fos-events-listing .tribe-events a.tribe-events-c-nav__today:hover,
body.fos-events-listing .tribe-events button.tribe-common-c-btn-border:hover,
body.fos-events-listing .tribe-events button.tribe-common-c-btn-border-small:hover {
	background: #faf8f5 !important;
	color: var(--fos-primary) !important;
	border-color: var(--fos-primary) !important;
}

body.fos-events-listing .tribe-events button.tribe-common-c-btn-icon svg,
body.fos-events-listing .tribe-events button.tribe-events-c-top-bar__datepicker-button svg,
body.fos-events-listing .tribe-events button.tribe-events-c-view-selector__button svg {
	fill: currentColor;
}

/* Find Events — primary action */
body.fos-events-listing .tribe-events button.tribe-events-c-search__button,
body.fos-events-listing .tribe-events button.tribe-common-c-btn.tribe-events-c-search__button {
	background: var(--fos-primary) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 3px !important;
	min-height: 42px;
	padding: 0.55rem 1.15rem !important;
	font-family: var(--fos-font-ui);
	font-weight: 600;
	letter-spacing: 0.02em;
}

body.fos-events-listing .tribe-events button.tribe-events-c-search__button:hover,
body.fos-events-listing .tribe-events button.tribe-events-c-search__button:focus {
	background: #6f0216 !important;
	color: #fff !important;
}

/* Enroll on each class */
body.fos-events-listing .tribe-events a.tribe-events-c-small-cta__link,
body.fos-events-listing .tribe-events a.tribe-common-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.45rem 1rem;
	margin: 0 0.5rem 0 0;
	border: 0;
	border-radius: 3px;
	background: var(--fos-primary);
	color: #fff !important;
	font-family: var(--fos-font-ui);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	box-shadow: none;
}

body.fos-events-listing .tribe-events a.tribe-events-c-small-cta__link:hover,
body.fos-events-listing .tribe-events a.tribe-events-c-small-cta__link:focus,
body.fos-events-listing .tribe-events a.tribe-common-cta:hover,
body.fos-events-listing .tribe-events a.tribe-common-cta:focus {
	background: #6f0216;
	color: #fff !important;
	text-decoration: none !important;
}

body.fos-events-listing .tribe-events .tribe-events-c-small-cta__price,
body.fos-events-listing .tribe-events .tribe-events-c-small-cta__stock {
	color: var(--fos-text);
	font-family: var(--fos-font-body);
}

/* Date picker popout — days are <button>s and pick up the site wine button fill */
body.fos-events-listing .datepicker,
body.fos-events-listing .datepicker-dropdown {
	background: #fff !important;
	border: 1px solid rgba(10, 22, 40, 0.12) !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 28px rgba(10, 22, 40, 0.14) !important;
	padding: 10px !important;
}

body.fos-events-listing .datepicker table,
body.fos-events-listing .datepicker tr,
body.fos-events-listing .datepicker th,
body.fos-events-listing .datepicker td {
	background: transparent !important;
	border: 0 !important;
}

body.fos-events-listing .datepicker button,
body.fos-events-listing .datepicker td > button,
body.fos-events-listing .datepicker th > button {
	background: transparent !important;
	background-image: none !important;
	color: var(--fos-navy) !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 4px !important;
	min-height: 0 !important;
	padding: 0.4rem 0.25rem !important;
	font-family: var(--fos-font-body) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

body.fos-events-listing .datepicker .datepicker-switch,
body.fos-events-listing .datepicker .datepicker-switch button {
	font-weight: 600 !important;
	color: var(--fos-navy) !important;
}

body.fos-events-listing .datepicker button.day:hover,
body.fos-events-listing .datepicker button.month:hover,
body.fos-events-listing .datepicker button.year:hover,
body.fos-events-listing .datepicker .prev:hover button,
body.fos-events-listing .datepicker .next:hover button,
body.fos-events-listing .datepicker .datepicker-switch:hover,
body.fos-events-listing .datepicker .datepicker-switch:hover button {
	background: #faf8f5 !important;
	color: var(--fos-primary) !important;
}

body.fos-events-listing .datepicker button.day.current:not(.active),
body.fos-events-listing .datepicker button.month.current:not(.active),
body.fos-events-listing .datepicker button.year.current:not(.active) {
	background: #faf8f5 !important;
	color: var(--fos-primary) !important;
	box-shadow: inset 0 0 0 1px var(--fos-primary) !important;
}

body.fos-events-listing .datepicker button.day.active,
body.fos-events-listing .datepicker button.month.active,
body.fos-events-listing .datepicker button.year.active,
body.fos-events-listing .datepicker button.active {
	background: var(--fos-primary) !important;
	color: #fff !important;
}

body.fos-events-listing .datepicker button.old,
body.fos-events-listing .datepicker button.new,
body.fos-events-listing .datepicker button.past,
body.fos-events-listing .datepicker button.disabled {
	color: #94a3b8 !important;
}

body.fos-events-listing .datepicker .dow,
body.fos-events-listing .datepicker .dow button {
	color: var(--fos-muted) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
}

body.fos-events-listing .datepicker .day.current:before,
body.fos-events-listing .datepicker .month.current:before,
body.fos-events-listing .datepicker .year.current:before {
	display: none !important;
}

body.fos-events-listing .datepicker .prev .tribe-events-c-top-bar__datepicker-nav-icon-svg path,
body.fos-events-listing .datepicker .next .tribe-events-c-top-bar__datepicker-nav-icon-svg path {
	fill: var(--fos-navy);
}

/* Hide TEC chrome when the catalog is rendering the list */
body.fos-events-listing.fos-has-catalog .tribe-events.tribe-events-view,
body.fos-events-listing.fos-has-catalog .tribe-events-header,
body.fos-events-listing.fos-has-catalog .tribe-events-c-events-bar,
body.fos-events-listing.fos-has-catalog .tribe-events-c-top-bar,
body.fos-events-listing.fos-has-catalog .tribe-events-calendar-list,
body.fos-events-listing.fos-has-catalog .tribe-events-calendar-list__event-row,
body.fos-events-listing.fos-has-catalog .tribe-events-c-small-cta,
body.fos-events-listing.fos-has-catalog .tribe-events-calendar-month,
body.fos-events-listing.fos-has-catalog .tribe-events-c-nav,
body.fos-events-listing.fos-has-catalog .tribe-events-header__title,
body.fos-events-listing.fos-has-catalog .tribe-events-c-breadcrumbs {
	display: none !important;
}

.fos-classes-catalog {
	--fos-navy: #0a1628;
	--fos-navy-mid: #12253d;
	--fos-primary: #8c031c;
	--fos-accent: #e85a24;
	--fos-accent-deep: #d14a18;
	--fos-text: #1e293b;
	--fos-muted: #3f5166;
	--fos-cream: #faf8f5;
	--fos-line: rgba(10, 22, 40, 0.1);
	--fos-font-display: "Bebas Neue", "Arial Narrow", sans-serif;
	--fos-font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", sans-serif;
	--fos-font-ui: "Varela", "Source Sans 3", sans-serif;
	width: min(1080px, calc(100% - 2rem));
	margin: 1.25rem auto 3rem;
	color: var(--fos-text);
	font-family: var(--fos-font-body);
}

.fos-classes-catalog__header {
	margin: 0 0 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--fos-navy);
}

.fos-classes-catalog__title {
	margin: 0 0 0.4rem;
	font-family: var(--fos-font-display);
	font-size: clamp(2.1rem, 5vw, 3rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--fos-navy);
}

.fos-classes-catalog__lede {
	margin: 0;
	max-width: 38rem;
	font-size: 1.05rem;
	line-height: 1.45;
	color: var(--fos-muted);
}

.fos-classes-catalog__tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.4rem;
	margin: 0 0 1.5rem;
	padding: 0.15rem 0 0.55rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.fos-classes-catalog__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0.4rem 0.75rem;
	border: 1px solid rgba(10, 22, 40, 0.16);
	border-radius: 3px;
	background: #fff;
	color: var(--fos-navy) !important;
	font-family: var(--fos-font-ui);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	white-space: nowrap;
}

.fos-classes-catalog__tab:hover,
.fos-classes-catalog__tab:focus {
	border-color: var(--fos-primary);
	color: var(--fos-primary) !important;
}

.fos-classes-catalog__tab.is-active {
	background: var(--fos-navy);
	border-color: var(--fos-navy);
	color: #fff !important;
}

.fos-classes-catalog__count {
	font-size: 0.75rem;
	font-weight: 600;
	opacity: 0.72;
}

.fos-classes-catalog__empty {
	margin: 0;
	padding: 1.25rem 0;
	color: var(--fos-text);
	line-height: 1.5;
}

.fos-classes-catalog__empty a {
	color: var(--fos-primary);
}

.fos-classes-catalog__month {
	margin: 0 0 1.75rem;
}

.fos-classes-catalog__month-title {
	margin: 0 0 0.35rem;
	font-family: var(--fos-font-ui);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fos-navy-mid);
}

.fos-classes-catalog__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--fos-line);
}

.fos-classes-catalog [hidden] {
	display: none !important;
}

.fos-classes-catalog__row {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto;
	gap: 0.85rem 1.4rem;
	align-items: center;
	padding: 1.1rem 0.15rem;
	border-bottom: 1px solid var(--fos-line);
}

.fos-classes-catalog__when {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	min-width: 0;
}

.fos-classes-catalog__type {
	font-family: var(--fos-font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fos-primary);
}

.fos-classes-catalog__name {
	font-family: var(--fos-font-body);
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--fos-navy) !important;
	text-decoration: none !important;
}

.fos-classes-catalog__name:hover,
.fos-classes-catalog__name:focus {
	color: var(--fos-primary) !important;
	text-decoration: underline !important;
}

.fos-classes-catalog__date {
	font-family: var(--fos-font-display);
	font-size: 1.5rem;
	letter-spacing: 0.04em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--fos-primary);
}

.fos-classes-catalog__time,
.fos-classes-catalog__venue,
.fos-classes-catalog__fee {
	color: var(--fos-text);
	font-size: 0.95rem;
	line-height: 1.35;
}

.fos-classes-catalog__meta {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	min-width: 0;
}

.fos-classes-catalog__seats {
	font-family: var(--fos-font-ui);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fos-navy-mid);
}

.fos-classes-catalog__enroll {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.2rem;
	border: 0;
	border-radius: 3px;
	background: linear-gradient(135deg, #f31014 0%, #8c031c 100%);
	color: #fff !important;
	font-family: var(--fos-font-ui);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.fos-classes-catalog__enroll:hover,
.fos-classes-catalog__enroll:focus {
	background: linear-gradient(135deg, #ff2c30 0%, #a30420 100%);
	color: #fff !important;
}

@media (max-width: 720px) {
	.fos-classes-catalog {
		margin-top: 0.75rem;
	}

	.fos-classes-catalog__row {
		grid-template-columns: 1fr;
		gap: 0.45rem;
		padding: 1rem 0;
	}

	.fos-classes-catalog__action {
		justify-self: start;
	}

	.fos-classes-catalog__enroll {
		width: 100%;
	}
}
