/* LearnHive BuddyPress refinements.
   Loaded after community.css; native Nouveau markup and behavior stay intact. */
.lh-community-page {
	--lh-community-line: #e5e2ef;
	--lh-community-surface: #fffefa;
	--lh-community-soft: #f6f5fb;
	--lh-community-ink: #27263b;
	--lh-community-muted: #66677a;
	--lh-community-accent: #4338ca;
	min-width: 0;
	overflow-wrap: anywhere;
}
.lh-community-page.lh-section {
	padding-top: 28px;
	padding-bottom: 36px;
}
.lh-community-page #buddypress .messages-options-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.lh-community-page #buddypress .messages-options-nav select {
	width: auto;
	min-width: 140px;
	flex: 1;
}
@media (max-width: 640px) {
	.lh-community-view .lh-header-actions { gap: 8px; }
	.lh-community-view .lh-header-member span { display: none; }
	.lh-community-view .lh-header-actions > .lh-button {
		white-space: nowrap;
		flex-shrink: 0;
		padding-inline: 12px;
	}
	.lh-community-page .lh-community-sidebar nav ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px;
	}
	.lh-community-page #buddypress #message-threads {
		display: block;
		overflow: visible;
		width: 100%;
		border: 0;
	}
	.lh-community-page #buddypress #message-threads thead {
		display: block;
		position: static;
		width: 100%;
		height: auto;
		overflow: visible;
		clip-path: none;
	}
	.lh-community-page #buddypress #message-threads thead tr { display: block; }
	.lh-community-page #buddypress #message-threads thead th:not(.thread-checkbox) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
	.lh-community-page #buddypress #message-threads thead th.thread-checkbox {
		display: block;
		width: auto;
		padding: 6px 12px;
	}
	.lh-community-page #buddypress #message-threads tbody { display: block; }
	.lh-community-page #buddypress #message-threads tbody tr {
		display: grid;
		grid-template-columns: 28px minmax(0, 1fr) 28px;
		gap: 8px;
		padding: 12px;
		border: 1px solid var(--lh-community-line);
		border-radius: 12px;
		margin: 10px 0;
	}
	.lh-community-page #buddypress #message-threads tbody td {
		display: block;
		width: auto;
		padding: 0;
		margin: 0;
		border: 0;
	}
	.lh-community-page #buddypress #message-threads .thread-checkbox { grid-column: 1; grid-row: 1; }
	.lh-community-page #buddypress #message-threads .thread-from { grid-column: 2; grid-row: 1; }
	.lh-community-page #buddypress #message-threads .thread-star { grid-column: 3; grid-row: 1; }
	.lh-community-page #buddypress #message-threads .thread-info { grid-column: 2 / -1; grid-row: 2; }
	.lh-community-page #buddypress #message-threads .thread-options { grid-column: 2 / -1; grid-row: 3; }
}

/* Native float clearfixes otherwise occupy the first/last CSS grid cells. */
.lh-community-page #buddypress #members-list::before,
.lh-community-page #buddypress #members-list::after,
.lh-community-page #buddypress #groups-list::before,
.lh-community-page #buddypress #groups-list::after {
	content: none;
	display: none;
}
.lh-community-page #buddypress #members-list .item-block,
.lh-community-page #buddypress #members-list .members-meta,
.lh-community-page #buddypress #members-list .member-name,
.lh-community-page #buddypress #members-list .last-activity {
	float: none;
	width: 100%;
	max-width: none;
	margin-left: 0;
	text-align: left;
}
.lh-community-page #buddypress #members-list .item-block {
	display: block;
}
.lh-community-page #buddypress #members-list .members-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
}
.lh-community-page #buddypress #members-list .members-meta li {
	width: auto;
	max-width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	box-shadow: none;
}
.lh-community-page #buddypress #members-list .members-meta button {
	white-space: normal;
	word-break: normal;
}
.lh-community-hero .lh-hero.lh-page-hero {
	padding: 30px 0;
}
.lh-community-hero .lh-hero.lh-page-hero h1 {
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	margin-bottom: 10px;
}
/* Utility pages already identify the member in the heading. Keep their native
   navigation, but do not repeat a tall cover before every inbox/settings view. */
