/*!
 * CLI BuddyPress Design: complete BuddyPress (Nouveau) styling for Critical Link International.
 * All rules are scoped to #buddypress (and BuddyPress widgets) so nothing else on the site is touched.
 * Colours, fonts and sizes come from the variables below; change them in Settings > CLI BuddyPress Design.
 */

:root {
	--cbp-primary: #b4471f;
	--cbp-primary-dark: #8c3718;
	--cbp-tint: #f8ece7;
	--cbp-accent: #3d5a40;
	--cbp-accent-soft: #e9eee9;
	--cbp-sage: #a9b9a6;
	--cbp-sage-dark: #8aa087;
	--cbp-ink: #1d231e;
	--cbp-muted: #636c64;
	--cbp-bg: #f5f6f3;
	--cbp-surface: #ffffff;
	--cbp-line: #e3e7e1;
	--cbp-radius: 22px;
	--cbp-radius-sm: 14px;
	--cbp-cols: 3;
	--cbp-cols-grid: 4;
	--cbp-font-heading: "Cormorant Infant", Georgia, "Times New Roman", serif;
	--cbp-font-body: "Noto Sans", "Open Sans", Arial, sans-serif;
	--cbp-shadow: 0 14px 34px -16px rgba(29, 35, 30, .28);
	--cbp-shadow-sm: 0 6px 18px -10px rgba(29, 35, 30, .22);
}

/* ================================================================
   1. Base
   ================================================================ */
body #buddypress {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	font-family: var(--cbp-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--cbp-ink);
}
body #buddypress *, body #buddypress *::before, body #buddypress *::after { box-sizing: border-box; }
body #buddypress a { color: var(--cbp-accent); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
body #buddypress a:hover, body #buddypress a:focus { color: var(--cbp-primary); }
body #buddypress h1, body #buddypress h2, body #buddypress h3, body #buddypress h4, body #buddypress h5 {
	font-family: var(--cbp-font-heading);
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.15;
	color: var(--cbp-ink);
	margin: 0 0 .5em;
}
body #buddypress h2 { font-size: 36px; }
body #buddypress h3 { font-size: 28px; }
body #buddypress h4 { font-size: 22px; }
body #buddypress p { margin: 0 0 1em; }
body #buddypress img.avatar { border-radius: 50%; object-fit: cover; background: var(--cbp-accent-soft); }
body #buddypress :focus-visible { outline: 3px solid var(--cbp-sage-dark); outline-offset: 2px; }
body #buddypress hr { border: 0; border-top: 1px solid var(--cbp-line); margin: 28px 0; }
body #buddypress .bp-wrap { width: 100%; }
body #buddypress .screen-heading, body #buddypress .bp-widget > h2 { font-size: 34px; margin: 36px 0 20px; }

/* ================================================================
   2. Buttons
   ================================================================ */
body #buddypress .button, body #buddypress a.button, body #buddypress input[type="submit"], body #buddypress input[type="button"], body #buddypress input[type="reset"], body #buddypress .generic-button a, body #buddypress .generic-button button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 24px !important;
	border: 1.5px solid var(--cbp-ink);
	border-radius: 999px !important;
	background: transparent;
	color: var(--cbp-ink);
	font-family: var(--cbp-font-body);
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: .05em !important;
	text-transform: uppercase !important;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
body #buddypress .button:hover, body #buddypress a.button:hover, body #buddypress input[type="submit"]:hover, body #buddypress input[type="button"]:hover, body #buddypress .generic-button a:hover, body #buddypress .generic-button button:hover {
	background: var(--cbp-ink);
	border-color: var(--cbp-ink);
	color: #fff;
}
body #buddypress input[type="submit"], body #buddypress .button.accept, body #buddypress .button.confirm, body #buddypress .button.submit, body #buddypress #aw-whats-new-submit, body #buddypress .button.primary, body #buddypress .group-button.join-group a, body #buddypress .generic-button .join-group, body #buddypress .generic-button .request-membership, body #buddypress .generic-button .accept-invite, body #buddypress .friendship-button.not_friends a, body #buddypress .generic-button .add {
	background: var(--cbp-primary);
	border-color: var(--cbp-primary);
	color: #fff;
}
body #buddypress input[type="submit"]:hover, body #buddypress .button.accept:hover, body #buddypress .button.confirm:hover, body #buddypress .button.submit:hover, body #buddypress #aw-whats-new-submit:hover, body #buddypress .button.primary:hover, body #buddypress .group-button.join-group a:hover, body #buddypress .generic-button .join-group:hover, body #buddypress .generic-button .request-membership:hover, body #buddypress .generic-button .accept-invite:hover, body #buddypress .friendship-button.not_friends a:hover, body #buddypress .generic-button .add:hover {
	background: var(--cbp-primary-dark);
	border-color: var(--cbp-primary-dark);
	color: #fff;
}
body #buddypress .button.reject, body #buddypress .button.cancel, body #buddypress .ac-reply-cancel, body #buddypress .button.bp-secondary-action, body #buddypress .generic-button .remove {
	border-color: var(--cbp-line);
	color: var(--cbp-muted);
	background: #fff;
}
body #buddypress .button.reject:hover, body #buddypress .button.cancel:hover, body #buddypress .ac-reply-cancel:hover, body #buddypress .generic-button .remove:hover {
	background: var(--cbp-tint);
	border-color: var(--cbp-primary);
	color: var(--cbp-primary);
}
body #buddypress button.dashicons, body #buddypress .button.dashicons, body #buddypress a.button.dashicons { font-family: dashicons !important; font-size: 20px !important; line-height: 1 !important; letter-spacing: 0 !important; width: 40px; height: 40px; padding: 0 !important; border-radius: 50% !important; text-transform: none !important; }
body #buddypress [hidden], body #buddypress .bp-hide, body #buddypress .hide { display: none !important; }
body #buddypress .button.disabled, body #buddypress .button[disabled], body #buddypress input[type="submit"][disabled] { opacity: .5; pointer-events: none; }
body #buddypress .generic-button { margin: 0; }
body #buddypress .action, body #buddypress .member-header-actions, body #buddypress .members-meta.action, body #buddypress .groups-meta.action { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ================================================================
   3. Form fields
   ================================================================ */
body #buddypress input[type="text"], body #buddypress input[type="email"], body #buddypress input[type="password"], body #buddypress input[type="url"], body #buddypress input[type="number"], body #buddypress input[type="tel"], body #buddypress input[type="date"], body #buddypress input[type="search"], body #buddypress select, body #buddypress textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--cbp-line);
	border-radius: var(--cbp-radius-sm);
	background: #fff;
	color: var(--cbp-ink);
	font: inherit;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body #buddypress input:focus, body #buddypress select:focus, body #buddypress textarea:focus {
	outline: none;
	border-color: var(--cbp-accent);
	box-shadow: 0 0 0 4px rgba(61, 90, 64, .14);
}
body #buddypress textarea { min-height: 120px; resize: vertical; }
body #buddypress .standard-form label { display: block; }
body #buddypress .standard-form .select-wrap { display: block; }
body #buddypress .standard-form .submit .button, body #buddypress .standard-form .submit input, body #buddypress .submit .button, body #buddypress .submit input { margin-right: 10px; margin-bottom: 8px; }
body #buddypress legend { padding: 0; }
body #buddypress label, body #buddypress legend { display: inline-block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--cbp-ink); }
body #buddypress input[type="checkbox"], body #buddypress input[type="radio"] { width: auto; accent-color: var(--cbp-primary); margin-right: 6px; }
body #buddypress .checkbox label, body #buddypress .radio label, body #buddypress .field_type_checkbox label, body #buddypress .field_type_radio label { font-weight: 500; }
body #buddypress ::placeholder { color: #98a09a; }
body #buddypress .standard-form {
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: var(--cbp-radius);
	padding: 32px;
	box-shadow: var(--cbp-shadow-sm);
}
body #buddypress .standard-form .standard-form { padding: 0; border: 0; box-shadow: none; background: transparent; }
body #buddypress .standard-form p, body #buddypress .editfield { margin-bottom: 22px; }
body #buddypress .standard-form .description, body #buddypress .standard-form .field-visibility-settings-toggle, body #buddypress .standard-form .field-visibility-settings-notoggle { font-size: 13px; color: var(--cbp-muted); }
body #buddypress .field-visibility-settings { background: var(--cbp-accent-soft); border-radius: var(--cbp-radius-sm); padding: 14px 18px; }
body #buddypress .standard-form .submit, body #buddypress .submit { margin-top: 8px; }
body #buddypress fieldset { border: 0; padding: 0; margin: 0 0 24px; }
body #buddypress legend { font-family: var(--cbp-font-heading); font-size: 24px; font-weight: 600; }
body #buddypress .select-wrap { position: relative; display: inline-block; min-width: 190px; }
body #buddypress .select-wrap select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 46px;
	border-radius: 999px;
	cursor: pointer;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d231e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 16px center / 14px;
}
body #buddypress .select-wrap .select-arrow { display: none; }

/* Search */
body #buddypress form.bp-dir-search-form, body #buddypress .bp-search form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 440px;
	padding: 5px 5px 5px 20px;
	background: #fff;
	border: 1.5px solid var(--cbp-line);
	border-radius: 999px;
	box-shadow: var(--cbp-shadow-sm);
}
body #buddypress form.bp-dir-search-form:focus-within { border-color: var(--cbp-accent); box-shadow: 0 0 0 4px rgba(61, 90, 64, .14); }
body #buddypress .bp-dir-search-form input[type="search"] { flex: 1; min-width: 0; padding: 8px; border: 0; background: transparent; box-shadow: none; }
body #buddypress .bp-dir-search-form input[type="search"]:focus { box-shadow: none; }
body #buddypress .nouveau-search-submit, body #buddypress .bp-dir-search-form button[type="submit"] {
	position: relative;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cbp-primary);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}
body #buddypress .nouveau-search-submit:hover { background: var(--cbp-primary-dark); }
body #buddypress .nouveau-search-submit .dashicons { display: none; }
body #buddypress .nouveau-search-submit::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") center / 18px no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") center / 18px no-repeat;
}

/* ================================================================
   4. Navigation: directory tabs, profile tabs, sub tabs
   ================================================================ */
body #buddypress .bp-navs, body #buddypress .main-navs, body #buddypress .bp-subnavs { background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible; margin: 0 0 8px; padding: 0; }
body #buddypress .bp-navs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; background: transparent; border: 0; }
body #buddypress .bp-navs li { float: none; margin: 0; padding: 0; background: transparent; border: 0; width: auto; }
body #buddypress .bp-navs li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px;
	background: #fff;
	color: var(--cbp-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
body #buddypress .bp-navs li a:hover, body #buddypress .bp-navs li a:focus { border-color: var(--cbp-accent); color: var(--cbp-accent); background: #fff; }
body #buddypress .bp-navs li.selected > a, body #buddypress .bp-navs li.current > a, body #buddypress .bp-navs li.current.selected > a {
	background: var(--cbp-primary);
	border-color: var(--cbp-primary);
	color: #fff;
}
body #buddypress .bp-navs li a .count {
	min-width: 24px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--cbp-tint);
	color: var(--cbp-primary);
	font-size: 12px;
	line-height: 22px;
	text-align: center;
}
body #buddypress .bp-navs li.selected a .count, body #buddypress .bp-navs li.current a .count { background: rgba(255, 255, 255, .24); color: #fff; }
body #buddypress .bp-navs li.dynamic a { border-style: dashed; }

/* Sub navigation (inside a profile or group) */
body #buddypress .bp-subnavs ul { display: inline-flex; gap: 4px; padding: 5px; background: var(--cbp-accent-soft); border-radius: 999px; }
body #buddypress .bp-subnavs li a { min-height: 36px; padding: 0 18px !important; border: 0 !important; background: transparent; font-size: 13px; }
body #buddypress .bp-subnavs li a:hover { background: rgba(255, 255, 255, .7); color: var(--cbp-accent); }
body #buddypress .bp-subnavs li.selected > a, body #buddypress .bp-subnavs li.current > a { background: var(--cbp-accent); color: #fff; }
body #buddypress .bp-subnavs li.selected a .count, body #buddypress .bp-subnavs li.current a .count { background: rgba(255, 255, 255, .24); color: #fff; }

/* Force a horizontal layout even when the vertical template option is on */
body #buddypress.bp-vertical-navs .bp-navs.vertical, body #buddypress .bp-navs.vertical { width: 100%; float: none; }
body #buddypress.bp-vertical-navs .item-body, body #buddypress.bp-vertical-navs .bp-wrap .item-body { width: 100%; float: none; margin: 0; padding: 0; }

/* Filters bar */
body #buddypress .subnav-filters { padding: 0 !important; border: 0 !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; }
body #buddypress .subnav-filters > div, body #buddypress .subnav-filters .subnav-search { margin: 0; float: none; }
body #buddypress .subnav-search { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; float: none; margin: 0; }
body #buddypress .subnav-search .feed { float: none; margin: 0; }
body #buddypress .subnav-search .feed a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1.5px solid var(--cbp-line); border-radius: 50%; background: #fff; color: var(--cbp-accent); }
body #buddypress .subnav-search .feed a:hover { border-color: var(--cbp-primary); color: var(--cbp-primary); }
body #buddypress .subnav-search .bp-search, body #buddypress .subnav-search .activity-search, body #buddypress .subnav-search form, body #buddypress .subnav-search .dir-search { margin: 0 !important; padding-left: 0; flex: 1 1 auto; }
body #buddypress .subnav-search form.bp-dir-search-form { padding-left: 20px; }
body #buddypress .select-wrap, body #buddypress .last.filter { border: 0 !important; background: transparent !important; box-shadow: none !important; }
body #buddypress .subnav-filters select, body #buddypress .filter select { border-radius: 999px !important; padding: 12px 46px 12px 20px; }
body #buddypress .component-filters, body #buddypress .last.filter { display: flex; align-items: center; gap: 10px; float: none; }
body #buddypress .subnav-filters .filter label { margin: 0 8px 0 0; }


/* ----------------------------------------------------------------
   Profile and group tabs. Not tied to #buddypress, so they also work
   when an Elementor template places the menu outside the wrapper.
   ---------------------------------------------------------------- */
html body nav.bp-navs, html body nav#object-nav, html body .bp-navs.main-navs, html body .bp-wrap > .bp-navs {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 28px 0 10px !important;
	float: none !important;
	width: 100% !important;
}
html body .bp-navs ul, html body #object-nav ul {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center !important;
	gap: 8px;
	margin: 0 0 24px !important;
	padding: 0 !important;
	list-style: none !important;
	background: transparent !important;
	border: 0 !important;
}
html body .bp-navs li, html body #object-nav li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	list-style: none !important;
}
html body .bp-navs li > a, html body #object-nav li > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	gap: 8px;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 22px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap;
	opacity: 1 !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
