/* LearnHive member profile and settings UI repairs.
   Loaded after community.css, community-refinements.css and community-compact.css.
   Native Nouveau links/buttons and moderation controls remain in the DOM. */
.lh-community-page,
.lh-profile-page {
	--lh-profile-indigo: #202044;
	--lh-profile-purple: #4B3BD0;
	--lh-profile-cream: #FAF9F6;
	--lh-profile-lavender: #F0EEF8;
	--lh-profile-line: #D0CEE3;
	--lh-profile-muted: #686982;
}

/* Member/friends directory cards.
   Keep identity and native friendship/moderation controls in separate rows:
   BuddyPress action wrappers have used absolute positioning in some releases. */
.lh-community-page #buddypress ul#members-list,
.lh-community-page #buddypress .members-list,
.lh-community-page #buddypress #friends-list,
.lh-community-page #buddypress .friends-list,
.lh-community-page .bp-wrap ul#members-list,
.lh-community-page .bp-wrap .members-list,
.lh-community-page .bp-wrap #friends-list,
.lh-community-page .bp-wrap .friends-list {
	display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
align-items: start;
	gap: 10px;
}
.lh-community-page #buddypress ul#members-list > li,
.lh-community-page #buddypress .members-list > li,
.lh-community-page #buddypress #friends-list > li,
.lh-community-page #buddypress .friends-list > li,
.lh-community-page .bp-wrap ul#members-list > li,
.lh-community-page .bp-wrap .members-list > li,
.lh-community-page .bp-wrap #friends-list > li,
.lh-community-page .bp-wrap .friends-list > li {
	box-sizing: border-box;
	height: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 10px;
	overflow: visible;
}
.lh-community-page #buddypress ul#members-list .list-wrap,
.lh-community-page #buddypress .members-list .list-wrap,
.lh-community-page #buddypress #friends-list .list-wrap,
.lh-community-page #buddypress .friends-list .list-wrap {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: start;
	gap: 7px 9px;
	width: 100%;
	height: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.lh-community-page #buddypress ul#members-list .item-avatar,
.lh-community-page #buddypress .members-list .item-avatar,
.lh-community-page #buddypress #friends-list .item-avatar,
.lh-community-page #buddypress .friends-list .item-avatar {
	grid-column: 1;
	grid-row: 1;
	float: none;
	width: 42px;
	margin: 0;
}
.lh-community-page #buddypress ul#members-list .item-avatar img,
.lh-community-page #buddypress .members-list .item-avatar img,
.lh-community-page #buddypress #friends-list .item-avatar img,
.lh-community-page #buddypress .friends-list .item-avatar img {
	display: block;
	width: 40px;
	height: 40px;
	max-width: 40px;
	margin: 0;
	object-fit: cover;
}
.lh-community-page #buddypress ul#members-list .item,
.lh-community-page #buddypress .members-list .item,
.lh-community-page #buddypress #friends-list .item,
.lh-community-page #buddypress .friends-list .item {
	grid-column: 2;
	grid-row: 1;
	float: none;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	overflow: visible;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress ul#members-list .item-block,
.lh-community-page #buddypress .members-list .item-block,
.lh-community-page #buddypress #friends-list .item-block,
.lh-community-page #buddypress .friends-list .item-block {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	overflow: visible;
}
.lh-community-page #buddypress ul#members-list .member-name,
.lh-community-page #buddypress .members-list .member-name,
.lh-community-page #buddypress ul#members-list .item-title,
.lh-community-page #buddypress .members-list .item-title,
.lh-community-page #buddypress #friends-list .member-name,
.lh-community-page #buddypress .friends-list .member-name,
.lh-community-page #buddypress #friends-list .item-title,
.lh-community-page #buddypress .friends-list .item-title {
	display: -webkit-box;
	max-height: 2.7em;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: .92rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress ul#members-list .last-activity,
.lh-community-page #buddypress .members-list .last-activity,
.lh-community-page #buddypress ul#members-list .item-meta,
.lh-community-page #buddypress .members-list .item-meta,
.lh-community-page #buddypress #friends-list .last-activity,
.lh-community-page #buddypress .friends-list .last-activity,
.lh-community-page #buddypress #friends-list .item-meta,
.lh-community-page #buddypress .friends-list .item-meta {
	margin: 3px 0 0;
	font-size: .74rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress ul#members-list .action,
.lh-community-page #buddypress .members-list .action,
.lh-community-page #buddypress #friends-list .action,
.lh-community-page #buddypress .friends-list .action,
.lh-community-page #buddypress ul#members-list .members-meta,
.lh-community-page #buddypress .members-list .members-meta,
.lh-community-page #buddypress #friends-list .members-meta,
.lh-community-page #buddypress .friends-list .members-meta {
	position: static;
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	float: none;
	width: 100%;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 0;
	text-align: left;
}
.lh-community-page #buddypress ul#members-list .members-meta li,
.lh-community-page #buddypress .members-list .members-meta li,
.lh-community-page #buddypress #friends-list .members-meta li,
.lh-community-page #buddypress .friends-list .members-meta li {
	flex: 0 1 auto;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}
.lh-community-page #buddypress ul#members-list .action a,
.lh-community-page #buddypress .members-list .action a,
.lh-community-page #buddypress #friends-list .action a,
.lh-community-page #buddypress .friends-list .action a,
.lh-community-page #buddypress ul#members-list .members-meta a,
.lh-community-page #buddypress .members-list .members-meta a,
.lh-community-page #buddypress #friends-list .members-meta a,
.lh-community-page #buddypress .friends-list .members-meta a,
.lh-community-page #buddypress ul#members-list .members-meta button,
.lh-community-page #buddypress .members-list .members-meta button,
.lh-community-page #buddypress #friends-list .members-meta button,
.lh-community-page #buddypress .friends-list .members-meta button {
	box-sizing: border-box;
	display: inline-flex;
	min-width: 0;
	min-height: 34px;
	height: auto;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 6px 8px;
	font-size: .76rem;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress ul#members-list .item-extra-content,