.lh-community-page .lh-profile-utility #buddypress #cover-image-container {
	display: none;
}
.lh-community-page .lh-profile-utility #buddypress #item-header {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.lh-community-page #buddypress .bp-search form,
.lh-community-page #buddypress .dir-search form {
	display: flex;
	align-items: stretch;
	width: 100%;
	float: none;
}
.lh-community-page #buddypress .bp-search form input[type="search"],
.lh-community-page #buddypress .dir-search form input[type="text"] {
	width: 100%;
	min-width: 0;
	flex: 1;
}
.lh-community-page #buddypress .bp-search form button,
.lh-community-page #buddypress .dir-search form button {
	flex: 0 0 42px;
	margin: 0;
}
.lh-community-page #buddypress .activity-inner img:not(.avatar) {
	display: block;
	max-width: 100%;
	max-height: 380px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left top;
}

.lh-community-page .lh-community-layout {
	grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
	gap: clamp(20px, 3vw, 30px);
}
.lh-community-page .lh-community-main,
.lh-community-page .lh-community-sidebar,
.lh-community-page #buddypress,
.lh-community-page .bp-wrap {
	min-width: 0;
	max-width: 100%;
}
.lh-community-page .lh-community-main {
	overflow: visible;
}
.lh-community-page .lh-community-sidebar {
	top: 88px;
}
.lh-community-page .lh-community-sidebar .lh-card {
	padding: 18px;
	border-color: var(--lh-community-line);
	background: #f8f7fc;
}
.lh-community-page .lh-community-sidebar nav ul {
	display: grid;
	gap: 2px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.lh-community-page .lh-community-sidebar nav a {
	display: block;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 9px;
	color: #4e4d65;
	font-size: .9rem;
	font-weight: 650;
}
.lh-community-page .lh-community-sidebar nav a:hover,
.lh-community-page .lh-community-sidebar nav a:focus-visible {
	background: #eeedfa;
	color: var(--lh-community-accent);
}

/* A compact community masthead; only applies when the theme adds this wrapper. */
.lh-community-hero {
	padding-block: 34px !important;
}
.lh-community-hero .lh-wrap > * {
	max-width: 780px;
}
.lh-community-hero h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}
.lh-community-hero .lh-lead {
	font-size: 1rem;
}

/* Shared, compact component navigation across every native component screen. */
.lh-community-page #buddypress .bp-navs,
.lh-community-page #buddypress .item-list-tabs,
.lh-community-page .bp-wrap .bp-navs,
.lh-community-page .bp-wrap .item-list-tabs,
.lh-community-page #buddypress .single-screen-navs {
	width: 100%;
	max-width: 100%;
	margin: 0 0 16px;
	padding: 0 0 5px;
	overflow-x: auto;
	border: 0;
	border-bottom: 1px solid var(--lh-community-line);
	background: transparent;
	scrollbar-width: thin;
}
.lh-community-page #buddypress .bp-navs ul,
.lh-community-page #buddypress .item-list-tabs ul,
.lh-community-page .bp-wrap .bp-navs ul,
.lh-community-page .bp-wrap .item-list-tabs ul,
.lh-community-page #buddypress .single-screen-navs ul {
	display: flex;
	width: max-content;
	min-width: 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lh-community-page #buddypress .bp-navs li,
.lh-community-page #buddypress .item-list-tabs li,
.lh-community-page .bp-wrap .bp-navs li,
.lh-community-page .bp-wrap .item-list-tabs li,
.lh-community-page #buddypress .single-screen-navs li {
	float: none;
	margin: 0;
}
.lh-community-page #buddypress .bp-navs li a,
.lh-community-page #buddypress .item-list-tabs li a,
.lh-community-page .bp-wrap .bp-navs li a,
.lh-community-page .bp-wrap .item-list-tabs li a,
.lh-community-page #buddypress .single-screen-navs li a {
	display: flex;
	min-height: 38px;
	align-items: center;
	padding: 7px 11px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #5f5d72;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
