/*
 * Trail Sisters Communities — custom CSS
 * ---------------------------------------------------------------------------
 * All of the site's custom CSS lives here. It replaces the Customizer's
 * "Additional CSS" box and the old styles printed by functions.php.
 * functions.php (Section 01) prints this file at the end of every front-end
 * page's <head> — the same spot "Additional CSS" used — so these rules still
 * override theme and plugin styles.
 *
 * Search for "REVIEW:" for rules worth re-checking, and "NOTE:" for rules
 * with side effects to know about.
 *
 * CONTENTS
 *    1. Site-Wide
 *    2. Sidebar Widgets
 *    3. Individual Pages
 *    4. Members, Profiles & Activity
 *    5. Groups
 *    6. Events: Calendar & Lists
 *    7. Events: Group Events Tab
 *    8. Events: Single Event Pages
 *    9. Events: Community Submission Form
 *   10. Leader Attendee Report (Front-End)
 *   11. Style Guide Components
 *   12. Page Layouts (widths and sidebars)
 *   13. Group Header
 */



/* ===== 1. SITE-WIDE =====
 * Brand colours, spacing, menu, notices and footer across the whole site.
 */

/* Style guide tokens — use these instead of typing hex codes.
 * Guide: https://claude.ai/artifact/PXcXxvTDmxWHhQTRi9fHUk */
:root {
	/* Brand */
	--ts-navy: #0e3d4f;
	--ts-navy-dark: #0a2e3c;
	--ts-sun: #f5ad44;
	--ts-sun-dark: #e89a2c;
	--ts-mint: #9bd5cb;
	--ts-red: #f15e6b;
	--ts-orange: var(--ts-sun); /* old name, still used below */

	/* Greys */
	--ts-gray-900: #1b2a31;
	--ts-gray-700: #4b6b78;
	--ts-gray-500: #7d939c;
	--ts-gray-300: #c9d4d9;
	--ts-gray-200: #e3e9ec;
	--ts-gray-100: #f1f4f6;
	--ts-gray-50: #f8fafb;

	/* Tints */
	--ts-mint-light: #e6f4f1;
	--ts-sun-light: #fef3e2;
	--ts-red-light: #fde9eb;
	--ts-navy-tint: rgba(14, 61, 79, .09);
	--ts-navy-hover: rgba(14, 61, 79, .05);

	/* Shape and type */
	--ts-radius-pill: 100px;
	--ts-radius-card: 12px;
	--ts-radius-input: 8px;
	--ts-radius-badge: 6px;
	--ts-font: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Main menu: current page = light navy rounded box; hover = fainter box of
 * the SAME size. No bold, no underline.
 * Spacing is set here, not left to the theme, so boxes can't touch: each link
 * has 14px padding on both sides and items sit 8px apart. The box is drawn by
 * ::before across the link's full width, 38px tall, centred vertically (the
 * links themselves fill the header's height). */
.bb-template-v2 .primary-menu > li {
	margin: 0 4px !important;
	padding: 0 !important;
}
.bb-template-v2 .primary-menu > li > a {
	position: relative;
	isolation: isolate;
	padding-left: 14px !important;
	padding-right: 14px !important;
	border-bottom: none;
}
/* Items with a dropdown (e.g. Leaders): extra room on the right for the
 * theme's arrow, so it sits inside the box instead of over the label */
.bb-template-v2 .primary-menu > li.menu-item-has-children > a {
	padding-right: 34px !important;
}
.bb-template-v2 .primary-menu > li > a::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 0;
	top: 50%;
	height: 38px;
	transform: translateY( -50% );
	border-radius: 8px;
	background-color: transparent;
	transition: background-color .15s;
}
.bb-template-v2 .primary-menu > li > a:hover::before {
	background-color: rgba( 14, 61, 79, .05 );
}
.bb-template-v2 .primary-menu > li.current-menu-item > a::before,
.bb-template-v2 .primary-menu > li.current_page_item > a::before,
.bb-template-v2 .primary-menu > li.current-menu-ancestor > a::before,
.bb-template-v2 .primary-menu > li.current-menu-parent > a::before,
.bb-template-v2 .primary-menu > li.selected > a::before {
	background-color: rgba( 14, 61, 79, .09 );
}
/* Current item: same weight as the others (the theme makes it bold) */
.bb-template-v2 .primary-menu > li.current-menu-item > a,
.bb-template-v2 .primary-menu > li.current-menu-item > a *,
.bb-template-v2 .primary-menu > li.current_page_item > a,
.bb-template-v2 .primary-menu > li.current_page_item > a *,
.bb-template-v2 .primary-menu > li.current-menu-ancestor > a,
.bb-template-v2 .primary-menu > li.current-menu-ancestor > a *,
.bb-template-v2 .primary-menu > li.current-menu-parent > a,
.bb-template-v2 .primary-menu > li.current-menu-parent > a *,
.bb-template-v2 .primary-menu > li.selected > a,
.bb-template-v2 .primary-menu > li.selected > a * {
	font-weight: inherit !important;
}

/* Block editor: buttons with a custom font size stay inline */
.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link {
	display: inline;
}

/* Pages: no left padding on paragraphs inside column blocks */
.page .wp-block-columns p {
	padding-left: 0px;
}

/* Directory search boxes (e.g. "Search Groups…"): readable placeholder text and
 * search icon. #6b7280 meets WCAG contrast (about 4.8:1 on white) while staying
 * clearly lighter than chosen values in the dropdowns beside it, so an empty
 * box still looks empty. */
.bp-dir-search-form input[type="search"]::placeholder {
	color: #6b7280 !important;
	opacity: 1;
}
.bp-dir-search-form .search-form_submit,
.bp-dir-search-form .search-form_submit .dashicons {
	color: #6b7280 !important;
}

/* Site notices */
.post_notice a {
	float: right;
}
.post_notice {
	font-size: 14px;
}

/* Footer: white links and headings */
.footer-widget a {
	color: white !important;
	line-height: 2;
}
.footer-widget h3 {
	color: white !important;
	margin-bottom: -15px;
}
.footer-desc a {
	color: white;
}
#media_image-10 {
	margin-bottom: -30px;
}
/* Header badges capped at "9+" (functions.php 01): keep the pill snug */
.count.ts-capped {
	padding-left: 4px !important;
	padding-right: 4px !important;
	letter-spacing: -.02em;
	width: auto !important;
}

/* Phone header avatar (functions.php 03): links to your profile */
.ts-mobile-avatar {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: 12px;
	align-self: center;
}
.ts-mobile-avatar img {
	display: block;
	width: 32px !important;
	height: 32px !important;
	max-width: none;
	border-radius: 50% !important;
	border: 0 !important;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--ts-gray-200, #dfe6e9);
}
@media screen and ( min-width: 800px ) {
	.ts-mobile-avatar { display: none !important; }
}

/* ===== END 1. SITE-WIDE ===== */


/* ===== 2. SIDEBAR WIDGETS ===== */

/* All sidebar widgets: open style — no box, just a thin grey line and
 * 24px of space between widgets. Footer widgets are not affected. */
.widget-area .widget {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 24px !important;
}
.widget-area .widget + .widget {
	border-top: 1px solid var( --ts-gray-200 ) !important;
	padding-top: 24px !important;
}
.widget-area .widget .widget-title,
.widget-area .widget h2.widgettitle {
	margin: 0 0 12px;
	color: var( --ts-navy );
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}
.widget-area .widget > :last-child,
.widget-area .widget .textwidget > :last-child {
	margin-bottom: 0;
}

/* BuddyPress list widgets (e.g. Members): no borders between items.
 * NOTE: keeps its "ul" on purpose (a CSS checker may call it overqualified):
 * the theme styles that exact selector, and removing "ul" would let the
 * theme's list borders win again. */
.buddypress.widget ul.item-list li {
	border: none;
}

/* "My Groups" widget (functions.php, Section 04): group avatar + name per
 * line, then a "View all my groups" link */
.ts-my-groups {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ts-my-groups li {
	margin: 0 0 10px;
	padding: 0;
	border: none;
}
.ts-my-groups a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var( --ts-navy );
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}
.ts-my-groups img {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 5px;
	object-fit: cover;
}
/* Links under the list: "View all my groups (N)" and "Find more groups"
 * (or just "Find a group" for members with no groups yet) */
.ts-my-groups-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 4px;
}
.ts-my-groups-all,
.ts-my-groups-find {
	font-size: 14px;
	font-weight: 600;
	color: var( --ts-navy );
	text-decoration: none;
}
.ts-my-groups-all:hover,
.ts-my-groups-find:hover {
	text-decoration: underline;
}
.ts-my-groups-empty {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var( --ts-gray-700 );
}
/* No groups yet: "Find a group" is a small navy pill */
.ts-my-groups-empty + .ts-my-groups-links .ts-my-groups-find {
	padding: 7px 16px;
	border-radius: var( --ts-radius-pill );
	background: var( --ts-navy );
	color: #fff;
}
.ts-my-groups-empty + .ts-my-groups-links .ts-my-groups-find:hover {
	background: var( --ts-navy-dark );
	text-decoration: none;
}

/* Members widget: hide the Popular tabs and "more" links */
#popular-friends {
	display: none;
}
#popular-members {
	display: none;
}
.more-block {
	display: none;
}

/* Individual widgets, by widget ID (all checked Nov 2026). If a widget is
 * removed under Appearance > Widgets, delete its rules here. */
/* (The grey inner boxes on text-8/9/10 and the negative margins on text-7
 * and bp_core_friends_widget-2 were removed Nov 2026: every widget is now
 * its own card, so they're no longer needed.) */

/* Events list widgets (custom_html-11: Group Activity; text-7: Single
 * Event): hide "View Calendar" */
#custom_html-11 .tribe-events-widget-events-list__view-more a,
#text-7 .tribe-events-widget-events-list__view-more {
	display: none;
}

/* RSS widget (Activity, right): hide the feed icon */
#rss-2 .rss-widget-feed {
	display: none;
}
/* "Trail Sisters Instagram" widget (functions.php, Section 01): profile
 * picture + username, latest posts as a 2-wide grid of squares, and a
 * "Follow on Instagram" button */
.ts-ig-feed .ts-ig-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 600;
	color: var( --ts-navy );
	text-decoration: none;
	min-width: 0;
}
.ts-ig-feed .ts-ig-header span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ts-ig-feed .ts-ig-avatar {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}
.ts-ig-feed .ts-ig-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 6px;
}
/* Square tiles: the padding sets the height (100% of the width), so the space
 * is reserved even before a photo loads and theme image styles can't
 * stretch or shrink it. */
.ts-ig-feed .ts-ig-grid a {
	position: relative;
	display: block;
	height: 0;
	padding-top: 100%;
	overflow: hidden;
}
.ts-ig-feed .ts-ig-grid img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	display: block;
}
.ts-ig-feed .ts-ig-follow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	padding: 8px 16px;
	border-radius: var( --ts-radius-pill );
	background-color: var( --ts-navy );
	color: #fff !important;
	font-size: 14px;
	font-weight: 500; /* matches BuddyBoss buttons (Join Group etc.) */
	line-height: 1.5;
	text-decoration: none;
}
.ts-ig-feed .ts-ig-follow svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}
.ts-ig-feed .ts-ig-follow:hover {
	background-color: var( --ts-navy-dark );
}
/* ===== END 2. SIDEBAR WIDGETS ===== */


/* ===== 3. INDIVIDUAL PAGES =====
 * Rules for specific pages, by page ID (all checked Nov 2026). If a page is
 * deleted, delete its rules here.
 */

/* Home page (post 5): hide the page title */
.post-5 .entry-header {
	display: none;
}

/* About page (315) */
.page-id-315 .entry-header {
	display: none;
}
.page-id-315 .wp-block-button {
	display: flex;
}

/* Documentation (102973) and Leader Documentation (103112) pages */
.page-id-102973 .help-form,
.page-id-103112 .help-form {
	padding: 20px;
	border: 2px solid #f1f2f6;
	border-radius: 5px;
}
.page-id-102973 .lightweight-accordion .lightweight-accordion-title,
.page-id-103112 .lightweight-accordion .lightweight-accordion-title {
	border-radius: 5px;
}
.page-id-102973 #wpforms-103003-field_10,
.page-id-103112 #wpforms-103003-field_10 {
	font-size: 14px;
	line-height: 18px;
}
.page-id-102973 .entry-header,
.page-id-103112 .entry-header {
	display: none;
}

/* Participation Waiver page (104428) */
.page-id-104428 .redirect-message {
	background-color: #F15E6B;
	padding: 10px;
	border-radius: 10px;
	color: white;
	line-height: 1.3em;
	font-size: 14px !important;
}
.page-id-104428 #primary {
	max-width: 800px;
}
.page-id-104428 .entry-header {
	display: none;
}

