/* Transcend Momence — Schedule filter bar (inline dropdowns).
   Uses --tt-* brand tokens with sensible fallbacks. Sits inline above
   .tmom-schedule. Each filter is a button trigger that opens a popover
   with checkboxes. */

.tmom-schedule-wrap {
	margin: 0 auto;
}

.tmom-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-family: var( --tt-font-body, inherit );
	color: var(--nv-text-color);
}

.tmom-filter {
	position: relative;
}

.tmom-filter-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.2rem;
	min-width: 9rem;
	background: var(--nv-site-bg);
	color: var(--nv-text-color);
	border: 3px solid var(--nv-text-color);
	border-radius: 30px;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.2;
	cursor: pointer;
	text-align: left;
	white-space: nowrap;
	transition: background 120ms ease, box-shadow 120ms ease;
}

.tmom-filter-trigger:hover,
.tmom-filter-trigger:focus-visible {
	background: var(--nv-site-bg);
	box-shadow: 0 1px 3px color-mix(in srgb, var(--nv-text-color) 15%, transparent);
	outline: none;
}

.tmom-filter-label {
	font-weight: 600;
	opacity: 0.7;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tmom-filter-summary {
	flex: 1;
	font-weight: 500;
}

.tmom-filter.is-active .tmom-filter-summary {
	color: var(--nv-text-color);
}

.tmom-filter.is-active .tmom-filter-trigger {
	border-color: var(--nv-text-color);
	background: var(--nv-primary-accent);
}

.tmom-filter-caret {
	margin-left: 0.25rem;
	opacity: 0.6;
	transition: transform 150ms ease;
}

.tmom-filter.is-open .tmom-filter-caret {
	transform: rotate( 180deg );
}

/* Popover menu */
.tmom-filter-menu {
	position: absolute;
	top: calc( 100% + 6px );
	left: 0;
	z-index: 100;
	min-width: 100%;
	max-width: 320px;
	max-height: 320px;
	overflow-y: auto;
	background: var(--nv-site-bg);
	border: 1px solid var(--nv-text-color);
	border-radius: 18px;
	padding: 0.5rem 0;
	box-shadow: 0 6px 20px color-mix(in srgb, var(--nv-text-color) 18%, transparent);
}

.tmom-filter-menu[hidden] {
	display: none;
}

.tmom-filter-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
	color: var(--nv-text-color);
	font-size: 0.95rem;
	user-select: none;
	white-space: nowrap;
}

.tmom-filter-option:hover {
	background: color-mix(in srgb, var(--nv-text-color) 6%, transparent);
}

.tmom-filter-option input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	accent-color: var(--nv-text-color);
	flex-shrink: 0;
}

/* Clear filters button */
.tmom-filters-clear {
	background: transparent;
	border: 1px solid transparent;
	color: var(--nv-text-color);
	padding: 0.5rem 0.9rem;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: underline;
	border-radius: 18px;
}

.tmom-filters-clear[hidden] {
	display: none;
}

.tmom-filters-clear:hover,
.tmom-filters-clear:focus-visible {
	background: color-mix(in srgb, var(--nv-text-color) 6%, transparent);
	outline: none;
}

/* The schedule sets display:grid on .tmom-card with enough specificity
   that the user-agent `[hidden] { display: none }` rule loses. Force-hide
   filtered-out cards (and the empty-state) ourselves. */
.tmom-schedule-wrap .tmom-card[hidden],
.tmom-schedule-wrap [hidden] {
	display: none !important;
}

.tmom-empty-state {
	margin: 1.5rem 0;
	padding: 1.5rem;
	text-align: center;
	border: 1px dashed color-mix(in srgb, var(--nv-text-color) 25%, transparent);
	border-radius: 12px;
	color: var(--nv-text-color);
	opacity: 0.8;
}

/* Tighter packing on small screens — dropdowns stack and go full width. */
@media ( max-width: 640px ) {
	.tmom-filters {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.tmom-filter-trigger {
		width: 100%;
	}

	.tmom-filter-menu {
		max-width: none;
		width: 100%;
	}
}