.lh-community-page #buddypress .bp-navs li.current a,
.lh-community-page #buddypress .bp-navs li.selected a,
.lh-community-page #buddypress .item-list-tabs li.current a,
.lh-community-page #buddypress .item-list-tabs li.selected a,
.lh-community-page .bp-wrap .bp-navs li.current a,
.lh-community-page .bp-wrap .bp-navs li.selected a,
.lh-community-page .bp-wrap .item-list-tabs li.current a,
.lh-community-page .bp-wrap .item-list-tabs li.selected a,
.lh-community-page #buddypress .single-screen-navs li.current a {
	background: #eeedfa;
	color: #352da5;
	box-shadow: inset 0 -2px 0 var(--lh-community-accent);
}
.lh-community-page #buddypress .bp-navs li a span,
.lh-community-page #buddypress .item-list-tabs li a span {
	min-width: 18px;
	margin-left: 5px;
	padding: 1px 5px;
	border-radius: 99px;
	background: #ecebf3;
	color: #4e4d65;
	font-size: .72rem;
	text-align: center;
}

/* Nouveau's vertical profile rail and legacy item-body offsets collapse to flow. */
.lh-community-page #buddypress .bp-single-vert-nav,
.lh-community-page #buddypress .bp-single-vert-nav .item-list-tabs,
.lh-community-page #buddypress .bp-single-vert-nav .bp-navs,
.lh-community-page #buddypress .single-screen-navs {
	float: none;
	width: 100%;
	max-width: 100%;
}
.lh-community-page #buddypress .bp-single-vert-nav,
.lh-community-page #buddypress #item-body,
.lh-community-page #buddypress .item-body,
.lh-community-page .bp-wrap #item-body,
.lh-community-page .bp-wrap .item-body {
	margin-inline: 0;
	padding-inline: 0;
}
.lh-community-page #buddypress #item-body,
.lh-community-page .bp-wrap #item-body {
	width: 100%;
}

/* Directory reset counters Nouveau's float/flex-basis and narrow card defaults. */
.lh-community-page #buddypress .members-list,
.lh-community-page #buddypress ul#members-list,
.lh-community-page .bp-wrap .members-list,
.lh-community-page .bp-wrap ul#members-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lh-community-page #buddypress .members-list > li,
.lh-community-page #buddypress ul#members-list > li,
.lh-community-page .bp-wrap .members-list > li,
.lh-community-page .bp-wrap ul#members-list > li {
	float: none;
	width: auto;
	min-width: 0;
	max-width: none;
	margin: 0;
	padding: 15px;
}
.lh-community-page #buddypress .members-list .list-wrap,
.lh-community-page #buddypress ul#members-list .list-wrap {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: start;
	gap: 10px 12px;
	width: 100%;
	min-width: 0;
	padding: 0;
}
.lh-community-page #buddypress .members-list .item-avatar,
.lh-community-page #buddypress ul#members-list .item-avatar {
	float: none;
	width: 54px;
	margin: 0;
}
.lh-community-page #buddypress .members-list .item-avatar img,
.lh-community-page #buddypress ul#members-list .item-avatar img {
	width: 50px;
	height: 50px;
	object-fit: cover;
}
.lh-community-page #buddypress .members-list .item,
.lh-community-page #buddypress ul#members-list .item,
.lh-community-page #buddypress .members-list .action,
.lh-community-page #buddypress ul#members-list .action {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}
.lh-community-page #buddypress .members-list .item,
.lh-community-page #buddypress ul#members-list .item {
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress .members-list .action,
.lh-community-page #buddypress ul#members-list .action {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.lh-community-page #buddypress .groups-list,
.lh-community-page #buddypress ul#groups-list,
.lh-community-page .bp-wrap .groups-list,
.lh-community-page .bp-wrap ul#groups-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lh-community-page #buddypress .groups-list > li,
.lh-community-page #buddypress ul#groups-list > li,
.lh-community-page .bp-wrap .groups-list > li,
.lh-community-page .bp-wrap ul#groups-list > li {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}
.lh-community-page #buddypress .groups-list .list-wrap,
.lh-community-page #buddypress ul#groups-list .list-wrap {
	width: 100%;
	min-width: 0;
}