/* Grow Your Group - Tips & Tricks page (136708) */
.page-id-136708 .wp-block-columns {
	border-radius: 5px;
	padding: 5%;
}
.page-id-136708 img {
	border-radius: 5px;
}
/* ===== END 3. INDIVIDUAL PAGES ===== */


/* ===== 4. MEMBERS, PROFILES & ACTIVITY ===== */

/* Social links as outlined icon circles with a hover tooltip: member profile
 * headers (functions.php, Section 03) and group headers (Section 04). */
.ts-social-row,
.ts-group-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ts-social-row > .social {
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
}
.ts-social-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border: 1px solid var( --ts-navy ); /* matches the Member and bell buttons */
	border-radius: 50% !important;
	background: transparent !important;
	color: var( --ts-navy ) !important;
	line-height: 1;
	text-decoration: none !important;
}
.ts-social-svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	fill: currentColor;
}
/* Group header logos (BuddyBoss strips <svg> there, so the logo is a mask
 * on a span, painted in the text colour) */
.ts-social-glyph {
	display: block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var( --ts-glyph ) center / contain no-repeat;
	mask: var( --ts-glyph ) center / contain no-repeat;
}
.ts-glyph-instagram {
	--ts-glyph: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.9 3.9 0 0 0-1.417.923A3.9 3.9 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.9 3.9 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9 3.9 0 0 0-.923-1.417A3.9 3.9 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.5 2.5 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5 2.5 0 0 1-.92-.598 2.5 2.5 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92m-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217m0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334'/%3E%3C/svg%3E" );
}
.ts-glyph-strava {
	--ts-glyph: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.731 0 2 9.125h2.788L6.73 5.497l1.93 3.628h2.766zm4.694 9.125-1.372 2.756L8.66 9.125H6.547L10.053 16l3.484-6.875z'/%3E%3C/svg%3E" );
}
.ts-social-icon i {
	font-size: 20px;
	line-height: 1;
	color: var( --ts-navy ) !important;
	background: none;
	margin: 0 !important;
}
/* Strava fallback: only used if the profile script that swaps in the plain
 * logos doesn't run. BuddyBoss's icon set has no Strava logo, so this draws
 * one (navy circle, white logo). */
.ts-social-icon i.bb-icon-brand-strava,
.social-networks-wrap a i.bb-icon-brand-strava {
	display: inline-block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var( --ts-navy ) url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23FFFFFF' d='M6.731 0 2 9.125h2.788L6.73 5.497l1.93 3.628h2.766L6.731 0zm4.694 9.125-1.372 2.756L8.66 9.125H6.547L10.053 16l3.484-6.875h-2.112z'/%3E%3C/svg%3E" ) center / 11px no-repeat !important;
}
.ts-social-icon i.bb-icon-brand-strava:before,
.social-networks-wrap a i.bb-icon-brand-strava:before {
	content: none !important;
}

/* Registration form: the waiver text (field 95) scrolls in a 200px box */
.registration .field_95 p {
	overflow: auto;
	height: 200px;
}

/* Activity post form: privacy selector colors */
#whats-new-form #bp-activity-privacy-point * {
	color: var( --ts-navy );
}

/* Activity post form: hide privacy options other than Public, and media privacy */
.bp-activity-privacy__label-loggedin,
.bp-activity-privacy__label-friends,
.bp-activity-privacy__label-onlyme {
	display: none;
}
#activity-post-form-privacy > div > .bb-radio-style.bp-activity-privacy__label.bp-activity-privacy__label-public > div > div > span {
	display: none;
}
.bb-media-privacy-wrap {
	display: none;
}

/* Activity feed: custom header spacing; hide empty paragraphs */
.custom-feed-header {
	margin: 0px 0px -20px 0px;
}
.activity-inner p:empty {
	display: none;
}
/* ===== END 4. MEMBERS, PROFILES & ACTIVITY ===== */


/* ===== 5. GROUPS ===== */

/* Groups directory: "Leader" button matches Member / Organizer — navy
 * outline pill (BuddyBoss draws it as a primary button, so it needs its own
 * rule; Member and Organizer get the look from the Secondary Button colours
 * in Theme Options) */
#groups-list.bp-list .item-entry .list-wrap .group-footer-wrap .footer-button-wrap .group-button:not(.generic-button)[data-title-displayed="Leader"] {
	background-color: #fff !important;
	border-color: var( --ts-navy ) !important;
	color: var( --ts-navy ) !important;
}
#groups-list.bp-list .item-entry .list-wrap .group-footer-wrap .footer-button-wrap .group-button:not(.generic-button)[data-title-displayed="Leader"]:hover {
	background-color: var( --ts-navy-hover ) !important;
}

/* Groups directory: "Search Groups…" box in the filter row under the tabs
 * (moved there by functions.php, Section 04). Sits left of the filters on
 * desktop; gets its own full-width line on phones. */
.bp-secondary-header .ts-has-groups-search {
	flex-wrap: wrap;
	align-items: center;
}
.bp-secondary-header .ts-groups-search-moved {
	width: 260px;
	margin: 0 10px 0 0;
}
.bp-secondary-header .ts-groups-search-moved .bp-dir-search-form {
	width: 100%;
}
@media screen and (max-width: 767px) {
	.bp-secondary-header .ts-has-groups-search {
		width: 100%;
	}
	.bp-secondary-header .ts-groups-search-moved {
		width: 100%;
		margin: 0 0 10px;
	}
}

/* Group header: subscribe (bell) button as a navy outline, matching the
 * other secondary buttons; bell stays navy on hover */
.group-button .subscribed,
.group-button .not-subscribed {
	background-color: #fff !important;
	border-color: var( --ts-navy ) !important;
	color: var( --ts-navy ) !important;
}
.groups-header #cover-image-container #item-header-content .group-actions-absolute .groups-meta .group-subscription.subscribed i:before,
.groups-header #cover-image-container #item-header-content .group-actions-absolute .groups-meta .group-subscription.not-subscribed i:before,
.groups-header #cover-image-container #item-header-content .group-actions-absolute .groups-meta .group-subscription.subscribed:hover i:before,
.groups-header #cover-image-container #item-header-content .group-actions-absolute .groups-meta .group-subscription.not-subscribed:hover i:before {
	color: var( --ts-navy ) !important;
}

/* Group page: notice text size. (Sidebar width is in Section 12.) */
#custom-notice-before-posting {
	font-size: 14px;
}

/* Leader (Organizer) limits: the real blocks are in functions.php
 * (Section 04, "Leader permissions"). This only tidies what limited leaders
 * see: no promote / demote buttons, and the locked group name looks locked.
 * Site admins see everything. */
/* Manage menu: hide the screens leaders can't open */
.ts-limited-leader .bp-manage-group-container #group-settings-groups-li,
.ts-limited-leader .bp-manage-group-container #group-avatar-groups-li,
.ts-limited-leader .bp-manage-group-container #forum-groups-li,
.ts-limited-leader .bp-manage-group-container #delete-group-groups-li,
.ts-limited-leader .bp-manage-group-container #group-events-groups-li,
.ts-limited-leader .bp-manage-group-container #zoom-groups-li {
	display: none !important;
}
/* Manage › Members: no promote / demote buttons (matched by class, link
 * address or action, so it works with either BuddyBoss template) */
.ts-limited-leader #item-body [class*="promote"],
.ts-limited-leader #item-body [class*="demote"],
.ts-limited-leader #item-body a[href*="/promote/"],
.ts-limited-leader #item-body a[href*="/demote/"],
.ts-limited-leader #item-body [data-action*="promote"],
.ts-limited-leader #item-body [data-action*="demote"],
.ts-limited-leader #item-body [data-bp-btn-action*="promote"],
.ts-limited-leader #item-body [data-bp-btn-action*="demote"] {
	display: none !important;
}
/* Group Manage screens: hide BuddyBoss's explanation paragraphs (they
 * describe powers leaders no longer have). Headings and lists stay.
 * On Manage › Members the section texts are the paragraphs directly
 * inside each section (names sit inside the lists, so they stay). */
.groups.single-item #item-body .bp-help-text,
.groups.single-item .groups-manage-members-list > dd > p {
	display: none !important;
}
.ts-limited-leader #group-name[readonly] {
	background: var( --ts-gray-100 ) !important;
	color: var( --ts-gray-700 ) !important;
	cursor: not-allowed;
}
.ts-limited-leader .ts-locked-note {
	margin: 6px 0 0;
	font-size: 13px;
	color: var( --ts-gray-700 );
}

/* Google Maps (all maps on the site): hide the Map/Satellite switch */
.gm-style-mtc-bbw {
	display: none;
}

/* Group map popup and markers: in the Trail Sisters Group Map plugin. */

/* Group header social links (functions.php, Section 04): bottom right of
 * the header text area, level with the Leaders line. Very narrow phones:
 * their own line under Leaders. Icon styles are in Section 4. */
.groups-header #item-header-content {
	position: relative;
}
.ts-group-social {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
}
@media screen and (max-width: 360px) {
	.ts-group-social {
		position: static;
		margin-top: 12px;
	}
}
/* Groups directory: "No group near you? [Start a Local Group]" at the right
 * end of the All Groups / My Groups tab row, and the no-results invitation
 * (both added by functions.php, Section 04). Sun pill: the one Sun element
 * on the page. On phones the question and button drop under the tabs.
 * NOTE: the tab list must keep its full width. BuddyBoss measures it and
 * hides tabs that don't fit behind a "…" menu, so the button is laid over
 * the row's right end instead of sharing the row. */
.ts-groups-nav-row {
	position: relative;
}
.ts-start-group-wrap {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY( -50% );
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
}
.ts-start-group-q {
	font-size: 15px;
	color: var( --ts-gray-700 );
	white-space: nowrap;
}
.ts-start-group {
	display: inline-block;
	padding: 9px 20px;
	border-radius: var( --ts-radius-pill );
	background: var( --ts-sun );
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none !important;
	white-space: nowrap;
}
.ts-start-group:hover {
	background: var( --ts-sun-dark );
}
@media screen and ( max-width: 600px ) {
	.ts-start-group-wrap {
		position: static;
		transform: none;
		justify-content: space-between;
		margin-top: 12px;
	}
}
.ts-groups-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 36px 24px;
	border: 1px solid var( --ts-gray-200 );
	border-radius: var( --ts-radius-card );
	text-align: center;
}
.ts-groups-empty h3 {
	margin: 0;
	color: var( --ts-navy );
	font-size: 20px;
	font-weight: 600;
}
.ts-groups-empty p {
	margin: 0 0 8px;
	max-width: 46ch;
	color: var( --ts-gray-700 );
}
/* "Looking for a leader" card (functions.php 04): Local Groups with no
 * leader, top of the Feed and under a "Leaders" heading on the Members tab.
 * Soft Sun card + Sun "Learn More" pill (same pill as the Leaders widget). */
