.lexleman-post-category-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-block: 0 2.5rem;
}

.lexleman-post-category-filters__defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

.lexleman-post-category-filter {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	min-height: 44px;
	max-width: 100%;
	padding: 0.6rem 1.15rem;
	border: 1px solid #004895;
	border-radius: 2rem;
	background: transparent;
	color: #004895;
	font-size: 0.95rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.lexleman-post-category-filter__icon {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	object-fit: contain;
	/* The SVG filter sets #004895 directly while preserving image transparency. */
	filter: var(--lexleman-picto-blue-filter);
}

.lexleman-post-category-filter__label {
	min-width: 0;
}

.lexleman-post-category-filter:is(:hover, .is-active) {
	background: #004895;
	color: #fff;
}

.lexleman-post-category-filter:is(:hover, .is-active) .lexleman-post-category-filter__icon {
	filter: brightness(0) invert(1);
}

.lexleman-post-category-filter:focus-visible {
	outline: 3px solid #004895;
	outline-offset: 4px;
}