/* Activity feed: avatar + content share a predictable column; embeds stay bounded. */
.lh-community-page #buddypress .activity-list,
.lh-community-page .bp-wrap .activity-list {
	display: grid;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lh-community-page #buddypress .activity-list > li,
.lh-community-page .bp-wrap .activity-list > li {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: start;
	gap: 0 12px;
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 15px;
}
.lh-community-page #buddypress .activity-list .activity-avatar,
.lh-community-page .bp-wrap .activity-list .activity-avatar {
	grid-column: 1;
	grid-row: 1;
	float: none;
	width: 42px;
	margin: 0;
}
.lh-community-page #buddypress .activity-list .activity-avatar img,
.lh-community-page .bp-wrap .activity-list .activity-avatar img {
	width: 40px;
	height: 40px;
	object-fit: cover;
}
.lh-community-page #buddypress .activity-list .activity-content,
.lh-community-page .bp-wrap .activity-list .activity-content {
	grid-column: 2;
	grid-row: 1;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}
.lh-community-page #buddypress .activity-list .activity-header,
.lh-community-page .bp-wrap .activity-list .activity-header {
	margin: 0 0 7px;
	font-size: .84rem;
	line-height: 1.45;
}
.lh-community-page #buddypress .activity-list .activity-inner,
.lh-community-page .bp-wrap .activity-list .activity-inner {
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: #353548;
	font-size: .94rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress .activity-list .activity-inner iframe,
.lh-community-page #buddypress .activity-list .activity-inner video,
.lh-community-page #buddypress .activity-list .activity-inner img,
.lh-community-page .bp-wrap .activity-list .activity-inner iframe,
.lh-community-page .bp-wrap .activity-list .activity-inner video,
.lh-community-page .bp-wrap .activity-list .activity-inner img {
	max-width: 100%;
}
.lh-community-page #buddypress .activity-list .activity-inner iframe,
.lh-community-page .bp-wrap .activity-list .activity-inner iframe {
	width: min(100%, 620px);
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 10px;
}
.lh-community-page #buddypress .activity-list .activity-meta,
.lh-community-page .bp-wrap .activity-list .activity-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 8px;
	margin: 10px 0 0;
}
.lh-community-page #buddypress .activity-list .activity-comments,
.lh-community-page .bp-wrap .activity-list .activity-comments {
	grid-column: 2;
	width: 100%;
	min-width: 0;
	margin: 10px 0 0;
	padding: 0;
	background: transparent;
}
.lh-community-page #buddypress .activity-list .acomment-content,
.lh-community-page .bp-wrap .activity-list .acomment-content {
	margin: 6px 0;
	padding: 9px 11px;
	border: 1px solid #eeecf4;
	border-radius: 10px;
	background: #f8f7fb;
}
.lh-community-page #buddypress .activity-list .acomment-options,
.lh-community-page .bp-wrap .activity-list .acomment-options {
	margin: 0 0 6px;
}
.lh-community-page #buddypress .activity-list .activity-comments ul,
.lh-community-page .bp-wrap .activity-list .activity-comments ul {
	margin-left: 12px;
	padding-left: 10px;
	border-left: 2px solid #e8e6f0;
}
.lh-community-page #buddypress .activity-list .acomment-reply,
.lh-community-page .bp-wrap .activity-list .acomment-reply {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
}

/* Explicit context cards are real linked content, not fabricated feed data. */
.lh-community-page .lh-activity-context {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	gap: 4px 12px;
	max-width: 650px;
	margin-top: 12px;
	padding: 11px;
	border: 1px solid var(--lh-community-line);
	border-radius: 11px;
	background: #f8f7fc;
}
.lh-community-page .lh-activity-context h3,
.lh-community-page .lh-activity-context p,
.lh-community-page .lh-activity-context-meta {
	margin: 0;
}
.lh-community-page .lh-activity-context > div {
	grid-column: 2;
	min-width: 0;
}
.lh-community-page .lh-activity-context h3 {
	font-size: .94rem;
	line-height: 1.35;
}
.lh-community-page .lh-activity-context p,
.lh-community-page .lh-activity-context-meta {
	color: var(--lh-community-muted);
	font-size: .82rem;
	line-height: 1.45;
}
.lh-community-page .lh-activity-context-image {
	grid-column: 1;
	grid-row: 1 / span 3;
	display: block;
	width: 68px;
	height: 68px;
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
}
.lh-community-page .lh-activity-context-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}
.lh-community-page .lh-activity-context > div > a {
	display: inline-block;
	margin-top: 5px;
	font-size: .84rem;
	font-weight: 700;
}
.lh-community-page .lh-activity-context:not(:has(.lh-activity-context-image)) > div {
	grid-column: 1 / -1;
}
.lh-community-page .lh-activity-context > div > p {
	margin: 4px 0 0;
	color: var(--lh-community-muted);
	font-size: .82rem;
	line-height: 1.45;
}

