/* ============================================================
   DAPPER – Taxonomy Filter Bar v1.1
   ============================================================ */

.dapper-tf-wrap {
	position: relative;
	width: 100%;
}

/* ── Bar ─────────────────────────────────────────────────── */
.dapper-tf-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.dapper-tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 18px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	color: #333333;
	background-color: #f0f0f0;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 200ms ease;
	-webkit-appearance: none;
	appearance: none;
	text-decoration: none;
	outline-offset: 2px;
}

.dapper-tf-btn:focus-visible {
	outline: 2px solid currentColor;
}

.dapper-tf-btn:hover {
	color: #ffffff;
	background-color: #222222;
}

.dapper-tf-btn.is-active {
	color: #ffffff;
	background-color: #111111;
}

/* "All" can always be clicked even while active */
.dapper-tf-btn[data-term-id="all"].is-active {
	pointer-events: auto;
}

/* ── Count badge ─────────────────────────────────────────── */
.dapper-tf-count {
	font-size: 0.75em;
	opacity: 0.75;
	margin-left: 4px;
}

/* ── No results message ──────────────────────────────────── */
.dapper-tf-no-results {
	color: #999;
	font-size: 0.9rem;
	padding: 20px 0;
	width: 100%;
}

/* ── Cards hidden by filter ──────────────────────────────── */
/* Smooth hide — we use display:none in JS but add a tiny
   transition class to avoid jarring jumps */
.dapper-tf-filtered-out {
	display: none !important;
}

/* ── Scrollable single-row bar on mobile ─────────────────── */
@media (max-width: 767px) {
	.dapper-tf-bar {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.dapper-tf-bar::-webkit-scrollbar {
		display: none;
	}
}
