/*
 * ASAE AGI Meetings — front-end styles (v1.5.24).
 *
 * Sold Out / Almost Full bars across the top of each event, matching the
 * ASAE All Events Calendar on Primary: Sold Out is white on near-black
 * (#fff on #2b2b2b = 13.9:1); Almost Full is the same bar reversed (#2b2b2b
 * on #e0e0e0 = 10.7:1).
 *
 * The bar is the item's ::before, not an element, because the theme's
 * events-list script moves every child of .agi-meetings-item into its
 * content column. It is absolutely positioned so it can't disturb the
 * theme's flex layouts (date + content side by side in lists; stacked
 * cards in the .event-calendar grid); the item grows a matching top
 * padding instead. Screen readers get the same words from a visually
 * hidden prefix on the title, so the bar's text is excluded with the
 * `content: "…" / ""` alt-text syntax (the plain declaration before it is
 * the fallback for browsers without that syntax).
 */

/* Selectors carry .agi-meetings so they outrank the theme's equal-weight
 * padding rules, which load after this file (v1.5.25). */
.agi-meetings .agi-meetings-item--sold-out,
.agi-meetings .agi-meetings-item--almost-full {
	position: relative;
	/* Theme gives list items 2rem top padding; add the bar's height (1.6em). */
	padding-top: calc(2rem + 1.6em);
}

.event-calendar .agi-meetings .agi-meetings-item--sold-out,
.event-calendar .agi-meetings .agi-meetings-item--almost-full {
	/* Calendar grid cards have no padding of their own. */
	padding-top: 1.6em;
}

.agi-meetings-item--sold-out::before,
.agi-meetings-item--almost-full::before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1; /* above the theme's positioned date block */
	box-sizing: border-box;
	display: flex;
	align-items: center;
	height: 2em; /* = 1.6em of the item at this font size */
	padding: 0 1em;
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: #2b2b2b;
	color: #fff;
}

.agi-meetings-item--sold-out::before {
	content: "Sold Out";
	content: "Sold Out" / "";
}

.agi-meetings-item--almost-full::before {
	content: "Almost Full";
	content: "Almost Full" / "";
	background: #e0e0e0;
	color: #2b2b2b;
}

/* Visually hidden, still read by screen readers. */
.agi-meetings-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