/* Shared controls and inputs, with consistent sizing for compose/search/actions. */
.lh-community-page #buddypress input[type="submit"],
.lh-community-page #buddypress button,
.lh-community-page #buddypress a.button,
.lh-community-page #buddypress .button,
.lh-community-page .bp-wrap input[type="submit"],
.lh-community-page .bp-wrap button,
.lh-community-page .bp-wrap a.button,
.lh-community-page .bp-wrap .button {
	display: inline-flex;
	min-width: 40px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 13px;
	border: 1px solid #d4d1e6;
	border-radius: 9px;
	background: #fffefa;
	color: #39338e;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.lh-community-page #buddypress input[type="submit"]:hover,
.lh-community-page #buddypress button:hover,
.lh-community-page #buddypress a.button:hover,
.lh-community-page #buddypress .button:hover,
.lh-community-page .bp-wrap input[type="submit"]:hover,
.lh-community-page .bp-wrap button:hover,
.lh-community-page .bp-wrap a.button:hover,
.lh-community-page .bp-wrap .button:hover {
	border-color: var(--lh-community-accent);
	background: #eeedfa;
	color: #3026a6;
}
.lh-community-page #buddypress input:focus-visible,
.lh-community-page #buddypress textarea:focus-visible,
.lh-community-page #buddypress select:focus-visible,
.lh-community-page #buddypress button:focus-visible,
.lh-community-page #buddypress a.button:focus-visible,
.lh-community-page .bp-wrap input:focus-visible,
.lh-community-page .bp-wrap textarea:focus-visible,
.lh-community-page .bp-wrap select:focus-visible,
.lh-community-page .bp-wrap button:focus-visible {
	outline: 3px solid #7670d8;
	outline-offset: 2px;
}
.lh-community-page #buddypress input[type="text"],
.lh-community-page #buddypress input[type="email"],
.lh-community-page #buddypress input[type="password"],
.lh-community-page #buddypress input[type="url"],
.lh-community-page #buddypress input[type="search"],
.lh-community-page #buddypress input[type="number"],
.lh-community-page #buddypress textarea,
.lh-community-page #buddypress select,
.lh-community-page .bp-wrap input[type="text"],
.lh-community-page .bp-wrap input[type="search"],
.lh-community-page .bp-wrap textarea,
.lh-community-page .bp-wrap select {
	width: 100%;
	max-width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid #dcd9e9;
	border-radius: 9px;
	background: #fffefa;
	color: var(--lh-community-ink);
	font: inherit;
}
.lh-community-page #buddypress .standard-form,
.lh-community-page #buddypress form#whats-new-form,
.lh-community-page #buddypress form#whats-new-form #whats-new-content,
.lh-community-page .bp-wrap .standard-form {
	max-width: 100%;
	padding: 15px;
	border: 1px solid var(--lh-community-line);
	border-radius: 12px;
	background: #f9f8fc;
}
.lh-community-page #buddypress form#whats-new-form #whats-new-content {
	padding: 0;
	border: 0;
	background: transparent;
}
.lh-community-page #buddypress .standard-form label,
.lh-community-page #buddypress form label,
.lh-community-page .bp-wrap .standard-form label {
	margin: 10px 0 5px;
	color: #34324e;
	font-size: .88rem;
	font-weight: 700;
}
.lh-community-page #buddypress .message-search,
.lh-community-page #buddypress .messages-search,
.lh-community-page #buddypress .notifications-options-nav,
.lh-community-page #buddypress .bp-toolbar,
.lh-community-page #buddypress .dir-search,
.lh-community-page #buddypress .subnav-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	max-width: 100%;
	margin: 0 0 14px;
}
.lh-community-page #buddypress .message-search input,
.lh-community-page #buddypress .messages-search input,
.lh-community-page #buddypress .dir-search input {
	flex: 1 1 180px;
	width: auto;
	min-width: 0;
}
.lh-community-page #buddypress .message-action,
.lh-community-page #buddypress .bulk-select,
.lh-community-page #buddypress .messages-options-nav {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}
.lh-community-page #buddypress table,
.lh-community-page #buddypress .profile-fields,
.lh-community-page #buddypress .notifications,
.lh-community-page #buddypress .messages-notices {
	width: 100%;
	max-width: 100%;
}
.lh-community-page #buddypress table {
	border-collapse: collapse;
}
.lh-community-page #buddypress th,
.lh-community-page #buddypress td {
	padding: 10px 11px;
	border-bottom: 1px solid var(--lh-community-line);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress th {
	background: #f6f5fb;
	color: #34324e;
}