.lh-community-page #buddypress .members-list .item-extra-content,
.lh-community-page #buddypress ul#members-list .user-update,
.lh-community-page #buddypress .members-list .user-update,
.lh-community-page #buddypress #friends-list .item-extra-content,
.lh-community-page #buddypress .friends-list .item-extra-content,
.lh-community-page #buddypress #friends-list .user-update,
.lh-community-page #buddypress .friends-list .user-update {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
}

/* Feed-embedded native member blocks must not inherit a public-profile cover
   hero. Their compact identity card exists only inside activity content. */
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover {
	position: relative;
	display: block;
	width: 100%;
	min-height: 0;
	height: auto;
	margin: 10px 0 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--lh-profile-line);
	border-radius: 10px;
	background: var(--lh-profile-cream);
	color: var(--lh-profile-indigo);
	box-shadow: none;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .bp-member-cover-image {
	position: relative;
	inset: auto;
	display: block;
	width: 100%;
	height: 54px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background-position: center 40%;
	background-size: cover;
	z-index: auto;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .member-content,
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .member-description {
	position: static;
	display: flex;
	min-height: 0;
	height: auto;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 12px;
	z-index: auto;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .item-header-avatar,
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover.avatar-thumb .item-header-avatar,
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover.avatar-full .item-header-avatar {
	position: static;
	flex: 0 0 42px;
	width: 42px;
	margin: 0;
	padding: 0;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover img.avatar {
	display: block;
	width: 40px;
	height: 40px;
	max-width: 40px;
	margin: 0;
	border: 1px solid var(--lh-profile-line);
	border-radius: 50%;
	background: var(--lh-profile-cream);
	object-fit: cover;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .member-content > :not(.item-header-avatar),
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .member-description {
	flex: 1 1 auto;
	min-width: 0;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .user-nicename,
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .user-nicename a {
	display: block;
	margin: 0;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .bp-profile-button {
	position: static;
	width: auto;
	margin: 4px 0 0;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover .bp-profile-button a.button {
	position: static;
	display: inline-flex;
	width: auto;
	min-width: 0;
	min-height: 34px;
	height: auto;
	margin: 0;
	padding: 6px 10px;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover.avatar-none,
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover.avatar-full,
.lh-community-page #buddypress .activity-list .activity-inner .bp-block-member.has-cover.avatar-full.has-cover {
	min-height: 0;
}

/* Activity profile previews currently rendered by LearnHive use this wrapper;
   keep the identity and profile link compact without adding nested card chrome. */
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-preview-cover {
display: none;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-short-description .has-cover-image {
position: static;
inset: auto;
transform: none;
margin: 0;
padding: 0;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-activity-preview {
	width: 100%;
	max-width: 100%;
	margin: 8px 0 0;
	padding: 0;
	border: 1px solid var(--lh-profile-line);
	border-radius: 10px;
	background: var(--lh-profile-cream);
	box-shadow: none;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-short-description {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: center;
	gap: 2px 10px;
	min-height: 0;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	box-shadow: none;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-avatar-content {
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 42px;
	margin: 0;
	padding: 0;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-avatar-content img.avatar {
	display: block;
	width: 40px;
	height: 40px;
	max-width: 40px;
	margin: 0;
	border: 1px solid var(--lh-profile-line);
	border-radius: 50%;
	object-fit: cover;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-short-description-title,
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-nickname {
	grid-column: 2;
	margin: 0;
	font-size: .85rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-short-description-title {
	font-weight: 700;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-nickname {
	color: var(--lh-profile-muted);
	font-size: .76rem;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-short-description .bp-profile-button {
	grid-column: 2;
	width: auto;
	margin: 5px 0 0;
}
.lh-community-page #buddypress .activity-list .activity-inner .bp-member-short-description .bp-profile-button a.button {
	position: static;
	display: inline-flex;
	width: auto;
	min-width: 0;
	min-height: 34px;
	height: auto;
	margin: 0;
	padding: 6px 10px;
}

/* Directory cards show identity/status/actions, not full latest-post excerpts.
   The updates themselves remain available on Activity and member profiles. */
.lh-community-page #buddypress :is(#members-list,#friends-list) :is(.item-extra-content,.user-update) {
display: none;
}

/* Enhanced directory controls: native text remains the accessible label.
   Without JavaScript, the compact full-text controls above remain available. */
.lh-community-page #buddypress :is(ul#members-list,ul#friends-list) :is(.members-meta,.action) :is(a,button).lh-icon-action {
position: relative;
width: 40px;
height: 40px;
min-width: 40px;
min-height: 40px;
padding: 0;
overflow: visible;
font-size: 0;
line-height: 0;
border-radius: 10px;
}
.lh-community-page #buddypress :is(#members-list,#friends-list) .lh-icon-action::before {
content: "";
display: block;
width: 18px;
height: 18px;
background: currentColor;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-2a7 7 0 0 1 14 0v2M20 8v8m-4-4h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lh-community-page #buddypress :is(#members-list,#friends-list) .lh-icon-action[data-action-state="pending"]::before {
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
.lh-community-page #buddypress :is(#members-list,#friends-list) .lh-icon-action[data-action-state="friend"]::before,
.lh-community-page #buddypress :is(#members-list,#friends-list) .lh-icon-action[data-action-state="restore"]::before {
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
}
.lh-community-page #buddypress :is(#members-list,#friends-list) .lh-icon-action[data-action-state="suspend"]::before {
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}
.lh-community-page #buddypress :is(#members-list,#friends-list) .lh-icon-action.loading::before {
mask: none;
background: transparent;
border: 2px solid currentColor;
border-right-color: transparent;
border-radius: 50%;
animation: lh-friendship-spin .7s linear infinite;
}

/* Replies: one border belongs to the wrapper; textarea focus remains visible
   outside the wrapper without clipping or drawing a second inset border. */
.lh-community-page #buddypress .ac-form .ac-textarea,
.lh-community-page #buddypress .activity-comments .ac-textarea {
	min-height: 88px;
	overflow: visible;
	border: 1px solid var(--lh-profile-line);
	border-radius: 10px;
	background: var(--lh-profile-cream);
	box-shadow: none;
}
.lh-community-page #buddypress .ac-form .ac-textarea textarea,
.lh-community-page #buddypress .activity-comments .ac-textarea textarea {
	display: block;
	width: 100%;
	min-height: 86px;
	margin: 0;
	border: 0;
	border-radius: inherit;
	background: transparent;
	box-shadow: none;
	outline: 0;
}
.lh-community-page #buddypress .ac-form .ac-textarea:focus-within,
.lh-community-page #buddypress .activity-comments .ac-textarea:focus-within {
	border-color: var(--lh-profile-purple);
	box-shadow: 0 0 0 2px var(--lh-profile-cream), 0 0 0 4px var(--lh-profile-purple);
}
.lh-community-page #buddypress .ac-form .ac-textarea textarea:focus,
.lh-community-page #buddypress .activity-comments .ac-textarea textarea:focus {
	border: 0;
	outline: 0;
	box-shadow: none;
}

/* Native profile cover is its own normal-flow element; identity and actions
   live on a separate light panel below it, never across the cover boundary. */
.lh-profile-page #buddypress #cover-image-container.lh-member-cover {
	position: relative;
	display: block;
	min-height: 0;
height: auto;
	margin: 0;
	padding: 0;
overflow: visible;
	border: 0;
	border-radius: 16px 16px 0 0;
	background: var(--lh-profile-lavender);
	color: var(--lh-profile-indigo);
}
.lh-profile-page #buddypress #cover-image-container.lh-member-cover::after {
	display: none;
	content: none;
}
.lh-profile-page #buddypress #cover-image-container.lh-member-cover #header-cover-image,
.lh-profile-page #buddypress #cover-image-container.lh-member-cover #cover-image {
	position: static;
	inset: auto;
	display: block;
	width: 100%;
height: clamp(155px, 24vw, 250px);
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: inherit;
	background-color: var(--lh-profile-lavender);
	background-position: center;
	background-size: cover;
	object-fit: cover;
}
.lh-profile-page #buddypress #cover-image-container.lh-member-cover #header-cover-image img,
.lh-profile-page #buddypress #cover-image-container.lh-member-cover #cover-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center;
}
.lh-profile-page #buddypress #item-header-cover-image {
	position: static;
	z-index: auto;
min-height: 0;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: start;
	gap: 12px 16px;
	width: 100%;
	margin: 0 0 18px;
	padding: 18px;
	border: 1px solid var(--lh-profile-line);
	border-top: 0;
	border-radius: 0 0 16px 16px;
	background: var(--lh-profile-cream);
	color: var(--lh-profile-indigo);
}
.lh-profile-page #buddypress #item-header-avatar {
	position: static;
	z-index: auto;
	grid-column: 1;
	grid-row: 1;
	width: 88px;
	margin: 0;
}
.lh-profile-page #buddypress #item-header-avatar img.avatar {
	display: block;
	width: 80px;
	height: 80px;
	max-width: 80px;
	margin: 0;
	border: 3px solid var(--lh-profile-cream);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--lh-profile-line);
	object-fit: cover;
}
.lh-profile-page #buddypress #item-header #item-header-cover-image #item-header-content,
.lh-profile-page #buddypress #item-header-cover-image #item-header-content,
.lh-profile-page #buddypress #item-header-content {
	grid-column: 2;
	grid-row: 1;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--lh-profile-indigo);
	text-align: left;
}
.lh-profile-page #buddypress #item-header #item-header-cover-image #item-header-avatar {
float: none;
width: 88px;
margin: 0;
padding: 0;
}
.lh-profile-page #buddypress #item-header-content h2.lh-member-display-name,
.lh-profile-page #buddypress #item-header-content h2 {
	margin: 0 0 3px;
	color: var(--lh-profile-indigo);
	font-family: var(--lh-font-display, Georgia, serif);
	font-size: clamp(1.2rem, 2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: none;
	overflow-wrap: anywhere;
}
.lh-profile-page #buddypress #item-header-content .user-nicename,
.lh-profile-page #buddypress #item-header-content .item-meta,
.lh-profile-page #buddypress #item-header-content .activity,
.lh-profile-page #buddypress #item-header-content p {
	margin: 2px 0 0;
	color: var(--lh-profile-muted);
	font-family: var(--lh-font-body, "Inter", system-ui, sans-serif);
	font-size: .88rem;
	line-height: 1.4;
	text-shadow: none;
	overflow-wrap: anywhere;
}
/* Keep the established focused utility screens; a Settings/Inbox title bar
   already identifies the page and must not regain a second profile cover. */