.ts-leader-wanted {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid #F8D9A6;
	border-radius: 12px;
	background: #FEF3E2;
	color: var( --ts-navy );
	font-size: 15px;
	line-height: 1.45;
}
.ts-leader-wanted p {
	margin: 0;
}
.ts-leader-wanted strong {
	font-weight: 600;
}
.ts-leader-wanted .ts-no-leader-btn {
	flex: 0 0 auto;
}
#group-is-inactive {
	margin-top: 20px;
}
.ts-leaders-section {
	margin: 8px 0 24px;
}
.ts-leaders-section .ts-leaders-heading {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 500;
	color: var( --ts-navy );
}
@media screen and ( max-width: 599px ) {
	.ts-leader-wanted {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ===== END 5. GROUPS ===== */


/* ===== 6. EVENTS: CALENDAR & LISTS ===== */

/* Hide event categories (Local Groups) in event lists.
 * REVIEW: this may hide the group name that functions.php (Section 07)
 * adds under each event title in List View. Check List View: if no group
 * name shows, either this rule or that code is unnecessary. */
.tribe-event-categories {
	display: none;
}

/* Phones: Month view (it was hidden here because BuddyBoss's button style
 * turned every day into a big navy pill). The day cells are buttons, so
 * they're reset to plain calendar days: day number in the middle, a small
 * Sun dot under days with events, today circled in Sun, the tapped day in
 * navy. Events for the tapped day list below the grid, as before. */
@media screen and ( max-width: 767px ) {
	.tribe-events .tribe-events-calendar-month__day-cell--mobile,
	.tribe-events .tribe-events-calendar-month__day-cell--mobile:hover,
	.tribe-events .tribe-events-calendar-month__day-cell--mobile:focus {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 4px;
		width: 100% !important;
		height: 100% !important;
		min-height: 52px;
		margin: 0 !important;
		padding: 8px 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		color: var( --ts-gray-900 ) !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1 !important;
		text-transform: none !important;
	}
	.tribe-events .tribe-events-calendar-month__day-cell--mobile .tribe-events-calendar-month__day-date {
		display: grid;
		place-items: center;
		width: 32px;
		height: 32px;
		margin: 0;
		border-radius: 50%;
		color: inherit;
		font-size: 15px;
		font-weight: 500;
	}
	.tribe-events .tribe-events-calendar-month__day-cell--mobile .tribe-events-calendar-month__day-date-daynum {
		color: inherit;
		font-size: inherit;
		font-weight: inherit;
	}
	/* Today: circled in Sun */
	.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-cell--mobile .tribe-events-calendar-month__day-date {
		box-shadow: inset 0 0 0 2px var( --ts-sun );
		font-weight: 700;
	}
	/* Tapped day: navy circle, white number */
	.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date {
		background: var( --ts-navy );
		color: #fff;
		box-shadow: none;
	}
	/* Days from the previous / next month */
	.tribe-events .tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__day-cell--mobile {
		color: var( --ts-gray-500 ) !important;
	}
	/* Days with events: small Sun dot */
	.tribe-events .tribe-events-calendar-month__mobile-events-icon {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background-color: var( --ts-sun ) !important;
	}
	/* Days-of-week row: small slate letters, no boxes */
	.tribe-events .tribe-events-calendar-month__header-column {
		border: 0 !important;
		color: var( --ts-gray-700 ) !important;
	}
	.tribe-events .tribe-events-calendar-month__header-column-title-mobile,
	.tribe-events .tribe-events-calendar-month__header-column-title {
		color: var( --ts-gray-700 ) !important;
		font-size: 12px;
		font-weight: 600;
	}
}

/* Subscribe menu */
/* (The two one-time .ics download options are removed by functions.php,
 * Section 05, not hidden here.) */

/* Event series pages: hide the top content and the subscribe menu */
.tribe_event_series-template-default .tribe-events-before-html {
	display: none;
}
.tribe_event_series-template-default .tribe-events-c-subscribe-dropdown__container {
	display: none;
}
/* ===== END 6. EVENTS: CALENDAR & LISTS ===== */


/* ===== 7. EVENTS: GROUP EVENTS TAB =====
 * The Events tab on a group page (added by the Trail Sisters Events plugin,
 * Event Page module, since Nov 21 2026; was functions.php Section 07).
 */

/* Events tab button (link ID "evnttab") and content area (.ts-group-events) */
#evnttab {
	background-color: var( --ts-navy ) !important;
	color: #fff !important;
	border-radius: 50px !important;
	padding: 3px 20px !important;
	margin-top: 18px;
	box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%) !important;
	margin-right: -10px !important;
}
.ts-group-events {
	padding-left: 0;
	padding-right: 0;
	border-style: none;
	margin-left: -20px;
	margin-right: -20px;
}
.in-bbapp .ts-group-events {
	padding: 0;
	border: none;
}
.bb-tribe-events-views-v2 .tribe-events .tribe-events-header {
	margin-right: 20px;
}

/* Calendar bar: date picker, previous/next, and view selector fixes */
body.single-item.groups.events .tribe-events .tribe-events-c-top-bar__datepicker-button {
	display: flex !important;
	background: none !important;
}
body.single-item.groups.events .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar__nav {
	margin-bottom: 0;
}
body.single-item.groups.events .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar__nav li svg {
	vertical-align: middle;
}
body.single-item.groups.events .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar__nav li .tribe-events-c-top-bar__nav-link--next {
	margin-bottom: 1px;
}
body.single-item.groups.events .tribe-events .tribe-events-header__events-bar .tribe-events-c-view-selector__button {
	background: none !important;
	border-radius: 0 !important;
	border: none !important;
}

/* Visited event links stay black */
body.single-item.groups.events .tribe-common a:not(.tribe-common-anchor--unstyle):visited {
	color: black;
}
/* ===== END 7. EVENTS: GROUP EVENTS TAB ===== */


/* ===== 8. EVENTS: SINGLE EVENT PAGES ===== */

/* Hide the event footer (previous/next event links) */
.single-tribe_events #tribe-events-footer {
	display: none !important;
}

/* Hide the date-and-cost line in the event heading */
.single-tribe_events .bs-event-heading .tribe-event-schedule-long .tribe-events-schedule {
	display: none;
}

/* Single Event Sidebar widget area: plain list, no bullets or padding.
 * (Its width and position are in Section 12.) */
body.single-tribe_events #single-event-sidebar {
	margin: 0;
	padding: 0;
	list-style: none;
}
body.single-tribe_events #single-event-sidebar li {
	list-style-type: none;
}

/* Featured image and venue map */
.bs-single-body .tribe-events-event-image {
	padding: 0px;
}
.bs-single-body .tribe-events-event-image img {
	position: relative;
}
@media (min-width: 768px) {
	.tribe-events-venue-map>div,
	.tribe-events-venue-map>iframe {
		max-height: 400px;
	}
}

/* "Back to Local Group" button: small outline pill */
.tribe-events-before-html .sidebar_fw_button {
	display: inline-block;
	background-color: #fff;
	border: 1px solid var( --ts-navy );
	border-radius: var( --ts-radius-pill );
	padding: 5px 15px;
	font-size: 14px;
	font-weight: 600;
}
.tribe-events-before-html .sidebar_fw_button a {
	color: var( --ts-navy );
}
.tribe-events-before-html {
	margin-bottom: 10px;
}

/* "Copy to clipboard" button: icon size and the Copy/Copied! label swap */
.rkwo-copy-this {
	text-align: left;
	width: auto;
	position: relative;
}
.rkwo-copy-this svg {
	width: 14px;
	height: auto;
	display: inline-block;
	vertical-align: middle;
	margin-right: 10px;
}
.rkwo-copy-this button > span.rkwo-copy-this-alt-alt,
.rkwo-copy-this button.rkwo-copy-this-alt > span:not(.rkwo-copy-this-alt-alt) {
	display: none;
}
.rkwo-copy-this button.rkwo-copy-this-alt > span.rkwo-copy-this-alt-alt {
	display: inline-block;
}

/* RSVP and attendee list: avatars with teal name labels; hide the
 * "show me on the list" toggle and opt-out (functions.php turns it on) */
body.single-tribe_events .bs-single-pri-meta .tribe-attendees-list-container {
	padding: 35px 35px 0 35px;
}
body.single-tribe_events .tribe_events .bs-single-pri-meta .tribe-link-view-attendee + #rsvp-now.event-tickets .tribe-common-g-row--gutters>.tribe-common-g-col:last-of-type {
	display: none;
}
body.single-tribe_events #rsvp-now .tribe-common-form-control-toggle {
	display: none;
}
ul.tribe-attendees-list li.tribe-attendees-list-item {
	padding: 5px;
}
ul.tribe-attendees-list li.tribe-attendees-list-item > a {
	text-align: center;
}
ul.tribe-attendees-list li.tribe-attendees-list-item > a > img {
	margin: 0 auto;
}
ul.tribe-attendees-list li.tribe-attendees-list-item > a > span {
	text-align: center;
	display: block;
	margin-top: 5px;
	background-color: var( --ts-navy );
	color: #FFFFFF;
	border-radius: var( --ts-radius-badge );
	padding: 5px 10px;
	font-size: 13px;
	line-height: 1.2;
}
body.single-tribe_events .tribe-tickets__tickets-page-wrapper .tribe-rsvp .user-details .tribe-tickets-attendees-list-optout {
	display: none;
}

/* Show only ONE "Who's Attending" list: the one from functions.php (Section 08,
 * class "ts-attendees-list"). Event Tickets Plus still adds its own copy on some
 * older events; this hides it. */
/* DISABLED Nov 9 2026: this hid Trail Sisters Event Series' attendee list (the functions.php
 * list it kept is turned off). To restore, uncomment the rule below.
.single-tribe_events .tribe-attendees-list-container:not(.ts-attendees-list) {
	display: none;
}
*/

/* Attendee list icons (from the child theme's event templates) */
body.single-tribe_events a.custom-rsvp-attendee-list-item {
	position: relative;
}
body.single-tribe_events a.custom-rsvp-attendee-list-item > i.bb-icon-l {
	position: absolute;
	top: 30px;
	right: 20px;
	background-color: var( --ts-orange );
	padding: 5px;
	line-height: 1;
	border-radius: 100%;
	font-size: .75em;
}
span.custom-rsvp-attendee-list-icon-only {
	position: relative;
	top: -2px;
}
span.custom-rsvp-attendee-list-icon-only > i.bb-icon-l {
	background-color: var( --ts-orange );
	padding: 5px;
	line-height: 1;
	border-radius: 100%;
	font-size: .75em;
	display: inline-block;
	vertical-align: middle;
}

/* Waiver information box */
body.single-tribe_events .custom-rsvp-waiver-key-information {
	padding: 10px 15px;
	border-radius: var( --ts-radius-input );
	background-color: var( --ts-gray-100 );
	text-align: center;
}
body.single-tribe_events .custom-rsvp-waiver-key-information span,
body.single-tribe_events .custom-rsvp-waiver-key-information p {
	display: inline-block;
	vertical-align: middle;
}
body.single-tribe_events .custom-rsvp-waiver-key-information p {
	font-size: 14px;
}
body.single-tribe_events .custom-rsvp-waiver-key-information p:last-of-type {
	margin-bottom: 0;
}
/* ===== END 8. EVENTS: SINGLE EVENT PAGES ===== */


/* ===== 9. EVENTS: COMMUNITY SUBMISSION FORM =====
 * The front-end form leaders use to add and edit events (functions.php, Section 06).
 */

/* "Add Event" button */
.custom-add-event-button a {
	background: var( --ts-navy );
	color: white;
	padding: 10px;
	border-radius: 50px;
}

/* Simplified RSVP: hide Event Tickets' full RSVP panel so only the
 * "Allow members to RSVP" checkbox shows */
#tribetickets #tribe_panel_base.ticket_panel.panel_base {
	display: none;
}
#tribetickets .tribe-section-content .rkwo__custom-rsvp-notice {
	display: none;
}
#tribetickets .tribe-section-content #tribe_panel_edit {
	display: none !important;
}
#tribetickets .tribe-section-content .rkwo__custom-rsvp-check-checked-message {
	display: none;
}
#tribetickets .tribe-section-content .rkwo__custom-rsvp-check:checked + label + .rkwo__custom-rsvp-check-checked-message {
	display: block;
}

/* Edit Event page: hide the RSVP section entirely */
.community-edit-page #tribetickets {
	display: none;
}

/* Description editor: hide the Visual/Text tabs.
 * NOTE: .wp-editor-tabs applies to every front-end editor, not just this form. */
.wp-editor-tabs {
	display: none;
}
#wp-tcepostcontent-editor-container {
	margin-top: 30px;
}
/* ===== END 9. EVENTS: COMMUNITY SUBMISSION FORM ===== */


/* ===== 10. LEADER ATTENDEE REPORT (FRONT-END) =====
 * Simplifies the event Attendees report when leaders view it on the front end
 * (wp_router_page). Most rules start from the attendee form's ID
 * (#event-tickets__attendees-admin-form) or the summary panel's ID
 * (#tribe-attendees-summary); the ID is what lets them win over Event
 * Tickets' and WordPress's own table styles, so keep it on new rules.
 * REVIEW: spot-check this report after Event Tickets updates.
 */

/* Form spacing */
.single-wp_router_page #event-tickets__attendees-admin-form {
	margin-top: 25px;
}

/* Hide: search-type dropdown, bottom bulk actions, Print and Email buttons,
 * and the check-in bulk options */
.single-wp_router_page #event-tickets__attendees-admin-form select[name="tribe_attendee_search_type"],
.single-wp_router_page #event-tickets__attendees-admin-form .tablenav.bottom .bulkactions,
.single-wp_router_page #event-tickets__attendees-admin-form .tablenav.bottom .attendees-actions,
.single-wp_router_page #event-tickets__attendees-admin-form .attendees-actions .print.action,
.single-wp_router_page #event-tickets__attendees-admin-form .attendees-actions .email.action,
.single-wp_router_page #event-tickets__attendees-admin-form #bulk-action-selector-top option[value="check_in"],
.single-wp_router_page #event-tickets__attendees-admin-form #bulk-action-selector-top option[value="uncheck_in"] {
	display: none;
}

