/* ---------------------------------------------------------------------------
 * Staff affiliation badges — Lumel / Microsoft
 *
 * Shared by the forums and the ideas board, so it is its own stylesheet that
 * forums.css and ideas.css both depend on - the brand colours below are still
 * provisional and must stay in one place when the real ones land.
 *
 * Sits next to the author's name on a topic, on each reply, and on each idea
 * comment, alongside (not instead of) the bbPress role pill: that one reports
 * what the member can do, this one who they work for.
 *
 * Soft tint rather than a solid fill, to match the role pill already on the
 * line — two solid pills next to a name would compete with the name itself.
 *
 * >>> BRAND COLOURS ARE PROVISIONAL <<<
 * Nothing in the plugin or the Lumel plugins on this site defines a brand
 * orange (the oranges in them are semantic warning colours), so these are
 * stand-ins. Replace the --accent and --ink pair on each variant with the real
 * values; --bg is that accent at roughly 12% on white, and --ink is darkened
 * from it so small bold text keeps its contrast on the tint.
 * ------------------------------------------------------------------------- */

.fmxext-staff-badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: 0.4rem;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--fmxext-staff-bg);
	color: var(--fmxext-staff-ink);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.01em;
	white-space: nowrap;
	vertical-align: middle;
}

.fmxext-staff-badge--lumel {
	--fmxext-staff-accent: #e8730a; /* provisional Lumel orange */
	--fmxext-staff-ink: #9a4e06;
	--fmxext-staff-bg: #fdf0e4;
}

.fmxext-staff-badge--microsoft {
	--fmxext-staff-accent: #117865; /* provisional Fabric green */
	--fmxext-staff-ink: #0f6553;
	--fmxext-staff-bg: #e3f2ee;
}

/* The author lines are built differently, so spacing has to come from
 * whichever one owns it. .fmxext-topic-author-line and
 * .fmxext-idea-comment-authorline are both wrapping flex rows with
 * gap: 0.5rem, which spaces the pills on their own — the margin below would be
 * added on top of that gap, so it is dropped there. The reply line is plain
 * block text, where the badge is an inline run and the margin is what
 * separates it from the name. */
.fmxext-topic-author-line .fmxext-staff-badge,
.fmxext-idea-comment-authorline .fmxext-staff-badge {
	margin-left: 0;
}

@media (max-width: 576px) {
	.fmxext-staff-badge {
		margin-left: 0.3rem;
		padding: 1px 7px;
		font-size: 0.68rem;
	}
}
