/* The event badges: Upcoming, Past, Event photos (R2).

   Spec: design/event-badges-2026-10-05.md (design-research; ruled by Adam
   2026-10-05, the teal edge and the home page's "Latest event photos" row
   confirmed 2026-11-01). Section 5 is the CSS below, on the theme's own token
   names (--size-xs, --radius-pill, --space-1).

   ONE SHEET FOR THE THREE SURFACES, so the look cannot drift between them: the
   /events/ rows, the home page teaser, and the top of an event post (the
   standalone recap included). inc/events.php loads it wherever one of the three
   is on the page; the markup comes from one helper, erdf_evix_badges(). Each
   surface's own sheet only resets its year element's margins inside .ev-meta.

   A pill, so it is not mistaken for the tracked-caps year beside it or for a
   button. Plain text: not a link, not focusable, no hover. Tokens only, no hex.
   Contrast (spec section 2, from the token values): Upcoming text 12.6:1 and
   its teal edge 3.62:1 on warm-white; Past text 8.6:1, its fill a quiet tint
   only, the word carries the meaning; Event photos text 8.4:1, the one solid
   fill, so a row reads "when" first and "look at the photos" second. */

/* The year and its badges on one line; the badges wrap under the year when the
   line is full (390). */
.ev-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 12px;
	row-gap: var(--space-1);
}

.ev-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--space-1);
}

/* Two classes, so a surface's generic span or text rules cannot reach it. The
   font shorthand also resets the kicker's small caps beside it: badge text is
   sentence case, never uppercase, never under 13px. */
.ev-badges .ev-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: 28px;
	padding: 0 12px;
	border-radius: var(--radius-pill);
	font: 600 var(--size-xs)/1 var(--font-body);
	letter-spacing: 0.02em;
	text-transform: none;
	white-space: nowrap;
}

.ev-badges .ev-badge--upcoming {
	background: var(--warm-white);
	color: var(--ink-navy);
	border: 2px solid var(--accent-teal);
}

.ev-badges .ev-badge--past {
	background: var(--hairline);
	color: var(--charcoal);
}

.ev-badges .ev-badge--photos {
	background: var(--erdf-blue-dark);
	color: var(--warm-white);
}

/* The camera glyph before "Event photos": 14px, its stroke in the text colour. */
.ev-badges .ev-badge-ic {
	display: block;
	flex: none;
	width: 14px;
	height: 14px;
}

@media (max-width: 479px) {
	.ev-badges .ev-badge {
		min-height: 26px;
		padding: 0 10px;
	}
}
