/* ============================================================
   FAQ — page CSS
   Scope: .wpak-faq (page-faq.php). Conditionally enqueued in
   wpak_theme_assets() based on the page slug. Token-based only — no
   hardcoded surface/text colours.

   Pattern: simple page title + accordion + docs CTA.
   ============================================================ */

.wpak-faq {
	max-width: 880px;
	margin: 0 auto;
	padding: 96px 28px;
}

/* ---------- Hero ---------- */
.wpak-faq__head {
	text-align: center;
	margin-bottom: 64px;
}

.wpak-faq__head .wpak-eyebrow {
	margin-bottom: 18px;
	color: var(--wpak-c1);
}

.wpak-faq__title {
	font-family: var(--wpak-font-heading);
	font-weight: 800;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: 0;
	margin: 0;
	color: var(--wpak-text);
}

.wpak-faq__sub {
	font-family: var(--wpak-font-heading);
	font-weight: 400;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.45;
	color: var(--wpak-text-2);
	max-width: 56ch;
	margin: 22px auto 0;
}

/* ---------- Body ---------- */
.wpak-faq__body {
	margin-top: 16px;
}

/* H2 — section label above each cluster of questions */
.wpak-faq__body h2 {
	font-family: var(--wpak-font-heading);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
	letter-spacing: 0;
	line-height: 1.15;
	color: var(--wpak-text);
	margin: 56px 0 20px;
}

.wpak-faq__body h2:first-child {
	margin-top: 0;
}

/* Plain H1 lingering from old content gets toned down so it doesn't
   compete with the page title above. */
.wpak-faq__body h1 {
	display: none;
}

/* ---------- Accordion item ---------- */
.wpak-faq__item {
	border-top: 1px solid var(--wpak-border);
	padding: 22px 0;
}

.wpak-faq__item:last-of-type {
	border-bottom: 1px solid var(--wpak-border);
}

/* Question (the clickable summary). Reset native chevrons so we can
   draw our own with a CSS pseudo-element. */
.wpak-faq__q {
	font-family: var(--wpak-font-heading);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.3;
	color: var(--wpak-text);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	transition: color .15s ease;
}

.wpak-faq__q::-webkit-details-marker { display: none; }
.wpak-faq__q::marker { content: ""; }

/* +/− indicator that flips with the open state. */
.wpak-faq__q::after {
	content: "+";
	flex: 0 0 auto;
	font-family: var(--wpak-font-mono);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wpak-muted);
	transform: translateY(2px);
	transition: transform .2s ease, color .2s ease;
}

.wpak-faq__item[open] .wpak-faq__q::after {
	content: "−";
	color: var(--wpak-c1);
}

.wpak-faq__q:hover {
	color: var(--wpak-c1);
}

.wpak-faq__q:focus-visible {
	outline: 2px solid var(--wpak-c1);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Answer body */
.wpak-faq__a {
	margin-top: 14px;
	color: var(--wpak-text-2);
	font-size: 1rem;
	line-height: 1.7;
}

.wpak-faq__a p {
	margin: 0 0 12px;
}

.wpak-faq__a p:last-child {
	margin-bottom: 0;
}

.wpak-faq__a ul,
.wpak-faq__a ol {
	margin: 10px 0 12px;
	padding-left: 24px;
}

.wpak-faq__a li {
	margin: 6px 0;
}

.wpak-faq__a a {
	color: var(--wpak-c1);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpak-faq__a a:hover {
	text-decoration: none;
}

.wpak-faq__docs {
	margin-top: 52px;
	padding: 28px;
	border: 1px solid var(--wpak-border);
	border-radius: 8px;
	background: var(--wpak-surface);
	text-align: center;
}

.wpak-faq__docs h2 {
	margin: 0;
}

.wpak-faq__docs p {
	margin: 12px auto 22px;
	color: var(--wpak-text-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.wpak-faq {
		padding: 64px 20px;
	}
	.wpak-faq__head {
		margin-bottom: 40px;
	}
	.wpak-faq__body h2 {
		margin-top: 40px;
	}
}