.lh-community-page .lh-profile-utility #buddypress #item-header {
display: none;
}
.lh-profile-page #buddypress #item-header-content a {
	color: var(--lh-profile-purple);
	text-shadow: none;
}
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions {
	position: static;
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 16px 0 0;
	padding: 0;
}
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .generic-button,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .friendship-button,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .group-button,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions > a,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions > button {
	display: flex;
	flex: 0 1 148px;
	min-width: 148px;
	max-width: 100%;
	margin: 0;
	padding: 0;
}
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions a,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions button {
	box-sizing: border-box;
	display: inline-flex;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 40px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--lh-profile-indigo);
	border-radius: 12px;
	background: var(--lh-profile-cream);
	color: var(--lh-profile-indigo);
	font-family: var(--lh-font-body, "Inter", system-ui, sans-serif);
	font-size: .875rem;
font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
white-space: normal;
}
.lh-profile-page #buddypress #item-header-cover-image #item-header-content .member-header-actions .friendship-button button,
.lh-profile-page #buddypress #item-header-cover-image #item-header-content .member-header-actions .friendship-button a,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .friendship-button a,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions a.friendship-button,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .friendship-button a.loading,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .friendship-button a.pending,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .friendship-button a.is_friend {
	border-color: var(--lh-profile-purple);
	background: var(--lh-profile-purple);
	color: var(--lh-profile-cream);
}
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions a.send-message,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions a.bp-secondary-action,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .generic-button:not(.friendship-button) a {
	border-color: var(--lh-profile-indigo);
	background: var(--lh-profile-cream);
	color: var(--lh-profile-indigo);
}
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .loading,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .pending,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .is_friend,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .is-friend {
	opacity: .82;
}
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .loading::before {
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	content: "";
	animation: lh-friendship-spin .7s linear infinite;
}
@keyframes lh-friendship-spin {
	to { transform: rotate(360deg); }
}
.lh-profile-page #buddypress #item-header-cover-image .generic-button a:hover,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions a:hover,
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions button:hover {
	background: var(--lh-profile-lavender);
	color: var(--lh-profile-indigo);
}
.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .friendship-button a:hover {
	border-color: var(--lh-profile-indigo);
	background: var(--lh-profile-indigo);
	color: var(--lh-profile-cream);
}