/* Hide columns: ticket, details, security code, check-in */
.single-wp_router_page #event-tickets__attendees-admin-form .column-ticket,
.single-wp_router_page #event-tickets__attendees-admin-form .column-meta_details,
.single-wp_router_page #event-tickets__attendees-admin-form .column-security,
.single-wp_router_page #event-tickets__attendees-admin-form .column-check_in {
	display: none;
}

/* Top action buttons: Export flush right; brand button color */
.single-wp_router_page #event-tickets__attendees-admin-form .tablenav.top .attendees-actions {
	padding-right: 0 !important;
}
.single-wp_router_page #event-tickets__attendees-admin-form .attendees-actions .export.action {
	margin-right: 0;
}
.single-wp_router_page #event-tickets__attendees-admin-form .button {
	background-color: var( --ts-navy );
	border-color: var( --ts-navy );
}

/* Summary panel: hide the last column and the first bold label in the
 * middle column; remove list indent */
#tribe-attendees-summary .welcome-panel-column.welcome-panel-last.alternate {
	display: none;
}
.single-wp_router_page #tribe-attendees-summary .welcome-panel-middle h3 + ul > li:first-of-type > strong:first-of-type {
	display: none;
}
.single-wp_router_page #tribe-attendees-summary .welcome-panel-column h3 + ul {
	margin-left: 0;
}

/* Rows: hide row action links (all rows); checkbox column colors; name and
 * email side by side; row text color */
.single-wp_router_page #event-tickets__attendees-admin-form #the-list .row-actions {
	display: none;
}
.single-wp_router_page #event-tickets__attendees-admin-form #the-list .check-column {
	background-color: #f8f8f8;
}
.single-wp_router_page #event-tickets__attendees-admin-form thead .check-column,
.single-wp_router_page #event-tickets__attendees-admin-form tfoot .check-column {
	background-color: transparent;
}
.single-wp_router_page #event-tickets__attendees-admin-form .column-primary_info > .purchaser_name,
.single-wp_router_page #event-tickets__attendees-admin-form .column-primary_info > .purchaser_email {
	display: inline-block;
	vertical-align: middle;
}
.single-wp_router_page #event-tickets__attendees-admin-form .column-primary_info > .purchaser_email {
	color: #999999;
	font-style: italic;
}
.single-wp_router_page #event-tickets__attendees-admin-form #the-list > .yes,
.single-wp_router_page #event-tickets__attendees-admin-form #the-list > .no {
	color: #122B46;
}

/* Tablets and phones: keep Name and Status as normal columns; small phones:
 * space under the search box */
@media only screen and ( max-width: 782px ) {
	.single-wp_router_page #event-tickets__attendees-admin-form .column-primary_info,
	.single-wp_router_page #event-tickets__attendees-admin-form .column-status {
		display: table-cell;
	}
	.single-wp_router_page #event-tickets__attendees-admin-form #the-list .column-primary_info:before,
	.single-wp_router_page #event-tickets__attendees-admin-form #the-list .column-status:before {
		display: none;
	}
	.single-wp_router_page #event-tickets__attendees-admin-form #the-list .column-primary_info,
	.single-wp_router_page #event-tickets__attendees-admin-form #the-list .column-status {
		padding-left: 16px;
	}
}
@media only screen and ( max-width: 445px ) {
	.single-wp_router_page #event-tickets__attendees-admin-form #attendees-search-search-input {
		margin-bottom: 10px;
	}
}
/* ===== END 10. LEADER ATTENDEE REPORT (FRONT-END) ===== */


/* ===== 11. STYLE GUIDE COMPONENTS =====
 * Makes Events Calendar, Event Tickets and BuddyBoss pieces follow the style
 * guide: https://claude.ai/artifact/PXcXxvTDmxWHhQTRi9fHUk
 * Buttons are pills in one colour each; badges are rounded rectangles;
 * cards 12px corners; inputs 8px corners; event dates use Sun.
 */

/* --- Buttons --- */

/* Primary (navy): Submit Event, comment "Publish" */
#tribe-community-events .events-community-submit,
#commentform input#submit {
	background: var( --ts-navy ) !important;
	border: 1px solid var( --ts-navy ) !important;
	border-radius: var( --ts-radius-pill ) !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 11px 24px;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
#tribe-community-events .events-community-submit:hover,
#commentform input#submit:hover {
	background: var( --ts-navy-dark ) !important;
	border-color: var( --ts-navy-dark ) !important;
}

/* Outline (navy): View Your Submitted Events, Choose Image, Add another
 * location/leader, Schedule multiple events */
#tribe-community-events .tribe-button-secondary,
#tribe-community-events #tribe-add-exclusion {
	display: inline-block;
	background: #fff !important;
	border: 1px solid var( --ts-navy ) !important;
	border-radius: var( --ts-radius-pill ) !important;
	color: var( --ts-navy ) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	padding: 8px 18px;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}
#tribe-community-events .tribe-button-secondary:hover,
#tribe-community-events #tribe-add-exclusion:hover {
	background: var( --ts-navy-hover ) !important;
}

/* Sun: RSVP "Going" */
#rsvp-now .tribe-tickets__rsvp-actions-button-going {
	background: var( --ts-sun ) !important;
	border: 2px solid var( --ts-sun ) !important;
	border-radius: var( --ts-radius-pill ) !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	padding: 11px 28px;
	width: auto;
}
#rsvp-now .tribe-tickets__rsvp-actions-button-going:hover {
	background: var( --ts-sun-dark ) !important;
	border-color: var( --ts-sun-dark ) !important;
}

/* Outline: "Add to calendar" and "Copy to clipboard" */
.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
	border: 1px solid var( --ts-navy ) !important;
	border-radius: var( --ts-radius-pill ) !important;
	background: #fff !important;
	color: var( --ts-navy ) !important;
}
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button:focus-within {
	background: var( --ts-navy-hover ) !important;
}
.single-tribe_events .tribe-events-c-subscribe-dropdown__button button,
.single-tribe_events .tribe-events-c-subscribe-dropdown__button svg {
	color: var( --ts-navy ) !important;
	font-weight: 600;
}

/* --- Badges: rounded rectangles --- */
.bp-member-type,
.bp-group-type {
	display: inline-block;
	border-radius: var( --ts-radius-badge ) !important;
	font-size: 12px !important;
	font-weight: 600;
	line-height: 1.2;
	padding: 4px 8px !important;
}
/* Leaders get the one solid navy badge.
   NOTE: the profile type's slug is "group-leader" on live and
   "local-group-leader" on Test Site, so both are listed. */
.bp-member-type.bb-current-member-group-leader,
.bp-member-type.bb-current-member-local-group-leader {
	background-color: var( --ts-navy ) !important;
	color: #fff !important;
}

/* --- Event dates: Sun month label, navy day number --- */
.single-tribe_events .bs-schedule-short-m {
	color: var( --ts-sun ) !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.single-tribe_events .bs-schedule-short-d {
	color: var( --ts-navy ) !important;
	font-weight: 700;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday,
.tribe-events .tribe-events-widget-events-list__event-date-tag-month,
.tribe-common .tribe-events-widget-events-list__event-date-tag-month {
	color: var( --ts-sun ) !important;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum,
.tribe-common .tribe-events-widget-events-list__event-date-tag-daynum {
	color: var( --ts-navy ) !important;
	font-weight: 700;
}

/* --- RSVP box: a card --- */
#rsvp-now .tribe-tickets__rsvp {
	background: #fff;
	border: 1px solid var( --ts-gray-200 ) !important;
	border-radius: var( --ts-radius-card ) !important;
	padding: 20px;
}
#rsvp-now .tribe-tickets__rsvp-title {
	color: var( --ts-navy );
	font-size: 20px;
	font-weight: 600;
}
#rsvp-now .tribe-tickets__rsvp-attendance-going,
#rsvp-now .tribe-tickets__rsvp-availability {
	color: var( --ts-gray-700 );
	font-size: 14px;
}
#rsvp-now .tribe-tickets__rsvp-attendance-number {
	color: var( --ts-navy );
}

/* --- Add Event form --- */

/* Header: title and "View Your Submitted Events" wrap neatly on phones */
#tribe-community-events .my-events-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}
#tribe-community-events .my-events-header h2 {
	margin: 0;
	color: var( --ts-navy );
}

/* Each section is a card with a plain heading (no box, no capitals) */
#tribe-community-events .tribe-section {
	background: #fff;
	border: 1px solid var( --ts-gray-200 );
	border-radius: var( --ts-radius-card );
	padding: 20px;
	margin: 0 0 20px;
}
#tribe-community-events .tribe-section-header {
	background: none !important;
	border: 0 !important;
	border-bottom: 1px solid var( --ts-gray-200 ) !important;
	padding: 0 0 10px !important;
	margin: 0 0 16px !important;
}
#tribe-community-events .tribe-section-header h3 {
	color: var( --ts-navy );
	font-size: 18px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	display: inline;
	margin: 0;
}
#tribe-community-events .tribe-section-header .req {
	margin-left: 6px;
}

/* Labels: sentence case, semi-bold; "(required)" in red */
#tribe-community-events label,
#tribe-community-events .tribe-section-content-label,
#tribe-community-events .recurrence-exclusions-header {
	color: var( --ts-gray-900 );
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}
#tribe-community-events .req {
	color: var( --ts-red );
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
}
#tribe-community-events .note,
#tribe-community-events .tribe_soft_note,
#tribe-community-events .description {
	color: var( --ts-gray-700 );
	font-size: 14px;
}

/* Inputs */
#tribe-community-events input[type="text"],
#tribe-community-events input[type="number"],
#tribe-community-events input[type="url"],
#tribe-community-events input[type="email"],
#tribe-community-events textarea,
#tribe-community-events select,
#tribe-community-events .select2-container .select2-selection,
#tribe-community-events .wp-editor-container {
	border: 1px solid var( --ts-gray-300 ) !important;
	border-radius: var( --ts-radius-input ) !important;
	background-color: #fff;
	color: var( --ts-gray-900 );
	font-size: 16px;
	box-shadow: none;
}
#tribe-community-events input[type="text"],
#tribe-community-events input[type="number"],
#tribe-community-events input[type="url"],
#tribe-community-events input[type="email"] {
	padding: 9px 12px;
	min-height: 42px;
}
#tribe-community-events .wp-editor-container {
	overflow: hidden;
}
/* Local group picker: one box, not a box inside a box (the typing field
 * inside the picker shouldn't have its own border) */
#tribe-community-events .select2-search__field,
#tribe-community-events .select2-search--inline,
#tribe-community-events .select2-selection__rendered {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	min-height: 0 !important;
	margin: 0 !important;
	outline: none !important;
}
#tribe-community-events .select2-container--default .select2-selection--multiple {
	min-height: 42px;
	padding: 4px 8px !important;
}
#tribe-community-events .select2-container .select2-selection--multiple .select2-search__field {
	padding: 6px 4px !important;
	height: auto !important;
}
/* The typing field inside the group picker: no border of its own. Needs
 * this many classes to outrank the general input rule above it. */
#tribe-community-events .select2-container .select2-selection--multiple input.select2-search__field,
#tribe-community-events .select2-container .select2-selection--multiple input.select2-search__field:focus {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
	min-height: 0 !important;
}
#tribe-community-events .select2-container--focus .select2-selection--multiple {
	border-color: var( --ts-navy ) !important;
}

/* The form uses select2 3.5 (class names .select2-choices,
 * .select2-search-field, .select2-input): the outer box gets our input
 * style, the typing field inside it has no border of its own */
#tribe-community-events .select2-container,
#tribe-community-events .select2-container-multi {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
}
#tribe-community-events .select2-container-multi .select2-choices {
	min-height: 42px;
	padding: 4px 8px !important;
	border: 1px solid var( --ts-gray-300 ) !important;
	border-radius: var( --ts-radius-input ) !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
}
#tribe-community-events .select2-container-multi.select2-container-active .select2-choices {
	border-color: var( --ts-navy ) !important;
}
#tribe-community-events .select2-container-multi .select2-choices .select2-search-field input,
#tribe-community-events .select2-container-multi .select2-choices .select2-search-field input.select2-input {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	min-height: 32px !important;
	margin: 0 !important;
	padding: 4px !important;
	outline: none !important;
}
#tribe-community-events .select2-container-multi .select2-choices .select2-search-choice {
	border: 0 !important;
	border-radius: var( --ts-radius-badge ) !important;
	background: var( --ts-navy-tint ) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var( --ts-navy ) !important;
	font-size: 14px;
}

/* Checkbox labels (e.g. "Allow members to RSVP to this event.") in
 * regular weight; field labels stay semi-bold */
