/* ════════════════════════════════════════════════════════════════════════════
   Holoholo FAQ — Search + Category Chips
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Search box ─────────────────────────────────────────────────────────────── */
.faq-search-inner {
	position: relative;
	max-width: 100%;
}
.faq-search-input-wrapper {
	display: flex;
	position: relative;
}
/* Search icon, before the text. Decorative, so clicks pass through to input. */
.faq-search-input-wrapper::before {
	content: "";
	position: absolute;
	left: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background: url("/wp-content/uploads/2026/06/Icon-Utility-Search.svg") no-repeat center / contain;
	pointer-events: none;
}
.faq-search-input {
	width: 100%;
	padding: 2rem 3rem 2rem 4.5rem; /* extra left pad clears the icon */
	border: none;
	border-radius: 1000px;
	outline: none;
	box-sizing: border-box;
	background-color: #DDE9FC;
}
.faq-search-input,
.faq-search-input::placeholder {
	color: #000;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.faq-search-clear {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	color: #B1AEAE;
	padding: 0.25rem 0.5rem;
}
.faq-search-clear:hover {
	color: #003087;
}

/* ── Category chips ─────────────────────────────────────────────────────────── */
.faq__chip-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}
.faq-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.6rem 1.1rem;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
	color: #003087;
	background: #fff;
	border: 1.5px dashed #9DB8E6;
	border-radius: 1000px;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.faq-chip:hover {
	border-color: #003087;
}
.faq-chip--active {
	background: #DDE9FC;
	border-style: solid;
	border-color: #003087;
}
/* ✕ affordance on the active chip (clicking it clears the filter) */
.faq-chip--active::after {
	content: "✕";
	font-size: 11px;
	line-height: 1;
}

/* ── Search term highlight ──────────────────────────────────────────────────── */
mark.faq-hl {
	background: #fff3a3;
	color: inherit;
	border-radius: 2px;
	padding: 0 1px;
}

/* ── No results ─────────────────────────────────────────────────────────────── */
.faq-no-results-msg {
	color: #666;
	font-style: italic;
	padding: 1rem 0;
}