html body .bp-navs li > a:hover, html body .bp-navs li > a:focus, html body #object-nav li > a:hover, html body #object-nav li > a:focus {
	border-color: var(--cbp-accent) !important;
	background: #fff !important;
	color: var(--cbp-accent) !important;
}
html body .bp-navs li.selected > a, html body .bp-navs li.current > a, html body .bp-navs li.current.selected > a,
html body #object-nav li.selected > a, html body #object-nav li.current > a {
	border-color: var(--cbp-primary) !important;
	background: var(--cbp-primary) !important;
	color: #fff !important;
}
html body .bp-navs li > a .count, html body #object-nav li > a .count {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	margin: 0 !important;
	padding: 0 8px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cbp-tint) !important;
	color: var(--cbp-primary) !important;
	font-size: 12px !important;
	font-weight: 700;
	line-height: 22px !important;
}
html body .bp-navs li.selected > a .count, html body .bp-navs li.current > a .count, html body #object-nav li.selected > a .count, html body #object-nav li.current > a .count { background: rgba(255, 255, 255, .24) !important; color: #fff !important; }
html body .bp-navs li > a .count:empty { display: none !important; }
html body .bp-subnavs ul { display: inline-flex !important; flex-wrap: wrap; gap: 4px; padding: 5px !important; background: var(--cbp-accent-soft) !important; border-radius: 999px !important; }
html body .bp-subnavs li > a { min-height: 36px !important; padding: 0 18px !important; border: 0 !important; background: transparent !important; font-size: 13px !important; }
html body .bp-subnavs li > a:hover { background: rgba(255, 255, 255, .75) !important; border: 0 !important; }
html body .bp-subnavs li.selected > a, html body .bp-subnavs li.current > a { background: var(--cbp-accent) !important; color: #fff !important; }
@media (max-width: 782px) {
	html body .bp-navs ul, html body #object-nav ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	html body .bp-subnavs ul { display: flex !important; border-radius: 24px !important; }
}

/* ================================================================
   5. Directories (members, groups) as cards
   ================================================================ */
body #buddypress #members-list, body #buddypress #groups-list, body #buddypress ul.members-list, body #buddypress ul.groups-list, body #buddypress ul.item-list.grid, body #buddypress ul.bp-list.grid {
	display: grid;
	grid-template-columns: repeat(var(--cbp-cols), minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body #buddypress #members-list > li, body #buddypress #groups-list > li, body #buddypress ul.members-list > li, body #buddypress ul.groups-list > li {
	margin: 0;
	padding: 0;
	width: auto;
	float: none;
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: var(--cbp-radius);
	box-shadow: var(--cbp-shadow-sm);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body #buddypress #members-list > li:hover, body #buddypress #groups-list > li:hover, body #buddypress ul.members-list > li:hover, body #buddypress ul.groups-list > li:hover {
	transform: translateY(-4px);
	border-color: var(--cbp-sage);
	box-shadow: var(--cbp-shadow);
}
body #buddypress ul.bp-list::before, body #buddypress ul.bp-list::after, body #buddypress .bp-list li::before, body #buddypress .bp-list li::after { content: none !important; display: none !important; }
body #buddypress ul.bp-list:not(.activity-list) { border: 0 !important; clear: none; width: 100%; }
body #buddypress .list-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 0 24px 26px;
	text-align: center;
	background: transparent;
	border: 0;
}
body #buddypress .list-wrap::before {
	content: "";
	align-self: stretch;
	height: 84px;
	margin: 0 -24px -42px;
	background:
		radial-gradient(70% 120% at 85% 0%, rgba(255, 255, 255, .45), transparent 60%),
		linear-gradient(135deg, var(--cbp-sage), var(--cbp-sage-dark));
}
body #buddypress .list-wrap .item-avatar { position: relative; float: none; width: auto; margin: 0; }
body #buddypress .list-wrap .item-avatar img.avatar { width: 84px; height: 84px; border: 4px solid #fff; box-shadow: var(--cbp-shadow-sm); }
body #buddypress .list-wrap .item { float: none; width: 100%; margin: 0; padding: 0; }
body #buddypress .item-block { margin: 0; }
body #buddypress .list-title, body #buddypress .list-title a { font-family: var(--cbp-font-heading); font-size: 25px; font-weight: 600; line-height: 1.15; color: var(--cbp-ink); margin: 0; }
body #buddypress .list-title a:hover { color: var(--cbp-primary); }
body #buddypress .item-meta, body #buddypress .last-activity, body #buddypress .meta { font-size: 13px; color: var(--cbp-muted); margin: 4px 0 0; }
body #buddypress .is-online .item-avatar::after, body #buddypress li.is-online .item-avatar::after {
	content: "";
	position: absolute;
	right: 4px;
	bottom: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #35a46a;
	border: 3px solid #fff;
}
body #buddypress .member-short-description, body #buddypress .group-desc, body #buddypress .item-desc { font-size: 14px; color: var(--cbp-muted); margin-top: 8px; }
body #buddypress .list-wrap .action, body #buddypress .list-wrap .members-meta, body #buddypress .list-wrap .groups-meta { position: static !important; float: none; display: flex; flex-wrap: wrap; width: 100%; margin: auto 0 0; justify-content: center; gap: 10px; padding-top: 6px; }
body #buddypress .list-wrap .action .generic-button, body #buddypress .list-wrap .action div.generic-button { display: block; float: none; width: auto !important; flex: 0 0 auto; margin: 0 !important; }
body #buddypress .list-wrap .item .item-block, body #buddypress .list-wrap .item .list-title, body #buddypress .list-wrap .item .item-meta { float: none; width: 100%; margin-left: 0; margin-right: 0; }
body #buddypress .list-wrap .generic-button a, body #buddypress .list-wrap .generic-button button { padding: 8px 18px !important; font-size: 12px !important; }
body #buddypress .group-details, body #buddypress .item-meta .group-type, body #buddypress .group-type {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--cbp-accent-soft);
	color: var(--cbp-accent);
	font-size: 12px;
	font-weight: 600;
}

/* Pagination */
body #buddypress .bp-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 0; padding: 0; font-size: 14px; color: var(--cbp-muted); background: transparent; border: 0; }
body #buddypress .bp-pagination .pag-count, body #buddypress .bp-pagination p { margin: 0; }
body #buddypress .pagination-links { display: flex; flex-wrap: wrap; gap: 6px; }
body #buddypress .pagination-links .page-numbers, body #buddypress .pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1.5px solid var(--cbp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--cbp-ink);
	font-weight: 600;
	text-decoration: none;
}
body #buddypress .pagination-links .page-numbers:hover { border-color: var(--cbp-accent); color: var(--cbp-accent); }
body #buddypress .pagination-links .page-numbers.current { background: var(--cbp-primary); border-color: var(--cbp-primary); color: #fff; }
body #buddypress .pagination-links .page-numbers.dots { border: 0; background: transparent; }

/* ================================================================
   6. Profile and group header
   ================================================================ */
body #buddypress #item-header { margin: 0 0 32px; }
body #buddypress #cover-image-container {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: calc(var(--cbp-radius) + 6px);
	box-shadow: var(--cbp-shadow);
}
body #buddypress #header-cover-image {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 230px !important;
	background-color: var(--cbp-sage);
	background-image:
		radial-gradient(60% 90% at 82% 0%, rgba(255, 255, 255, .5), transparent 62%),
		radial-gradient(50% 80% at 14% 100%, rgba(61, 90, 64, .38), transparent 70%),
		linear-gradient(135deg, var(--cbp-sage) 0%, #c3cfc0 48%, var(--cbp-sage-dark) 100%);
	background-position: center;
	background-size: cover;
	border: 0;
}
body #buddypress #item-header-cover-image {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px 28px;
	margin: 0;
	padding: 158px 36px 32px;
}
body #buddypress #item-header-avatar { float: none; flex: none; width: auto; margin: 0; }
body #buddypress #item-header-avatar img.avatar {
	display: block;
	width: 150px;
	height: 150px;
	border: 6px solid #fff;
	box-shadow: var(--cbp-shadow);
}
body #buddypress #item-header-content { float: none; flex: 1 1 320px; width: auto; min-width: 0; margin: 0; padding: 82px 0 0; color: var(--cbp-ink); }
body #buddypress #item-header-content h2, body #buddypress #item-header-content .user-nicename, body #buddypress #item-header-content .bp-group-title {
	margin: 0 0 4px;
	font-size: 42px;
	line-height: 1.05;
}
body #buddypress #item-header-content .user-nicename a { color: inherit; }
body #buddypress #item-header-content .mention-name, body #buddypress #item-header-content .nicename { font-size: 15px; color: var(--cbp-muted); font-family: var(--cbp-font-body); font-weight: 500; }
body #buddypress #item-header-content .activity, body #buddypress #item-header-content .item-meta .activity, body #buddypress .highlight {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 10px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--cbp-accent-soft);
	color: var(--cbp-accent);
	font-size: 13px;
	font-weight: 600;
}
body #buddypress #item-header-content .activity::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #35a46a; }
body #buddypress #item-header-content p { margin: 0; }
body #buddypress #item-header-content .group-status, body #buddypress #item-header-content .highlight { margin: 6px 8px 10px 0; }
body #buddypress #item-header-content p.highlight { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; background: var(--cbp-tint); color: var(--cbp-primary); font-size: 13px; }
body #buddypress #item-header-content .group-description, body #buddypress #item-header-content .group-description p { color: var(--cbp-muted); max-width: 70ch; margin: 8px 0 0; }
body #buddypress #item-header-content .member-header-actions, body #buddypress #item-header-content .group-header-actions { margin-top: 14px; }
body #buddypress #item-actions { position: absolute; top: 24px; right: 32px; z-index: 3; margin: 0; font-size: 13px; color: #fff; }
body #buddypress #item-actions .moderators-lists { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
body #buddypress #item-actions dt, body #buddypress #item-actions .moderators-title { margin: 0; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
body #buddypress #item-actions dd { margin: 0; }
body #buddypress #item-actions ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
body #buddypress #item-actions li { margin: 0; padding: 0; }
body #buddypress #item-actions img.avatar { width: 38px; height: 38px; border: 2px solid #fff; box-shadow: var(--cbp-shadow-sm); }
body #buddypress .groups-header .desc-wrap, body #buddypress .desc-wrap { margin: 0; padding: 0; background: transparent !important; border: 0 !important; text-align: left; box-shadow: none !important; }
body #buddypress .groups-header .desc-wrap .group-description, body #buddypress .desc-wrap .group-description { margin: 18px 0 32px; padding: 26px 30px; background: #fff !important; border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius); box-shadow: var(--cbp-shadow-sm) !important; text-align: left; font-size: 16px; line-height: 1.75; color: var(--cbp-ink); }
body #buddypress .desc-wrap .group-description p:last-child { margin-bottom: 0; }
body #buddypress #item-actions h3 { font-family: var(--cbp-font-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
body #buddypress #item-actions .avatar { width: 34px; height: 34px; border: 2px solid #fff; }
body #buddypress .item-header-meta, body #buddypress #item-meta { margin-top: 10px; color: var(--cbp-muted); }
body #buddypress .bp-user #item-header, body #buddypress .bp-single-group #item-header { background: transparent; }

/* ================================================================
   7. Profile content: view, edit, tables
   ================================================================ */
body #buddypress .bp-widget { margin: 0 0 32px; }
body #buddypress table, body #buddypress table.bp-tables-user, body #buddypress table.profile-fields {
	width: 100%;
	margin: 0 0 28px;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: var(--cbp-radius);
	overflow: hidden;
}
body #buddypress table th { padding: 14px 20px; background: #f7f8f5; border: 0; border-bottom: 1px solid var(--cbp-line); text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cbp-muted); }
body #buddypress table td { padding: 16px 20px; border: 0; border-bottom: 1px solid var(--cbp-line); vertical-align: middle; background: transparent; }
body #buddypress table tr:last-child td { border-bottom: 0; }
body #buddypress table tbody tr:hover td { background: #fbfcfa; }
body #buddypress table.profile-fields td.label { width: 32%; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cbp-muted); }
body #buddypress table.profile-fields td.data, body #buddypress table.profile-fields td.data p { margin: 0; font-size: 17px; }
body #buddypress table tr.unread td, body #buddypress table tr.unread { background: var(--cbp-tint); }
body #buddypress table tr.unread td:first-child { box-shadow: inset 4px 0 0 var(--cbp-primary); }
body #buddypress table .notification-actions a, body #buddypress table td.actions a, body #buddypress table td.notification-actions a { display: inline-flex; margin-right: 8px; padding: 5px 14px; border: 1.5px solid var(--cbp-line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--cbp-ink); }
body #buddypress table .notification-actions a:hover { border-color: var(--cbp-primary); color: var(--cbp-primary); }
body #buddypress td.notification-actions, body #buddypress table .notification-actions { white-space: nowrap; }
body #buddypress .notifications-options-nav, body #buddypress .bp-notifications-options-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
/* Edit profile: remove the grey box and border Nouveau puts around each field */
body #buddypress .profile.edit .editfield, body #buddypress .profile.edit .editfield:hover,
body #buddypress .profile-edit .editfield, body #buddypress .profile-edit .editfield:hover,
body #buddypress #profile-edit-form .editfield, body #buddypress #profile-edit-form .editfield:hover {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
body #buddypress .profile.edit .editfield fieldset, body #buddypress #profile-edit-form .editfield fieldset { background: transparent !important; border: 0 !important; padding: 0 !important; }
body #buddypress .profile-edit .editfield label, body #buddypress .profile-edit .editfield legend { margin-bottom: 8px; }
body #buddypress .profile-edit .bp-navs ul { margin-bottom: 24px; }

/* ================================================================
   8. Activity
   ================================================================ */