#tribe-community-events label:has( input[type="checkbox"] ),
#tribe-community-events input[type="checkbox"] + label,
#tribe-community-events input[type="checkbox"] ~ label {
	font-weight: 400 !important;
}

#tribe-community-events input:focus,
#tribe-community-events textarea:focus,
#tribe-community-events .select2-container--focus .select2-selection {
	border-color: var( --ts-navy ) !important;
	outline: 2px solid var( --ts-navy-tint );
	outline-offset: 0;
}
#tribe-community-events .events-community-post-title,
#tribe-community-events .events-community-post-content {
	margin-bottom: 20px;
}
#tribe-community-events .events-community-post-title label,
#tribe-community-events .events-community-post-content label {
	display: block;
	margin-bottom: 6px;
}
#tribe-community-events .events-community-post-title input {
	width: 100%;
}

/* Footer: Submit button on the right, with room above it */
#tribe-community-events .tribe-events-community-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

/* --- Members directory on phones: the member search sits above the
 * "N Members" row as a search bar ("Search members", magnifier on the left,
 * arrow on the right); tap to open the fields. functions.php (Section 03)
 * moves it there, renames it, and toggles .is-open. --- */
@media screen and ( max-width: 799px ) {
	.ts-filter-moved.directory.members #secondary {
		display: none !important;
	}
	#bp-profile-search-form-outer.ts-filter-toggle {
		margin: 0 0 16px !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: none !important;
		box-shadow: none !important;
	}
	.ts-filter-toggle .bps-form-title {
		display: flex !important;
		align-items: center;
		margin: 0 !important;
		padding: 11px 14px 11px 44px !important;
		border: 1px solid var( --ts-gray-300 ) !important;
		border-radius: var( --ts-radius-input ) !important;
		background: #fff url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B6B78' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E" ) no-repeat 14px center / 18px 18px !important;
		color: var( --ts-gray-700 ) !important;
		font-size: 16px !important;
		font-weight: 400 !important;
		line-height: 1.4 !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		cursor: pointer;
	}
	.ts-filter-toggle .bps-form-title::before {
		display: none !important;
	}
	.ts-filter-toggle .bps-form-title::after {
		content: "" !important;
		display: block !important;
		position: static !important;
		width: 16px !important;
		height: 16px !important;
		margin: 0 0 0 auto !important;
		border: 0 !important;
		background: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E3D4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E" ) no-repeat center / 16px 16px !important;
		transform: none;
		transition: transform .15s;
	}
	.ts-filter-toggle.is-open .bps-form-title {
		border-color: var( --ts-navy ) !important;
		border-radius: var( --ts-radius-input ) var( --ts-radius-input ) 0 0 !important;
		color: var( --ts-navy ) !important;
	}
	.ts-filter-toggle.is-open .bps-form-title::after {
		transform: rotate( 180deg );
	}
	.ts-filter-toggle:not( .is-open ) .bps-form {
		display: none;
	}
	/* Open panel and its fields stay inside the screen (padding and borders
	 * count inside each width; fields never wider than the panel) */
	#bp-profile-search-form-outer.ts-filter-toggle,
	#bp-profile-search-form-outer.ts-filter-toggle * {
		box-sizing: border-box !important;
		max-width: 100% !important;
	}
	#bp-profile-search-form-outer.ts-filter-toggle {
		width: 100% !important;
		min-width: 0 !important;
	}
	.ts-filter-toggle .bps-form input,
	.ts-filter-toggle .bps-form select,
	.ts-filter-toggle .bps-form .bp-field-wrap,
	.ts-filter-toggle .bps-form .submit-wrapper,
	.ts-filter-toggle .bps-form button {
		width: 100% !important;
		min-width: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.ts-filter-toggle.is-open .bps-form {
		width: 100% !important;
		margin: 0 !important;
		padding: 16px !important;
		border: 1px solid var( --ts-navy );
		border-top: 0;
		border-radius: 0 0 var( --ts-radius-input ) var( --ts-radius-input );
	}
	/* The 15px gap under the bar was BuddyBoss's margin on the title;
	 * the ID makes this rule win */
	#bp-profile-search-form-outer.ts-filter-toggle .bps-form-title {
		margin: 0 !important;
	}
	/* Open: bar and panel join into one box (no gap, square corners at the
	 * seam) */
	.ts-filter-toggle.is-open .bps-form-title {
		border-bottom-color: var( --ts-gray-200 ) !important;
	}
	/* No blue browser focus ring after a tap; keyboard users get navy */
	.ts-filter-toggle .bps-form-title:focus {
		outline: none !important;
		box-shadow: none !important;
	}
	.ts-filter-toggle .bps-form-title:focus-visible {
		outline: 2px solid var( --ts-navy ) !important;
		outline-offset: 2px;
	}
}
/* --- Activity feed: post topic filter (All / New Article / … / More) ---
 * Same family as the main menu: 8px boxes, navy-tinted greys.
 * Unselected light grey, hover a shade deeper, selected navy with white text.
 * BuddyBoss marks the chosen topic with a class (selected/active); when no
 * topic is chosen, "All" (the first item) shows as selected. */
.activity-topic-selector ul > li > a,
.activity-topic-selector ul > li > button {
	background: var( --ts-gray-100 ) !important;
	border: 1px solid transparent !important;
	border-radius: var( --ts-radius-input ) !important;
	color: var( --ts-gray-900 ) !important;
	font-weight: 400;
	box-shadow: none !important;
	transition: background-color .15s;
}
.activity-topic-selector ul > li > a:hover,
.activity-topic-selector ul > li > button:hover {
	background: #e9eeef !important;
	color: var( --ts-navy ) !important;
}
.activity-topic-selector ul > li.selected > a,
.activity-topic-selector ul > li.active > a,
.activity-topic-selector ul > li > a.selected,
.activity-topic-selector ul > li > a.active,
.activity-topic-selector ul > li > a[aria-current],
.activity-topic-selector ul:not( :has( .selected, .active, [aria-current] ) ) > li:first-child > a {
	background: var( --ts-navy ) !important;
	border-color: var( --ts-navy ) !important;
	color: #fff !important;
}

/* --- My Events (/events/community/list/) — where leaders view, edit
 * and delete their events. Matches the Add Event form and style guide. --- */
.tribe-community-events-content .tribe-community-events-list-title {
	color: var( --ts-navy );
	font-size: 24px;
	font-weight: 700;
	text-transform: none;
}
/* "Add New": Sun pill (an action we want taken) */
.tribe-community-events-content a.add-new.tribe-button {
	display: inline-block;
	padding: 8px 18px !important;
	border: 0 !important;
	border-radius: var( --ts-radius-pill ) !important;
	background: var( --ts-sun ) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
}
.tribe-community-events-content a.add-new.tribe-button:hover {
	background: var( --ts-sun-dark ) !important;
}
/* Search box: our input style */
.tribe-community-events-content .tribe-event-list-search input[type="search"] {
	border: 1px solid var( --ts-gray-300 ) !important;
	border-radius: var( --ts-radius-input ) !important;
	background-color: #fff;
	color: var( --ts-gray-900 );
	font-size: 15px;
	box-shadow: none !important;
}
.tribe-community-events-content .tribe-event-list-search input[type="search"]:focus {
	border-color: var( --ts-navy ) !important;
	outline: 2px solid var( --ts-navy-tint );
}
/* Upcoming / Past / Display Option: pills, normal case. The selected
 * list (BuddyBoss/TEC marks it "secondary") is navy; the others outline */
.tribe-community-events-content .tribe-nav .tribe-button {
	display: inline-block;
	padding: 7px 16px !important;
	border: 1px solid var( --ts-navy ) !important;
	border-radius: var( --ts-radius-pill ) !important;
	background: #fff !important;
	color: var( --ts-navy ) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
}
.tribe-community-events-content .tribe-nav .tribe-button:hover {
	background: var( --ts-navy-hover ) !important;
}
.tribe-community-events-content .my-events-display-options .tribe-button-secondary,
.tribe-community-events-content .my-events-display-options .tribe-button-secondary:hover {
	background: var( --ts-navy ) !important;
	color: #fff !important;
}
/* Display Option: room on the right for its arrow */
.tribe-community-events-content .tribe-nav .table-menu-btn {
	position: relative;
	padding-right: 36px !important;
}
.tribe-community-events-content .tribe-nav .table-menu-btn::after,
.tribe-community-events-content .tribe-nav .table-menu-btn::before {
	right: 14px !important;
	left: auto !important;
}
.tribe-community-events-content .my-events-display-options {
	display: inline-flex;
	gap: 8px;
}
.tribe-community-events-content .table-menu {
	border: 1px solid var( --ts-gray-200 ) !important;
	border-radius: var( --ts-radius-input ) !important;
	box-shadow: 0 8px 24px rgba( 14, 61, 79, .12 ) !important;
}
.tribe-community-events-content .table-menu label {
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
}
/* The table: a card with small grey column headings */
.tribe-community-events-content .tribe-responsive-table-container {
	border: 1px solid var( --ts-gray-200 );
	border-radius: var( --ts-radius-card );
	overflow: hidden;
}
#tribe-community-events-list {
	border: 0 !important;
	margin: 0 !important;
}
#tribe-community-events-list th {
	background: var( --ts-gray-50 ) !important;
	border: 0 !important;
	border-bottom: 1px solid var( --ts-gray-200 ) !important;
	color: var( --ts-gray-700 ) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 12px 14px !important;
	white-space: nowrap;
}
#tribe-community-events-list td {
	background: #fff !important;
	border: 0 !important;
	border-bottom: 1px solid var( --ts-gray-200 ) !important;
	color: var( --ts-gray-900 );
	font-size: 15px;
	padding: 16px 14px !important;
	vertical-align: top;
}
#tribe-community-events-list tbody tr:last-child td {
	border-bottom: 0 !important;
}
#tribe-community-events-list .tribe-list-column-title .title a {
	color: var( --ts-navy );
	font-weight: 600;
}
#tribe-community-events-list .row-actions {
	margin-top: 4px;
	color: var( --ts-gray-500 );
	font-size: 14px;
}
#tribe-community-events-list .row-actions a {
	color: var( --ts-navy );
}
#tribe-community-events-list .row-actions a.submitdelete {
	color: var( --ts-red );
}
#tribe-community-events-list .row-actions strong {
	color: var( --ts-gray-700 );
	font-weight: 600;
}

/* ===== END 11. STYLE GUIDE COMPONENTS ===== */



/* ===== 12. PAGE LAYOUTS =====
 * Every page uses one of these layouts, inside one 1400px frame (1336px of
 * content after 32px padding each side). Header, content and footer all
 * line up on the same edges; header and footer backgrounds still run edge
 * to edge.
 *
 *   Two sidebars (home feed):    280 | 48 | feed 680 | 48 | 280
 *   One sidebar (single group, single event, Members, profiles):
 *                                main fills | 48 | sidebar 340 (always right)
 *   No sidebar (Groups directory, Events month/photo): full 1336
 *   Events list:                 one 960px column, centred
 *   Text pages (About, Documentation, Waiver…): one 760px column, centred
 *
 * 1024–1279px (tablets in landscape, small laptops): same layouts, except
 *   the home feed stacks both sidebars in one 260px left column.
 * Under 1024px (phones, tablets upright): BuddyBoss's own stacking,
 *   sidebars under the content. Nothing in this section applies there
 *   except the 1400px cap and the text-page column.
 */