/* One scrollable main-tab rail and quiet, pill-shaped subnavigation. */
.lh-community-page #buddypress #item-nav,
.lh-community-page #buddypress #object-nav,
.lh-profile-page #buddypress #item-nav,
.lh-profile-page #buddypress #object-nav {
	width: 100%;
	max-width: 100%;
	margin: 0 0 14px;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	border: 0;
	border-bottom: 1px solid var(--lh-profile-line);
	background: transparent;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.lh-community-page #buddypress #item-nav::-webkit-scrollbar,
.lh-community-page #buddypress #object-nav::-webkit-scrollbar,
.lh-profile-page #buddypress #item-nav::-webkit-scrollbar,
.lh-profile-page #buddypress #object-nav::-webkit-scrollbar,
.lh-community-page #buddypress #subnav::-webkit-scrollbar,
.lh-profile-page #buddypress #subnav::-webkit-scrollbar {
	display: none;
}
.lh-community-page #buddypress #object-nav ul,
.lh-community-page #buddypress #item-nav > .bp-navs ul,
.lh-community-page #buddypress #item-nav > .item-list-tabs ul,
.lh-profile-page #buddypress #object-nav ul,
.lh-profile-page #buddypress #item-nav > .bp-navs ul,
.lh-profile-page #buddypress #item-nav > .item-list-tabs ul {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 4px;
	width: max-content;
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}
.lh-community-page #buddypress #object-nav li,
.lh-community-page #buddypress #item-nav > .bp-navs li,
.lh-community-page #buddypress #item-nav > .item-list-tabs li,
.lh-profile-page #buddypress #object-nav li,
.lh-profile-page #buddypress #item-nav > .bp-navs li,
.lh-profile-page #buddypress #item-nav > .item-list-tabs li {
	position: static;
	float: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
background: transparent;
	box-shadow: none;
}
.lh-community-page #buddypress #object-nav li a,
.lh-community-page #buddypress #item-nav > .bp-navs li a,
.lh-community-page #buddypress #item-nav > .item-list-tabs li a,
.lh-profile-page #buddypress #object-nav li a,
.lh-profile-page #buddypress #item-nav > .bp-navs li a,
.lh-profile-page #buddypress #item-nav > .item-list-tabs li a {
	position: relative;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding: 10px 13px 11px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--lh-profile-muted);
	font-size: .875rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, color .15s, box-shadow .15s;
	-webkit-tap-highlight-color: transparent;
}
.lh-community-page #buddypress #object-nav li.current a,
.lh-community-page #buddypress #object-nav li.selected a,
.lh-community-page #buddypress #item-nav > .bp-navs li.current a,
.lh-community-page #buddypress #item-nav > .bp-navs li.selected a,
.lh-community-page #buddypress #item-nav > .item-list-tabs li.current a,
.lh-community-page #buddypress #item-nav > .item-list-tabs li.selected a,
.lh-profile-page #buddypress #object-nav li.current a,
.lh-profile-page #buddypress #object-nav li.selected a,
.lh-profile-page #buddypress #item-nav > .bp-navs li.current a,
.lh-profile-page #buddypress #item-nav > .bp-navs li.selected a,
.lh-profile-page #buddypress #item-nav > .item-list-tabs li.current a,
.lh-profile-page #buddypress #item-nav > .item-list-tabs li.selected a {
	background: transparent;
	color: var(--lh-profile-purple);
	box-shadow: inset 0 -2px 0 var(--lh-profile-purple);
}
.lh-community-page #buddypress #object-nav li a:hover,
.lh-community-page #buddypress #item-nav > .bp-navs li a:hover,
.lh-community-page #buddypress #item-nav > .item-list-tabs li a:hover,
.lh-profile-page #buddypress #object-nav li a:hover,
.lh-profile-page #buddypress #item-nav > .bp-navs li a:hover,
.lh-profile-page #buddypress #item-nav > .item-list-tabs li a:hover {
	background: var(--lh-profile-lavender);
	color: var(--lh-profile-indigo);
}
.lh-community-page #buddypress #subnav,
.lh-community-page #buddypress .bp-subnavs,
.lh-community-page #buddypress .bp-navs.subnav,
.lh-community-page #buddypress .item-list-tabs.subnav,
.lh-community-page #buddypress .bp-messages-nav,
.lh-profile-page #buddypress #subnav,
.lh-profile-page #buddypress .bp-subnavs,
.lh-profile-page #buddypress .bp-navs.subnav,
.lh-profile-page #buddypress .item-list-tabs.subnav,
.lh-profile-page #buddypress .bp-messages-nav {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 14px;
	padding: 4px 0;
	overflow-x: auto;
	overflow-y: hidden;
	border: 0;
	border-bottom: 0;
	background: transparent;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.lh-community-page #buddypress #subnav ul,
