/* BuddyPress Nouveau: shared LearnHive system, native templates and handlers intact. */
#buddypress, .bp-wrap {
	--lh-bp-line: #e7e5f0;
	--lh-bp-ink: #1f2937;
	--lh-bp-navy: #1e1b3a;
	--lh-bp-indigo: #4338ca;
	color: var(--lh-bp-ink);
	font-family: var(--lh-font-body);
	font-size: 15px;
	line-height: 1.55;
}
#buddypress *, .bp-wrap * { box-sizing: border-box; }
#buddypress a, .bp-wrap a { color: var(--lh-bp-indigo); }
#buddypress a:hover, .bp-wrap a:hover { color: #3026a6; }
#buddypress .bp-navs, #buddypress .item-list-tabs,
.bp-wrap .bp-navs, .bp-wrap .item-list-tabs {
	border: 0;
	border-bottom: 1px solid var(--lh-bp-line);
	background: transparent;
	margin: 0 0 22px;
	padding: 0;
}
#buddypress .bp-navs ul, #buddypress .item-list-tabs ul,
.bp-wrap .bp-navs ul, .bp-wrap .item-list-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#buddypress .bp-navs li, #buddypress .item-list-tabs li,
.bp-wrap .bp-navs li, .bp-wrap .item-list-tabs li { margin: 0; }
#buddypress .bp-navs li a, #buddypress .item-list-tabs li a,
.bp-wrap .bp-navs li a, .bp-wrap .item-list-tabs li a {
	display: block;
	min-height: 42px;
	padding: 10px 14px;
	border: 0;
	border-radius: 10px 10px 0 0;
	background: transparent;
	color: #55536b;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}
#buddypress .bp-navs li.current a, #buddypress .bp-navs li.selected a,
#buddypress .item-list-tabs li.current a, #buddypress .item-list-tabs li.selected a,
.bp-wrap .bp-navs li.current a, .bp-wrap .bp-navs li.selected a,
.bp-wrap .item-list-tabs li.current a, .bp-wrap .item-list-tabs li.selected a {
	background: #eef0ff;
	color: #3026a6;
	box-shadow: inset 0 -3px 0 #4338ca;
}
#buddypress .bp-navs li a span, #buddypress .item-list-tabs li a span {
	display: inline-block;
	min-width: 20px;
	margin-left: 4px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #ecebf3;
	color: #4b4868;
	font-size: 12px;
	text-align: center;
}
#buddypress #item-header, #buddypress .bp-single-vert-nav,
#buddypress .profile-header, #buddypress .member-header {
	margin: 0 0 22px;
	padding: 23px;
	border: 1px solid var(--lh-bp-line);
	border-radius: 18px;
	background: linear-gradient(140deg, #f7f6fc, #fff);
	color: var(--lh-bp-ink);
}
#buddypress #item-header-content, #buddypress .item-header-content { color: var(--lh-bp-ink); }
#buddypress #item-header h2, #buddypress #item-header h3,
#buddypress .item-header-content h2, #buddypress .item-header-content h3 {
	color: var(--lh-bp-navy);
	font-family: var(--lh-font-display);
	font-size: clamp(1.25rem, 2.4vw, 1.8rem);
	line-height: 1.2;
}
#buddypress #item-header[style*="background-image"] h2,
#buddypress #item-header[style*="background-image"] h3,
#buddypress #item-header[style*="background-image"] .item-meta,
#buddypress #item-header[style*="background-image"] .activity {
	color: #fff;
	text-shadow: 0 1px 4px rgba(20,17,45,.65);
}
#buddypress #item-header[style*="background-image"] {
	min-height: 245px;
	display: flex;
	align-items: end;
	background-color: #2b2752;
	background-size: cover;
	background-position: center;
}
#buddypress #item-header .activity, #buddypress #item-header .user-nicename,
#buddypress #item-header .item-meta, #buddypress .item-header-content .activity {
	color: #626779;
	font-size: 14px;
}
#buddypress #item-header-avatar img.avatar, #buddypress .item-header-avatar img.avatar,
#buddypress .bp-avatar img, #buddypress .avatar {
	width: auto;
	max-width: 96px;
	height: auto;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--lh-bp-line);
}
#buddypress .bp-wrap .bp-navs, #buddypress .bp-wrap .item-list-tabs { overflow-x: auto; }
#buddypress .activity-list, #buddypress .groups-list, #buddypress .members-list,
#buddypress ul.item-list, #buddypress .bp-list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#buddypress .activity-list > li, #buddypress .groups-list > li,
#buddypress .members-list > li, #buddypress ul.item-list > li,
#buddypress .bp-list > li {
	min-width: 0;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--lh-bp-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(30,27,58,.035);
}
#buddypress .activity-header, #buddypress .activity-meta,
#buddypress .item-meta, #buddypress .last-activity {
	color: #626779;
	font-size: 13px;
}
#buddypress .activity-content, #buddypress .activity-inner,
#buddypress .item-description, #buddypress .group-description {
	color: #34394a;
	overflow-wrap: anywhere;
}
#buddypress .activity-avatar img, #buddypress .item-avatar img { width: 44px; max-width: 44px; }
#buddypress .activity-comments, #buddypress .acomment-content {
	margin-top: 12px;
	padding: 12px;
	border-radius: 12px;
	background: #f7f6fc;
	color: #34394a;
}
#buddypress .activity-update-form, #buddypress form#whats-new-form,
#buddypress .standard-form, #buddypress form.standard-form {
	padding: 20px;
	border: 1px solid var(--lh-bp-line);
	border-radius: 16px;
	background: #f9f8fc;
}
#buddypress .standard-form label, #buddypress .standard-form legend,
#buddypress form label, #buddypress form legend {
	display: block;
	margin: 12px 0 6px;
	color: var(--lh-bp-navy);
	font-size: 14px;
	font-weight: 700;
}
#buddypress input[type="text"], #buddypress input[type="email"],
#buddypress input[type="password"], #buddypress input[type="url"],
#buddypress input[type="search"], #buddypress input[type="number"],
#buddypress textarea, #buddypress select,
.bp-wrap input[type="text"], .bp-wrap input[type="email"],
.bp-wrap input[type="password"], .bp-wrap textarea, .bp-wrap select {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 13px;
	border: 1.5px solid #d9d6e8;
	border-radius: 10px;
	background: #fff;
	color: #1f2937;
	font: inherit;
}
#buddypress textarea { min-height: 116px; }
#buddypress input:focus, #buddypress textarea:focus, #buddypress select:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px #e4e5ff;
	outline: 0;
}
#buddypress input[type="submit"], #buddypress button,
#buddypress a.button, #buddypress .button,
#buddypress .activity button, #buddypress .acomment-options a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid #4338ca;
	border-radius: 10px;
	background: #fff;
	color: #3730a3;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
}
#buddypress input[type="submit"]:hover, #buddypress button:hover,
#buddypress a.button:hover, #buddypress .button:hover {
	background: #4338ca;
	color: #fff;
}
#buddypress .bp-feedback, #buddypress .message,
#buddypress .notice, #buddypress .bp-template-notice {
	margin: 14px 0;
	padding: 13px 16px;
	border: 1px solid #d5d1ef;
	border-radius: 12px;
	background: #f5f3ff;
	color: #302b57;
}
#buddypress .bp-feedback.error, #buddypress .message.error,
#buddypress .error, #buddypress .warning {
	border-color: #f0b4a8;
	background: #fff1ed;
	color: #8b2617;
}
#buddypress .bp-pagination, #buddypress .pagination {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	margin: 22px 0;
	color: #626779;
}
#buddypress .bp-pagination a, #buddypress .pagination a,
#buddypress .bp-pagination .page-numbers, #buddypress .pagination .page-numbers {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border: 1px solid var(--lh-bp-line);
	border-radius: 9px;
	background: #fff;
	font-weight: 700;
}
#buddypress .bp-pagination .current, #buddypress .pagination .current { background: #1e1b3a; color: #fff; }
#buddypress .bp-list .action, #buddypress .friendship-button,
#buddypress .generic-button { margin-top: 8px; }
#buddypress .bp-list .action a, #buddypress .friendship-button a,
#buddypress .generic-button a { margin: 3px; }
#buddypress .message-search, #buddypress .notifications-options-nav { margin: 0 0 16px; }
#buddypress .messages-notices, #buddypress .notifications,
#buddypress .profile-fields, #buddypress .settings-form { max-width: 100%; }
#buddypress table, #buddypress .profile-fields { width: 100%; border-collapse: collapse; }
#buddypress th, #buddypress td, #buddypress .profile-fields tr {
	padding: 12px;
	border-bottom: 1px solid var(--lh-bp-line);
	color: #34394a;
	text-align: left;
	vertical-align: top;
}
#buddypress th, #buddypress .profile-fields td.label {
	background: #f7f6fc;
	color: var(--lh-bp-navy);
	font-weight: 700;
}
#buddypress .bp-feedback p, #buddypress .message p { margin: 0; }
@media (max-width: 767px) {
	#buddypress .bp-navs ul, #buddypress .item-list-tabs ul { flex-wrap: nowrap; min-width: max-content; }
	#buddypress .bp-navs, #buddypress .item-list-tabs { overflow-x: auto; }
	#buddypress #item-header, #buddypress .bp-single-vert-nav { padding: 16px; }
	#buddypress .activity-list > li, #buddypress .groups-list > li,
	#buddypress .members-list > li, #buddypress ul.item-list > li { padding: 14px; }
	#buddypress .standard-form, #buddypress form#whats-new-form { padding: 14px; }
	#buddypress table, #buddypress .profile-fields { display: block; overflow-x: auto; }
}

