/* PARRSSPORT profile consolidation. Legacy routes remain registered. */
body.parrssport-core-profile-polish-active .rrpc-profile-header > div:first-child,
body.parrssport-core-profile-polish-active .rrp3dt-profile-shell .rrpc-profile-header > div:first-child {
	display: none !important;
}

body.parrssport-core-profile-polish-active .rrpc-profile {
	margin-top: 0 !important;
}

body.parrssport-core-profile-polish-active .rrpc-profile-header.parrssport-profile-toolbar {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center !important;
	gap: 12px;
	min-height: 48px !important;
	margin: 0 0 7px !important;
	padding: 0 !important;
}

body.parrssport-core-profile-polish-active .rrpc-type-filters,
body.parrssport-core-profile-polish-active .rrpc-filters[hidden] {
	display: none !important;
}

.parrssport-profile-switcher {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 0;
}

.parrssport-profile-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 46px;
	border: 1px solid var(--bb-rl-border-secondary-color, rgba(20, 24, 32, .12));
	border-radius: 11px;
	background: var(--bb-rl-background-color, #fff);
	color: var(--bb-rl-icon-secondary-color, #555b63);
	text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.parrssport-profile-switcher__link:hover,
.parrssport-profile-switcher__link:focus-visible {
	background: var(--bb-rl-background-secondary-color, #f3f4f5);
	color: var(--bb-rl-text-color, #17191d);
	outline: 0;
	transform: translateY(-1px);
}

.parrssport-profile-switcher__link.is-active {
	background: var(--bb-rl-background-black-color, #17191d);
	border-color: var(--bb-rl-background-black-color, #17191d);
	color: #fff;
}

.parrssport-profile-switcher__link svg {
	display: block;
	width: 27px;
	height: 27px;
}

.parrssport-profile-tools {
	grid-column: 3;
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	min-width: 160px;
}

.parrssport-profile-tools .rrpc-toggle-manager {
	min-height: 31px !important;
	margin: 0 !important;
	padding: 4px 10px !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
}

.parrssport-profile-tools .rrpc-collection-filter-wrap {
	width: 100%;
	max-width: 190px;
	margin: 0;
}

.parrssport-profile-tools .rrpc-collection-filter {
	width: 100%;
	min-height: 31px;
	padding: 4px 30px 4px 9px;
	font-size: 12px;
}

.parrssport-follow-counts {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 7px 0 3px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--bb-rl-text-secondary-color, #62676f);
}

.parrssport-follow-counts strong {
	color: var(--bb-rl-text-color, #17191d);
	font-weight: 700;
}

/* The icon toolbar below replaces the complete BuddyBoss profile tab bar. */
body.parrssport-core-profile-polish-active #object-nav,
body.parrssport-core-profile-polish-active .bb-rl-profile-nav,
body.parrssport-core-profile-polish-active .bb-rl-profile-header .bb-rl-main-nav-list,
body.parrssport-core-profile-polish-active .item-list-tabs#object-nav {
	display: none !important;
	min-height: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
}

body.parrssport-core-profile-polish-active .bb-rl-profile-header,
body.parrssport-core-profile-polish-active .bb-rl-member-header {
	padding-bottom: 0 !important;
}

.bb-rl-dark-mode .parrssport-profile-switcher__link.is-active,
html[data-bx-mode="dark"] .parrssport-profile-switcher__link.is-active {
	background: #f4f5f6;
	border-color: #f4f5f6;
	color: #17191d;
}

@media (max-width: 740px) {
	body.parrssport-core-profile-polish-active .rrpc-profile-header.parrssport-profile-toolbar {
		grid-template-columns: 1fr;
		gap: 7px;
		min-height: 0 !important;
	}

	.parrssport-profile-switcher {
		grid-column: 1;
		justify-content: space-between;
		gap: 4px;
		width: 100%;
	}

	.parrssport-profile-switcher__link {
		width: 44px;
		height: 42px;
		border-radius: 9px;
	}

	.parrssport-profile-switcher__link svg {
		width: 24px;
		height: 24px;
	}

	.parrssport-profile-tools {
		grid-column: 1;
		justify-self: stretch;
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
		min-width: 0;
	}

	.parrssport-profile-tools .rrpc-collection-filter-wrap {
		max-width: 170px;
	}

	.parrssport-follow-counts {
		gap: 12px;
		font-size: 12px;
	}
}

/* Keep the 360° mark readable at small toolbar sizes. */
.parrssport-profile-switcher__link svg .parrssport-tour360-mark {
	fill: currentColor !important;
	stroke: none !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 10.4px !important;
	font-weight: 800 !important;
	letter-spacing: -0.7px !important;
}



/* Followers / Following: BuddyBoss-native relationship data in a compact modal. */
.parrssport-follow-count {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: inherit;
	cursor: pointer;
}
.parrssport-follow-count:hover,
.parrssport-follow-count:focus-visible { color: var(--bb-rl-text-color, #17191d); text-decoration: underline; outline: 0; }
.parrssport-follow-dialog[hidden] { display: none !important; }
.parrssport-follow-dialog {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: grid;
	place-items: center;
	padding: 20px;
}
.parrssport-follow-dialog__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.parrssport-follow-dialog__panel {
	position: relative;
	z-index: 1;
	width: min(520px, calc(100vw - 32px));
	max-height: min(680px, calc(100vh - 40px));
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bb-rl-border-secondary-color, rgba(20, 24, 32, .12));
	border-radius: 16px;
	background: var(--bb-rl-background-color, #fff);
	color: var(--bb-rl-text-color, #17191d);
	box-shadow: 0 20px 60px rgba(0,0,0,.22);
	overflow: hidden;
}
.parrssport-follow-dialog__panel > header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 54px; border-bottom: 1px solid var(--bb-rl-border-secondary-color, rgba(20, 24, 32, .12)); }
.parrssport-follow-dialog__panel > header h2 { margin: 0; font-size: 16px; line-height: 1.2; }
.parrssport-follow-dialog__close { position: absolute; right: 12px; top: 8px; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.parrssport-follow-dialog__search { padding: 10px 14px; border-bottom: 1px solid var(--bb-rl-border-secondary-color, rgba(20, 24, 32, .12)); }
.parrssport-follow-dialog__search input { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--bb-rl-border-secondary-color, rgba(20, 24, 32, .12)); border-radius: 10px; background: var(--bb-rl-background-secondary-color, #f3f4f5); color: inherit; }
.parrssport-follow-dialog__body { overflow: auto; overscroll-behavior: contain; padding: 2px 0; }
.parrssport-follow-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 66px; padding: 9px 14px; }
.parrssport-follow-row[hidden] { display: none !important; }
.parrssport-follow-row__avatar, .parrssport-follow-row__avatar img { display: block; width: 48px; height: 48px; border-radius: 50%; }
.parrssport-follow-row__identity { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.parrssport-follow-row__identity a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parrssport-follow-row__identity span { margin-top: 2px; color: var(--bb-rl-text-secondary-color, #62676f); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parrssport-follow-row__identity small { margin-top: 3px; color: var(--bb-rl-text-secondary-color, #62676f); font-size: 10px; }
.parrssport-follow-row__action .generic-button { margin: 0; }
.parrssport-follow-row__action a,
.parrssport-follow-row__action button { min-height: 32px !important; padding: 5px 11px !important; border-radius: 8px !important; font-size: 12px !important; }
.parrssport-follow-dialog__empty,
.parrssport-follow-dialog__loading { margin: 0; padding: 28px 20px; text-align: center; color: var(--bb-rl-text-secondary-color, #62676f); }
body.parrssport-follow-dialog-open { overflow: hidden; }
@media (max-width: 520px) {
	.parrssport-follow-dialog { padding: 8px; }
	.parrssport-follow-dialog__panel { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 14px; }
	.parrssport-follow-row { grid-template-columns: 42px minmax(0,1fr) auto; padding: 8px 11px; gap: 9px; }
	.parrssport-follow-row__avatar, .parrssport-follow-row__avatar img { width: 42px; height: 42px; }
}

/* 0.9.87.3: make the launch-time permanent @username policy explicit before signup. */
.parrssport-username-permanent-note {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--bb-rl-text-secondary-color, #62676f);
}