.lh-community-page #buddypress .bp-subnavs ul,
.lh-community-page #buddypress .bp-navs.subnav ul,
.lh-community-page #buddypress .item-list-tabs.subnav ul,
.lh-community-page #buddypress .bp-messages-nav ul,
.lh-profile-page #buddypress #subnav ul,
.lh-profile-page #buddypress .bp-subnavs ul,
.lh-profile-page #buddypress .bp-navs.subnav ul,
.lh-profile-page #buddypress .item-list-tabs.subnav ul,
.lh-profile-page #buddypress .bp-messages-nav ul {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 7px;
	width: max-content;
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}
.lh-community-page #buddypress #subnav li,
.lh-community-page #buddypress .bp-subnavs li,
.lh-community-page #buddypress .bp-navs.subnav li,
.lh-community-page #buddypress .item-list-tabs.subnav li,
.lh-community-page #buddypress .bp-messages-nav li,
.lh-profile-page #buddypress #subnav li,
.lh-profile-page #buddypress .bp-subnavs li,
.lh-profile-page #buddypress .bp-navs.subnav li,
.lh-profile-page #buddypress .item-list-tabs.subnav li,
.lh-profile-page #buddypress .bp-messages-nav li {
	position: static;
	float: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-right: 0;
	border-left: 0;
background: transparent;
	box-shadow: none;
}
.lh-community-page #buddypress #subnav li a,
.lh-community-page #buddypress .bp-subnavs li a,
.lh-community-page #buddypress .bp-navs.subnav li a,
.lh-community-page #buddypress .item-list-tabs.subnav li a,
.lh-community-page #buddypress .bp-messages-nav li a,
.lh-profile-page #buddypress #subnav li a,
.lh-profile-page #buddypress .bp-subnavs li a,
.lh-profile-page #buddypress .bp-navs.subnav li a,
.lh-profile-page #buddypress .item-list-tabs.subnav li a,
.lh-profile-page #buddypress .bp-messages-nav li a {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	padding: 8px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--lh-profile-muted);
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, color .15s, box-shadow .15s;
	-webkit-tap-highlight-color: transparent;
}
.lh-community-page #buddypress #subnav li.current a,
.lh-community-page #buddypress #subnav li.selected a,
.lh-community-page #buddypress .bp-subnavs li.current a,
.lh-community-page #buddypress .bp-subnavs li.selected a,
.lh-community-page #buddypress .bp-navs.subnav li.current a,
.lh-community-page #buddypress .bp-navs.subnav li.selected a,
.lh-community-page #buddypress .item-list-tabs.subnav li.current a,
.lh-community-page #buddypress .item-list-tabs.subnav li.selected a,
.lh-community-page #buddypress .bp-messages-nav li.current a,
.lh-community-page #buddypress .bp-messages-nav li.selected a,
.lh-profile-page #buddypress #subnav li.current a,
.lh-profile-page #buddypress #subnav li.selected a,
.lh-profile-page #buddypress .bp-subnavs li.current a,
.lh-profile-page #buddypress .bp-subnavs li.selected a,
.lh-profile-page #buddypress .bp-navs.subnav li.current a,
.lh-profile-page #buddypress .bp-navs.subnav li.selected a,
.lh-profile-page #buddypress .item-list-tabs.subnav li.current a,
.lh-profile-page #buddypress .item-list-tabs.subnav li.selected a,
.lh-profile-page #buddypress .bp-messages-nav li.current a,
.lh-profile-page #buddypress .bp-messages-nav li.selected a {
	background: var(--lh-profile-lavender);
	color: var(--lh-profile-indigo);
	box-shadow: none;
	text-decoration: none;
}
.lh-community-page #buddypress #subnav li a:hover,
.lh-community-page #buddypress .bp-subnavs li a:hover,
.lh-community-page #buddypress .bp-navs.subnav li a:hover,
.lh-community-page #buddypress .item-list-tabs.subnav li a:hover,
.lh-community-page #buddypress .bp-messages-nav li a:hover,
.lh-profile-page #buddypress #subnav li a:hover,
.lh-profile-page #buddypress .bp-subnavs li a:hover,
.lh-profile-page #buddypress .bp-navs.subnav li a:hover,
.lh-profile-page #buddypress .item-list-tabs.subnav li a:hover,
.lh-profile-page #buddypress .bp-messages-nav li a:hover {
	background: var(--lh-profile-lavender);
	color: var(--lh-profile-indigo);
}
.lh-community-page #buddypress #item-body,
.lh-community-page #buddypress .item-body,
.lh-profile-page #buddypress #item-body,
.lh-profile-page #buddypress .item-body {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	padding-inline: 0;
	border-left: 0;
}
.lh-community-page #buddypress #item-body > .bp-navs,
.lh-community-page #buddypress #item-body > .item-list-tabs,
.lh-profile-page #buddypress #item-body > .bp-navs,
.lh-profile-page #buddypress #item-body > .item-list-tabs {
	width: 100%;
	max-width: 100%;
}

/* Focus is keyboard-only; clicks and taps do not retain a browser/plugin patch.
   This is scoped to community controls and preserves global accessibility. */