/* Shared prototype tabs around native activity / groups / events / member views. */
.lh-community-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 28px;
	padding: 0 0 1px;
	overflow-x: auto;
	border-bottom: 1px solid #e7e5f0;
	scrollbar-width: thin;
}
.lh-community-tabs ul {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lh-community-tabs a,
.lh-community-tabs button {
	display: block;
	min-height: 44px;
	padding: 11px 16px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 10px 10px 0 0;
	background: transparent;
	color: #626779;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.lh-community-tabs a:hover,
.lh-community-tabs button:hover,
.lh-community-tabs .current a,
.lh-community-tabs .selected a,
.lh-community-tabs [aria-current="page"],
.lh-community-tabs [aria-selected="true"] {
	border-bottom-color: #4338ca;
	background: #eef0ff;
	color: #3026a6;
}

/* BuddyPress cover art is supplied by core. Keep it visible with a dark
   backing/overlay so names and profile actions remain legible with or without art. */
.lh-profile-page #cover-image-container {
	position: relative;
	display: flex;
	min-height: 245px;
	align-items: end;
	overflow: hidden;
	border-radius: 18px;
	background: linear-gradient(145deg, #2b2752, #1e1b3a);
	color: #fff;
}
.lh-profile-page #cover-image {
	position: absolute;
	z-index: 0;
	inset: 0;
	display: block;
	width: 100%;
	min-height: 100%;
	background-color: #2b2752;
	background-position: center;
	background-size: cover;
}
.lh-profile-page #cover-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 245px;
	object-fit: cover;
	object-position: center;
}
.lh-profile-page #cover-image-container::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,17,45,.76), rgba(20,17,45,.18) 80%),
		linear-gradient(0deg, rgba(20,17,45,.48), transparent 72%);
	content: "";
	pointer-events: none;
}
.lh-profile-page #item-header-cover-image {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 26px;
	color: #fff;
}
.lh-profile-page #buddypress #item-header-cover-image h1,
.lh-profile-page #buddypress #item-header-cover-image h2,
.lh-profile-page #buddypress #item-header-cover-image h3,
.lh-profile-page #buddypress #item-header-cover-image .user-nicename,
.lh-profile-page #buddypress #item-header-cover-image .activity,
.lh-profile-page #buddypress #item-header-cover-image .item-meta,
.lh-profile-page #buddypress #item-header-cover-image p,
.lh-profile-page #buddypress #item-header-cover-image a {
	color: #fff;
	text-shadow: 0 1px 5px rgba(20,17,45,.75);
}
.lh-profile-page #item-header-cover-image h1,
.lh-profile-page #item-header-cover-image h2,
.lh-profile-page #item-header-cover-image h3 {
	font-family: var(--lh-font-display);
	font-weight: 700;
}
.lh-profile-page #item-header-cover-image a.button,
.lh-profile-page #item-header-cover-image .button {
	border-color: rgba(255,255,255,.78);
	background: rgba(255,255,255,.96);
	color: #3026a6;
	text-shadow: none;
}
.lh-profile-page #item-header-avatar {
	position: relative;
	z-index: 3;
}
.lh-profile-page #item-header-avatar img.avatar {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: 0 2px 12px rgba(20,17,45,.22);
}
.lh-profile-page #item-header:not(:has(#cover-image-container)) {
	padding: 22px;
	border: 1px solid #e7e5f0;
	border-radius: 18px;
	background: linear-gradient(140deg, #f7f6fc, #fff);
}
@media (max-width: 767px) {
	.lh-community-tabs { gap: 2px; margin-bottom: 22px; }
	.lh-community-tabs a, .lh-community-tabs button { padding-inline: 12px; }
	.lh-profile-page #cover-image-container { min-height: 205px; border-radius: 15px; }
	.lh-profile-page #cover-image img { min-height: 205px; }
	.lh-profile-page #item-header-cover-image { padding: 17px; }
	.lh-profile-page #item-header-avatar img.avatar { width: 76px; height: 76px; }
}
