/* =====================================================================
   components/faq.css — the FAQ accordion
   (template-parts/global/faq-accordion.php).

   Built on <details>/<summary>, so it works with JavaScript disabled.
   ===================================================================== */

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 47rem;
	margin-inline: auto;
}

.faq-item {
	background: var(--surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	transition: box-shadow .25s ease, border-color .25s ease;
}

.faq-item[open],
.faq-item:hover {
	border-color: rgba(255, 158, 69, .45);
	box-shadow: var(--shadow-sm);
}

/* -- Question row -- */
.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.625rem 1.875rem;
	font-family: var(--font-secondary);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--heading-color);
	cursor: pointer;
	list-style: none;
}

/* Hide the native disclosure triangle in every engine. */
.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__question::marker {
	content: "";
}

.faq-item__question:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 3px;
	border-radius: var(--radius-md);
}

/* -- Toggle -- */
.faq-item__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--accent-color);
	background: #FFEAD2;
	border-radius: 50%;
	transition: background-color .25s ease, color .25s ease;
}

.faq-item__toggle svg {
	width: 1.0625rem;
	height: 1.0625rem;
}

/* Swap plus for minus when the row is open. */
.faq-item__toggle .ktm-icon--minus,
.faq-item[open] .faq-item__toggle .ktm-icon--plus {
	display: none;
}

.faq-item[open] .faq-item__toggle .ktm-icon--minus {
	display: block;
}

.faq-item[open] .faq-item__toggle {
	color: #fff;
	background-image: var(--gradient-gold);
}

/* -- Answer -- */
.faq-item__answer {
	padding: 0 1.875rem 1.75rem;
}

.faq-item__answer p {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--text-color);
}