body #buddypress .activity-update-form {
	margin: 0 0 32px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: var(--cbp-radius);
	box-shadow: var(--cbp-shadow-sm);
}
body #buddypress .item-body .activity-update-form .activity-form, body #buddypress #whats-new-form { display: flow-root; margin: 0; padding: 0; }
body #buddypress .activity-update-form #whats-new-avatar { float: left; width: 56px; margin: 0 18px 0 0; text-align: left; }
body #buddypress .activity-update-form #whats-new-avatar img { display: block; width: 56px; height: 56px; border-radius: 50%; box-shadow: none; }
body #buddypress .activity-update-form #whats-new-content { overflow: hidden; padding: 0; }
body #buddypress .activity-update-form #whats-new-textarea textarea, body #buddypress #whats-new {
	min-height: 56px;
	padding: 15px 22px;
	border: 1.5px solid transparent;
	border-radius: 28px;
	background: #f7f8f5;
	line-height: 1.5;
	box-shadow: none;
}
body #buddypress .activity-update-form #whats-new-textarea textarea:focus, body #buddypress #whats-new:focus { background: #fff; border-color: var(--cbp-accent); box-shadow: 0 0 0 4px rgba(61, 90, 64, .14); }
body #buddypress .activity-update-form #whats-new-options { clear: both; overflow: hidden; margin: 16px 0 0; padding: 0; }
body #buddypress .activity-update-form #whats-new-buttons { float: left; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
body #buddypress .activity-update-form #whats-new-buttons > li { margin: 0; }
body #buddypress .activity-update-form #whats-new-buttons > li button { width: 40px; height: 40px; padding: 0 !important; }
body #buddypress #whats-new-submit { float: right; display: flex; gap: 10px; align-items: center; margin: 0; }
body #buddypress .activity-update-form #whats-new-post-in-box { clear: both; margin: 14px 0 0; }
body #buddypress .activity-update-form .bp-feedback { margin: 0 0 16px; }
body #buddypress #activity-stream, body #buddypress ul.activity-list, body #buddypress .activity-list.bp-list { margin: 0; padding: 0 !important; list-style: none; display: block; background: transparent !important; border: 0 !important; box-shadow: none; }
body #buddypress li.activity-item, body #buddypress ul.activity-list > li {
	position: relative;
	display: flex;
	gap: 0 18px;
	margin: 0 0 18px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: var(--cbp-radius);
	box-shadow: var(--cbp-shadow-sm);
	transition: box-shadow .25s ease, border-color .25s ease;
	flex-wrap: wrap;
}
body #buddypress li.activity-item:hover { border-color: var(--cbp-sage); box-shadow: var(--cbp-shadow); }
body #buddypress li.activity-item .activity-avatar, body #buddypress li.activity-item .item-avatar { flex: 0 0 56px; width: 56px !important; margin: 0; float: none; }
body #buddypress li.activity-item .activity-avatar a { display: block; }
body #buddypress li.activity-item .activity-avatar img.avatar { display: block; width: 56px !important; height: 56px !important; max-width: none !important; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
body #buddypress li.activity-item .activity-content { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; float: none; }
body #buddypress .activity-header { margin: 0 0 12px; font-size: 14px; color: var(--cbp-muted); }
body #buddypress .activity-header p { margin: 0; }
body #buddypress .activity-header a:first-of-type { font-weight: 700; color: var(--cbp-ink); }
body #buddypress .activity-header a:first-of-type:hover { color: var(--cbp-primary); }
body #buddypress .activity-header .time-since, body #buddypress .activity-time-since { color: var(--cbp-muted); font-size: 13px; }
body #buddypress .activity-inner, body #buddypress .activity-content .activity-inner { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--cbp-ink); }
body #buddypress .activity-inner p:last-child { margin-bottom: 0; }
body #buddypress .activity-inner blockquote, body #buddypress .activity-inner .activity-quote { margin: 14px 0; padding: 14px 20px; border-left: 4px solid var(--cbp-sage); background: #f7f8f5; border-radius: 0 var(--cbp-radius-sm) var(--cbp-radius-sm) 0; }
body #buddypress .activity-inner img { max-width: 100%; height: auto; border-radius: var(--cbp-radius-sm); }
body #buddypress .activity-meta, body #buddypress .activity-meta.action, body #buddypress .activity-list .activity-item .activity-meta.action { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 0 0 !important; background: transparent !important; border: 0 !important; }
body #buddypress .activity-list .activity-item .activity-meta.action div.generic-button { margin: 0; }
body #buddypress .activity-meta .button, body #buddypress .activity-meta a.button, body #buddypress .activity-meta .generic-button a {
	padding: 6px 14px !important;
	border: 1.5px solid var(--cbp-line);
	background: #fff;
	color: var(--cbp-muted);
	font-size: 12px !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	font-weight: 600 !important;
}
body #buddypress .activity-meta .button:hover, body #buddypress .activity-meta a.button:hover { border-color: var(--cbp-primary); background: var(--cbp-tint); color: var(--cbp-primary); }
body #buddypress .activity-meta .fav.unfav, body #buddypress .activity-meta .button.unfav, body #buddypress .activity-meta .bp-like-button.has-like { border-color: var(--cbp-primary); background: var(--cbp-tint); color: var(--cbp-primary); }
body #buddypress .activity-meta .delete-activity:hover, body #buddypress .activity-meta .delete-activity { text-transform: none; }
body #buddypress .activity-meta .comment-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--cbp-accent-soft); color: var(--cbp-accent); font-size: 12px; text-align: center; }
body #buddypress li.activity-item .activity-comments { flex: 1 1 100%; margin: 6px 0 0; padding: 0; width: 100%; }
body #buddypress .activity-comments ul { margin: 0; padding: 0; list-style: none; }
body #buddypress .activity-comments ul li { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; padding: 14px 16px; background: #f7f8f5; border: 0; border-radius: var(--cbp-radius-sm); }
body #buddypress .activity-comments ul ul { flex: 1 1 100%; margin-top: 8px; }
body #buddypress .acomment-meta, body #buddypress .acomment-content, body #buddypress .acomment-options, body #buddypress .activity-comments ul li { border: 0 !important; background: transparent !important; box-shadow: none !important; }
body #buddypress .activity-comments ul li { background: #f7f8f5 !important; }
body #buddypress .acomment-avatar { flex: none; float: none; margin: 0; }
body #buddypress .acomment-avatar img { width: 36px; height: 36px; }
body #buddypress .acomment-meta { flex: 1 1 0; min-width: 0; margin: 0; font-size: 13px; color: var(--cbp-muted); }
body #buddypress .acomment-content { flex: 1 1 100%; padding-left: 48px; margin: -6px 0 0; font-size: 15px; }
body #buddypress .acomment-content p { margin: 0 0 6px; }
body #buddypress .acomment-options { flex: 1 1 100%; padding-left: 48px; font-size: 13px; }
body #buddypress .acomment-options a { margin-right: 14px; font-weight: 600; }
body #buddypress form.ac-form { margin: 14px 0 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
body #buddypress form.ac-form .ac-reply-avatar { float: left; }
body #buddypress form.ac-form .ac-reply-avatar img { width: 36px; height: 36px; border: 0; }
body #buddypress form.ac-form .ac-reply-content { overflow: hidden; padding-left: 14px; color: var(--cbp-ink); }
body #buddypress form.ac-form .ac-textarea { margin: 0 0 12px; padding: 0; overflow: visible; }
body #buddypress form.ac-form .ac-textarea textarea { min-height: 80px; padding: 14px 18px; border: 1.5px solid transparent; border-radius: 18px; background: #f7f8f5; box-shadow: none; }
body #buddypress form.ac-form .ac-textarea textarea:focus { background: #fff; border-color: var(--cbp-accent); box-shadow: 0 0 0 4px rgba(61, 90, 64, .14); }
body #buddypress form.ac-form .ac-reply-content input[type="submit"], body #buddypress form.ac-form .ac-reply-cancel { margin: 0 8px 0 0; padding: 9px 20px !important; font-size: 12px !important; }
body #buddypress .ac-reply-cancel { display: inline-flex; align-items: center; border: 1.5px solid var(--cbp-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--cbp-muted) !important; font-weight: 600 !important; letter-spacing: .05em !important; text-transform: uppercase !important; cursor: pointer; }
body #buddypress .ac-reply-cancel:hover { border-color: var(--cbp-primary) !important; color: var(--cbp-primary) !important; background: var(--cbp-tint) !important; }
body #buddypress .activity-state, body #buddypress .activity-read-more { font-size: 14px; }
body #buddypress li.load-more, body #buddypress li.load-newest { list-style: none; text-align: center; margin: 12px 0; }
body #buddypress li.load-more a, body #buddypress li.load-newest a { display: inline-flex; padding: 11px 26px; border: 1.5px solid var(--cbp-ink); border-radius: 999px; background: transparent; color: var(--cbp-ink); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
body #buddypress li.load-more a:hover, body #buddypress li.load-newest a:hover { background: var(--cbp-ink); color: #fff; }

/* ================================================================
   9. Messages
   ================================================================ */
body #buddypress .bp-messages-content, body #buddypress #bp-message-thread-list, body #buddypress .message-lists { margin: 0; padding: 0; list-style: none; }
body #buddypress #bp-message-thread-list li, body #buddypress .message-lists li, body #buddypress li.thread-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--cbp-line);
	border-radius: var(--cbp-radius-sm);
	transition: border-color .2s ease, box-shadow .2s ease;
}
body #buddypress #bp-message-thread-list li:hover, body #buddypress .message-lists li:hover, body #buddypress li.thread-item:hover { border-color: var(--cbp-sage); box-shadow: var(--cbp-shadow-sm); }
body #buddypress li.unread, body #buddypress .thread-item.unread { background: var(--cbp-tint); border-color: #efd3c8; }
body #buddypress .thread-subject .subject, body #buddypress .thread-subject { font-weight: 700; }
body #buddypress .thread-excerpt, body #buddypress .thread-from, body #buddypress .thread-date { color: var(--cbp-muted); font-size: 14px; }
body #buddypress .bp-messages-nav, body #buddypress .bp-messages-filters { margin-bottom: 20px; }
body #buddypress #send-reply, body #buddypress #send_message_form, body #buddypress .message-form { margin-top: 24px; }
body #buddypress .message-thread-header, body #buddypress #message-thread { background: #fff; border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius); padding: 24px; margin-bottom: 20px; }

/* ================================================================
   10. Notices and feedback
   ================================================================ */
body #buddypress .bp-feedback, body #buddypress #message.info, body #buddypress #message.updated, body #buddypress .bp-template-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 20px;
	background: var(--cbp-accent-soft);
	border: 0;
	border-radius: var(--cbp-radius-sm);
	color: var(--cbp-ink);
	box-shadow: inset 4px 0 0 var(--cbp-accent);
}
body #buddypress .bp-feedback p, body #buddypress #message p { margin: 0; }
body #buddypress .bp-feedback .bp-icon { display: none; }
body #buddypress .bp-feedback.error, body #buddypress #message.error, body #buddypress .bp-template-notice.error { background: #fbeceb; box-shadow: inset 4px 0 0 #b3261e; }
body #buddypress .bp-feedback.warning { background: #fbf3e0; box-shadow: inset 4px 0 0 #b8892b; }
body #buddypress .bp-feedback.success, body #buddypress #message.updated, body #buddypress .bp-template-notice.updated { background: #e8f4ec; box-shadow: inset 4px 0 0 #2e7d4f; }
body #buddypress .bp-feedback.loading { background: #f7f8f5; box-shadow: inset 4px 0 0 var(--cbp-sage); color: var(--cbp-muted); }
body #buddypress .bp-feedback a { font-weight: 700; text-decoration: underline; }
body #buddypress .user-badge, body #buddypress .bp-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--cbp-tint); color: var(--cbp-primary); font-size: 12px; font-weight: 700; }

/* ================================================================
   11. Sign up, activation, group creation
   ================================================================ */
body #buddypress #register-page, body #buddypress #activate-page, body #buddypress .registration-form, body #buddypress #signup-form { max-width: 760px; margin-left: auto; margin-right: auto; }
body #buddypress #register-page .page-title, body #buddypress #activate-page .page-title { text-align: center; }
body #buddypress #signup-form.standard-form, body #buddypress #register-page form { padding: 40px; }
body #buddypress #signup-form .register-section { padding: 0 0 8px; margin: 0 0 28px; border-bottom: 1px solid var(--cbp-line); }
body #buddypress #signup-form .register-section:last-of-type { border-bottom: 0; }
body #buddypress #signup-form h2, body #buddypress #signup-form .register-section h2 { font-size: 30px; margin-bottom: 18px; }
body #buddypress #signup-submit { width: 100%; padding: 15px 24px; font-size: 14px; }
body #buddypress #group-create-body, body #buddypress .group-create-body { margin-top: 12px; }
body #buddypress #group-create-tabs ul { margin-bottom: 28px; }
body #buddypress .group-create-buttons, body #buddypress .submit.group-create-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
body #buddypress .group-avatar-image, body #buddypress #avatar-upload, body #buddypress .avatar-nav-items { margin: 18px 0; }
body #buddypress #avatar-crop-pane { max-width: 100%; border-radius: var(--cbp-radius-sm); overflow: hidden; }
/* Upload / Take Photo / Recycle / Delete tabs: pill switch like the profile sub tabs */
body #buddypress .bp-avatar-nav { margin: 0 0 24px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
body #buddypress .bp-avatar-nav ul, body #buddypress ul.avatar-nav-items {
	display: inline-flex !important;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 !important;
	padding: 5px !important;
	border: 0 !important;
	border-radius: 999px;
	background: var(--cbp-accent-soft) !important;
	list-style: none;
}
body #buddypress .avatar-nav-items li, body #buddypress .avatar-nav-item { float: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; list-style: none; }
body #buddypress .avatar-nav-items li a, body #buddypress .avatar-nav-item a {
	display: inline-flex !important;
	align-items: center;
	min-height: 38px;
	margin: 0 !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
body #buddypress .avatar-nav-items li a:hover, body #buddypress .avatar-nav-item a:hover { background: rgba(255, 255, 255, .75) !important; color: var(--cbp-accent) !important; }
body #buddypress .avatar-nav-items li.current a, body #buddypress .avatar-nav-item.current a, body #buddypress .avatar-nav-items li a.current {
	background: var(--cbp-primary) !important;
	color: #fff !important;
	box-shadow: var(--cbp-shadow-sm) !important;
}

/* Drag and drop area: one rounded dashed box only */
body #buddypress .bp-uploader-window { margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body #buddypress .drag-drop, body #buddypress #drag-drop-area {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	height: auto !important;
	padding: 36px 24px !important;
	border: 2px dashed var(--cbp-sage) !important;
	border-radius: var(--cbp-radius) !important;
	background: #f9faf8 !important;
	text-align: center;
	transition: border-color .2s ease, background-color .2s ease;
}
body #buddypress .drag-drop:hover, body #buddypress #drag-drop-area:hover { border-color: var(--cbp-accent) !important; }
body #buddypress .drag-drop .drag-drop-inside, body #buddypress #drag-drop-area .drag-drop-inside {
	width: auto !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
