/**
 * Quick chips element (ek-core 0.26.0): a row of chips with event counts; "See all"
 * (quick-chips.js) shows the folded ones. Looks like the site's ek-chip.
 * Phones: a folded row scrolls sideways; an open one wraps.
 */
.ek-quick {
	display: flex;
	flex-direction: column;
	gap: var(--space-8, 8px);
	min-width: 0;
}

.ek-quick__label {
	margin: 0;
	color: #555;
	font-size: var(--fs-meta, 13px);
	font-weight: 700;
	line-height: 1.2;
}

/* Positioned so the folded row also clips its screen-reader texts (else they widen the page on phones). */
.ek-quick__list {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8, 8px);
	margin: 0;
	padding: 2px 0;
	list-style: none;
}

.ek-quick__item {
	flex: none;
	margin: 0;
}

.ek-quick__item[hidden] {
	display: none;
}

.ek-quick__chip {
	display: inline-flex;
	gap: var(--space-8, 8px);
	align-items: center;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--radius-pill, 960px);
	background: rgba(0, 0, 0, 0.05);
	color: #000;
	font: inherit;
	font-size: var(--fs-ui, 15px);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}

.ek-quick__chip:hover {
	box-shadow: inset 0 0 0 1px #000;
}

.ek-quick__chip:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.ek-quick__chip[aria-current="page"] {
	background: var(--ek-cta, #006400);
	color: #fff;
}

.ek-quick__count {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: var(--radius-pill, 960px);
	background: #fff;
	color: #000;
	font-size: var(--fs-label, 12px);
	font-weight: 700;
	line-height: 1.2;
}

.ek-quick__toggle {
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ek-quick .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.ek-quick:not(.is-open) .ek-quick__list {
		flex-wrap: nowrap;
		margin-inline: calc(var(--gutter, 16px) * -1);
		padding-inline: var(--gutter, 16px);
		overflow-x: auto;
		scroll-padding-inline: var(--gutter, 16px);
		scrollbar-width: none;
	}

	.ek-quick:not(.is-open) .ek-quick__list::-webkit-scrollbar {
		display: none;
	}
}