.lh-community-page #buddypress a:focus,
.lh-community-page #buddypress button:focus,
.lh-community-page #buddypress input:focus,
.lh-community-page #buddypress select:focus,
.lh-community-page #buddypress textarea:focus,
.lh-profile-page #buddypress a:focus,
.lh-profile-page #buddypress button:focus,
.lh-profile-page #buddypress input:focus,
.lh-profile-page #buddypress select:focus,
.lh-profile-page #buddypress textarea:focus {
	outline: none;
	box-shadow: none;
}
.lh-community-page #buddypress a:focus-visible,
.lh-community-page #buddypress button:focus-visible,
.lh-community-page #buddypress input:focus-visible,
.lh-community-page #buddypress select:focus-visible,
.lh-community-page #buddypress textarea:focus-visible,
.lh-profile-page #buddypress a:focus-visible,
.lh-profile-page #buddypress button:focus-visible,
.lh-profile-page #buddypress input:focus-visible,
.lh-profile-page #buddypress select:focus-visible,
.lh-profile-page #buddypress textarea:focus-visible {
	position: relative;
	z-index: 2;
	outline: 2px solid var(--lh-profile-purple);
	outline-offset: 2px;
	box-shadow: none;
}
.lh-community-page #buddypress #object-nav a,
.lh-community-page #buddypress #subnav a,
.lh-community-page #buddypress .bp-subnavs a,
.lh-community-page #buddypress .generic-button a,
.lh-community-page #buddypress .friendship-button a,
.lh-community-page #buddypress .group-button a,
.lh-profile-page #buddypress #object-nav a,
.lh-profile-page #buddypress #subnav a,
.lh-profile-page #buddypress .bp-subnavs a,
.lh-profile-page #buddypress .generic-button a,
.lh-profile-page #buddypress .friendship-button a,
.lh-profile-page #buddypress .group-button a {
	transition: background-color .15s, color .15s, box-shadow .15s;
	-webkit-tap-highlight-color: transparent;
}
.lh-community-page #buddypress .generic-button a:active,
.lh-community-page #buddypress .friendship-button a:active,
.lh-community-page #buddypress .group-button a:active,
.lh-profile-page #buddypress .generic-button a:active,
.lh-profile-page #buddypress .friendship-button a:active,
.lh-profile-page #buddypress .group-button a:active {
	background: var(--lh-profile-line);
	outline: none;
	box-shadow: none;
}

/* Directory presence is the native BuddyPress "active within five minutes"
   recent-activity indicator, not live/real-time availability. */
.lh-community-page #buddypress #members-list > li.is-online .item-meta::before,
.lh-community-page #buddypress #friends-list > li.is-online .item-meta::before,
.lh-community-page #buddypress #members-list > li.is-online .last-activity::before,
.lh-community-page #buddypress #friends-list > li.is-online .last-activity::before {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 6px 1px 0;
	border-radius: 50%;
	background: #39846B;
	content: "";
	vertical-align: middle;
}
.lh-community-page #buddypress #members-list > li.is-online .item-meta,
.lh-community-page #buddypress #friends-list > li.is-online .item-meta,
.lh-community-page #buddypress #members-list > li.is-online .last-activity,
.lh-community-page #buddypress #friends-list > li.is-online .last-activity {
	color: var(--lh-profile-muted);
}
.lh-community-page #buddypress #members-list > li.is-online .item-meta::after,
.lh-community-page #buddypress #friends-list > li.is-online .item-meta::after {
	margin-left: 5px;
	color: var(--lh-profile-muted);
	content: "Recently active";
	font-size: .72rem;
	font-weight: 600;
}
.lh-community-page #buddypress #members-list > li.is-online:not(:has(.item-meta)) .last-activity::after,
.lh-community-page #buddypress #friends-list > li.is-online:not(:has(.item-meta)) .last-activity::after {
	margin-left: 5px;
	color: var(--lh-profile-muted);
	content: "Recently active";
	font-size: .72rem;
	font-weight: 600;
}

/* Settings form buttons match the profile action geometry and brand fill. */
.lh-community-page #buddypress #your-profile .submit input[type="submit"],
.lh-community-page #buddypress #your-profile input[type="submit"],
.lh-community-page #buddypress #your-profile .wp-generate-pw,
.lh-profile-page #buddypress #your-profile .submit input[type="submit"],
.lh-profile-page #buddypress #your-profile input[type="submit"],
.lh-profile-page #buddypress #your-profile .wp-generate-pw {
	box-sizing: border-box;
	height: 48px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--lh-profile-purple);
	border-radius: 12px;
	background: var(--lh-profile-purple);
	color: var(--lh-profile-cream);
	font-family: var(--lh-font-body, "Inter", system-ui, sans-serif);
	font-size: .94rem;
	font-weight: 650;
}
.lh-community-page #buddypress #your-profile .submit input[type="submit"]:hover,
.lh-community-page #buddypress #your-profile .wp-generate-pw:hover,
.lh-profile-page #buddypress #your-profile .submit input[type="submit"]:hover,
.lh-profile-page #buddypress #your-profile .wp-generate-pw:hover {
	border-color: var(--lh-profile-indigo);
	background: var(--lh-profile-indigo);
	color: var(--lh-profile-cream);
}
.lh-community-page #buddypress .bp-feedback.info,
.lh-community-page #buddypress .bp-feedback:not(.error):not(.warning):not(.success),
.lh-profile-page #buddypress .bp-feedback.info,
.lh-profile-page #buddypress .bp-feedback:not(.error):not(.warning):not(.success) {
	border-color: var(--lh-profile-line);
	background: var(--lh-profile-lavender);
	color: var(--lh-profile-indigo);
}
.lh-community-page #buddypress .bp-feedback.info .bp-icon,
.lh-community-page #buddypress .bp-feedback:not(.error):not(.warning):not(.success) .bp-icon,
.lh-profile-page #buddypress .bp-feedback.info .bp-icon,
.lh-profile-page #buddypress .bp-feedback:not(.error):not(.warning):not(.success) .bp-icon {
	background: transparent;