body #buddypress .drag-drop .drag-drop-info { margin: 0 0 16px; font-size: 18px; color: var(--cbp-muted); }
body #buddypress .drag-drop.drag-over, body #buddypress #drag-drop-area.drag-over { border-color: var(--cbp-primary) !important; background: var(--cbp-tint) !important; }

/* The upload form is empty when the drag and drop uploader is used: do not draw it as a card */
body #buddypress #avatar-upload-form.standard-form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
@media (max-width: 560px) {
	body #buddypress .bp-avatar-nav ul, body #buddypress ul.avatar-nav-items { display: flex !important; border-radius: 24px; }
	body #buddypress .avatar-nav-items li a, body #buddypress .avatar-nav-item a { padding: 0 14px !important; }
}
body #buddypress .bp-avatar-status, body #buddypress .bp-cover-image-status { margin: 12px 0; }
body #buddypress .bp-uploader-progress, body #buddypress .progress { height: 8px; background: var(--cbp-line); border-radius: 999px; overflow: hidden; }
body #buddypress .bp-uploader-progress .bp-progress-bar, body #buddypress .progress-bar { height: 100%; background: var(--cbp-primary); }

/* Members and groups lists inside other screens (friends, group members, invites) */
body #buddypress #item-body .members-list, body #buddypress #item-body .groups-list { margin-top: 8px; }
body #buddypress #item-body .item-list:not(.activity-list):not(.members-list):not(.groups-list) > li { padding: 16px 20px; margin-bottom: 10px; background: #fff; border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius-sm); list-style: none; }
body #buddypress #group-invites-container, body #buddypress .invites-list { margin-top: 12px; }
body #buddypress .group-manage-nav, body #buddypress .groups-manage-members-list { margin-bottom: 24px; }
body #buddypress .bp-groups-admin-nav { margin-bottom: 20px; }

/* ================================================================
   12. BuddyPress widgets (sidebars, Elementor, shortcodes)
   ================================================================ */
body .widget.buddypress, body .widget_bp_core_members_widget, body .widget_bp_groups_widget, body .widget_bp_core_login_widget, body .widget_bp_core_whos_online_widget, body .widget_bp_core_recently_active_widget {
	font-family: var(--cbp-font-body);
	color: var(--cbp-ink);
}
body .widget.buddypress .widget-title, body .widget.buddypress h2, body .widget.buddypress h3 { font-family: var(--cbp-font-heading); font-weight: 600; font-size: 26px; color: var(--cbp-ink); }
body .widget.buddypress .item-options { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; font-size: 13px; }
body .widget.buddypress .item-options a { padding: 5px 14px; border: 1.5px solid var(--cbp-line); border-radius: 999px; color: var(--cbp-ink); font-weight: 600; text-decoration: none; }
body .widget.buddypress .item-options a.selected, body .widget.buddypress .item-options a:hover { background: var(--cbp-primary); border-color: var(--cbp-primary); color: #fff; }
body .widget.buddypress ul.item-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
body .widget.buddypress ul.item-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--cbp-line); border-radius: var(--cbp-radius-sm); }
body .widget.buddypress .item-avatar img.avatar { width: 44px; height: 44px; border-radius: 50%; }
body .widget.buddypress .item-title a { font-weight: 700; color: var(--cbp-ink); }
body .widget.buddypress .item-meta .activity { font-size: 12px; color: var(--cbp-muted); }
body .widget.buddypress .avatar-block { display: flex; flex-wrap: wrap; gap: 8px; }
body .widget.buddypress .avatar-block img.avatar { width: 48px; height: 48px; border: 2px solid #fff; box-shadow: var(--cbp-shadow-sm); }
body .widget_bp_core_login_widget input[type="text"], body .widget_bp_core_login_widget input[type="password"] { width: 100%; padding: 11px 16px; border: 1.5px solid var(--cbp-line); border-radius: var(--cbp-radius-sm); }
body .widget_bp_core_login_widget input[type="submit"] { padding: 11px 24px; border: 0; border-radius: 999px; background: var(--cbp-primary); color: #fff; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }

/* ================================================================
   13. Responsive
   ================================================================ */
@media (max-width: 1024px) {
	body #buddypress #members-list, body #buddypress #groups-list, body #buddypress ul.members-list, body #buddypress ul.groups-list, body #buddypress ul.item-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	body #buddypress h2 { font-size: 30px; }
	body #buddypress #header-cover-image { height: 170px !important; }
	body #buddypress #item-header-cover-image { padding: 110px 22px 26px; flex-direction: column; align-items: center; text-align: center; }
	body #buddypress #item-header-avatar img.avatar { width: 124px; height: 124px; }
	body #buddypress #item-header-content { flex-basis: auto; width: 100%; padding-top: 0; }
	body #buddypress #item-header-content h2, body #buddypress #item-header-content .user-nicename { font-size: 34px; }
	body #buddypress #item-header-content .member-header-actions, body #buddypress #item-header-content .group-header-actions { justify-content: center; }
	body #buddypress .bp-navs ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	body #buddypress .bp-navs ul::-webkit-scrollbar { display: none; }
	body #buddypress .bp-navs li a { white-space: nowrap; }
	body #buddypress .bp-subnavs ul { display: flex; border-radius: 24px; }
	body #buddypress .subnav-filters { flex-direction: column; align-items: stretch; }
	body #buddypress form.bp-dir-search-form { max-width: none; }
	body #buddypress .component-filters, body #buddypress .last.filter { justify-content: space-between; }
	body #buddypress #item-actions { position: static; margin: 16px 0 0; color: var(--cbp-ink); }
	body #buddypress #item-actions dt, body #buddypress #item-actions .moderators-title { color: var(--cbp-muted); text-shadow: none; }
	body #buddypress .select-wrap { flex: 1; }
	body #buddypress .activity-update-form { padding: 18px; }
	body #buddypress .activity-update-form #whats-new-avatar { width: 44px; margin-right: 12px; }
	body #buddypress .activity-update-form #whats-new-avatar img { width: 44px; height: 44px; }
	body #buddypress li.activity-item { padding: 18px; gap: 14px; }
	body #buddypress li.activity-item .activity-avatar img.avatar { width: 44px; height: 44px; }
	body #buddypress .standard-form, body #buddypress #signup-form.standard-form { padding: 22px; }
	body #buddypress table { display: block; overflow-x: auto; }
	body #buddypress .acomment-content, body #buddypress .acomment-options { padding-left: 0; }
}
@media (max-width: 560px) {
	body #buddypress #members-list, body #buddypress #groups-list, body #buddypress ul.members-list, body #buddypress ul.groups-list, body #buddypress ul.item-list.grid { grid-template-columns: minmax(0, 1fr); }
	body #buddypress .bp-pagination { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	body #buddypress *, body #buddypress *::before, body #buddypress *::after { transition: none !important; animation: none !important; }
	body #buddypress #members-list > li:hover, body #buddypress #groups-list > li:hover { transform: none; }
}

/* ================================================================
   14. Page title on BuddyPress pages (can be switched off in the settings)
   ================================================================ */
body.cli-bpd-title.buddypress .page-header, body.cli-bpd-title.buddypress header.entry-header { max-width: none; margin: 56px 0 0; padding: 0; }
body.cli-bpd-title.buddypress .page-header .entry-title, body.cli-bpd-title.buddypress h1.entry-title, body.cli-bpd-title.buddypress .page-title {
	margin: 0 0 28px !important;
	font-family: var(--cbp-font-heading) !important;
	font-size: clamp(38px, 5.2vw, 58px) !important;
	font-weight: 600 !important;
	letter-spacing: -.015em;
	line-height: 1.08 !important;
	color: var(--cbp-ink) !important;
}
/* ================================================================
   15. Directory cards v2 (members and groups). Works in list and grid view.
   ================================================================ */
body #buddypress #members-list,
body #buddypress #groups-list,
body #buddypress ul.members-list,
body #buddypress ul.groups-list { display: grid !important; grid-template-columns: repeat(var(--cbp-cols), minmax(0, 1fr)); gap: 24px; width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none; }
body #buddypress #members-list.grid,
body #buddypress #groups-list.grid,
body #buddypress ul.members-list.grid,
body #buddypress ul.groups-list.grid { grid-template-columns: repeat(var(--cbp-cols-grid), minmax(0, 1fr)); gap: 20px; }
body #buddypress #members-list > li,
body #buddypress #groups-list > li,
body #buddypress ul.members-list > li,
body #buddypress ul.groups-list > li,
body #buddypress #members-list > li.item-entry,
body #buddypress #groups-list > li.item-entry,
body #buddypress ul.members-list > li.item-entry,
body #buddypress ul.groups-list > li.item-entry {
	position: relative;
	display: block;
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	background:
		radial-gradient(70% 140% at 88% 0%, rgba(255, 255, 255, .45), transparent 60%) 0 0 / 100% 88px no-repeat,
		linear-gradient(135deg, var(--cbp-sage), var(--cbp-sage-dark)) 0 0 / 100% 88px no-repeat,
		#fff !important;
	border: 1px solid var(--cbp-line) !important;
	border-radius: var(--cbp-radius) !important;
	box-shadow: var(--cbp-shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body #buddypress #members-list > li:hover,
body #buddypress #groups-list > li:hover,
body #buddypress ul.members-list > li:hover,
body #buddypress ul.groups-list > li:hover { transform: translateY(-4px); border-color: var(--cbp-sage) !important; box-shadow: var(--cbp-shadow); }
body #buddypress #members-list > li .list-wrap,
body #buddypress #groups-list > li .list-wrap,
body #buddypress ul.members-list > li .list-wrap,
body #buddypress ul.groups-list > li .list-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 0 !important;
	margin: 0;
	padding: 44px 22px 24px !important;
	overflow: visible !important;
	background: transparent !important;
	border: 0 !important;
	text-align: center;
}
body #buddypress #members-list > li .list-wrap::before,
body #buddypress #groups-list > li .list-wrap::before,
body #buddypress ul.members-list > li .list-wrap::before,
body #buddypress ul.groups-list > li .list-wrap::before,
body #buddypress #members-list > li .list-wrap::after,
body #buddypress #groups-list > li .list-wrap::after,
body #buddypress ul.members-list > li .list-wrap::after,
body #buddypress ul.groups-list > li .list-wrap::after { content: none !important; display: none !important; }
body #buddypress #members-list > li .item-avatar,
body #buddypress #groups-list > li .item-avatar,
body #buddypress ul.members-list > li .item-avatar,
body #buddypress ul.groups-list > li .item-avatar { position: relative; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; text-align: center; }
body #buddypress #members-list > li .item-avatar img.avatar,
body #buddypress #groups-list > li .item-avatar img.avatar,
body #buddypress ul.members-list > li .item-avatar img.avatar,
body #buddypress ul.groups-list > li .item-avatar img.avatar,
body #buddypress #members-list > li .item-avatar .avatar,
body #buddypress #groups-list > li .item-avatar .avatar,
body #buddypress ul.members-list > li .item-avatar .avatar,
body #buddypress ul.groups-list > li .item-avatar .avatar { display: block; width: 88px !important; height: 88px !important; max-width: none !important; border: 4px solid #fff; border-radius: 50%; box-shadow: var(--cbp-shadow-sm); object-fit: cover; }
body #buddypress #members-list > li .item,
body #buddypress #groups-list > li .item,
body #buddypress ul.members-list > li .item,
body #buddypress ul.groups-list > li .item,
body #buddypress #members-list > li .item-block,
body #buddypress #groups-list > li .item-block,
body #buddypress ul.members-list > li .item-block,
body #buddypress ul.groups-list > li .item-block { float: none !important; width: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
body #buddypress #members-list > li .list-title,
body #buddypress #groups-list > li .list-title,
body #buddypress ul.members-list > li .list-title,
body #buddypress ul.groups-list > li .list-title,
body #buddypress #members-list > li .list-title a,
body #buddypress #groups-list > li .list-title a,
body #buddypress ul.members-list > li .list-title a,
body #buddypress ul.groups-list > li .list-title a { padding: 0 !important; margin: 0; font-size: 24px; }
body #buddypress #members-list > li .item-meta,
body #buddypress #groups-list > li .item-meta,
body #buddypress ul.members-list > li .item-meta,
body #buddypress ul.groups-list > li .item-meta,
body #buddypress #members-list > li .last-activity,
body #buddypress #groups-list > li .last-activity,
body #buddypress ul.members-list > li .last-activity,
body #buddypress ul.groups-list > li .last-activity { margin: 4px 0 0; padding: 0; }
body #buddypress #members-list > li .update,
body #buddypress #groups-list > li .update,
body #buddypress ul.members-list > li .update,
body #buddypress ul.groups-list > li .update,
body #buddypress #members-list > li .member-short-description,
body #buddypress #groups-list > li .member-short-description,
body #buddypress ul.members-list > li .member-short-description,
body #buddypress ul.groups-list > li .member-short-description,
body #buddypress #members-list > li .group-desc,
body #buddypress #groups-list > li .group-desc,
body #buddypress ul.members-list > li .group-desc,
body #buddypress ul.groups-list > li .group-desc { margin: 8px 0 0; padding: 0 !important; min-height: 0 !important; color: var(--cbp-muted); }
body #buddypress #members-list > li .action,
body #buddypress #groups-list > li .action,
body #buddypress ul.members-list > li .action,
body #buddypress ul.groups-list > li .action,
body #buddypress #members-list > li .members-meta,
body #buddypress #groups-list > li .members-meta,
body #buddypress ul.members-list > li .members-meta,
body #buddypress ul.groups-list > li .members-meta,
body #buddypress #members-list > li .groups-meta,
body #buddypress #groups-list > li .groups-meta,
body #buddypress ul.members-list > li .groups-meta,
body #buddypress ul.groups-list > li .groups-meta { position: static !important; float: none !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100% !important; margin: auto 0 0 !important; padding: 8px 0 0 !important; }
body #buddypress #members-list > li .action .generic-button,
body #buddypress #groups-list > li .action .generic-button,
body #buddypress ul.members-list > li .action .generic-button,
body #buddypress ul.groups-list > li .action .generic-button,
body #buddypress #members-list > li div.generic-button,
body #buddypress #groups-list > li div.generic-button,
body #buddypress ul.members-list > li div.generic-button,
body #buddypress ul.groups-list > li div.generic-button { display: block; float: none !important; width: auto !important; margin: 0 !important; padding: 0; flex: 0 0 auto; }
body #buddypress #members-list > li .generic-button a,
body #buddypress #groups-list > li .generic-button a,
body #buddypress ul.members-list > li .generic-button a,
body #buddypress ul.groups-list > li .generic-button a,
body #buddypress #members-list > li .generic-button button,
body #buddypress #groups-list > li .generic-button button,
body #buddypress ul.members-list > li .generic-button button,
body #buddypress ul.groups-list > li .generic-button button,
body #buddypress #members-list > li .action .button,
body #buddypress #groups-list > li .action .button,
body #buddypress ul.members-list > li .action .button,
body #buddypress ul.groups-list > li .action .button { padding: 8px 18px !important; min-height: 34px; font-size: 11px !important; letter-spacing: .06em !important; line-height: 1.2 !important; width: auto !important; }
body #buddypress #members-list > li .item,
body #buddypress #groups-list > li .item,
body #buddypress ul.members-list > li .item,
body #buddypress ul.groups-list > li .item,
body #buddypress #members-list > li .item-block,
body #buddypress #groups-list > li .item-block,
body #buddypress ul.members-list > li .item-block,
body #buddypress ul.groups-list > li .item-block,
body #buddypress #members-list > li .list-title,
body #buddypress #groups-list > li .list-title,
body #buddypress ul.members-list > li .list-title,
body #buddypress ul.groups-list > li .list-title,
body #buddypress #members-list > li .item-meta,
body #buddypress #groups-list > li .item-meta,
body #buddypress ul.members-list > li .item-meta,
body #buddypress ul.groups-list > li .item-meta,
body #buddypress #members-list > li .update,
body #buddypress #groups-list > li .update,
body #buddypress ul.members-list > li .update,
body #buddypress ul.groups-list > li .update,
body #buddypress #members-list > li .member-short-description,
body #buddypress #groups-list > li .member-short-description,
body #buddypress ul.members-list > li .member-short-description,
body #buddypress ul.groups-list > li .member-short-description,
body #buddypress #members-list > li .group-desc,
body #buddypress #groups-list > li .group-desc,
body #buddypress ul.members-list > li .group-desc,
body #buddypress ul.groups-list > li .group-desc { text-align: center !important; }
/* Grid view: denser, smaller cards */
body #buddypress #members-list.grid > li .list-wrap,
body #buddypress #groups-list.grid > li .list-wrap,
body #buddypress ul.members-list.grid > li .list-wrap,
body #buddypress ul.groups-list.grid > li .list-wrap { padding: 38px 16px 20px !important; }
body #buddypress #members-list.grid > li .item-avatar img.avatar,
body #buddypress #groups-list.grid > li .item-avatar img.avatar,
body #buddypress ul.members-list.grid > li .item-avatar img.avatar,
body #buddypress ul.groups-list.grid > li .item-avatar img.avatar,
body #buddypress #members-list.grid > li .item-avatar .avatar,
body #buddypress #groups-list.grid > li .item-avatar .avatar,
body #buddypress ul.members-list.grid > li .item-avatar .avatar,
body #buddypress ul.groups-list.grid > li .item-avatar .avatar { width: 76px !important; height: 76px !important; }
body #buddypress #members-list.grid > li .list-title,
body #buddypress #groups-list.grid > li .list-title,
body #buddypress ul.members-list.grid > li .list-title,
body #buddypress ul.groups-list.grid > li .list-title,
body #buddypress #members-list.grid > li .list-title a,
body #buddypress #groups-list.grid > li .list-title a,
body #buddypress ul.members-list.grid > li .list-title a,
body #buddypress ul.groups-list.grid > li .list-title a { font-size: 21px; }
@media (max-width: 1100px) {body #buddypress #members-list.grid,
body #buddypress #groups-list.grid,
body #buddypress ul.members-list.grid,
body #buddypress ul.groups-list.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body #buddypress #members-list,
body #buddypress #groups-list,
body #buddypress ul.members-list,
body #buddypress ul.groups-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {body #buddypress #members-list.grid,
body #buddypress #groups-list.grid,
body #buddypress ul.members-list.grid,
body #buddypress ul.groups-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {body #buddypress #members-list,
body #buddypress #groups-list,
body #buddypress ul.members-list,
body #buddypress ul.groups-list,
body #buddypress #members-list.grid,
body #buddypress #groups-list.grid,
body #buddypress ul.members-list.grid,
body #buddypress ul.groups-list.grid { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================
   16. Search, filter, view switch and pagination (directory top bar)
   ================================================================ */
body #buddypress .subnav-search .bp-search, body #buddypress .subnav-search .dir-search, body #buddypress .dir-search, body #buddypress .members-search, body #buddypress .groups-search { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
body #buddypress form.bp-dir-search-form::before, body #buddypress form.bp-dir-search-form::after { content: none !important; display: none !important; }
body #buddypress form.bp-dir-search-form, body #buddypress .bp-search form, body #buddypress .subnav-search form {
	display: flex !important;
	align-items: center;
	width: 100%;
	max-width: 440px;
	height: auto !important;
	margin: 0 !important;
	padding: 5px 5px 5px 20px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: var(--cbp-shadow-sm) !important;
}
body #buddypress form.bp-dir-search-form input[type="search"], body #buddypress form.bp-dir-search-form input[type="text"], body #buddypress .subnav-search input[type="search"] { flex: 1; min-width: 0; height: auto !important; padding: 10px 8px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 15px; }
body #buddypress form.bp-dir-search-form button[type="submit"], body #buddypress .nouveau-search-submit { flex: none; position: relative; width: 42px !important; height: 42px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--cbp-primary) !important; color: #fff !important; box-shadow: none !important; }
body #buddypress .subnav-filters select, body #buddypress .component-filters select, body #buddypress select[data-bp-filter], body #buddypress #members-order-by, body #buddypress #groups-order-by {
	-webkit-appearance: none;
	appearance: none;
	height: auto !important;
	padding: 11px 46px 11px 20px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d231e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 14px !important;
	box-shadow: var(--cbp-shadow-sm) !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 14px !important;
	cursor: pointer;
}
/* List / grid view switch */
body #buddypress .grid-filters, body #buddypress .bp-layout-switch, body #buddypress .layout-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0 14px 0 0; float: none; }
body #buddypress .grid-filters a, body #buddypress a.layout-view, body #buddypress a.layout-grid-view, body #buddypress a.layout-list-view, body #buddypress .bp-layout-switch a, body #buddypress .layout-switch a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0 !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--cbp-muted) !important;
	opacity: 1 !important;
	box-shadow: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
body #buddypress .grid-filters a::before, body #buddypress a.layout-view::before, body #buddypress .bp-layout-switch a::before, body #buddypress .layout-switch a::before { color: inherit !important; }
body #buddypress .grid-filters a:hover, body #buddypress a.layout-view:hover, body #buddypress .bp-layout-switch a:hover, body #buddypress .layout-switch a:hover { border-color: var(--cbp-accent) !important; color: var(--cbp-accent) !important; }
body #buddypress .grid-filters a.active, body #buddypress .grid-filters a.selected, body #buddypress .grid-filters a.current, body #buddypress .grid-filters a.is-active, body #buddypress .grid-filters a[aria-pressed="true"],
body #buddypress a.layout-view.active, body #buddypress a.layout-view.selected, body #buddypress a.layout-view.current, body #buddypress .bp-layout-switch a.active, body #buddypress .layout-switch a.active { border-color: var(--cbp-primary) !important; background: var(--cbp-primary) !important; color: #fff !important; }
/* Pagination: "Viewing 1 - 20 of 60" and page numbers */
body #buddypress .bp-pagination, body #buddypress .bp-pagination .pag-count, body #buddypress .bp-pagination p, body #buddypress .bp-pagination .pag-data { font-family: var(--cbp-font-body) !important; font-size: 14px !important; color: var(--cbp-muted) !important; }
body #buddypress .bp-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 26px; padding: 0 !important; border: 0 !important; background: transparent !important; }
body #buddypress #pag-bottom.bp-pagination, body #buddypress .bp-pagination.bottom { margin: 36px 0 0; }
body #buddypress .bp-pagination .pag-count { float: none !important; margin: 0 !important; }
body #buddypress .bp-pagination .bp-pagination-links, body #buddypress .bp-pagination .pagination-links { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
body #buddypress .bp-pagination .bp-pagination-links p, body #buddypress .bp-pagination .pagination-links p, body #buddypress .bp-pagination p.pag-data { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
body #buddypress .bp-pagination .page-numbers, body #buddypress .bp-pagination-links .page-numbers, body #buddypress .pagination-links .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 14px !important;
	font-weight: 600;
	text-decoration: none;
}
body #buddypress .bp-pagination a.page-numbers:hover { border-color: var(--cbp-accent) !important; color: var(--cbp-accent) !important; }
body #buddypress .bp-pagination .page-numbers.current { border-color: var(--cbp-primary) !important; background: var(--cbp-primary) !important; color: #fff !important; }
body #buddypress .bp-pagination .page-numbers.dots { border: 0 !important; background: transparent !important; }

