/* Trail Sisters Event Page - events List View (main /events/ page and group
 * Events tabs). Same colors, badges and labels as the single event page.
 *   1. Tokens and shared pieces (badges, group label, faces)
 *   2. Event row: date | small photo | badges + title / time · place / details
 *   3. List chrome: month headings, top bar, paging, subscribe
 *   4. Group Events tab: "Recent events", empty state, top bar, bottom links
 *   5. Phones
 *   6. Upcoming events list (sidebar shortcode [custom-events-list])
 */

/* 1. Tokens and shared pieces -------------------------------------------- */
/* Selectors start with ".tribe-events .tsep-row" and box properties use
   !important: The Events Calendar's reset (.tribe-common div/p/h3/span ...
   { margin:0; padding:0; border:0 }) and the theme's heading/paragraph
   styles would otherwise win. */
.tribe-events-view--list,
.tsep-row {
	--tsep-navy: #0E3D4F;
	--tsep-text: #1B2A31;
	--tsep-muted: #4B6B78;
	--tsep-line: #E3E9EC;
	--tsep-sun: #F5AD44;
	--tsep-sun-dark: #B86E0B;
	--tsep-mint: #E6F4F1;
}
.tribe-events .tsep-row .tsep-types { display: flex !important; flex-wrap: wrap; gap: 6px; margin: 0 0 6px !important; padding: 0 !important; }
.tribe-events .tsep-row .tsep-type {
	display: inline-flex !important; align-items: center; font-size: 12px !important; font-weight: 500 !important; line-height: 1.4 !important;
	padding: 1px 9px !important; margin: 0 !important; border-radius: 100px !important; white-space: nowrap;
}
.tribe-events .tsep-row .tsep-label {
	display: inline-block; background: var(--tsep-mint); color: var(--tsep-navy);
	font-size: 12px !important; font-weight: 500 !important; line-height: 1.5 !important; padding: 1px 8px !important; margin: 0 !important; border-radius: 6px !important;
}
.tribe-events .tsep-row .tsep-muted { color: var(--tsep-muted); }
.tribe-events .tsep-row .tsep-faces { display: inline-flex !important; margin: 0 !important; padding: 0 !important; }
.tribe-events .tsep-row .tsep-faces img {
	display: block; width: 24px !important; height: 24px !important; border-radius: 50% !important; border: 2px solid #fff !important; object-fit: cover; margin: 0 !important; padding: 0 !important;
}
.tribe-events .tsep-row .tsep-faces img + img { margin-left: -7px !important; }
/* Text for screen readers only (e.g. the full date). */
.tribe-events .tsep-row .tsep-sr {
	position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
	overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* 2. Event row ------------------------------------------------------------ */
.tribe-events .tsep-row {
	position: relative;
	display: grid !important;
	grid-template-columns: 56px 128px minmax(0, 1fr);
	grid-template-areas: "date photo body";
	gap: 16px;
	align-items: center;
	margin: 0 !important;
	padding: 14px 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--tsep-line) !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	list-style: none !important;
	color: var(--tsep-text);
	font-size: 14px;
	line-height: 1.5;
}
.tribe-events .tsep-row:not(.tsep-row--photo) { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "date body"; }
.tribe-events .tsep-row .tsep-row__head { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 !important; padding: 0 !important; }
.tribe-events .tsep-row .tsep-row__head .tsep-types { margin: 0 !important; }
.tribe-events .tsep-row:hover .tsep-row__title a { text-decoration: underline !important; }

.tribe-events .tsep-row .tsep-row__date {
	grid-area: date; align-self: start;
	display: flex !important; flex-direction: column; align-items: center;
	/* More padding above than below so the space looks even (capitals
	   leave little room above; the number's line keeps room below). */
	margin: 0 !important; padding: 8px 0 4px !important;
	border: 1px solid var(--tsep-line) !important; border-radius: 12px !important; background: #fff; line-height: 1.1 !important;
}
.tribe-events .tsep-row .tsep-row__wd { display: block; font-size: 12px !important; font-weight: 600 !important; line-height: 1.2 !important; color: var(--tsep-sun-dark); text-transform: uppercase; letter-spacing: .06em; }
.tribe-events .tsep-row .tsep-row__d { display: block; font-size: 22px !important; font-weight: 700 !important; line-height: 1.1 !important; color: var(--tsep-navy); }