/* --- The frame --- */
#masthead > .container,
#content > .container,
.footer-widget-area > .container,
.footer-bottom .container {
	max-width: 1400px !important;
}
@media screen and ( min-width: 1024px ) {
	#masthead > .container,
	#content > .container,
	.footer-widget-area > .container,
	.footer-bottom .container {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
}

@media screen and ( min-width: 1024px ) {

	/* --- Page grid: content and sidebars side by side, 48px apart --- */
	/* Columns stay full height (stretch) so sticky sidebars have room to
	 * stick while the page scrolls */
	.site-content-grid {
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 48px;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.site-content-grid > * {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.site-content-grid > #primary,
	.site-content-grid > section,
	.site-content-grid > .tribe-events {
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0;
	}

	/* --- One sidebar: 340px on the right (Members, profiles…) --- */
	.site-content-grid > .widget-area {
		flex: 0 0 340px !important;
		width: 340px !important;
		max-width: 340px !important;
		min-width: 0 !important;
	}

	/* --- Two sidebars (home feed): left 280, feed 680, right 280 --- */
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) {
		justify-content: space-between;
	}
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) > .sidebar-left {
		order: 0;
		flex: 0 0 280px !important;
		width: 280px !important;
		max-width: 280px !important;
	}
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) > #primary {
		order: 1;
		flex: 0 1 680px !important;
	}
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) > .sidebar-right {
		order: 2;
		flex: 0 0 280px !important;
		width: 280px !important;
		max-width: 280px !important;
	}

	/* --- Single group: feed/tabs content + 340px sidebar, inside the same
	 * edges as the group header --- */
	.bb-profile-grid.bb-grid {
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		gap: 48px;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.bb-profile-grid > #item-body {
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.bb-profile-grid > #item-body {
		order: 1;
	}
	/* Group sidebar always on the right (BuddyBoss puts it on the left) */
	.bb-profile-grid > #group-activity {
		order: 2;
		flex: 0 0 340px !important;
		width: 340px !important;
		max-width: 340px !important;
		min-width: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* --- Single event: "Back to Local Group" across the top; event on the
	 * left; Single Event Sidebar (340px) on the right; comments under the
	 * event --- */
	body.single-tribe_events #tribe-events-pg-template {
		display: grid !important;
		grid-template-columns: minmax( 0, 1fr ) 340px;
		column-gap: 48px;
		align-items: start;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	body.single-tribe_events #tribe-events-pg-template > * {
		grid-column: 1;
		min-width: 0;
	}
	body.single-tribe_events #tribe-events-pg-template > .tribe-events-before-html {
		grid-column: 1 / -1;
	}
	body.single-tribe_events #tribe-events-pg-template > #single-event-sidebar {
		grid-column: 2;
		grid-row: 2 / span 2;
	}
	body.single-tribe_events #tribe-events-content {
		width: auto !important;
		display: block !important;
	}

	/* --- Events views: edges line up with the frame --- */
	.tribe-events .tribe-events-l-container {
		padding-left: 0 !important;
		padding-right: 0 !important;
		max-width: none !important;
	}
	/* List view: one 960px reading column, centred */
	.tribe-events-view--list .tribe-events-l-container {
		max-width: 960px !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Tablets in landscape and small laptops (1024–1279px): two side-by-side
 * sidebars would squeeze the feed under 400px, so both sidebars stack in
 * one 260px column on the left (left sidebar's widgets first, then the
 * right sidebar's) and the feed keeps about 650px. */
@media screen and ( min-width: 1024px ) and ( max-width: 1279px ) {
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) {
		display: grid !important;
		grid-template-columns: 260px minmax( 0, 1fr );
		grid-template-rows: auto 1fr;
		column-gap: 48px;
		row-gap: 24px;
	}
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) > .sidebar-left {
		grid-column: 1;
		grid-row: 1;
		width: auto !important;
		max-width: none !important;
	}
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) > .sidebar-right {
		grid-column: 1;
		grid-row: 2;
		width: auto !important;
		max-width: none !important;
		border-top: 1px solid var( --ts-gray-200 );
		padding-top: 24px !important;
	}
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) > #primary {
		grid-column: 2;
		grid-row: 1 / span 2;
		width: auto !important;
		max-width: 680px !important;
	}
	/* The stacked left column is long, so it scrolls with the page */
	.site-content-grid:has( > .sidebar-left ):has( > .sidebar-right ) .bb-sticky-sidebar {
		position: static !important;
		top: auto !important;
		transform: none !important;
	}
}

/* --- Group page extra sidebars (functions.php, Section 04) ---
 * Feed tab: "Group Feed – Left Sidebar" 280 | feed 680 | Upcoming Group
 *   Events 280 — same columns as the home feed.
 * Events tab: content | "Group Events Tab – Sidebar" 340 on the right.
 * Under 1024px the extra sidebars sit under the content. */
.bb-profile-grid > .ts-group-sidebar {
	order: 3;
}
@media screen and ( min-width: 1024px ) {
	.bb-profile-grid > #ts-group-events-side {
		order: 2;
		flex: 0 0 340px !important;
		width: 340px !important;
		max-width: 340px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
@media screen and ( min-width: 1280px ) {
	.bb-profile-grid:has( > #ts-group-left ) {
		justify-content: space-between;
	}
	.bb-profile-grid > #ts-group-left {
		order: 0;
		flex: 0 0 280px !important;
		width: 280px !important;
		max-width: 280px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.bb-profile-grid:has( > #ts-group-left ) > #item-body {
		flex: 0 1 680px !important;
	}
	.bb-profile-grid:has( > #ts-group-left ) > #group-activity {
		flex-basis: 280px !important;
		width: 280px !important;
		max-width: 280px !important;
	}
	/* Left sidebar stays in view while the feed scrolls, like the right one.
	 * Same fix as the Members page: BuddyBoss's overflow-x: hidden on body
	 * and #page switches sticky off, overflow-x: clip doesn't. Group pages
	 * only. 24px from the top (56px under the admin bar); on short screens
	 * it scrolls inside itself. */
	body.groups.single-item,
	body.groups.single-item #page {
		overflow-x: clip !important;
		overflow-y: visible !important;
	}
	.bb-profile-grid > #ts-group-left {
		align-self: stretch !important;
	}
	.bb-profile-grid > #ts-group-left > .ts-sticky {
		position: sticky;
		top: 24px;
		max-height: calc( 100vh - 48px );
		overflow-y: auto;
	}
	.admin-bar .bb-profile-grid > #ts-group-left > .ts-sticky {
		top: 56px;
		max-height: calc( 100vh - 80px );
	}
}
/* 1024–1279px: both Feed-tab sidebars stack in one 260px left column,
 * same as the home feed */
@media screen and ( min-width: 1024px ) and ( max-width: 1279px ) {
	.bb-profile-grid:has( > #ts-group-left ) {
		display: grid !important;
		grid-template-columns: 260px minmax( 0, 1fr );
		grid-template-rows: auto 1fr;
		column-gap: 48px;
		row-gap: 24px;
	}
	.bb-profile-grid:has( > #ts-group-left ) > #ts-group-left {
		grid-column: 1;
		grid-row: 1;
		padding: 0 !important;
	}
	.bb-profile-grid:has( > #ts-group-left ) > #group-activity {
		grid-column: 1;
		grid-row: 2;
		width: auto !important;
		max-width: none !important;
		border-top: 1px solid var( --ts-gray-200 );
		padding-top: 24px !important;
	}
	.bb-profile-grid:has( > #ts-group-left ) > #item-body {
		grid-column: 2;
		grid-row: 1 / span 2;
		max-width: 680px !important;
	}
	.bb-profile-grid:has( > #ts-group-left ) .bb-sticky-sidebar {
		position: static !important;
		top: auto !important;
		transform: none !important;
	}
}

/* Group Leaders widget: photo + name rows */
.ts-group-leaders {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.ts-group-leaders a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var( --ts-gray-900 );
	font-size: 15px;
	text-decoration: none;
}
.ts-group-leaders a:hover span {
	color: var( --ts-navy );
	text-decoration: underline;
}
.ts-group-leaders img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 40px;
}

/* Group Leaders widget: "Trail Sisters HQ" section and no-leader note */
.ts-no-leader {
	margin: 0 0 12px;
	font-size: 15px;
	color: var( --ts-gray-700 );
}
a.ts-no-leader-btn {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 100px;
	background: var( --ts-sun );
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}
a.ts-no-leader-btn:hover {
	background: #E89A2C;
	color: #fff;
	text-decoration: none;
}
.ts-hq {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var( --ts-gray-200 );
}
.widget .ts-hq-title,
.ts-hq-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var( --ts-gray-700 );
}
.ts-hq-list li {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ts-hq-list li > a:first-child {
	flex: 1 1 auto;
	min-width: 0;
}
.ts-hq-list a > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ts-group-leaders.ts-hq-list a:hover span {
	text-decoration: none;
}
.ts-group-leaders.ts-hq-list a:hover .ts-hq-name {
	text-decoration: underline;
}
.ts-hq-name {
	line-height: 1.3;
}
.ts-hq-role {
	font-size: 13px;
	line-height: 1.3;
	color: var( --ts-gray-700 );
}

/* --- Members directory: 280px filter sidebar (same as the home feed
 * sidebars). Cards use BuddyBoss's own 3-a-row grid. --- */
@media screen and ( min-width: 1024px ) {
	.directory.members .site-content-grid > .widget-area {
		flex-basis: 280px !important;
		width: 280px !important;
		max-width: 280px !important;
	}
	/* Filter form stays in view while the member list scrolls.
	 * The sidebar column must run the full height of the list (BuddyBoss
	 * makes it only as tall as the form, leaving no room to stick).
	 * 24px from the top, 56px when the black admin bar shows; on short
	 * screens the form scrolls inside itself so Search stays reachable. */
	.directory.members .site-content-grid > .widget-area {
		align-self: stretch !important;
		height: auto !important;
	}
	/* BuddyBoss stops sideways scrolling with overflow-x: hidden on the
	 * body and #page, which also switches sticky off inside them.
	 * overflow-x: clip does the same job without breaking sticky.
	 * Members page only, so BuddyBoss's own sticky sidebars elsewhere are
	 * untouched. */
	body.directory.members,
	body.directory.members #page {
		overflow-x: clip !important;
		overflow-y: visible !important;
	}
	.directory.members #bp-profile-search-form-outer {
		position: sticky !important;
		top: 24px;
		max-height: calc( 100vh - 48px );
		overflow-y: auto;
	}
	.admin-bar.directory.members #bp-profile-search-form-outer {
		top: 56px;
		max-height: calc( 100vh - 80px );
	}
}

/* --- Photos (group and profile Photos tabs, albums): smaller thumbnails
 * in a true grid with 12px gaps — 6 a row on desktop, 5 on 1024–1279px;
 * BuddyBoss's columns below 1024px --- */
@media screen and ( min-width: 1024px ) {
	.bb-photo-list.grid {
		display: grid !important;
		grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
		gap: 12px;
		margin: 0 !important;
		padding: 0 !important;
	}
	.bb-photo-list.grid > li {
		width: auto !important;
		max-width: none !important;
		flex: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}
}
@media screen and ( min-width: 1280px ) {
	.bb-photo-list.grid {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	}
}
/* "Load more" gets its own row under the photos, centred */
.bb-photo-list.grid > li.load-more {
	grid-column: 1 / -1;
	justify-self: center;
	width: auto !important;
	max-width: none !important;
	flex: 0 0 100% !important;
	text-align: center;
	margin-top: 12px !important;
}

/* --- Phones (under 600px): member and group cards 2 a row (matches the
 * app); tidier list rows. Tablets and desktop keep BuddyBoss's layout. --- */