/* ================================================================
   17. Settings > General: email, password and "Generate Password"
   ================================================================ */
/* Spacing between the email field, the notice and the buttons */
body #buddypress #settings-form label[for="email"] { margin-bottom: 8px; }
body #buddypress #settings-form input[type="email"] { margin-bottom: 22px; }
body #buddypress #settings-form .bp-feedback { margin: 0 0 22px !important; }
body #buddypress #settings-form .user-pass1-wrap, body #buddypress #settings-form .wp-pwd { margin: 0 0 22px; }
body #buddypress #settings-form .submit { margin-top: 6px; padding-top: 24px; border-top: 1px solid var(--cbp-line); }

/* Generate Password: soft green pill with a key icon */
body #buddypress .wp-generate-pw, body #buddypress button.wp-generate-pw {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 0 24px !important;
	padding: 12px 24px 12px 20px !important;
	border: 1.5px solid var(--cbp-accent) !important;
	border-radius: 999px !important;
	background: var(--cbp-accent-soft) !important;
	color: var(--cbp-accent) !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body #buddypress .wp-generate-pw::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='7.5' cy='15.5' r='5.5'/><path d='m21 2-9.6 9.6'/><path d='m15.5 7.5 3 3L22 7l-3-3'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='7.5' cy='15.5' r='5.5'/><path d='m21 2-9.6 9.6'/><path d='m15.5 7.5 3 3L22 7l-3-3'/></svg>") center / contain no-repeat;
}
body #buddypress .wp-generate-pw:hover, body #buddypress .wp-generate-pw:focus-visible {
	background: var(--cbp-accent) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: var(--cbp-shadow-sm) !important;
}

/* After clicking: new password field, show/hide and cancel buttons, strength meter */
body #buddypress #settings-form .wp-pwd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body #buddypress #settings-form .wp-pwd .password-input-wrapper { flex: 1 1 280px; min-width: 0; }
body #buddypress #settings-form .wp-pwd .password-input-wrapper input { margin: 0; }
body #buddypress #settings-form .wp-hide-pw { width: 46px; height: 46px; padding: 0 !important; border-radius: 50% !important; }
body #buddypress #settings-form .wp-hide-pw .dashicons { font-size: 20px; width: 20px; height: 20px; }
body #buddypress #settings-form .wp-cancel-pw { border-color: var(--cbp-line); background: #fff; color: var(--cbp-muted); }
body #buddypress #pass-strength-result { flex: 1 1 100%; margin: 4px 0 0; padding: 8px 16px; border: 0; border-radius: var(--cbp-radius-sm); background: #f7f8f5; font-size: 13px; font-weight: 600; color: var(--cbp-muted); }
body #buddypress #pass-strength-result:empty { display: none; }
body #buddypress #pass-strength-result.short, body #buddypress #pass-strength-result.bad { background: #fbeceb; color: #b3261e; }
body #buddypress #pass-strength-result.good { background: #fbf3e0; color: #8a6418; }
body #buddypress #pass-strength-result.strong { background: #e8f4ec; color: #2e7d4f; }

/* ================================================================
   18. Member and group cards inside a profile or a group
   (the content area is narrower there because of the sidebar)
   ================================================================ */
/* Fit as many cards as there is room for, but never narrower than 240px */
body #buddypress #item-body #groups-list, body #buddypress #item-body ul.groups-list,
body #buddypress #item-body #members-list, body #buddypress #item-body ul.members-list,
body #buddypress #item-body #groups-list.grid, body #buddypress #item-body ul.groups-list.grid,
body #buddypress #item-body #members-list.grid, body #buddypress #item-body ul.members-list.grid {
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)) !important;
	gap: 22px !important;
}

/* Group cards on a member's profile (Groups tab): bigger, 2 per row */
body #buddypress #item-body #groups-list, body #buddypress #item-body ul.groups-list,
body #buddypress #item-body #groups-list.grid, body #buddypress #item-body ul.groups-list.grid {
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)) !important;
	gap: 26px !important;
}
body #buddypress #item-body #groups-list > li .list-wrap, body #buddypress #item-body ul.groups-list > li .list-wrap { padding: 50px 30px 30px !important; gap: 12px; }
body #buddypress #item-body #groups-list > li, body #buddypress #item-body ul.groups-list > li {
	background:
		radial-gradient(70% 140% at 88% 0%, rgba(255, 255, 255, .45), transparent 60%) 0 0 / 100% 104px no-repeat,
		linear-gradient(135deg, var(--cbp-sage), var(--cbp-sage-dark)) 0 0 / 100% 104px no-repeat,
		#fff !important;
}
body #buddypress #item-body #groups-list > li .item-avatar img.avatar, body #buddypress #item-body ul.groups-list > li .item-avatar img.avatar,
body #buddypress #item-body #groups-list > li .item-avatar .avatar, body #buddypress #item-body ul.groups-list > li .item-avatar .avatar { width: 104px !important; height: 104px !important; border-width: 5px; }
body #buddypress #item-body #groups-list > li .list-title, body #buddypress #item-body ul.groups-list > li .list-title,
body #buddypress #item-body #groups-list > li .list-title a, body #buddypress #item-body ul.groups-list > li .list-title a { font-size: 28px !important; }
body #buddypress #item-body #groups-list > li .group-desc, body #buddypress #item-body ul.groups-list > li .group-desc { font-size: 15px !important; }
body #buddypress #item-body #groups-list > li .generic-button a, body #buddypress #item-body #groups-list > li .generic-button button,
body #buddypress #item-body ul.groups-list > li .generic-button a, body #buddypress #item-body ul.groups-list > li .generic-button button { padding: 10px 22px !important; font-size: 12px !important; }