.tribe-events .tsep-row .tsep-row__body { grid-area: body; min-width: 0; margin: 0 !important; padding: 0 !important; }
.tribe-events .tsep-row .tsep-row__title {
	display: block !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important;
	font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; border: 0 !important;
}
.tribe-events .tsep-row .tsep-row__title::before,
.tribe-events .tsep-row .tsep-row__title::after { content: none !important; display: none !important; }
.tribe-events .tsep-row .tsep-row__title a { display: inline !important; margin: 0 !important; padding: 0 !important; color: var(--tsep-navy) !important; text-decoration: none !important; border: 0 !important; }
/* The whole row opens the event. */
.tribe-events .tsep-row .tsep-row__link::after { content: "" !important; display: block !important; position: absolute; inset: 0; z-index: 1; }
.tribe-events .tsep-row .tsep-row__link:focus-visible { outline: none; }
/* Outline only for keyboard users (Tab), not on mouse clicks or taps. */
.tribe-events .tsep-row:has(.tsep-row__link:focus-visible) { outline: 2px solid var(--tsep-navy); outline-offset: 4px; border-radius: 8px !important; }
.tribe-events .tsep-row .tsep-row__link:focus { outline: none !important; box-shadow: none !important; }

.tribe-events .tsep-row .tsep-row__meta {
	display: block !important; margin: 2px 0 0 !important; padding: 0 !important;
	font-size: 14px !important; line-height: 1.5 !important; color: var(--tsep-muted);
}
.tribe-events .tsep-row .tsep-row__series { color: var(--tsep-muted); }
.tribe-events .tsep-row .tsep-row__foot {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 6px;
	margin: 4px 0 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--tsep-muted);
}
.tribe-events .tsep-row .tsep-row__dot { color: var(--tsep-muted); }
.tribe-events .tsep-row .tsep-row__foot:empty { display: none !important; }
.tribe-events .tsep-row .tsep-row__going { font-weight: 500 !important; color: var(--tsep-navy); }
.tribe-events .tsep-row .tsep-row__you {
	background: var(--tsep-mint); color: var(--tsep-navy); font-weight: 600 !important;
	padding: 1px 9px !important; border-radius: 100px !important;
}

.tribe-events .tsep-row .tsep-row__photo { grid-area: photo; margin: 0 !important; padding: 0 !important; }
.tribe-events .tsep-row .tsep-row__photo img {
	display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover;
	border-radius: 8px !important; border: 1px solid var(--tsep-line) !important; margin: 0 !important; padding: 0 !important;
}

/* Featured events: a thin Sun bar on the left. */
.tribe-events .tsep-row--featured::before {
	content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--tsep-sun);
}

/* 3. List chrome ------------------------------------------------------------ */
.tribe-events-view--list .tribe-events-calendar-list__month-separator {
	margin: 24px 0 0 !important; padding: 0 0 10px !important; border: 0 !important;
}
.tribe-events-view--list .tribe-events-calendar-list__month-separator:first-child { margin-top: 0 !important; }
.tribe-events-view--list .tribe-events-calendar-list__month-separator-text {
	color: var(--tsep-navy) !important; font-size: 15px !important; font-weight: 600 !important;
}
.tribe-events-view--list .tribe-events-calendar-list__month-separator::after { display: none !important; }
.tribe-events-view--list .tribe-events-calendar-list__month-separator + .tsep-row { border-top: 1px solid var(--tsep-line) !important; }

/* "Subscribe to calendar": navy outline instead of the theme's blue. */
.tribe-events-view--list .tribe-events-c-subscribe-dropdown__button {
	border-color: var(--tsep-navy) !important; color: var(--tsep-navy) !important; border-radius: 100px !important;
}
.tribe-events-view--list .tribe-events-c-subscribe-dropdown__button:hover,
.tribe-events-view--list .tribe-events-c-subscribe-dropdown__button:focus-within {
	background: var(--tsep-navy) !important; color: #fff !important;
}
.tribe-events-view--list .tribe-events-c-subscribe-dropdown__button button,
.tribe-events-view--list .tribe-events-c-subscribe-dropdown__button svg { color: inherit !important; }

