/**
 * KZ Product FAQ accordion.
 *
 * Uses native <details>/<summary> in normal block flow. Rows grow with their
 * content, so multi-line questions can never overlap the next row (the bug in
 * the old hand-bound Elementor accordion). Brand tokens are overridable per site.
 */
.kzpf-faq {
	--kzpf-navy: #0e2a47;
	--kzpf-gold: #c9a75a;
	--kzpf-cream: #f4f1ea;
	--kzpf-navy-text: #ffffff;
	--kzpf-body: #22384f;
	--kzpf-radius: 6px;
	--kzpf-gap: 12px;

	max-width: 960px;
	margin-inline: auto;
}

.kzpf-faq__heading {
	text-align: center;
	color: var(--kzpf-navy);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0 0 0.75em;
}

.kzpf-faq__rule {
	display: block;
	width: 64px;
	height: 4px;
	margin: 0.5em auto 0;
	background: var(--kzpf-gold);
	border-radius: 2px;
}

.kzpf-faq__list {
	display: flex;
	flex-direction: column;
	gap: var(--kzpf-gap);
}

/* Each item is a self-contained flow block: no fixed height, no absolute pos. */
.kzpf-faq__item {
	background: var(--kzpf-navy);
	color: var(--kzpf-navy-text);
	border: 1px solid var(--kzpf-gold);
	border-radius: var(--kzpf-radius);
	overflow: hidden;
}

/* Open item gets the gold header treatment (matches the client's live look). */
.kzpf-faq__item[open] > .kzpf-faq__q {
	background: var(--kzpf-gold);
	color: var(--kzpf-navy);
}

.kzpf-faq__q {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	margin: 0;
	cursor: pointer;
	font-weight: 700;
	font-size: clamp(1rem, 1.1vw + 0.6rem, 1.35rem);
	line-height: 1.35;
	list-style: none;
}

/* Kill the default disclosure triangle across browsers. */
.kzpf-faq__q::-webkit-details-marker { display: none; }
.kzpf-faq__q::marker { content: ''; }

.kzpf-faq__q-text {
	flex: 1 1 auto;
	min-width: 0; /* allow wrapping instead of pushing the icon out */
}

/* +/- indicator drawn from borders so no icon font dependency. */
.kzpf-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
.kzpf-faq__icon::before,
.kzpf-faq__icon::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	background: currentColor;
}
.kzpf-faq__icon::before { width: 100%; height: 2px; }  /* horizontal */
.kzpf-faq__icon::after  { width: 2px; height: 100%; }  /* vertical  */
.kzpf-faq__item[open] .kzpf-faq__icon::after { opacity: 0; } /* + -> - */

.kzpf-faq__a {
	background: var(--kzpf-cream);
	color: var(--kzpf-body);
	padding: 18px 22px;
	font-size: 1.05rem;
	line-height: 1.6;
}
.kzpf-faq__a > :first-child { margin-top: 0; }
.kzpf-faq__a > :last-child  { margin-bottom: 0; }

.kzpf-empty {
	padding: 16px;
	border: 1px dashed #c3c3c3;
	color: #777;
	text-align: center;
	border-radius: var(--kzpf-radius);
}

@media (max-width: 600px) {
	.kzpf-faq__q { padding: 14px 16px; }
	.kzpf-faq__a { padding: 14px 16px; }
}