/* Group description: plain text, no box, no italics, at most 3 lines */
body #buddypress #groups-list > li .group-desc, body #buddypress ul.groups-list > li .group-desc, body #buddypress .groups-list li .item-desc {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 14px !important;
	font-style: normal !important;
	line-height: 1.55 !important;
	color: var(--cbp-muted) !important;
}
body #buddypress #groups-list > li .group-desc p, body #buddypress ul.groups-list > li .group-desc p { display: inline; margin: 0; font-style: normal !important; }

/* "Public Group / 2 members" pill and "active ..." line */
body #buddypress #groups-list > li .item-meta.group-details, body #buddypress ul.groups-list > li .group-details {
	display: inline-block;
	width: auto !important;
	max-width: 100%;
	padding: 4px 14px !important;
	border-radius: 999px;
	line-height: 1.4;
}
body #buddypress #groups-list > li .last-activity, body #buddypress ul.groups-list > li .last-activity { font-size: 13px; }
body #buddypress #groups-list > li .item-meta, body #buddypress ul.groups-list > li .item-meta { width: auto !important; }

/* ================================================================
   19. Rich text editor (Messages > Compose, profile text areas)
   ================================================================ */
/* One rounded box around toolbar + writing area */
body #buddypress .wp-editor-wrap { margin: 4px 0 22px; }
body #buddypress .wp-editor-container {
	overflow: hidden;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: var(--cbp-radius-sm) !important;
	background: #fff !important;
	box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body #buddypress .wp-editor-container:focus-within { border-color: var(--cbp-accent) !important; box-shadow: 0 0 0 4px rgba(61, 90, 64, .14) !important; }
body #buddypress .wp-editor-container .mce-tinymce, body #buddypress .wp-editor-container .mce-panel { border: 0 !important; box-shadow: none !important; background: #fff !important; }

/* Toolbar */
body #buddypress .mce-toolbar-grp {
	padding: 6px 8px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--cbp-line) !important;
	background: #f7f8f5 !important;
}
body #buddypress .mce-toolbar-grp .mce-toolbar .mce-container-body { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
body #buddypress .mce-toolbar .mce-btn-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 0 !important; border: 0 !important; }
body #buddypress .mce-toolbar .mce-btn-group .mce-container-body { display: inline-flex; flex-wrap: wrap; gap: 2px; }
body #buddypress .mce-toolbar .mce-btn {
	margin: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
}
body #buddypress .mce-toolbar .mce-btn button,
body #buddypress .mce-toolbar .mce-btn button:hover,
body #buddypress .mce-toolbar .mce-btn button:focus {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 34px;
	height: 34px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 7px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
	font-size: 14px !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	outline: 0;
}
body #buddypress .mce-toolbar .mce-btn:hover, body #buddypress .mce-toolbar .mce-btn:focus-within { background: var(--cbp-accent-soft) !important; }
body #buddypress .mce-toolbar .mce-btn.mce-active, body #buddypress .mce-toolbar .mce-btn.mce-active:hover { background: var(--cbp-accent) !important; }
body #buddypress .mce-toolbar .mce-btn.mce-active button, body #buddypress .mce-toolbar .mce-btn.mce-active .mce-ico { color: #fff !important; }
body #buddypress .mce-toolbar .mce-btn.mce-disabled { opacity: .4; background: transparent !important; }
body #buddypress .mce-toolbar .mce-btn .mce-ico { color: inherit; font-size: 18px; width: 18px; height: 18px; line-height: 18px; }
body #buddypress .mce-toolbar .mce-btn .mce-caret { margin-left: 4px; border-top-color: var(--cbp-muted); }
body #buddypress .mce-toolbar .mce-splitbtn button + button { min-width: 18px; padding: 0 4px !important; }
/* Small divider between button groups */
body #buddypress .mce-toolbar .mce-btn-group + .mce-btn-group { margin-left: 6px !important; padding-left: 6px !important; border-left: 1px solid var(--cbp-line) !important; }

/* Writing area and resize bar */
body #buddypress .mce-edit-area { border: 0 !important; }
body #buddypress .mce-edit-area iframe { min-height: 200px; }
body #buddypress .mce-statusbar { border: 0 !important; border-top: 1px solid var(--cbp-line) !important; background: #fff !important; }
body #buddypress .mce-statusbar .mce-path { display: none; }

/* "Text" mode: plain textarea and quicktag buttons */
body #buddypress .wp-editor-container textarea.wp-editor-area { margin: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 14px 16px; }
body #buddypress .quicktags-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px !important; border: 0 !important; border-bottom: 1px solid var(--cbp-line) !important; background: #f7f8f5 !important; }
body #buddypress .quicktags-toolbar input.ed_button, body #buddypress .quicktags-toolbar input[type="button"] {
	display: inline-block;
	width: auto;
	min-height: 0;
	margin: 0 !important;
	padding: 5px 10px !important;
	border: 1px solid var(--cbp-line) !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--cbp-ink) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
body #buddypress .quicktags-toolbar input[type="button"]:hover { border-color: var(--cbp-accent) !important; color: var(--cbp-accent) !important; }
body #buddypress .wp-editor-tabs { float: right; display: flex; gap: 4px; margin: 0 0 6px; }
body #buddypress .wp-editor-tabs .wp-switch-editor {
	float: none; height: auto; margin: 0; padding: 6px 14px !important;
	border: 1.5px solid var(--cbp-line) !important; border-radius: 999px !important;
	background: #fff !important; color: var(--cbp-muted) !important;
	font-size: 12px !important; font-weight: 600; line-height: 1.2 !important; text-transform: none !important;
}
body #buddypress .tmce-active .switch-tmce, body #buddypress .html-active .switch-html { border-color: var(--cbp-accent) !important; background: var(--cbp-accent) !important; color: #fff !important; }

/* Compose: Send is the main action, Reset is secondary */
body #buddypress #bp-messages-send, body #buddypress #send_message_form .bp-primary-action {
	border-color: var(--cbp-primary) !important; background: var(--cbp-primary) !important; color: #fff !important;
}
body #buddypress #bp-messages-send:hover, body #buddypress #send_message_form .bp-primary-action:hover {
	border-color: var(--cbp-primary-dark) !important; background: var(--cbp-primary-dark) !important;
}
body #buddypress #bp-messages-reset { border-color: var(--cbp-line) !important; background: #fff !important; color: var(--cbp-muted) !important; }
body #buddypress #bp-messages-reset:hover { border-color: var(--cbp-primary) !important; background: var(--cbp-tint) !important; color: var(--cbp-primary) !important; }

/* ================================================================
   20. Activity post form: always shown open (see assets/js/cli-bp.js)
   ================================================================ */
body #buddypress .activity-update-form #whats-new-textarea textarea, body #buddypress #whats-new {
	min-height: 150px !important;
	resize: vertical;
}
body #buddypress .activity-update-form #whats-new-options { margin-top: 18px; }

/* ================================================================
   21. Messages search (Inbox, Starred, Sent): same pill as the directory search
   ================================================================ */
body #buddypress .user-messages-search, body #buddypress .bp-messages-filters .user-messages-search {
	float: none;
	margin: 0 0 24px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
body #buddypress form#user_messages_search_form, body #buddypress form.bp-messages-search-form {
	display: flex !important;
	align-items: center;
	width: 100%;
	max-width: 440px;
	height: auto !important;
	margin: 0 0 0 auto !important;
	padding: 5px 5px 5px 20px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: var(--cbp-shadow-sm) !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body #buddypress form#user_messages_search_form:focus-within, body #buddypress form.bp-messages-search-form:focus-within {
	border-color: var(--cbp-accent) !important;
	box-shadow: 0 0 0 4px rgba(61, 90, 64, .14) !important;
}
body #buddypress form#user_messages_search_form::before, body #buddypress form#user_messages_search_form::after { content: none !important; display: none !important; }
/* The text box: no second border inside the pill */
body #buddypress #user_messages_search, body #buddypress .bp-messages-search-form input[type="search"] {
	flex: 1;
	width: auto !important;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 8px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0;
	font-size: 15px;
}
/* Round orange search button with a white magnifier */
body #buddypress #user_messages_search_submit, body #buddypress .bp-messages-search-form button[type="submit"] {
	position: relative;
	flex: none;
	width: 42px !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--cbp-primary) !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
body #buddypress #user_messages_search_submit:hover, body #buddypress .bp-messages-search-form button[type="submit"]:hover { background: var(--cbp-primary-dark) !important; }
body #buddypress #user_messages_search_submit .dashicons, body #buddypress .bp-messages-search-form button[type="submit"] .dashicons { display: none !important; }
body #buddypress #user_messages_search_submit::before, body #buddypress .bp-messages-search-form button[type="submit"]::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") center / 18px no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") center / 18px no-repeat;
}
@media (max-width: 782px) {
	body #buddypress form#user_messages_search_form, body #buddypress form.bp-messages-search-form { max-width: none; }
}

/* ================================================================
   22. Activity post form layout: "Post in", group picker, buttons
   ================================================================ */
/* Avatar on the left, everything else lined up under the text box */
body #buddypress .activity-update-form #whats-new-form {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 18px;
	row-gap: 18px;
	align-items: start;
}
body #buddypress .activity-update-form #whats-new-form > * { grid-column: 2; min-width: 0; }
body #buddypress .activity-update-form #whats-new-form > #whats-new-avatar { grid-column: 1; grid-row: 1; float: none; width: 56px; margin: 0; }
body #buddypress .activity-update-form #whats-new-avatar img { border-radius: 50% !important; object-fit: cover; }
body #buddypress .activity-update-form #whats-new-content { overflow: visible; float: none; margin: 0; padding: 0; }

/* Options row: "Post in" select and group picker side by side */
body #buddypress .activity-update-form #whats-new-options {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 14px;
	float: none;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
body #buddypress .activity-update-form #whats-new-post-in-box {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	flex: 1 1 100%;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}
body #buddypress #whats-new-post-in-box .select-wrap { min-width: 0; flex: 0 0 auto; margin: 0; }
body #buddypress #whats-new-post-in-box .select-arrow { display: none !important; }
body #buddypress #whats-new-post-in-box select, body #buddypress #whats-new-post-in {
	-webkit-appearance: none;
	appearance: none;
	width: auto !important;
	min-width: 200px;
	height: auto !important;
	margin: 0 !important;
	padding: 11px 46px 11px 20px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d231e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 16px center / 14px !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
	font-size: 14px !important;
	font-weight: 600;
	cursor: pointer;
}
body #buddypress #whats-new-post-in:focus { border-color: var(--cbp-accent) !important; box-shadow: 0 0 0 4px rgba(61, 90, 64, .14) !important; outline: 0; }

/* Group picker: search box and list of matching groups */
body #buddypress #whats-new-post-in-box-items { flex: 1 1 240px; float: none !important; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
body #buddypress #whats-new-post-in-box-items input[type="text"], body #buddypress #activity-autocomplete {
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 11px 20px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none !important;
	font-size: 14px !important;
}
body #buddypress #whats-new-post-in-box-items input[type="text"]:focus, body #buddypress #activity-autocomplete:focus { border-color: var(--cbp-accent) !important; box-shadow: 0 0 0 4px rgba(61, 90, 64, .14) !important; outline: 0; }
/* The picker itself is a list: first item holds the search box, the rest are groups */
body #buddypress ul#whats-new-post-in-box-items, body #buddypress #whats-new-post-in-box-items {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	list-style: none !important;
	border: 0 !important;
	background: transparent !important;
}
body #buddypress #whats-new-post-in-box-items > li {
	float: none !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none !important;
}
/* A group in the list, and the chosen group: soft pill with photo, name and remove button */
body #buddypress #whats-new-post-in-box-items > li.bp-activity-object, body #buddypress #whats-new-post-in-box-items > li:has(.bp-item-name) {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	width: auto;
	max-width: 100%;
	min-height: 46px;
	padding: 6px 8px 6px 6px !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--cbp-ink);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body #buddypress #whats-new-post-in-box-items > li.bp-activity-object:hover { border-color: var(--cbp-accent) !important; background: var(--cbp-accent-soft) !important; }
body #buddypress #whats-new-post-in-box-items > li.bp-activity-object.selected,
body #buddypress #whats-new-post-in-box-items > li[aria-checked="true"],
body #buddypress #whats-new-post-in-box-items > li:has(.bp-remove-item) {
	border-color: var(--cbp-accent) !important;
	background: var(--cbp-accent-soft) !important;
	color: var(--cbp-accent);
	cursor: default;
}
body #buddypress #whats-new-post-in-box-items li img.avatar, body #buddypress #whats-new-post-in-box-items li img {
	flex: none;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	border: 2px solid #fff;
	border-radius: 50% !important;
	background: var(--cbp-accent-soft);
}
body #buddypress #whats-new-post-in-box-items .bp-item-name { padding-right: 4px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The small "x" that removes the chosen group */
body #buddypress #whats-new-post-in-box-items .bp-remove-item, body #buddypress #whats-new-post-in-box-items button.dashicons {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px !important;
	height: 28px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--cbp-muted) !important;
	font-size: 16px !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
body #buddypress #whats-new-post-in-box-items .bp-remove-item:hover, body #buddypress #whats-new-post-in-box-items button.dashicons:hover { background: var(--cbp-primary) !important; color: #fff !important; }
body #buddypress #whats-new-post-in-box-items .bp-remove-item::before { width: 16px; height: 16px; font-size: 16px; line-height: 16px; }

/* Buttons: own row, right aligned, Cancel then Post Update, never cut off */
body #buddypress .activity-update-form #whats-new-submit {
	display: flex !important;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 18px 0 0 !important;
	border-top: 1px solid var(--cbp-line);
}
body #buddypress #whats-new-submit #aw-whats-new-submit, body #buddypress #whats-new-submit #aw-whats-new-reset {
	flex: none;
	width: auto !important;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 26px !important;
	overflow: visible;
	white-space: nowrap;
}
body #buddypress #whats-new-submit #aw-whats-new-reset { order: 0; border-color: var(--cbp-line) !important; background: #fff !important; color: var(--cbp-muted) !important; }
body #buddypress #whats-new-submit #aw-whats-new-reset:hover { border-color: var(--cbp-primary) !important; background: var(--cbp-tint) !important; color: var(--cbp-primary) !important; }
body #buddypress #whats-new-submit #aw-whats-new-submit { order: 1; box-shadow: var(--cbp-shadow-sm); }