/* Previous / Next. */
.tribe-events-view--list .tribe-events-c-nav__prev,
.tribe-events-view--list .tribe-events-c-nav__next { color: var(--tsep-navy) !important; }

/* 4. Group Events tab --------------------------------------------------- */
/* Past events: same row, muted. */
.tribe-events .tsep-row--past .tsep-row__wd { color: var(--tsep-muted); }
.tribe-events .tsep-row--past .tsep-row__d,
.tribe-events .tsep-row--past .tsep-row__title a { color: #3D5561 !important; }
.tribe-events .tsep-row--past .tsep-row__photo img { filter: saturate(.6); opacity: .85; }
.tribe-events .tsep-row--past .tsep-types { opacity: .8; }

/* Canceled / postponed rows */
.tribe-events .tsep-row .tsep-status-pill {
	display: inline-flex !important; align-items: center; font-size: 12px !important; font-weight: 600 !important; line-height: 1.4 !important;
	padding: 1px 9px !important; margin: 0 !important; border-radius: 100px !important; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em;
}
.tribe-events .tsep-row .tsep-status-pill--canceled { background: #FDECEA; color: #B3261E; }
.tribe-events .tsep-row .tsep-status-pill--postponed { background: #FFF4E0; color: #B86E0B; }
.tribe-events .tsep-row--canceled .tsep-row__title a { color: var(--tsep-muted) !important; text-decoration: line-through !important; text-decoration-color: #B3261E !important; }
.tribe-events .tsep-row--canceled .tsep-row__date, .tribe-events .tsep-row--canceled .tsep-row__photo { opacity: .55; }
.tribe-events .tsep-row--postponed .tsep-row__date { opacity: .7; }

.tsep-group-extra { margin: 8px 0 24px; }
.tsep-past { padding: 0 !important; background: none !important; }
.tsep-past .tsep-past__title {
	margin: 24px 0 8px !important; padding: 0 !important; font-size: 15px !important; font-weight: 600 !important;
	color: #0E3D4F !important; line-height: 1.3 !important;
}
.tsep-past .tsep-past__list { list-style: none !important; margin: 0 !important; padding: 0 !important; }

.tribe-events .tsep-empty {
	margin: 16px 0 8px !important; padding: 40px 32px !important; text-align: center;
	border: 1px dashed #C9D4D9 !important; border-radius: 12px !important; background: #F7FAFB !important;
}
.tribe-events .tsep-empty .tsep-empty__title { margin: 0 0 8px !important; padding: 0 !important; font-size: 18px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #0E3D4F; }
.tribe-events .tsep-empty .tsep-empty__text { margin: 0 !important; padding: 0 !important; font-size: 15px !important; line-height: 1.5 !important; color: #4B6B78; }
.tsep-empty .tsep-empty__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 16px; padding: 0 24px;
	background: #F5AD44; color: #0E3D4F !important; border-radius: 100px; font-weight: 600; text-decoration: none !important;
}
.tsep-empty .tsep-empty__btn:hover { background: #F0A030; }
/* With no upcoming events, our message and "Recent events" replace The
   Events Calendar's "no upcoming events" notice and "Latest past events". */
.tribe-events-view:has(.tsep-group-extra--empty) .tribe-events-c-messages,
.tribe-events-view:has(.tsep-group-extra--empty) .tribe-events-calendar-latest-past { display: none !important; }

/* Group tab top bar: "Upcoming events · 12"  [List | Month]  Subscribe  [+ Create event] */
.tribe-events .tsep-gbar {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px 16px;
	width: 100%; margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; background: none !important;
	order: -1; flex: 1 1 100%;
}
.tribe-events .tsep-gbar .tsep-gbar__title {
	margin: 0 !important; padding: 0 !important; font-size: 20px !important; line-height: 1.3 !important;
	font-weight: 700 !important; color: #0E3D4F !important;
}
.tribe-events .tsep-gbar .tsep-gbar__count { font-size: 15px; font-weight: 400; color: #4B6B78; }
.tribe-events .tsep-gbar .tsep-gbar__actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 0 auto !important; }

.tribe-events .tsep-gbar .tsep-gbar__views {
	display: inline-flex !important; gap: 2px; padding: 3px !important; margin: 0 !important;
	border: 1px solid #E3E9EC !important; border-radius: 100px !important; background: #fff;
}
.tribe-events .tsep-gbar .tsep-gbar__view {
	display: inline-flex !important; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px !important;
	border-radius: 100px !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1 !important;
	color: #0E3D4F !important; text-decoration: none !important;
}
.tribe-events .tsep-gbar .tsep-gbar__view:hover { background: #F1F4F6; }
.tribe-events .tsep-gbar .tsep-gbar__view.is-active { background: #0E3D4F; color: #fff !important; }

/* Subscribe: button + popup panel (BuddyBoss menu style), floats over the page. */
.tribe-events .tsep-sub { position: relative; margin: 0 !important; }
.tribe-events .tsep-sub > summary { list-style: none; }
.tribe-events .tsep-sub > summary::-webkit-details-marker { display: none; }
.tribe-events .tsep-sub .tsep-sub__btn {
	display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px !important; margin: 0 !important;
	border: 1px solid #0E3D4F !important; border-radius: 100px !important; background: #fff;
	color: #0E3D4F; font-size: 14px !important; font-weight: 500 !important; line-height: 1 !important; cursor: pointer;
}
.tribe-events .tsep-sub .tsep-sub__btn:hover,
.tribe-events .tsep-sub[open] .tsep-sub__btn { background: #F1F4F6; }
.tribe-events .tsep-sub .tsep-sub__btn:focus-visible { outline: 2px solid #0E3D4F; outline-offset: 2px; }
.tribe-events .tsep-sub .tsep-sub__panel {
	position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; width: 260px; margin: 0 !important; padding: 8px 0 !important;
	background: #fff; border: 1px solid #E3E9EC !important; border-radius: 8px !important;
	box-shadow: 0 2px 7px 1px rgba(0, 0, 0, .05), 0 6px 32px 0 rgba(18, 43, 70, .1);
}
.tribe-events .tsep-sub .tsep-sub__head {
	margin: 0 !important; padding: 6px 16px 8px !important; font-size: 13px !important; line-height: 1.4 !important; color: #4B6B78;
	border-bottom: 1px solid #E3E9EC !important;
}
.tribe-events .tsep-sub .tsep-sub__list { list-style: none !important; margin: 6px 0 0 !important; padding: 0 !important; }
.tribe-events .tsep-sub .tsep-sub__list li { margin: 0 !important; padding: 0 !important; }
.tribe-events .tsep-sub .tsep-sub__list a {
	display: block; padding: 9px 16px !important; font-size: 14px !important; line-height: 1.3 !important;
	color: #1B2A31 !important; text-decoration: none !important;
}
.tribe-events .tsep-sub .tsep-sub__list a:hover { background: #F5F6F7; color: #0E3D4F !important; }

/* Group tab, Month view: the month row ("This Month", month name, arrows)
   in the same style as the bar - outline pills and round arrow buttons. */
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar { align-items: center !important; gap: 12px; margin: 8px 0 16px !important; }
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav { order: 3; margin-left: auto !important; }
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-list { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; }
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-list-item { display: flex !important; margin: 0 !important; padding: 0 !important; }
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-link {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: 40px !important; height: 40px !important; margin: 0 !important; padding: 0 !important;
	border: 1px solid #E3E9EC !important; border-radius: 50% !important; background: #fff !important;
	color: #0E3D4F !important; transform: none !important; vertical-align: middle;
}
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-link:hover { background: #F1F4F6 !important; border-color: #C9D4D9 !important; }
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-link svg {
	display: block !important; width: 8px !important; height: 14px !important; margin: 0 !important; position: static !important; top: auto !important;
}
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-link svg .tribe-common-c-svgicon__svg-stroke,
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-link svg [stroke] { stroke: #0E3D4F !important; }
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__nav-link svg .tribe-common-c-svgicon__svg-fill { fill: #0E3D4F !important; }
body .tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar .tribe-events-c-top-bar__today-button {
	display: inline-block !important; box-sizing: border-box !important; vertical-align: middle;
	height: 40px !important; min-height: 0 !important; padding: 0 18px !important; margin: 0 !important;
	line-height: 38px !important; text-align: center; white-space: nowrap;
	border: 1px solid #E3E9EC !important; border-radius: 100px !important; background: #fff !important;
	color: #0E3D4F !important; font-size: 14px !important; font-weight: 500 !important;
}
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__today-button:hover { background: #F1F4F6 !important; }
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__datepicker-button,
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-c-top-bar__datepicker-desktop {
	color: #0E3D4F !important; font-size: 18px !important; font-weight: 600 !important;
}

/* Group tabs: TEC's "There were no results found." in our softer style. */
.tribe-events-view:has(.tsep-gbar) .tribe-events-c-messages__message {
	display: flex !important; align-items: center; justify-content: center; gap: 10px;
	margin: 0 0 16px !important; padding: 16px 20px !important;
	background: #F7FAFB !important; border: 1px dashed #C9D4D9 !important; border-radius: 12px !important;
	color: #4B6B78 !important; font-size: 15px !important; line-height: 1.5 !important;
}
.tribe-events-view:has(.tsep-gbar) .tribe-events-c-messages__message-icon-svg { display: none !important; }
.tribe-events-view:has(.tsep-gbar) .tribe-events-c-messages__message-list,
.tribe-events-view:has(.tsep-gbar) .tribe-events-c-messages__message-list-item { margin: 0 !important; padding: 0 !important; list-style: none !important; }

/* Group tab, Month view: same centred width as the List view (the
   child theme limits List view to 960px; Month was full width). */
.tribe-events-view--month:has(.tsep-gbar) .tribe-events-l-container {
	max-width: 960px !important; margin-left: auto !important; margin-right: auto !important;
}

.tribe-events .tsep-gbar .tsep-gbar__create {
	display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px !important;
	background: #F5AD44 !important; color: #0E3D4F !important; border-radius: 100px !important;
	font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important;
}
.tribe-events .tsep-gbar .tsep-gbar__create:hover { background: #F0A030 !important; }

/* Main /events/ page: filter row and the "Showing events from ..." line. */
.tribe-events .tsep-gbar .tsep-filters {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 12px;
	flex: 1 1 100%; margin: 4px 0 0 !important; padding: 0 !important;
}
.tribe-events .tsep-scope {
	display: inline-flex !important; gap: 2px; padding: 3px !important; margin: 0 !important;
	border: 1px solid #E3E9EC !important; border-radius: 100px !important; background: #fff;
}
.tribe-events .tsep-scope .tsep-scope__opt {
	display: inline-flex !important; align-items: center; min-height: 34px; padding: 0 14px !important;
	border-radius: 100px !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1 !important;
	color: #0E3D4F !important; text-decoration: none !important;
}
.tribe-events .tsep-scope .tsep-scope__opt:hover { background: #F1F4F6; }
.tribe-events .tsep-scope .tsep-scope__opt.is-active { background: #0E3D4F; color: #fff !important; }

/* Search box. */
.tribe-events .tsep-gbar .tsep-search { position: relative; display: flex !important; align-items: center; margin: 0 !important; padding: 0 !important; flex: 0 1 240px; min-width: 180px; }
.tribe-events .tsep-gbar .tsep-search .tsep-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tribe-events .tsep-gbar .tsep-search__icon { position: absolute; left: 14px; color: #4B6B78; pointer-events: none; }
.tribe-events .tsep-gbar .tsep-search .tsep-search__input {
	width: 100%; min-height: 40px; margin: 0 !important; padding: 0 14px 0 38px !important;
	border: 1px solid #E3E9EC !important; border-radius: 100px !important; background: #fff !important;
	color: #1B2A31 !important; font-size: 14px !important; box-shadow: none !important;
}
.tribe-events .tsep-gbar .tsep-search .tsep-search__input:focus { border-color: #0E3D4F !important; outline: none; }
.tribe-events .tsep-gbar .tsep-scope-note__search { color: #0E3D4F; font-weight: 600; margin-right: 4px; }

.tribe-events .tsep-pick { margin: 0 !important; }
.tribe-events .tsep-pick .tsep-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tribe-events .tsep-pick .tsep-pick__select {
	min-height: 40px; max-width: 240px; margin: 0 !important; padding: 0 36px 0 14px !important;
	border: 1px solid #E3E9EC !important; border-radius: 100px !important; background-color: #fff !important;
	color: #0E3D4F !important; font-size: 14px !important; font-weight: 500 !important; cursor: pointer;
}

.tribe-events .tsep-chips { display: flex !important; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important; }
.tribe-events .tsep-chips .tsep-chip {
	display: inline-flex !important; align-items: center; min-height: 32px; padding: 0 12px !important;
	border-radius: 100px !important; background: var(--chip-bg); color: var(--chip-fg) !important;
	font-size: 13px !important; font-weight: 500 !important; line-height: 1 !important; text-decoration: none !important;
	border: 1.5px solid transparent !important; opacity: .75;
}
.tribe-events .tsep-chips .tsep-chip:hover { opacity: 1; }
.tribe-events .tsep-chips .tsep-chip.is-on { opacity: 1; border-color: var(--chip-fg) !important; }
.tribe-events .tsep-chips .tsep-chip.is-on::before { content: "✓"; margin-right: 5px; font-weight: 700; }

.tribe-events .tsep-gbar .tsep-clear { font-size: 14px !important; font-weight: 500 !important; color: #0E3D4F !important; text-decoration: underline !important; }

.tribe-events .tsep-gbar .tsep-scope-note {
	flex: 1 1 100%; margin: 2px 0 0 !important; padding: 10px 14px !important;
	background: #F7FAFB; border-radius: 8px !important; font-size: 14px !important; line-height: 1.5 !important; color: #4B6B78;
}
.tribe-events .tsep-gbar .tsep-scope-note a { margin-left: 4px; font-weight: 600 !important; color: #0E3D4F !important; text-decoration: underline !important; }

/* Main /events/ page uses the same 960px column as List view. */
.tribe-events-view--month:has(.tsep-gbar--main) .tribe-events-l-container {
	max-width: 960px !important; margin-left: auto !important; margin-right: auto !important;
}

/* Group tab bottom links: "See past events" / "More events". */
.tribe-events .tsep-gnav {
	display: flex !important; justify-content: space-between; align-items: center; gap: 12px;
	margin: 16px 0 0 !important; padding: 16px 0 0 !important; border-top: 1px solid #E3E9EC !important;
}
.tribe-events .tsep-gnav .tsep-gnav__link {
	display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px;
	font-size: 15px !important; font-weight: 500 !important; color: #0E3D4F !important; text-decoration: none !important;
}
.tribe-events .tsep-gnav .tsep-gnav__link:hover { text-decoration: underline !important; }

/* 5. Phones ----------------------------------------------------------------- */
/* Compact rows: date | details | small photo on the right. */
@media (max-width: 767px) {
	.tribe-events .tsep-row,
	.tribe-events .tsep-row:not(.tsep-row--photo) { gap: 12px; padding: 12px 0 !important; }
	.tribe-events .tsep-row { grid-template-columns: 44px minmax(0, 1fr) 84px; grid-template-areas: "date body photo"; align-items: start; }
	.tribe-events .tsep-row:not(.tsep-row--photo) { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "date body"; }
	.tribe-events .tsep-row .tsep-row__date { padding: 6px 0 3px !important; border-radius: 10px !important; }
	.tribe-events .tsep-row .tsep-row__d { font-size: 18px !important; }
	.tribe-events .tsep-row .tsep-row__wd { font-size: 11px !important; }
	.tribe-events .tsep-row .tsep-row__title { font-size: 16px !important; }
	.tribe-events .tsep-row .tsep-row__meta { font-size: 13px !important; }
	.tribe-events .tsep-row--featured::before { left: -8px; top: 12px; bottom: 12px; }
	.tribe-events .tsep-row:has(.tsep-row__link:focus-visible) { outline-offset: 2px; }
	.tsep-empty { padding: 24px 16px; }
	.tribe-events .tsep-gbar .tsep-gbar__title { font-size: 18px !important; }
	.tribe-events .tsep-gbar .tsep-gbar__actions { margin: 0 !important; width: 100%; }
	.tribe-events .tsep-gbar .tsep-gbar__create { margin-left: auto !important; }
	.tribe-events .tsep-gbar .tsep-gbar__view span,
	.tribe-events .tsep-sub .tsep-sub__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.tribe-events .tsep-sub .tsep-sub__btn { padding: 0 12px !important; }
	.tribe-events .tsep-sub .tsep-sub__panel { right: auto; left: 0; }
	.tribe-events .tsep-pick .tsep-pick__select { max-width: 100%; }
	.tribe-events .tsep-gbar .tsep-search { flex: 1 1 100%; }
	.tribe-events .tsep-gbar .tsep-filters { gap: 8px; }
	.tribe-events .tsep-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px !important; -webkit-overflow-scrolling: touch; }
	.tribe-events .tsep-chips .tsep-chip { flex: none; }
	.tribe-events .tsep-gbar .tsep-gbar__view { padding: 0 12px !important; }
}

/* 6. Upcoming events list ---------------------------------------------------- */
/* [custom-events-list] / [ts-group-events] (includes/class-group-tab.php):
   a group's next events in a sidebar, then "View calendar" (the group's
   Events tab). Same look as the event page's "Upcoming group events"
   (event-page.css: .tsep-widget 14px text, .tsep-mini-date, .tsep-pill--
   outline): 14px text, title 600 navy above a muted time, 44px date
   box with a thin border like the list rows' dates (month 11px dark Sun,
   day 18px navy - the phone size of .tsep-row__date), 40px outline pill.
   !important on box properties because widget areas and the theme style
   lists, links and headings. */
.tsep-upnext {
	--tsep-navy: #0E3D4F;
	--tsep-text: #1B2A31;
	--tsep-muted: #4B6B78;
	--tsep-sun-dark: #B86E0B;
	--tsep-soft: #F1F4F6;
	--tsep-line: #E3E9EC;
	font-size: 14px; line-height: 1.4; color: var(--tsep-text);
}
.tsep-upnext .tsep-upnext__title { margin: 0 0 16px !important; font-size: 18px !important; font-weight: 700 !important; line-height: 1.3 !important; color: var(--tsep-navy) !important; }
.tsep-upnext .tsep-upnext__list { display: flex !important; flex-direction: column; gap: 12px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tsep-upnext .tsep-upnext__list li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tsep-upnext .tsep-upnext__list li::before { content: none !important; }
.tsep-upnext .tsep-upnext__item {
	display: flex !important; gap: 12px; align-items: center; min-height: 44px;
	padding: 0 !important; color: inherit !important; text-decoration: none !important;
}
/* Padding 6px top / 3px bottom looks even: capital letters leave little
   space above them, while the numbers' line keeps room below for letters
   like "g" that hang down. */
.tsep-upnext .tsep-upnext__date {
	flex: none; width: 44px; padding: 6px 0 3px; text-align: center; line-height: 1.1;
	border: 1px solid var(--tsep-line); border-radius: 10px; background: #fff;
}
.tsep-upnext .tsep-upnext__m { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tsep-sun-dark); }
.tsep-upnext .tsep-upnext__d { display: block; font-size: 18px; font-weight: 700; color: var(--tsep-navy); }
.tsep-upnext .tsep-upnext__body { display: flex; flex-direction: column; min-width: 0; }
.tsep-upnext .tsep-upnext__name { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--tsep-navy); overflow-wrap: anywhere; }
.tsep-upnext .tsep-upnext__time { font-size: 14px; line-height: 1.4; color: var(--tsep-muted); }
.tsep-upnext .tsep-upnext__status {
	display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid #A32D2D; border-radius: 6px;
	font-size: 12px; font-weight: 600; line-height: 1.5; color: #A32D2D;
}
.tsep-upnext .tsep-upnext__item:hover .tsep-upnext__name { text-decoration: underline; }
.tsep-upnext .tsep-upnext__item:focus-visible { outline: 2px solid var(--tsep-navy); outline-offset: 2px; border-radius: 8px; }
.tsep-upnext .tsep-upnext__sr {
	position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
	overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}
.tsep-upnext .tsep-upnext__empty { margin: 0 !important; font-size: 14px; color: var(--tsep-muted); }
.tsep-upnext .tsep-upnext__more {
	display: inline-flex !important; align-items: center; justify-content: center; height: 40px; min-height: 40px; margin-top: 16px !important;
	padding: 0 16px !important; border: 1px solid var(--tsep-navy) !important; border-radius: 100px !important;
	background: #fff !important; color: var(--tsep-navy) !important; font-size: 14px !important; font-weight: 500 !important;
	line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; box-shadow: none !important;
}
.tsep-upnext .tsep-upnext__more:hover { background: var(--tsep-soft) !important; }
.tsep-upnext .tsep-upnext__more:focus-visible { outline: 2px solid var(--tsep-navy); outline-offset: 2px; }