/* Compact event/plugin listings while leaving their native hooks untouched. */
.lh-community-page #item-body .event-list,
.lh-community-page #item-body .simple-events,
.lh-community-page #item-body .simple-event,
.lh-community-page #item-body .event,
.lh-community-page #item-body .event-item,
.lh-community-page .lh-native-events .event-list,
.lh-community-page .lh-native-events .simple-events,
.lh-community-page .lh-native-events .simple-event,
.lh-community-page .lh-native-events .event,
.lh-community-page .lh-native-events .event-item {
	max-width: 100%;
}
.lh-community-page #item-body .event-list,
.lh-community-page #item-body .simple-events,
.lh-community-page #item-body.lh-native-events .event-list,
.lh-community-page #item-body.lh-native-events .simple-events,
.lh-community-page .lh-native-events .event-list,
.lh-community-page .lh-native-events .simple-events {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lh-community-page #item-body .event-list > *,
.lh-community-page #item-body .simple-events > *,
.lh-community-page #item-body.lh-native-events .event-list > *,
.lh-community-page #item-body.lh-native-events .simple-events > *,
.lh-community-page .lh-native-events .event-list > *,
.lh-community-page .lh-native-events .simple-events > *,
.lh-community-page #item-body .simple-event,
.lh-community-page #item-body .event,
.lh-community-page #item-body .event-item,
.lh-community-page .lh-native-events .simple-event,
.lh-community-page .lh-native-events .event,
.lh-community-page .lh-native-events .event-item {
	min-width: 0;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--lh-community-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.lh-community-page #item-body .event-list h1,
.lh-community-page #item-body .event-list h2,
.lh-community-page #item-body .event-list h3,
.lh-community-page #item-body.lh-native-events h1,
.lh-community-page #item-body.lh-native-events h2.entry-title,
.lh-community-page #item-body.lh-native-events h3,
.lh-community-page #item-body .simple-events h1,
.lh-community-page #item-body .simple-events h2,
.lh-community-page #item-body .simple-events h3,
.lh-community-page #item-body .simple-event h1,
.lh-community-page #item-body .simple-event h2,
.lh-community-page #item-body .simple-event h3,
.lh-community-page #item-body .event h1,
.lh-community-page #item-body .event h2,
.lh-community-page #item-body .event h3,
.lh-community-page .lh-native-events h1,
.lh-community-page .lh-native-events h2,
.lh-community-page .lh-native-events h3 {
	margin: 0 0 5px;
	font-size: clamp(1rem, 1.8vw, 1.25rem);
	line-height: 1.3;
}
.lh-community-page #item-body.lh-native-events h2.entry-title {
	margin: 0 0 5px;
	font-size: 1.25rem;
	line-height: 1.3;
}
.lh-community-page #item-body.lh-native-events h2.entry-title a {
	color: #302b57;
}
.lh-community-page #item-body.lh-native-events p {
	margin: 5px 0;
	color: var(--lh-community-muted);
	font-size: .875rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.lh-community-page #item-body.lh-native-events hr {
	height: 0;
	margin: 12px 0;
	border: 0;
	border-top: 1px solid var(--lh-community-line);
}
.lh-community-page #item-body .event-list p,
.lh-community-page #item-body .simple-events p,
.lh-community-page #item-body .simple-event p,
.lh-community-page #item-body .event p,
.lh-community-page #item-body .event-item p,
.lh-community-page .lh-native-events p {
	margin: 4px 0;
	color: var(--lh-community-muted);
	font-size: .9rem;
}