color: var(--lh-profile-indigo);
}
.lh-community-page #buddypress .bp-feedback.info .bp-icon::before,
.lh-community-page #buddypress .bp-feedback:not(.error):not(.warning):not(.success) .bp-icon::before,
.lh-profile-page #buddypress .bp-feedback.info .bp-icon::before,
.lh-profile-page #buddypress .bp-feedback:not(.error):not(.warning):not(.success) .bp-icon::before {
color: var(--lh-profile-indigo);
}

@media (max-width: 767px) {
	.lh-profile-page #buddypress #item-header-cover-image {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 10px 12px;
		padding: 14px;
	}
	.lh-profile-page #buddypress #item-header-avatar {
		width: 64px;
	}
	.lh-profile-page #buddypress #item-header-avatar img.avatar {
		width: 60px;
		height: 60px;
		max-width: 60px;
	}
	.lh-profile-page #buddypress #item-header-cover-image .member-header-actions {
		gap: 10px;
	}
	.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .generic-button,
	.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .friendship-button,
	.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .group-button,
	.lh-profile-page #buddypress #item-header-cover-image .member-header-actions > a,
	.lh-profile-page #buddypress #item-header-cover-image .member-header-actions > button {
		flex: 1 1 140px;
		min-width: min(140px, 100%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.lh-profile-page #buddypress #item-header-cover-image .member-header-actions .loading::before {
		animation-duration: 1.5s;
	}
}

/* Profile screens share one visual rhythm across the primary rail, secondary
   tabs and the content region below them. Keep native links and focus intact. */
.lh-profile-page #buddypress #item-nav,
.lh-profile-page #buddypress #object-nav,
.lh-profile-page #buddypress #subnav,
.lh-profile-page #buddypress .bp-subnavs,
.lh-profile-page #buddypress .bp-navs.subnav,
.lh-profile-page #buddypress .item-list-tabs.subnav {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 0 12px;
	background: transparent;
}
.lh-profile-page #buddypress #item-nav,
.lh-profile-page #buddypress #object-nav {
	border-bottom: 1px solid var(--lh-profile-line);
}
.lh-profile-page #buddypress #item-nav ul,
.lh-profile-page #buddypress #object-nav ul,
.lh-profile-page #buddypress #subnav ul,
.lh-profile-page #buddypress .bp-subnavs ul,
.lh-profile-page #buddypress .bp-navs.subnav ul,
.lh-profile-page #buddypress .item-list-tabs.subnav ul {
	margin: 0;
	padding: 0;
	background: transparent;
}
.lh-profile-page #buddypress #item-nav li,
.lh-profile-page #buddypress #object-nav li,
.lh-profile-page #buddypress #subnav li,
.lh-profile-page #buddypress .bp-subnavs li,
.lh-profile-page #buddypress .bp-navs.subnav li,
.lh-profile-page #buddypress .item-list-tabs.subnav li {
	border: 0;
	background: transparent;
	box-shadow: none;
}
.lh-profile-page #buddypress #item-nav li a,
.lh-profile-page #buddypress #object-nav li a {
	min-height: 42px;
	padding: 10px 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--lh-profile-muted);
	font-size: .86rem;
	font-weight: 650;
}
.lh-profile-page #buddypress #item-nav li.current a,
.lh-profile-page #buddypress #item-nav li.selected a,
.lh-profile-page #buddypress #object-nav li.current a,
.lh-profile-page #buddypress #object-nav li.selected a {
	background: transparent;
	color: var(--lh-profile-purple);
	box-shadow: inset 0 -2px 0 var(--lh-profile-purple);
}
.lh-profile-page #buddypress #subnav li a,
.lh-profile-page #buddypress .bp-subnavs li a,
.lh-profile-page #buddypress .bp-navs.subnav li a,
.lh-profile-page #buddypress .item-list-tabs.subnav li a {
	min-height: 36px;
	padding: 8px 11px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--lh-profile-muted);
	font-size: .82rem;
	font-weight: 600;
}
.lh-profile-page #buddypress #subnav li.current a,
.lh-profile-page #buddypress #subnav li.selected a,
.lh-profile-page #buddypress .bp-subnavs li.current a,
.lh-profile-page #buddypress .bp-subnavs li.selected a,
.lh-profile-page #buddypress .bp-navs.subnav li.current a,
.lh-profile-page #buddypress .bp-navs.subnav li.selected a,
.lh-profile-page #buddypress .item-list-tabs.subnav li.current a,
.lh-profile-page #buddypress .item-list-tabs.subnav li.selected a {
	background: var(--lh-profile-lavender);
	color: var(--lh-profile-indigo);
	box-shadow: none;
}
.lh-profile-page #buddypress #item-body,
.lh-profile-page #buddypress .item-body,
.lh-profile-page #buddypress #item-body > .profile,
.lh-profile-page #buddypress #item-body > .bp-widget {
	background: transparent;
	box-shadow: none;
}
.lh-profile-page #buddypress #item-body {
	margin-top: 0;
	padding-top: 0;
}
.lh-profile-page #buddypress #item-body > .profile.public {
	padding: 14px;
	border: 1px solid var(--lh-profile-line);
	border-radius: 12px;
	background: var(--lh-profile-cream);
}
.lh-profile-page #buddypress .profile.public .bp-widget {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.lh-profile-page #buddypress .profile.public .bp-widget + .bp-widget {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--lh-profile-line);
}

/* Basic own-profile editor supplied by the theme shell. This styles its
   semantic form structure without replacing BuddyPress feedback or submission. */