@media screen and ( max-width: 599px ) {

	/* The content column may shrink to the screen; without this, one long
	 * name (kept on one line in list view) stretches the whole page wider
	 * than the phone */
	.site-content-grid > #primary,
	#primary .members-directory-wrapper,
	#primary .members-directory-container,
	#primary .groups-directory-wrapper,
	#primary .groups-directory-container {
		min-width: 0 !important;
		max-width: 100% !important;
	}

	/* Filter row (Groups and Members): the two dropdowns share the width
	 * equally and the grid/list switch stays on the same line at the right.
	 * A long choice ("Member Groups") ends in "…" inside its dropdown.
	 * Anything else in the row (the Groups search box) takes a full line. */
	.bp-secondary-header {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 12px;
		max-width: 100% !important;
	}
	.bp-secondary-header > .bb-item-count {
		flex: 1 1 100% !important;
		margin: 0 !important;
	}
	.bp-secondary-header .push-right {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center;
		gap: 10px;
		flex: 1 1 100% !important;
		width: auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		box-sizing: border-box;
	}
	.bp-secondary-header .push-right > * {
		flex: 1 1 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
	}
	.bp-secondary-header .push-right > .subnav-filters {
		flex: 1 1 0 !important;
	}
	.bp-secondary-header .push-right > .grid-filters {
		flex: 0 0 auto !important;
	}
	.bp-secondary-header .push-right > .subnav-filters .component-filters,
	.bp-secondary-header .push-right > .subnav-filters .filter,
	.bp-secondary-header .push-right > .subnav-filters .select-wrap {
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		float: none !important;
	}
	.bp-secondary-header .push-right > .subnav-filters select {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		padding-right: 28px !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Cards: 2 a row, 12px apart */
	#members-list.bp-list.grid,
	#groups-list.bp-list.grid {
		display: grid !important;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 12px;
		margin: 0 !important;
		padding: 0 !important;
	}
	#members-list.bp-list.grid > li,
	#groups-list.bp-list.grid > li {
		width: auto !important;
		max-width: none !important;
		flex: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	#members-list.bp-list.grid > li,
	#groups-list.bp-list.grid > li {
		min-width: 0 !important;
	}
	/* Card insides fill their column and never push past it */
	#members-list.bp-list.grid > li > .list-wrap,
	#groups-list.bp-list.grid > li > .list-wrap {
		height: 100%;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin: 0 !important;
		overflow: hidden;
		box-sizing: border-box;
	}
	#members-list.grid .list-wrap *,
	#groups-list.grid .list-wrap * {
		min-width: 0;
		max-width: 100%;
	}
	#members-list.grid .list-title a,
	#groups-list.grid .list-title a {
		overflow-wrap: anywhere;
	}

	/* Member cards: 72px photo, name up to 2 lines, smaller meta.
	 * Less empty space above the photo and under the text. */
	#members-list.grid > li > .list-wrap {
		min-height: 0 !important;
		padding: 0 !important;
	}
	#members-list.grid .list-wrap-inner {
		min-height: 0 !important;
		padding: 26px 10px 0 !important;
	}
	#members-list.grid .item-avatar {
		margin-top: 0 !important;
	}
	/* Connect / Message row: in the flow under the text (BuddyBoss pins it
	 * to the card's bottom edge), full card width, line above it */
	#members-list.grid .member-buttons-wrap,
	#members-list.grid .member-button-wrap.footer-button-wrap {
		position: static !important;
		top: auto !important;
		bottom: auto !important;
		left: auto !important;
		right: auto !important;
		transform: none !important;
	}
	#members-list.grid .member-buttons-wrap {
		margin: 20px -10px 0 !important;
		padding: 0 !important;
		width: auto !important;
		max-width: none !important;
	}
	#members-list.grid .member-buttons-wrap:empty {
		display: none !important;
	}
	#members-list.grid .member-button-wrap.footer-button-wrap {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}
	/* Even space: 26px above the photo, 24px between the text and the
	 * button row. Your own card (no buttons) gets the 24px at the bottom. */
	#members-list.grid .item {
		padding-bottom: 0 !important;
	}
	#members-list.grid > li.is-current-user .item {
		padding-bottom: 20px !important;
	}
	#members-list.grid .item-block {
		margin: 0 !important;
		padding: 0 !important;
		min-height: 0 !important;
	}
	#members-list.grid .item {
		margin: 0 !important;
		min-height: 0 !important;
	}
	/* BuddyBoss's empty Follow area (holds a space, so :empty misses it) */
	#members-list.grid .follow-container:not( :has( * ) ) {
		display: none !important;
	}
	#members-list.grid .item-meta.last-activity {
		margin: 0 !important;
		padding: 0 !important;
	}
	/* Profile type badge sits on the bottom edge of the photo */
	#members-list.grid .item-meta.member-type.only-grid-view {
		position: relative !important;
		top: auto !important;
		bottom: auto !important;
		left: auto !important;
		transform: none !important;
		margin: -14px 0 0 !important;
		z-index: 1;
		line-height: 1 !important;
	}
	#members-list.grid .item-avatar img.avatar {
		width: 72px !important;
		height: 72px !important;
		max-width: 72px !important;
	}
	#members-list.grid .item-avatar {
		margin-bottom: 4px !important;
	}
	#members-list.grid .list-title.member-name {
		font-size: 15px !important;
		line-height: 1.25 !important;
		margin: 6px 0 2px !important;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	#members-list.grid .item-meta {
		font-size: 12px !important;
		line-height: 1.35 !important;
	}
	#members-list.grid .bp-member-type {
		font-size: 11px !important;
		padding: 3px 7px !important;
	}
	#members-list.grid .bb_more_options {
		top: 4px !important;
		right: 4px !important;
	}

	/* Group cards: shorter cover, 48px logo, name up to 2 lines,
	 * member photos hidden, full-width 13px button */
	#groups-list.grid > li > .list-wrap {
		position: relative !important;
		display: flex !important;
		flex-direction: column !important;
		padding: 0 !important;
		min-height: 0 !important;
	}
	#groups-list.grid > li > .list-wrap > .item {
		flex: 1 1 auto !important;
		display: flex !important;
		flex-direction: column !important;
	}
	/* Button at the bottom of every card, so buttons in a row line up even
	 * when one group name takes two lines */
	#groups-list.grid > li > .list-wrap > .item > .group-footer-wrap {
		margin-top: auto !important;
		margin-bottom: 0 !important; /* BuddyBoss adds 27px here */
		padding-top: 10px !important;
	}
	#groups-list.grid .bs-group-cover,
	#groups-list.grid .bs-group-cover a,
	#groups-list.grid .bs-group-cover img {
		height: 72px !important;
		min-height: 0 !important;
		max-height: 72px !important;
		object-fit: cover;
	}
	#groups-list.grid .bs-group-cover {
		overflow: hidden !important;
		margin: 0 !important;
	}
	/* Logo: 48px, overlapping the bottom of the cover, no white frame */
	#groups-list.grid .item-avatar,
	#groups-list.grid .item-avatar .group-avatar-wrap {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: auto !important;
		height: auto !important;
		padding: 0 !important;
		background: none !important;
		border: 0 !important;
		box-shadow: none !important;
		transform: none !important;
	}
	#groups-list.grid .item-avatar {
		min-width: 0 !important;
		min-height: 0 !important;
		position: absolute !important;
		top: 46px !important;
		left: 10px !important;
		margin: 0 !important;
		z-index: 2;
	}
	#groups-list.grid .item-avatar .group-avatar-wrap {
		display: block !important;
		width: 52px !important;
		height: 52px !important;
		min-width: 0 !important;
		min-height: 0 !important;
		border-radius: 10px !important;
		overflow: hidden !important;
	}
	#groups-list.grid .item-avatar *,
	#groups-list.grid .item-avatar .group-avatar-wrap,
	#groups-list.grid .item-avatar img.avatar {
		margin: 0 !important;
		top: 0 !important;
		left: 0 !important;
		bottom: auto !important;
		transform: none !important;
	}
	#groups-list.grid .item-avatar img.avatar {
		display: block;
		width: 52px !important;
		height: 52px !important;
		min-width: 0 !important;
		min-height: 0 !important;
		max-width: 52px !important;
		object-fit: cover;
		padding: 0 !important;
		margin: 0 !important;
		background: none !important;
		border: 2px solid #fff !important;
		border-radius: 10px !important;
		box-shadow: none !important;
	}
	#groups-list.grid .item {
		padding: 30px 10px 12px !important;
		margin: 0 !important;
		min-height: 0 !important;
	}
	#groups-list.grid .group-item-wrap,
	#groups-list.grid .item-block,
	#groups-list.grid .item-meta-wrap {
		margin: 0 !important;
		padding: 0 !important;
		min-height: 0 !important;
	}
	#groups-list.grid .list-title.groups-title {
		font-size: 15px !important;
		line-height: 1.25 !important;
		margin: 0 0 2px !important;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	#groups-list.grid .item-meta {
		font-size: 12px !important;
	}
	#groups-list.grid .group-members-wrap {
		display: none !important;
	}
	/* Button sits in the flow under the text (BuddyBoss pins it to the
	 * card's corner, which made it cover the text) */
	#groups-list.grid .group-footer-wrap,
	#groups-list.grid .footer-button-wrap,
	#groups-list.grid .footer-button-wrap .groups-meta,
	#groups-list.grid .footer-button-wrap .generic-button {
		position: static !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		transform: none !important;
	}
	#groups-list.grid .group-footer-wrap {
		display: block !important;
		padding-bottom: 0 !important;
		height: auto !important;
		min-height: 0 !important;
	}
	/* No leftover margins under the button (BuddyBoss spaces its button
	 * wrappers apart, which left a gap at the bottom of every card) */
	#groups-list.grid .group-footer-wrap .footer-button-wrap,
	#groups-list.grid .group-footer-wrap .groups-meta,
	#groups-list.grid .group-footer-wrap .generic-button,
	#groups-list.grid .group-footer-wrap .group-button {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}
	#groups-list.grid .group-footer-wrap .group-button {
		padding-bottom: 6px !important;
	}
	#groups-list.grid > li > .list-wrap,
	#groups-list.grid > li > .list-wrap::after {
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
	#groups-list.grid .footer-button-wrap,
	#groups-list.grid .footer-button-wrap .generic-button,
	#groups-list.grid .footer-button-wrap .group-button {
		width: 100% !important;
		margin: 0 !important;
	}
	#groups-list.bp-list .item-entry .list-wrap .group-footer-wrap .footer-button-wrap .group-button,
	#groups-list.bp-list .item-entry .list-wrap .group-footer-wrap .footer-button-wrap .generic-button > a {
		font-size: 13px !important;
		font-weight: 500 !important;
		line-height: 1.3 !important;
		height: auto !important;
		min-height: 0 !important;
		min-width: 0 !important;
		padding: 6px 12px !important;
	}
	#groups-list.bp-list:not( .grid ) .item-entry .list-wrap .group-footer-wrap .footer-button-wrap .group-button {
		width: auto !important;
		padding: 5px 14px !important;
	}

	/* Member list rows: photo | name, badge under it, activity |
	 * Connect, Message and ••• on the right, all on one line */
	#members-list.bp-list:not( .grid ) > li,
	#members-list.bp-list:not( .grid ) > li > .list-wrap {
		width: auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	/* The row is one line: [photo + text + Connect/Message] [•••],
	 * everything centred top to bottom */
	#members-list.bp-list:not( .grid ) > li > .list-wrap {
		position: relative;
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 8px;
		padding: 14px 6px 14px 12px !important;
		margin: 0 !important;
		min-height: 0 !important;
		height: auto !important;
	}
	/* BuddyBoss's extra area under each row (made rows taller than their
	 * content) */
	#members-list.bp-list:not( .grid ) .bp-members-list-hook {
		display: none !important;
	}
	#members-list.bp-list:not( .grid ) .list-wrap-inner {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center;
		gap: 12px;
		padding: 0 !important;
		min-height: 0 !important;
		flex: 1 1 auto !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	#members-list.bp-list:not( .grid ) .item-avatar {
		flex: 0 0 52px;
		margin: 0 !important;
	}
	#members-list.bp-list:not( .grid ) .item-avatar img.avatar {
		width: 52px !important;
		height: 52px !important;
		max-width: 52px !important;
	}
	#members-list.bp-list:not( .grid ) .item {
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
	}
	#members-list.bp-list:not( .grid ) .follow-container:not( :has( * ) ) {
		display: none !important;
	}
	#members-list.bp-list:not( .grid ) .item-block {
		display: block !important;
	}
	#members-list.bp-list:not( .grid ) .list-title.member-name {
		display: block !important;
		margin: 0 0 2px !important;
		font-size: 16px !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	#members-list.bp-list:not( .grid ) .item-meta {
		margin: 0 0 2px !important;
		font-size: 12px !important;
	}
	#members-list.bp-list:not( .grid ) .bp-member-type {
		font-size: 11px !important;
		padding: 3px 7px !important;
	}
	#members-list.bp-list:not( .grid ) .member-buttons-wrap {
		flex: 0 0 auto !important;
		width: auto !important;
		position: static !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	#members-list.bp-list:not( .grid ) .member-button-wrap a {
		display: grid !important;
		place-items: center;
		width: 40px !important;
		height: 40px !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	#members-list.bp-list:not( .grid ) .member-button-wrap {
		display: flex !important;
		position: static !important;
		align-items: center;
		gap: 8px;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}
	#members-list.bp-list:not( .grid ) .member-button-wrap .generic-button {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}
	#members-list.bp-list:not( .grid ) .bb_more_options {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		transform: none !important;
		flex: 0 0 auto;
		margin: 0 !important;
		align-self: center;
	}
	#members-list.bp-list:not( .grid ) .bb_more_options_action {
		display: grid !important;
		place-items: center;
		width: 40px;
		height: 40px;
		margin: 0 !important;
	}
	#members-list.bp-list:not( .grid ) .member-buttons-wrap,
	#members-list.bp-list:not( .grid ) .member-button-wrap {
		align-self: center !important;
		height: auto !important;
	}

	/* Group list rows: logo | name, activity, then member photos left and
	 * a smaller button right on one line */
	#groups-list.bp-list:not( .grid ) > li > .list-wrap {
		display: flex !important;
		align-items: flex-start;
		gap: 12px;
		padding: 14px 12px !important;
	}
	#groups-list.bp-list:not( .grid ) .item-avatar {
		flex: 0 0 60px;
		margin: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) > li .item-avatar {
		flex: 0 0 60px !important;
		width: 60px !important;
		max-width: 60px !important;
		height: 60px !important;
		overflow: hidden !important;
		border-radius: 10px !important;
		background: none !important;
		box-shadow: none !important;
		padding: 0 !important;
	}
	/* BuddyBoss gives the logo link a 3px white border, which squeezed
	 * the 60px logo into 54px and clipped its edges (cards too) */
	#groups-list > li .item-avatar a.group-avatar-wrap {
		border: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) > li .item-avatar a.group-avatar-wrap img.avatar {
		width: 60px !important;
		height: 60px !important;
		min-width: 0 !important;
		max-width: 60px !important;
		max-height: 60px !important;
		object-fit: cover !important;
		border-radius: 10px !important;
	}
	#groups-list.bp-list:not( .grid ) .item-avatar img.avatar {
		display: block !important;
		width: 60px !important;
		height: 60px !important;
		min-width: 0 !important;
		min-height: 0 !important;
		max-width: 60px !important;
		margin: 0 !important;
		object-fit: cover;
		border-radius: 10px !important;
	}
	#groups-list.bp-list:not( .grid ) .item {
		flex: 1 1 auto;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) .list-title.groups-title {
		font-size: 16px !important;
		line-height: 1.25 !important;
		margin: 0 0 2px !important;
	}
	#groups-list.bp-list:not( .grid ) .item-meta {
		font-size: 12px !important;
		margin: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) .group-footer-wrap {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
		max-width: none !important;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin: 8px 0 0 !important;
		padding: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) .group-members-wrap {
		flex: 0 1 auto !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) .bs-group-members {
		display: flex !important;
		align-items: center;
	}
	#groups-list.bp-list:not( .grid ) .bs-group-member {
		width: 26px !important;
		height: 26px !important;
		margin: 0 0 0 -6px !important;
		flex: 0 0 26px;
	}
	#groups-list.bp-list:not( .grid ) .bs-group-member:first-child {
		margin-left: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) .bs-group-member img,
	#groups-list.bp-list:not( .grid ) .bs-group-member .bb-icon-ellipsis-h {
		width: 26px !important;
		height: 26px !important;
		border: 2px solid #fff !important;
		border-radius: 50% !important;
	}
	#groups-list.bp-list:not( .grid ) .item-avatar,
	#groups-list.bp-list:not( .grid ) .item-avatar .group-avatar-wrap {
		min-width: 0 !important;
		min-height: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) .item-avatar .group-avatar-wrap {
		display: block !important;
		width: 60px !important;
		height: 60px !important;
		padding: 0 !important;
		background: none !important;
		box-shadow: none !important;
		border-radius: 10px !important;
		overflow: hidden !important;
	}
	#groups-list.bp-list:not( .grid ) .group-item-wrap,
	#groups-list.bp-list:not( .grid ) .item-block {
		margin: 0 !important;
		padding: 0 !important;
	}
	#groups-list.bp-list:not( .grid ) .footer-button-wrap,
	#groups-list.bp-list:not( .grid ) .footer-button-wrap .groups-meta,
	#groups-list.bp-list:not( .grid ) .footer-button-wrap .generic-button {
		position: static !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		flex: 0 0 auto !important;
	}
	#groups-list.bp-list:not( .grid ) > li > .list-wrap {
		min-height: 0 !important;
	}
}

