/*
 * rooster/pill (now a variant of the library: BRIEF-2026-11-01-BLOCK-LIBRARY.md) (BRIEF-2026-11-01-LANDINGS-BY-TEMPLATE.md, order 2): the legacy Rooster One landing's hero eyebrow
 * (themes/om-portal-theme/templates/landing-rooster-one.php, `.r1-hero .eyebrow`), complete on its own: a pill 6 px
 * over and 14 px aside, its icon 8 px before the words, 13 px semibold. Colours are the template's own palette as
 * custom tokens (`--wp--custom--rooster-one--*`, which a site may set) with the legacy's light and dark values as
 * fallbacks. Compiled by build/blocks-css.mjs.
 */

@import "../../theme.css";

/*
 * The Rooster One template's palette, defined here for this recipe (the legacy's light and dark pairs): nothing
 * reads an undefined custom property. `:where()`: a block's tone (its own sheet) re-maps the brand over it.
 */
:where(.rooster-pill) {
	--wp--custom--rooster-one--blue: light-dark(#1e63ce, #8eb4ee);
	--wp--custom--rooster-one--blue-wash: light-dark(#eaf3fe, rgb(48 131 232 / 16%));
}

.rooster-pill {
	--rooster-pill-ink: var(--wp--custom--rooster-one--blue);
	--rooster-pill-wash: var(--wp--custom--rooster-one--blue-wash);
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	overflow-wrap: normal;
	word-break: normal;
}

.rooster-pill--left {
	justify-content: flex-start;
}

.rooster-pill .rooster-pill__body {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--rooster-pill-wash);
	color: var(--rooster-pill-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

/* A toned pill (the block's own sheet re-maps the blue to the tone's text shade): its words no lighter than OKLCH 0.45
   in the light scheme, 4.5:1 on the tone's wash; the dark as before. */
.rooster-pill[class*="is-tone-"] {
	--rooster-pill-ink: light-dark(oklch(from var(--wp--custom--rooster-one--blue) min(l, 0.45) c h), var(--wp--custom--rooster-one--blue));
}

.rooster-pill .rooster-pill__icon {
	display: block;
	flex: none;
	width: 13px;
	height: 13px;
	background-color: currentColor;
}