/* Member utility screens use a short identity header; public profiles retain covers. */
.lh-community-page .lh-profile-utility #cover-image-container {
	min-height: 145px;
	border-radius: 14px;
}
.lh-community-page .lh-profile-utility #cover-image img {
	min-height: 145px;
}
.lh-community-page .lh-profile-utility #item-header-cover-image {
	padding: 16px 20px;
}
.lh-community-page .lh-profile-utility #item-header-avatar img.avatar {
	width: 68px;
	height: 68px;
}
.lh-community-page .lh-profile-utility #item-header {
	margin-bottom: 16px;
}

@media (max-width: 767px) {
	.lh-community-page .lh-community-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.lh-community-page .lh-community-sidebar {
		position: static;
	}
	.lh-community-page #buddypress .bp-navs ul,
	.lh-community-page #buddypress .item-list-tabs ul,
	.lh-community-page .bp-wrap .bp-navs ul,
	.lh-community-page .bp-wrap .item-list-tabs ul,
	.lh-community-page #buddypress .single-screen-navs ul {
		width: max-content;
		min-width: 100%;
		flex-wrap: nowrap;
	}
	.lh-community-page #buddypress .members-list,
	.lh-community-page #buddypress ul#members-list,
	.lh-community-page .bp-wrap .members-list,
	.lh-community-page .bp-wrap ul#members-list {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	}
	.lh-community-page #buddypress .activity-list > li,
	.lh-community-page .bp-wrap .activity-list > li {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 0 9px;
		padding: 12px;
	}
	.lh-community-page #buddypress .activity-list .activity-avatar,
	.lh-community-page .bp-wrap .activity-list .activity-avatar {
		width: 36px;
	}
	.lh-community-page #buddypress .activity-list .activity-avatar img,
	.lh-community-page .bp-wrap .activity-list .activity-avatar img {
		width: 34px;
		height: 34px;
	}
	.lh-community-page #buddypress table,
	.lh-community-page #buddypress .profile-fields {
		display: block;
		overflow-x: auto;
	}
	.lh-community-page #buddypress .activity-list .activity-comments {
		grid-column: 1 / -1;
	}
	.lh-community-page .lh-community-hero {
		padding-block: 27px !important;
	}
}

@media (max-width: 380px) {
	.lh-community-page #buddypress .members-list,
	.lh-community-page #buddypress ul#members-list,
	.lh-community-page .bp-wrap .members-list,
	.lh-community-page .bp-wrap ul#members-list {
		grid-template-columns: minmax(0, 1fr);
	}
	.lh-community-page #buddypress .members-list > li,
	.lh-community-page #buddypress ul#members-list > li {
		padding: 12px;
	}
	.lh-community-page .lh-activity-context {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 4px 9px;
		padding: 9px;
	}
	.lh-community-page .lh-activity-context-image {
		width: 54px;
		height: 54px;
	}
}