.lh-profile-page .lh-basic-profile,
.lh-community-page .lh-basic-profile {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: clamp(14px, 2.5vw, 22px);
	border: 1px solid var(--lh-profile-line);
	border-radius: 14px;
	background: var(--lh-profile-cream);
	color: var(--lh-profile-indigo);
}
.lh-profile-page .lh-basic-profile h2,
.lh-community-page .lh-basic-profile h2 {
	margin: 0 0 5px;
	color: var(--lh-profile-indigo);
	font-family: var(--lh-font-display, Georgia, serif);
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	line-height: 1.25;
}
.lh-profile-page .lh-basic-profile > p,
.lh-community-page .lh-basic-profile > p {
	margin: 0 0 16px;
	color: var(--lh-profile-muted);
	font-size: .9rem;
	line-height: 1.5;
}
.lh-profile-page .lh-basic-profile form,
.lh-community-page .lh-basic-profile form {
	margin: 0;
}
.lh-profile-page .lh-profile-grid,
.lh-community-page .lh-profile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 14px;
}
.lh-profile-page .lh-profile-field,
.lh-community-page .lh-profile-field {
	min-width: 0;
}
.lh-profile-page .lh-profile-field label,
.lh-community-page .lh-profile-field label {
	display: block;
	margin: 0 0 5px;
	color: var(--lh-profile-indigo);
	font-size: .84rem;
	font-weight: 650;
	line-height: 1.4;
}
.lh-profile-page .lh-basic-profile input[type="text"],
.lh-profile-page .lh-basic-profile input[type="url"],
.lh-profile-page .lh-basic-profile textarea,
.lh-community-page .lh-basic-profile input[type="text"],
.lh-community-page .lh-basic-profile input[type="url"],
.lh-community-page .lh-basic-profile textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 11px;
	border: 1px solid var(--lh-profile-line);
	border-radius: 9px;
	background: #fffefa;
	color: var(--lh-profile-indigo);
	font: inherit;
	line-height: 1.45;
}
.lh-profile-page .lh-basic-profile textarea,
.lh-community-page .lh-basic-profile textarea {
	min-height: 112px;
	resize: vertical;
}
.lh-profile-page .lh-basic-profile input:focus-visible,
.lh-profile-page .lh-basic-profile textarea:focus-visible,
.lh-community-page .lh-basic-profile input:focus-visible,
.lh-community-page .lh-basic-profile textarea:focus-visible {
	outline: 2px solid var(--lh-profile-purple);
	outline-offset: 2px;
}
.lh-profile-page .lh-basic-profile .lh-profile-fields,
.lh-community-page .lh-basic-profile .lh-profile-fields {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
	padding: 14px;
	border: 1px solid var(--lh-profile-line);
	border-radius: 10px;
	background: var(--lh-profile-lavender);
}
.lh-profile-page .lh-basic-profile .lh-profile-fields dl,
.lh-community-page .lh-basic-profile .lh-profile-fields dl {
	display: grid;
	grid-template-columns: minmax(100px, .34fr) minmax(0, 1fr);
	gap: 7px 12px;
	margin: 0;
}
.lh-profile-page .lh-basic-profile dl.lh-profile-fields,
.lh-community-page .lh-basic-profile dl.lh-profile-fields {
grid-template-columns: minmax(100px, .34fr) minmax(0, 1fr);
gap: 10px 16px;
}
@media (max-width: 600px) {
.lh-profile-page .lh-basic-profile dl.lh-profile-fields,
.lh-community-page .lh-basic-profile dl.lh-profile-fields {
grid-template-columns: 1fr;
gap: 4px;
}
.lh-profile-page .lh-basic-profile dl.lh-profile-fields dd,
.lh-community-page .lh-basic-profile dl.lh-profile-fields dd {
margin-bottom: 10px;
}
}
.lh-profile-page .lh-basic-profile .lh-profile-fields dt,
.lh-profile-page .lh-basic-profile .lh-profile-fields dd,
.lh-community-page .lh-basic-profile .lh-profile-fields dt,
.lh-community-page .lh-basic-profile .lh-profile-fields dd {
	min-width: 0;
	margin: 0;
	font-size: .86rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.lh-profile-page .lh-basic-profile .lh-profile-fields dt,
.lh-community-page .lh-basic-profile .lh-profile-fields dt {
	color: var(--lh-profile-muted);
	font-weight: 650;
}
.lh-profile-page .lh-basic-profile .lh-profile-fields dd,
.lh-community-page .lh-basic-profile .lh-profile-fields dd {
	color: var(--lh-profile-indigo);
}
.lh-profile-page .lh-basic-profile button[type="submit"],
.lh-community-page .lh-basic-profile button[type="submit"],
.lh-profile-page .lh-basic-profile input[type="submit"],
.lh-community-page .lh-basic-profile input[type="submit"] {
	box-sizing: border-box;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	margin: 16px 0 0;
	padding: 0 16px;
	border: 1px solid var(--lh-profile-purple);
	border-radius: 10px;
	background: var(--lh-profile-purple);
	color: var(--lh-profile-cream);
	font: inherit;
	font-size: .9rem;
	font-weight: 650;
	cursor: pointer;
}
.lh-profile-page .lh-basic-profile button[type="submit"]:hover,
.lh-community-page .lh-basic-profile button[type="submit"]:hover,
.lh-profile-page .lh-basic-profile input[type="submit"]:hover,
.lh-community-page .lh-basic-profile input[type="submit"]:hover {
	border-color: var(--lh-profile-indigo);
	background: var(--lh-profile-indigo);
	color: var(--lh-profile-cream);
}
.lh-profile-page .lh-basic-profile .bp-feedback,
.lh-community-page .lh-basic-profile .bp-feedback {
	margin: 12px 0;
	border-radius: 9px;
}
@media (max-width: 540px) {
	.lh-profile-page .lh-profile-grid,
	.lh-community-page .lh-profile-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.lh-profile-page .lh-basic-profile .lh-profile-fields dl,
	.lh-community-page .lh-basic-profile .lh-profile-fields dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}
