/* Mfamasia Community: Recognition */

.mfc-boardme {
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: var(--mfc-r);
	background: var(--mfc-accent-tint);
	color: var(--mfc-accent-ink);
	font-weight: 600;
}

/* Ranked ledger */
.mfc-board {
	overflow: hidden;
	border: 1px solid var(--mfc-line);
	border-radius: var(--mfc-radius);
	background: var(--mfc-surface);
}

.mfc-board__row {
	display: grid;
	grid-template-columns: 34px 40px minmax(0, 1fr) auto;
	gap: 0 14px;
	align-items: center;
	padding: 12px 20px;
	border-top: 1px solid var(--mfc-line);
}

.mfc-board__row:first-child {
	border-top: 0;
}

.mfc-board__rank {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: var(--mfc-r-sm);
	color: var(--mfc-muted);
	font: 700 15px / 1 var(--mfc-serif);
}

.mfc-board__row--top .mfc-board__rank {
	background: var(--mfc-accent-tint);
	color: var(--mfc-accent-ink);
}

.mfc-board .mfc-avatar {
	width: 40px;
	height: 40px;
}

.mfc-board__who {
	display: flex;
	align-items: center;
	gap: 6px 12px;
	min-width: 0;
	font-weight: 600;
}

.mfc-board__who > a,
.mfc-board__who > span:first-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mfc-board__who > a:hover {
	color: var(--mfc-primary);
	text-decoration: underline;
}

.mfc-board__pts {
	color: var(--mfc-muted);
	font-size: 14px;
	white-space: nowrap;
}

.mfc-board__pts strong {
	margin-right: 2px;
	color: var(--mfc-primary);
	font: 700 20px / 1 var(--mfc-serif);
}

.mfc-boardrules {
	margin-top: 14px;
}

/* Badges: small rectangles, icon only in lists, labelled on a profile */
.mfc-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}

.mfc-badges li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 5px;
	border-radius: var(--mfc-r-sm);
	background: var(--mfc-primary-tint);
	color: var(--mfc-primary-deep);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.mfc-badges--labelled li {
	padding: 4px 9px;
}

.mfc-recognition {
	margin-top: 12px;
}

.mfc-recognition__points {
	margin-top: 8px;
	color: var(--mfc-muted);
	font-size: 14px;
	font-weight: 600;
}

/* Sidebar */
.mfc-topmini {
	display: grid;
	gap: 10px;
}

.mfc-topmini li {
	display: grid;
	grid-template-columns: 20px 28px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	font-size: 15px;
}

.mfc-topmini__rank {
	color: var(--mfc-muted);
	font: 700 14px / 1 var(--mfc-serif);
	text-align: center;
}

.mfc-topmini .mfc-avatar {
	width: 28px;
	height: 28px;
}

.mfc-topmini__name {
	min-width: 0;
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mfc-topmini__name a:hover {
	color: var(--mfc-primary);
	text-decoration: underline;
}

.mfc-topmini__pts {
	color: var(--mfc-primary);
	font-weight: 700;
}

@media (max-width: 640px) {
	.mfc-board__row {
		grid-template-columns: 28px 36px minmax(0, 1fr) auto;
		gap: 0 10px;
		padding: 10px 14px;
	}

	.mfc-board .mfc-avatar {
		width: 36px;
		height: 36px;
	}

	.mfc-board__who .mfc-badges {
		display: none;
	}

	.mfc-board__pts {
		font-size: 0;
	}

	.mfc-board__pts strong {
		font-size: 18px;
	}
}
