/* Alpha controls that must survive BuddyBoss ReadyLaunch's theme-asset filter. */

.bb-readylaunch-template {
	font-size: 16px;
	line-height: 1.55;
}

.bb-readylaunch-template input,
.bb-readylaunch-template select,
.bb-readylaunch-template textarea,
.bb-readylaunch-template button {
	font-size: 16px;
}

.bb-readylaunch-template .checkbox-options {
	display: grid;
	gap: 10px;
}

.bb-readylaunch-template .checkbox-options label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #d7ded8;
	border-radius: 10px;
	background: #fff;
	font-size: 16px;
	line-height: 1.45;
}

.bb-readylaunch-template .checkbox-options input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 3px;
}

.rp-feedback-button {
	bottom: calc(18px + env(safe-area-inset-bottom));
}

.rp-feedback-panel {
	bottom: calc(66px + env(safe-area-inset-bottom));
}

.rp-community-member-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 560px;
	margin-top: 10px;
	padding: 10px 14px;
	border: 1px solid #d8c8ad;
	border-radius: 12px;
	background: #fbf7ef;
	color: #1e2132;
	text-align: left;
}

.rp-community-member-badge img {
	flex: 0 0 52px;
	border-radius: 50%;
}

.rp-community-member-badge strong,
.rp-community-member-badge small {
	display: block;
}

.rp-community-member-badge small {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.35;
	color: #51606a;
}

/* ReadyLaunch renders the same xProfile loop in the public-profile panel and
   its right sidebar. Keep the primary panel and remove the redundant copy. */
body.xprofile.bp-user.profile.public .bb-rl-widget-sidebar > .bb-rl-profile-widget {
	display: none;
}

/* Clip BuddyBoss's off-screen accessible action labels at every viewport.
   The labels remain in the accessibility tree without widening the page. */
.bb-rl-members-directory-wrapper .bb_more_options,
.bb-rl-members-directory-wrapper .bb_more_options_action {
	overflow: hidden;
}

/* A small invitation-only alpha directory does not need marketplace-style
   view, sort, or filter controls. Keep the focus on the people themselves. */
.bb-rl-members-directory-wrapper > .bb-rl-secondary-header .bb-rl-sub-ctrls {
	display: none;
}

/* The parent theme hides page headers on Dashboard endpoints. Recovery is a
   standalone public task, so its contextual title must remain visible. */
body.rp-password-recovery .entry-header {
	display: block;
}

.rp-partner-directory,
.rp-organization-profile {
	max-width: 1040px;
	margin: 24px auto 48px;
	padding: clamp(22px, 4vw, 42px);
	border: 1px solid #d9e1dc;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(30, 42, 39, 0.07);
}

.rp-partner-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 18px;
	margin-top: 26px;
}

.rp-partner-card {
	padding: 22px;
	border: 1px solid #d9e1dc;
	border-radius: 14px;
	background: #fbf7ef;
}

.rp-partner-card h3 {
	margin: 6px 0 10px;
}

.rp-organization-status {
	display: inline-block;
	margin: 0;
	padding: 5px 9px;
	border-radius: 999px;
	background: #e5f1eb;
	color: #234c3e;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rp-organization-details {
	display: grid;
	grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
	gap: 12px 22px;
	margin: 26px 0 0;
}

.rp-organization-details dt {
	font-weight: 750;
}

.rp-organization-details dd {
	margin: 0;
}

.rp-organization-member-contact {
	margin-top: 30px;
	padding: 22px;
	border: 1px solid #cddbd4;
	border-radius: 14px;
	background: #f4f8f5;
}

.rp-partner-directory-empty {
	margin-top: 24px;
	padding: 18px;
	border-radius: 12px;
	background: #fbf7ef;
}

@media screen and (max-width: 782px) {
	.rp-feedback-button {
		right: 0 !important;
		bottom: calc(78px + env(safe-area-inset-bottom));
		padding: 10px 7px !important;
		border-radius: 10px 0 0 10px !important;
		line-height: 1 !important;
		writing-mode: vertical-rl;
		transform: rotate(180deg);
	}

	.rp-feedback-panel {
		right: 8px !important;
		bottom: calc(126px + env(safe-area-inset-bottom));
	}
}

@media screen and (max-width: 544px) {
	/* ReadyLaunch reserves 69px for its fixed header, but the full Community
	   name wraps at phone widths and makes the live header taller. Keep the
	   member-directory title and controls below that occupied area. */
	.bb-rl-members-directory-wrapper > .bb-rl-secondary-header {
		padding-top: 30px;
	}
}

@media screen and (max-width: 660px) {
	/* BuddyBoss positions this menu eight pixels above the mobile profile
	   header, beneath ReadyLaunch's fixed masthead. Keep Report and Block
	   visible and operable at phone widths. */
	.bb-rl-profile-item-header .bb-rl-header-dropdown {
		top: 24px;
	}
}

@media screen and (max-width: 600px) {
	.rp-organization-details {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.rp-organization-details dd + dt {
		margin-top: 12px;
	}
}
:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 3px solid #005fcc !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 2px #fff !important;
}

input.bs-styled-radio:focus-visible + label,
input.bs-styled-checkbox:focus-visible + label {
	outline: 3px solid #005fcc !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 2px #fff !important;
}