@media (max-width: 782px) {
	body #buddypress .activity-update-form #whats-new-form { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
	body #buddypress .activity-update-form #whats-new-form > #whats-new-avatar { width: 44px; }
}
@media (max-width: 560px) {
	body #buddypress .activity-update-form #whats-new-form { grid-template-columns: minmax(0, 1fr); }
	body #buddypress .activity-update-form #whats-new-form > #whats-new-avatar { display: none; }
	body #buddypress .activity-update-form #whats-new-form > * { grid-column: 1; }
	body #buddypress #whats-new-post-in-box select, body #buddypress #whats-new-post-in { width: 100% !important; }
	body #buddypress #whats-new-post-in-box .select-wrap { flex: 1 1 100%; }
	body #buddypress .activity-update-form #whats-new-submit { justify-content: stretch; }
	body #buddypress #whats-new-submit #aw-whats-new-submit, body #buddypress #whats-new-submit #aw-whats-new-reset { flex: 1 1 0; }
}

/* ================================================================
   23. Group > Invite members
   ================================================================ */
/* Remove the empty left column BuddyPress keeps for a vertical menu */
body #buddypress #group-invites-container { display: block !important; grid-template-columns: none !important; grid-template-areas: none !important; }
body #buddypress #group-invites-container > .bp-invites-nav, body #buddypress #group-invites-container > .group-invites-column,
body #buddypress #group-invites-container .bp-invites-nav, body #buddypress #group-invites-container .group-invites-column {
	grid-area: auto !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body #buddypress #group-invites-container .bp-invites-nav { margin: 0 0 22px !important; }
/* Same orange "selected" tab as everywhere else */
body #buddypress #group-invites-container .bp-invites-nav li.selected > a,
body #buddypress #group-invites-container .bp-invites-nav li.current > a { background: var(--cbp-primary) !important; color: #fff !important; }

/* Search bar left, page arrows right, on one line */
body #buddypress #group-invites-container .bp-invites-filters {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 22px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
body #buddypress #group-invites-container .group-invites-search { flex: 1 1 300px; max-width: 460px; float: none !important; margin: 0 !important; padding: 0 !important; }
body #buddypress #group-invites-container .group-invites-search .bp-search { margin: 0 !important; }
body #buddypress #group-invites-container #group_invites_search_form { width: 100% !important; max-width: none !important; }
body #buddypress #group-invites-container .bp-invites-filters .last {
	display: flex !important;
	align-items: center;
	gap: 8px;
	float: none !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
}
body #buddypress #bp-invites-prev-page, body #buddypress #bp-invites-next-page {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px !important;
	height: 42px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: var(--cbp-shadow-sm) !important;
	color: var(--cbp-ink) !important;
}
body #buddypress #bp-invites-prev-page:hover, body #buddypress #bp-invites-next-page:hover { border-color: var(--cbp-accent) !important; color: var(--cbp-accent) !important; }
body #buddypress #bp-invites-prev-page .dashicons, body #buddypress #bp-invites-next-page .dashicons { width: 20px; height: 20px; font-size: 20px !important; line-height: 1 !important; }
body #buddypress #group-invites-container .bp-invites-feedback .bp-feedback, body #buddypress #group-invites-container > .bp-feedback { margin: 0 0 22px !important; }

/* Member cards: photo centred on the banner, name, then the Invite button */
body #buddypress #group-invites-container .item-list { margin-top: 0 !important; }
body #buddypress #group-invites-container #members-list > li, body #buddypress #group-invites-container .item-list > li {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 44px 18px 22px !important;
	text-align: center;
}
body #buddypress #group-invites-container .item-list > li .item-avatar { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
body #buddypress #group-invites-container .item-list > li .item-avatar img, body #buddypress #group-invites-container .item-list > li .item-avatar .avatar {
	display: block;
	width: 88px !important;
	height: 88px !important;
	max-width: none !important;
	border: 4px solid #fff !important;
	border-radius: 50% !important;
	box-shadow: var(--cbp-shadow-sm);
	object-fit: cover;
}
body #buddypress #group-invites-container .item-list > li .item { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
body #buddypress #group-invites-container .item-list > li .list-title, body #buddypress #group-invites-container .item-list > li .member-name { margin: 0 !important; font-family: var(--cbp-font-heading); font-size: 22px !important; font-weight: 600; line-height: 1.2; }
body #buddypress #group-invites-container .item-list > li .item-meta { margin: 6px 0 0 !important; font-size: 13px; }
body #buddypress #group-invites-container .item-list > li .item-meta ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
body #buddypress #group-invites-container .item-list > li .item-meta img.avatar { width: 24px !important; height: 24px !important; }
body #buddypress #group-invites-container .item-list > li .action {
	position: static !important;
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	float: none !important;
	width: 100% !important;
	margin: auto 0 0 !important;
	padding: 4px 0 0 !important;
}

/* "+ Invite" pill (turns orange "Remove" once selected) */
body #buddypress #group-invites-container .group-add-remove-invite-button, body #buddypress #group-invites-container .action .invite-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	height: auto !important;
	min-height: 40px;
	margin: 0 !important;
	padding: 0 20px 0 16px !important;
	border: 1.5px solid var(--cbp-accent) !important;
	border-radius: 999px !important;
	background: var(--cbp-accent-soft) !important;
	box-shadow: none !important;
	color: var(--cbp-accent) !important;
	font-size: 12px !important;
	line-height: 1 !important;
}
body #buddypress #group-invites-container .group-add-remove-invite-button::after { content: "Invite"; }
body #buddypress #group-invites-container .group-add-remove-invite-button.invite-remove::after { content: "Remove"; }
body #buddypress #group-invites-container .group-add-remove-invite-button .icons { display: inline-flex; width: 18px; height: 18px; font-size: 18px; line-height: 1; }
body #buddypress #group-invites-container .group-add-remove-invite-button .icons::before { font-size: 18px; line-height: 1; width: 18px; height: 18px; }
body #buddypress #group-invites-container .group-add-remove-invite-button:hover { background: var(--cbp-accent) !important; color: #fff !important; }
body #buddypress #group-invites-container .group-add-remove-invite-button.invite-remove { border-color: var(--cbp-primary) !important; background: var(--cbp-primary) !important; color: #fff !important; }
body #buddypress #group-invites-container .group-add-remove-invite-button.invite-remove:hover { border-color: var(--cbp-primary-dark) !important; background: var(--cbp-primary-dark) !important; }
/* Highlight a card once the member is selected */
body #buddypress #group-invites-container .item-list > li.selected { border-color: var(--cbp-primary) !important; box-shadow: 0 0 0 3px var(--cbp-tint), var(--cbp-shadow-sm) !important; }

@media (max-width: 560px) {
	body #buddypress #group-invites-container .bp-invites-filters { flex-direction: column; align-items: stretch; }
	body #buddypress #group-invites-container .group-invites-search { max-width: none; }
	body #buddypress #group-invites-container .bp-invites-filters .last { margin: 0 auto !important; }
}

/* Invite page arrows: clear chevron icons instead of the tiny triangle, and keep them on the search row
   (also works if BuddyPress does not wrap search and arrows in .bp-invites-filters) */
body #buddypress #group-invites-container div:has(> .group-invites-search) {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 22px !important;
}
body #buddypress #group-invites-container div:has(> #bp-invites-next-page), body #buddypress #group-invites-container div:has(> #bp-invites-prev-page) {
	display: flex !important;
	align-items: center;
	gap: 8px;
	float: none !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
}
body #buddypress #bp-invites-prev-page, body #buddypress #bp-invites-next-page { position: relative; }
body #buddypress #bp-invites-prev-page .dashicons, body #buddypress #bp-invites-next-page .dashicons { display: none !important; }
body #buddypress #bp-invites-prev-page::before, body #buddypress #bp-invites-next-page::before {
	content: "";
	position: absolute;
	inset: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m9 6 6 6-6 6'/></svg>") center / 18px no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m9 6 6 6-6 6'/></svg>") center / 18px no-repeat;
}
body #buddypress #bp-invites-prev-page::before { transform: scaleX(-1); }
body #buddypress #bp-invites-prev-page:hover, body #buddypress #bp-invites-next-page:hover {
	border-color: var(--cbp-primary) !important;
	background: var(--cbp-primary) !important;
	color: #fff !important;
}

/* ================================================================
   24. Single group home: header buttons, filter row
   ================================================================ */
/* Header buttons (Join / Leave / Request membership): normal pill, one line */
body #buddypress #item-header .group-button, body #buddypress #item-header .generic-button > a, body #buddypress #item-header .generic-button > button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 11px 24px !important;
	border-radius: 999px !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
	white-space: nowrap;
}
/* Leave Group is a quiet secondary action */
body #buddypress #item-header .leave-group, body #buddypress #item-header .group-button.leave-group, body #buddypress #item-header .generic-button .leave-group {
	border: 1.5px solid var(--cbp-line) !important;
	background: #fff !important;
	color: var(--cbp-muted) !important;
}
body #buddypress #item-header .leave-group:hover, body #buddypress #item-header .generic-button .leave-group:hover {
	border-color: var(--cbp-primary) !important;
	background: var(--cbp-tint) !important;
	color: var(--cbp-primary) !important;
}
body #buddypress #item-header .group-header-actions, body #buddypress #item-header #item-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
/* "Group administrators" on one line */
body #buddypress #item-actions dt, body #buddypress #item-actions .moderators-title, body #buddypress #item-actions h2, body #buddypress #item-actions h3 { white-space: nowrap; }

/* Filter row (RSS, search, "Everything"): full width, search on the left, select on the right */
body #buddypress #item-body .subnav-filters, body #buddypress #item-body #subnav-filters {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between !important;
	gap: 14px;
	width: 100% !important;
	max-width: none !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
	text-align: left;
}
body #buddypress #item-body .subnav-filters .subnav-search {
	display: flex !important;
	align-items: center;
	gap: 12px;
	flex: 1 1 320px;
	justify-content: flex-start !important;
	margin: 0 !important;
	float: none !important;
}
body #buddypress #item-body .subnav-filters .subnav-search .bp-search, body #buddypress #item-body .subnav-filters .subnav-search .dir-search { flex: 1 1 auto; max-width: 440px; margin: 0 !important; }
body #buddypress #item-body .subnav-filters .component-filters, body #buddypress #item-body .subnav-filters #dir-filters, body #buddypress #item-body .subnav-filters .last.filter { margin: 0 0 0 auto !important; float: none !important; }
/* RSS link as a round button wherever it sits */
body #buddypress .subnav-filters .feed { float: none !important; margin: 0 !important; padding: 0 !important; flex: none; }
body #buddypress .subnav-filters .feed a {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0 !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--cbp-accent) !important;
	box-shadow: var(--cbp-shadow-sm);
}
body #buddypress .subnav-filters .feed a:hover { border-color: var(--cbp-primary) !important; color: var(--cbp-primary) !important; }
@media (max-width: 782px) {
	body #buddypress #item-body .subnav-filters { flex-direction: column; align-items: stretch; }
	body #buddypress #item-body .subnav-filters .subnav-search .bp-search, body #buddypress #item-body .subnav-filters .subnav-search .dir-search { max-width: none; }
	body #buddypress #item-body .subnav-filters .component-filters, body #buddypress #item-body .subnav-filters #dir-filters, body #buddypress #item-body .subnav-filters .last.filter { margin: 0 !important; }
}

/* ================================================================
   25. Page width: at most 1240px (setting), centred.
   On tablets and phones: full width with 20px on each side.
   If the theme already puts BuddyPress in a narrower column, it simply
   fills that column, so no double padding is added.
   ================================================================ */
body #buddypress, body #buddypress.buddypress-wrap {
	box-sizing: border-box;
	width: 100% !important;
	max-width: min(var(--cbp-max-width, 1240px), calc(100vw - 40px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ================================================================
   26. "Read more" link on long activity posts and comments
   ================================================================ */
body #buddypress .activity-read-more { display: block; margin: 12px 0 0; font-size: 13px; }
body #buddypress .acomment-content .activity-read-more { margin-top: 8px; }
body #buddypress .activity-read-more a {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 16px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background: var(--cbp-accent-soft);
	color: var(--cbp-accent) !important;
	font-family: var(--cbp-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
/* Small down arrow after the text */
body #buddypress .activity-read-more a::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
	transition: transform .2s ease;
}
body #buddypress .activity-read-more a:hover, body #buddypress .activity-read-more a:focus-visible {
	border-color: var(--cbp-primary);
	background: var(--cbp-tint);
	color: var(--cbp-primary) !important;
}
body #buddypress .activity-read-more a:hover::after { transform: translateY(2px); }
/* While BuddyPress loads the full text */
body #buddypress .activity-read-more a.loading, body #buddypress .activity-read-more.loading a { opacity: .6; pointer-events: none; }
/* Make sure BuddyPress's default square "Read more" box can't win */
body #buddypress .activity-inner .activity-read-more, body #buddypress .activity-content .activity-read-more { display: block !important; margin: 14px 0 0 !important; }
body #buddypress .activity-inner .activity-read-more a, body #buddypress .activity-content .activity-read-more a, body #buddypress .acomment-content .activity-read-more a {
	padding: 7px 14px 7px 16px !important;
	border: 1.5px solid transparent !important;
	border-radius: 999px !important;
	background: var(--cbp-accent-soft) !important;
	box-shadow: none !important;
	color: var(--cbp-accent) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-transform: none !important;
}
body #buddypress .activity-inner .activity-read-more a:hover, body #buddypress .activity-content .activity-read-more a:hover, body #buddypress .acomment-content .activity-read-more a:hover {
	border-color: var(--cbp-primary) !important;
	background: var(--cbp-tint) !important;
	color: var(--cbp-primary) !important;
}

/* ================================================================
   27. All search bars: undo the theme's minimum height so the button
   is a true 42px circle, and remove BuddyPress "clearfix" spacers that
   push the search bar to the middle of the row.
   ================================================================ */
body #buddypress form.bp-dir-search-form, body #buddypress .bp-search form, body #buddypress .subnav-search form,
body #buddypress #user_messages_search_form, body #buddypress #group_invites_search_form, body #buddypress .bp-invites-search-form, body #buddypress .bp-messages-search-form {
	align-items: center !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 4px 4px 4px 20px !important;
}
body #buddypress form.bp-dir-search-form input[type="search"], body #buddypress form.bp-dir-search-form input[type="text"],
body #buddypress .bp-search input[type="search"], body #buddypress .subnav-search input[type="search"],
body #buddypress #user_messages_search, body #buddypress #group_invites_search,
body #buddypress .bp-invites-search-form input[type="search"], body #buddypress .bp-messages-search-form input[type="search"] {
	height: 42px !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 8px !important;
	line-height: normal !important;
}
body #buddypress form.bp-dir-search-form button[type="submit"], body #buddypress .nouveau-search-submit,
body #buddypress .bp-search button[type="submit"], body #buddypress .subnav-search button[type="submit"],
body #buddypress #user_messages_search_submit, body #buddypress #group_invites_search_submit,
body #buddypress .bp-invites-search-form button[type="submit"], body #buddypress .bp-messages-search-form button[type="submit"] {
	flex: 0 0 42px !important;
	align-self: center !important;
	width: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
	height: 42px !important;
	min-height: 0 !important;
	max-height: 42px !important;
	aspect-ratio: 1 / 1;
	padding: 0 !important;
	line-height: 42px !important;
	border-radius: 50% !important;
}

