/**
 * Promoted badge element (ek-core 0.27.0): the label on cards of featured events, with its
 * explanation as a tooltip (hover, keyboard focus on the card, or a tap: promoted.js).
 */
.ek-promo {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ek-promo__label {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	padding: 3px 8px;
	border-radius: var(--radius-pill, 960px);
	background: rgba(0, 0, 0, 0.07);
	color: #000;
	font-size: var(--fs-label, 12px);
	font-weight: 700;
	line-height: 1.2;
	cursor: help;
}

.ek-promo__icon {
	flex: none;
}

/* Hidden but read by screen readers with the card. */
.ek-promo__tip {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ek-promo.is-open .ek-promo__tip,
a:focus-visible .ek-promo__tip {
	bottom: calc(100% + 8px);
	left: 0;
	z-index: 30;
	width: max-content;
	max-width: min(260px, 72vw);
	height: auto;
	padding: 8px 10px;
	overflow: visible;
	clip: auto;
	border-radius: 8px;
	background: #111;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	color: #fff;
	font-size: var(--fs-label, 12px);
	font-weight: 500;
	line-height: 1.4;
	white-space: normal;
	text-align: left;
}

@media (hover: hover) {
	.ek-promo:hover .ek-promo__tip {
		bottom: calc(100% + 8px);
		left: 0;
		z-index: 30;
		width: max-content;
		max-width: min(260px, 72vw);
		height: auto;
		padding: 8px 10px;
		overflow: visible;
		clip: auto;
		border-radius: 8px;
		background: #111;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
		color: #fff;
		font-size: var(--fs-label, 12px);
		font-weight: 500;
		line-height: 1.4;
		white-space: normal;
		text-align: left;
	}
}