/* --- Text pages: one 760px column, centred. Add a page here with its
 * page ID: About 315 · Documentation 102973 · Leader Documentation 103112
 * · Participation Waiver 104428 · Grow Your Group 136708 --- */
.page-id-315 .site-main,
.page-id-102973 .site-main,
.page-id-103112 .site-main,
.page-id-104428 .site-main,
.page-id-136708 .site-main {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
/* ===== END 12. PAGE LAYOUTS ===== */

/* Member card and list icon buttons (Connect, Message, •••): when
 * tapped or clicked, a soft light circle centred behind the icon, instead
 * of BuddyBoss's navy button "pressed" style, which was drawn around the
 * button's hidden text label and sat off-centre. Also removes iPhone
 * Safari's grey tap flash on them. */
#members-list .member-button-wrap a,
#members-list .bb_more_options_action {
	-webkit-tap-highlight-color: transparent;
}
#members-list .member-button-wrap a,
#members-list .member-button-wrap a:hover,
#members-list .member-button-wrap a:focus,
#members-list .member-button-wrap a:active,
#members-list .bb_more_options_action,
#members-list .bb_more_options_action:hover,
#members-list .bb_more_options_action:focus,
#members-list .bb_more_options_action:active {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none;
	color: var( --ts-gray-700 ) !important;
}
#members-list .member-button-wrap a:active,
#members-list .bb_more_options_action:active {
	background: var( --ts-gray-100 ) !important;
	border-radius: 50% !important;
	color: var( --ts-navy ) !important;
}
#members-list .member-button-wrap a:focus-visible,
#members-list .bb_more_options_action:focus-visible {
	outline: 2px solid var( --ts-navy );
	outline-offset: 2px;
	border-radius: 50% !important;
}
#members-list .member-button-wrap a i,
#members-list .bb_more_options_action i {
	margin: 0 !important;
}
/* In the phone list view each icon button is exactly the 40px circle, so
 * the pressed circle is centred on the icon */
@media screen and ( max-width: 599px ) {
	#members-list.bp-list:not( .grid ) .member-button-wrap a {
		font-size: 0 !important;
		line-height: 0 !important;
		border-radius: 50% !important;
	}
	#members-list.bp-list:not( .grid ) .member-button-wrap a i,
	#members-list.bp-list:not( .grid ) .member-button-wrap a i::before {
		font-size: 22px !important;
		line-height: 1 !important;
	}
	#members-list.bp-list:not( .grid ) .bb_more_options_action {
		border-radius: 50% !important;
	}
}

/* Touch screens: no grey tap flash anywhere. iPhone Safari draws a grey
 * box over any link or button as it's tapped, which shows for a split
 * second before the next page loads. Pressed states set in this file
 * still give feedback where they're needed. */
html,
a,
button,
input,
select,
label,
summary,
[role="button"] {
	-webkit-tap-highlight-color: transparent;
}

/* Touch screens: hover colours from this file don't stick after a tap.
 * (On phones a tapped item keeps its "hover" look until you tap
 * somewhere else.) Covers the main menu box, topic filter chips and the
 * Members icon buttons. */
@media ( hover: none ) {
	.bb-template-v2 .primary-menu > li > a:hover::before {
		background-color: transparent;
	}
	#groups-list > li:hover > .list-wrap,
	#members-list > li:hover > .list-wrap {
		background-color: #fff !important;
		box-shadow: none !important;
	}
	.activity-topic-selector ul > li:not( .selected ):not( .active ) > a:not( .selected ):not( .active ):hover,
	.activity-topic-selector ul > li > button:hover {
		background: var( --ts-gray-100 ) !important;
		color: var( --ts-gray-900 ) !important;
	}
}

/* Touch screens (phones, tablets): no hover tooltips anywhere. They only
 * flash briefly when something is tapped and can cover the button.
 * Desktop and laptops keep them. Covers BuddyBoss's two tooltip styles
 * (data-balloon and data-bp-tooltip). */
@media ( hover: none ) {
	[data-balloon]::before,
	[data-balloon]::after,
	[data-bp-tooltip]::before,
	[data-bp-tooltip]::after {
		display: none !important;
	}
}

/* Focus rings, site-wide: keyboard only.
 * Clicks and taps show no ring. People moving through the page with the
 * Tab key (keyboard and screen-reader users) get a navy ring with a small
 * gap. Text boxes show their navy border instead of a ring. */
:focus:not( :focus-visible ) {
	outline: none !important;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
	outline: 2px solid var( --ts-navy ) !important;
	outline-offset: 2px !important;
}
input:not( [type="checkbox"] ):not( [type="radio"] ):not( [type="submit"] ):not( [type="button"] ):focus,
textarea:focus {
	outline: none !important;
	border-color: var( --ts-navy ) !important;
}



/* ===== 13. GROUP HEADER =====
 * Phones, every group tab: wide cover (3:1), 72px logo on its edge with the
 * name beside it, leaders + Instagram/Strava + Member/bell on one row.
 * Desktop keeps BuddyBoss's header. Visitors: "Join Group" is a Sun pill.
 */

/* Visitors: Join / Request to Join in the header is the Sun button */
.groups-header .group-button.join-group,
.groups-header .group-button.request-membership {
	background: var( --ts-sun ) !important;
	border-color: var( --ts-sun ) !important;
	color: #fff !important;
	font-weight: 600 !important;
}
.groups-header .group-button.join-group:hover,
.groups-header .group-button.request-membership:hover {
	background: var( --ts-sun-dark ) !important;
	border-color: var( --ts-sun-dark ) !important;
}

/* --- Phones: every group tab --- */
@media screen and ( max-width: 599px ) {
	body.groups.single-item #header-cover-image {
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 3 / 1;
		overflow: hidden;
	}
	body.groups.single-item #header-cover-image img.header-cover-img {
		width: 100% !important;
		height: 100% !important;
		top: 0 !important;
		object-fit: cover;
	}
	/* Logo | name / activity, then leaders · social · buttons */
	body.groups.single-item #item-header-cover-image {
		display: grid !important;
		grid-template-columns: 72px minmax( 0, 1fr ) auto auto;
		grid-template-areas:
			"logo title title title"
			"logo meta  meta  meta"
			"lead lead  soc   btns";
		align-items: center;
		column-gap: 12px;
		row-gap: 2px;
		padding: 0 16px 12px !important;
		text-align: left !important;
	}
	body.groups.single-item #item-header-content {
		display: contents !important;
	}
	body.groups.single-item #item-header-avatar {
		grid-area: logo;
		align-self: start;
		width: 72px !important;
		height: 72px !important;
		margin: -28px 0 0 !important;
		padding: 0 !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;
	}
	body.groups.single-item #item-header-avatar img.avatar {
		width: 72px !important;
		height: 72px !important;
		max-width: 72px !important;
		border: 3px solid #fff !important;
		border-radius: 14px !important;
		margin: 0 !important;
	}
	body.groups.single-item .bp-group-title-wrap {
		grid-area: title;
		justify-content: flex-start !important;
		margin: 8px 0 0 !important;
		min-width: 0;
	}
	body.groups.single-item .bb-bp-group-title {
		margin: 0 !important;
		font-size: 19px !important;
		line-height: 1.2 !important;
		text-align: left !important;
	}
	body.groups.single-item .bp-group-meta-wrap {
		grid-area: meta;
		justify-content: flex-start !important;
		align-self: start;
		margin: 0 !important;
	}
	body.groups.single-item .bp-group-meta-wrap .last-activity {
		margin: 0 !important;
		font-size: 13px !important;
	}
	body.groups.single-item .group-actions-wrap {
		grid-area: lead;
		margin: 12px 0 0 !important;
		padding: 0 !important;
		min-width: 0;
	}
	body.groups.single-item .group-actions-wrap .bp-title,
	body.groups.single-item .group-actions-wrap .moderators-title {
		display: none !important;
	}
	body.groups.single-item .group-actions-wrap dl,
	body.groups.single-item .group-actions-wrap dd,
	body.groups.single-item #group-admins {
		display: flex !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	body.groups.single-item #group-admins li {
		margin: 0 0 0 -7px !important;
		list-style: none;
	}
	body.groups.single-item #group-admins li:first-child {
		margin-left: 0 !important;
	}
	body.groups.single-item #group-admins img,
	body.groups.single-item #group-admins .bb-icon-ellipsis-h {
		width: 28px !important;
		height: 28px !important;
		border: 2px solid #fff !important;
		border-radius: 50% !important;
	}
	body.groups.single-item #item-header .item-meta:has( .ts-group-social ) {
		grid-area: soc;
		margin: 12px 0 0 !important;
		padding: 0 !important;
	}
	body.groups.single-item .ts-group-social {
		position: static !important;
		display: flex !important;
		gap: 6px;
		margin: 0 !important;
	}
	body.groups.single-item .ts-group-social .ts-social-icon {
		width: 32px !important;
		height: 32px !important;
	}
	body.groups.single-item .group-actions-absolute {
		grid-area: btns;
		position: static !important;
		display: flex !important;
		align-items: center;
		gap: 6px;
		margin: 12px 0 0 !important;
		transform: none !important;
	}
	body.groups.single-item .group-actions-absolute .groups-meta {
		margin: 0 !important;
	}
}

/* --- Phones: tab row shows there are more tabs to swipe to --- */
@media screen and ( max-width: 599px ) {
	body.groups.single-item #object-nav {
		position: relative;
	}
	body.groups.single-item #object-nav::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 40px;
		background: linear-gradient( 90deg, rgba( 255, 255, 255, 0 ), #fff );
		pointer-events: none;
	}
}
/* ===== END 13. GROUP HEADER ===== */