/* Clearfix spacers become fake items in a flex row: remove them there */
body #buddypress .subnav-filters::before, body #buddypress .subnav-filters::after,
body #buddypress .subnav-search::before, body #buddypress .subnav-search::after,
body #buddypress .bp-invites-filters::before, body #buddypress .bp-invites-filters::after,
body #buddypress .group-invites-search::before, body #buddypress .group-invites-search::after,
body #buddypress .component-filters::before, body #buddypress .component-filters::after,
body #buddypress .bp-search::before, body #buddypress .bp-search::after {
	content: none !important;
	display: none !important;
}

/* Invite page: search bar on the left, filling the row up to 460px */
body #buddypress .bp-invites-filters { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 22px !important; }
body #buddypress .bp-invites-filters > div:has(.group-invites-search) { display: flex !important; flex: 1 1 320px; justify-content: flex-start !important; margin: 0 !important; }
body #buddypress .bp-invites-filters .group-invites-search { flex: 1 1 auto; max-width: 460px; margin: 0 !important; }
body #buddypress .bp-invites-filters .group-invites-search .bp-search, body #buddypress .bp-invites-filters #group_invites_search_form { width: 100% !important; max-width: none !important; }

/* ================================================================
   28. "Post in" select and group name field: identical 48px height
   (cancels the theme's minimum height on selects and inputs)
   ================================================================ */
body #buddypress #whats-new-post-in-box select, body #buddypress #whats-new-post-in,
body #buddypress #whats-new-post-in-box-items input[type="text"], body #buddypress #activity-autocomplete {
	box-sizing: border-box !important;
	height: 48px !important;
	min-height: 0 !important;
	max-height: 48px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.2 !important;
	font-size: 14px !important;
	border-width: 1.5px !important;
}
body #buddypress #whats-new-post-in-box { align-items: center; }

/* ================================================================
   29. Group activity filter row: RSS button and search side by side
   (BuddyPress puts them in a list on group pages)
   ================================================================ */
body #buddypress .subnav-filters > ul {
	display: flex !important;
	flex: 1 1 320px;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: 0 !important;
	background: transparent !important;
}
body #buddypress .subnav-filters > ul > li { float: none !important; margin: 0 !important; padding: 0 !important; list-style: none !important; border: 0 !important; background: transparent !important; }
body #buddypress .subnav-filters > ul > li.feed { flex: none; }
body #buddypress .subnav-filters > ul > li.group-act-search, body #buddypress .subnav-filters > ul > li:has(form) { flex: 1 1 auto; min-width: 0; max-width: 440px; }
body #buddypress .subnav-filters > ul > li .bp-search, body #buddypress .subnav-filters > ul > li form { width: 100% !important; max-width: none !important; margin: 0 !important; }
@media (max-width: 782px) {
	body #buddypress .subnav-filters > ul > li.group-act-search, body #buddypress .subnav-filters > ul > li:has(form) { max-width: none; }
}

/* ================================================================
   30. Settings > General in newer BuddyPress (form id "your-profile"):
   same spacing and password styles as section 17
   ================================================================ */
body #buddypress #your-profile label[for="email"] { margin-bottom: 8px; }
body #buddypress #your-profile input[type="email"], body #buddypress #your-profile #email { margin: 0 0 22px !important; }
body #buddypress #your-profile .bp-feedback, body #buddypress #your-profile .info.bp-feedback { margin: 0 0 22px !important; }
body #buddypress #your-profile .user-pass1-wrap, body #buddypress #your-profile .wp-pwd { margin: 0 0 22px; }
body #buddypress #your-profile .submit { margin-top: 6px; padding-top: 24px; border-top: 1px solid var(--cbp-line); }
body #buddypress #your-profile .wp-generate-pw { margin: 0 0 24px !important; }
body #buddypress #your-profile .wp-pwd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body #buddypress #your-profile .wp-pwd .password-input-wrapper { flex: 1 1 280px; min-width: 0; }
body #buddypress #your-profile .wp-pwd .password-input-wrapper input { margin: 0; }
body #buddypress #your-profile .wp-hide-pw { width: 46px; height: 46px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; }
body #buddypress #your-profile .wp-hide-pw .dashicons { font-size: 20px; width: 20px; height: 20px; }
body #buddypress #your-profile .wp-cancel-pw { border-color: var(--cbp-line); background: #fff; color: var(--cbp-muted); }

/* ================================================================
   31. Space above and below every BuddyPress page (setting, default 70px)
   ================================================================ */
body #buddypress, body #buddypress.buddypress-wrap {
	padding-top: var(--cbp-page-pad, 70px) !important;
	padding-bottom: var(--cbp-page-pad, 70px) !important;
}

/* ================================================================
   32. Create a Group: step tabs as a pill switch, tidy spacing
   ================================================================ */
body #buddypress #group-create-tabs, body #buddypress nav.group-create-links {
	float: none !important;
	width: 100% !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
body #buddypress #group-create-tabs ol, body #buddypress #group-create-tabs ul, body #buddypress .group-create-buttons {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center !important;
	gap: 4px;
	margin: 0 !important;
	padding: 5px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cbp-accent-soft) !important;
	list-style: none !important;
}
body #buddypress #group-create-tabs li {
	float: none !important;
	display: block;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	list-style: none !important;
}
body #buddypress #group-create-tabs li > a, body #buddypress #group-create-tabs li > span {
	position: static !important;
	top: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cbp-ink) !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: nowrap;
}
/* Steps you cannot open yet */
body #buddypress #group-create-tabs li > span { color: var(--cbp-muted) !important; opacity: .65; cursor: not-allowed; }
body #buddypress #group-create-tabs li > a:hover { background: rgba(255, 255, 255, .8) !important; color: var(--cbp-accent) !important; }
/* Current step */
body #buddypress #group-create-tabs li.current > a, body #buddypress #group-create-tabs li.current > span, body #buddypress #group-create-tabs li.selected > a {
	background: var(--cbp-primary) !important;
	color: #fff !important;
	opacity: 1;
	box-shadow: var(--cbp-shadow-sm) !important;
}

/* Less empty space at the top of the card, heading lined up with the fields */
body #buddypress #create-group-form.standard-form, body #buddypress form#create-group-form { padding-top: 28px !important; }
body #buddypress #create-group-form .bp-screen-title, body #buddypress #create-group-form .creation-step-name, body #buddypress #group-create-body > h2:first-child {
	margin: 0 0 22px !important;
	text-align: left !important;
	font-size: 28px;
}
body #buddypress #create-group-form .group-create-buttons, body #buddypress #create-group-form .submit { margin-top: 10px; }

@media (max-width: 782px) {
	body #buddypress #group-create-tabs ol, body #buddypress #group-create-tabs ul, body #buddypress .group-create-buttons {
		display: flex !important;
		flex-wrap: nowrap;
		max-width: 100%;
		overflow-x: auto;
		border-radius: 24px !important;
		scrollbar-width: none;
	}
	body #buddypress #create-group-form .bp-screen-title, body #buddypress #create-group-form .creation-step-name { font-size: 24px; }
}

/* ================================================================
   33. Invite cards: centred name, full hover tooltip
   ================================================================ */
/* Name exactly centred (BuddyPress keeps space on the right for its own button) */
body #buddypress #group-invites-container .item-list > li .item,
body #buddypress #group-invites-container .item-list > li .list-title,
body #buddypress #group-invites-container .item-list > li .member-name,
body #buddypress #group-invites-container .item-list > li .item-meta {
	float: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	text-align: center !important;
}

/* Let the tooltip show outside the card instead of being cut off */
body #buddypress #group-invites-container .item-list > li { overflow: visible !important; }
body #buddypress #group-invites-container .item-list > li:hover, body #buddypress #group-invites-container .item-list > li:focus-within { z-index: 5; }
body #buddypress #group-invites-container .item-list > li .action { overflow: visible !important; }

/* Use BuddyPress's own tooltip text again (replaces the earlier "Invite"/"Remove" label) */
body #buddypress #group-invites-container .group-add-remove-invite-button::after,
body #buddypress #group-invites-container .group-add-remove-invite-button.invite-remove::after { content: attr(data-bp-tooltip) !important; }
body #buddypress #group-invites-container .group-add-remove-invite-button { padding: 0 22px !important; min-width: 64px; }

/* All BuddyPress tooltips: dark rounded pill, full text on one line */
body #buddypress [data-bp-tooltip]::after, body #buddypress .bp-tooltip::after {
	width: auto !important;
	max-width: none !important;
	padding: 7px 14px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cbp-ink) !important;
	box-shadow: var(--cbp-shadow-sm) !important;
	color: #fff !important;
	font-family: var(--cbp-font-body) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .02em !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	white-space: nowrap !important;
	overflow: visible !important;
	z-index: 30 !important;
}

/* ================================================================
   34. Photo next to the post form: clean round frame, no haze
   ================================================================ */
body #buddypress .activity-update-form #whats-new-avatar { width: 56px; height: 56px; }
body #buddypress .activity-update-form #whats-new-avatar a { display: block; width: 56px; height: 56px; border-radius: 50%; }
body #buddypress .activity-update-form #whats-new-avatar img, body #buddypress #whats-new-avatar img.avatar {
	display: block;
	width: 56px !important;
	height: 56px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1.5px solid var(--cbp-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: none !important;
	object-fit: cover;
	opacity: 1 !important;
	filter: none !important;
}
@media (max-width: 782px) {
	body #buddypress .activity-update-form #whats-new-avatar, body #buddypress .activity-update-form #whats-new-avatar a,
	body #buddypress .activity-update-form #whats-new-avatar img { width: 44px !important; height: 44px !important; }
}

/* ================================================================
   35. Group cards (Groups directory): banner, photo, title, details,
   description, then a footer with "Active ..." and the button
   ================================================================ */
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry {
	background:
		radial-gradient(60% 120% at 85% 0%, rgba(255, 255, 255, .5), transparent 60%) 0 0 / 100% 100px no-repeat,
		radial-gradient(45% 90% at 8% 100%, rgba(61, 90, 64, .28), transparent 70%) 0 0 / 100% 100px no-repeat,
		linear-gradient(135deg, var(--cbp-sage), var(--cbp-sage-dark)) 0 0 / 100% 100px no-repeat,
		#fff !important;
	border-radius: calc(var(--cbp-radius) + 2px) !important;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .list-wrap { padding: 52px 24px 22px !important; gap: 0 !important; }
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .item-avatar img.avatar,
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .item-avatar .avatar {
	width: 96px !important;
	height: 96px !important;
	border: 5px solid #fff !important;
	box-shadow: 0 10px 24px -12px rgba(29, 35, 30, .45) !important;
	transition: transform .25s ease;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry:hover .item-avatar .avatar { transform: scale(1.04); }

/* Content laid out as: title / details / description / footer */
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .item {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "title title" "meta meta" "desc desc" "active action";
	align-items: center;
	column-gap: 0;
	row-gap: 0;
	width: 100% !important;
	margin: 14px 0 0 !important;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .item-block { display: contents !important; }
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .list-title {
	grid-area: title;
	margin: 0 0 10px !important;
	font-size: 26px !important;
	line-height: 1.15 !important;
	text-align: center !important;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .list-title a { font-size: inherit !important; }
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .group-details {
	grid-area: meta;
	justify-self: center;
	margin: 0 0 14px !important;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .group-desc {
	grid-area: desc;
	margin: 0 0 18px !important;
	font-size: 14.5px !important;
	line-height: 1.6 !important;
	text-align: center !important;
}

/* Footer: divider, "Active ..." with a clock on the left, button on the right */
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .last-activity {
	grid-area: active;
	display: flex !important;
	align-items: center;
	gap: 6px;
	justify-self: stretch;
	width: auto !important;
	min-width: 0;
	min-height: 52px;
	margin: 0 !important;
	padding: 14px 0 0 !important;
	border-top: 1px solid var(--cbp-line);
	font-size: 13px !important;
	color: var(--cbp-muted) !important;
	text-align: left !important;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .last-activity::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>") center / contain no-repeat;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .item :is(.action, .groups-meta, .generic-button:not(.action .generic-button):not(.groups-meta .generic-button)) {
	grid-area: action;
	justify-self: end;
	justify-content: flex-end !important;
	align-self: stretch;
	align-items: center;
	display: flex !important;
	width: auto !important;
	min-height: 52px;
	margin: 0 !important;
	padding: 14px 0 0 14px !important;
	border-top: 1px solid var(--cbp-line);
}
/* No button (e.g. logged out): "Active ..." uses the full footer */
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .item:not(:has(.action, .groups-meta, .generic-button)) .last-activity { grid-column: 1 / -1; justify-content: center; }

/* Buttons in the card */
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .generic-button :is(a, button) { padding: 9px 18px !important; font-size: 11px !important; white-space: nowrap; }
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .generic-button .leave-group,
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .leave-group {
	border-color: var(--cbp-line) !important;
	background: #fff !important;
	color: var(--cbp-muted) !important;
}
body #buddypress :is(#groups-list, ul.groups-list) > li.item-entry .leave-group:hover {
	border-color: var(--cbp-primary) !important;
	background: var(--cbp-tint) !important;
	color: var(--cbp-primary) !important;
}

/* ================================================================
   36. Filter dropdowns ("Last Active", "Newest", "Everything"...):
   text not cut off, exactly as tall as the search bar (53px)
   ================================================================ */
body #buddypress .subnav-filters select, body #buddypress .component-filters select, body #buddypress .last.filter select,
body #buddypress select[data-bp-filter], body #buddypress #members-order-by, body #buddypress #groups-order-by,
body #buddypress #activity-filter-by, body #buddypress .select-wrap select {
	box-sizing: border-box !important;
	height: 53px !important;
	min-height: 0 !important;
	max-height: 53px !important;
	padding: 0 46px 0 22px !important;
	text-indent: 0 !important;
	line-height: normal !important;
	min-width: 190px;
}
body #buddypress .subnav-filters .select-wrap, body #buddypress .component-filters .select-wrap, body #buddypress .last.filter .select-wrap {
	display: inline-flex !important;
	align-items: center;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}
