/* ═══════════════════════════════════════════
   FAQ PAGE
═══════════════════════════════════════════ */

.faq-page {
	background: var(--fc-bg);
	color: var(--fc-ink);
}

.faq-body {
	padding: 2rem 1.5rem 4rem;
	max-width: 860px;
	margin: 0 auto;
}

/* ── Answer links & lists ── */
.faq-answer a {
	color: var(--fc-accent, #b70000);
	font-weight: 700;
	text-decoration: underline;
}

.faq-answer ul {
	margin: 0;
	padding-left: 1.4rem;
}

.faq-answer li + li {
	margin-top: 0.3rem;
}

/* ═══════════════════════════════════════════
   CATEGORY SECTION TOGGLE
═══════════════════════════════════════════ */
.faq-section {
	margin-bottom: 0.25rem;
}

.faq-category-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: none;
	border-top: 1px solid var(--fc-line, rgba(255,255,255,0.12));
	padding: 1.4rem 0.25rem;
	cursor: pointer;
	font-family: var(--font-secondary);
	font-size: clamp(1.3rem, 2.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--fc-ink);
	text-align: left;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.faq-category-toggle:hover,
.faq-category-toggle:focus-visible {
	color: var(--fc-accent, #b70000);
	outline: none;
}

.faq-category-toggle__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--fc-line, rgba(255,255,255,0.2));
	border-radius: 50%;
	margin-left: 1rem;
	position: relative;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-category-toggle__icon::before,
.faq-category-toggle__icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

/* horizontal bar */
.faq-category-toggle__icon::before {
	width: 0.7rem;
	height: 2px;
}

/* vertical bar — becomes hidden when open */
.faq-category-toggle__icon::after {
	width: 2px;
	height: 0.7rem;
}

.faq-category-toggle[aria-expanded="true"] .faq-category-toggle__icon {
	background: var(--fc-accent, #b70000);
	border-color: var(--fc-accent, #b70000);
}

.faq-category-toggle[aria-expanded="true"] .faq-category-toggle__icon::before,
.faq-category-toggle[aria-expanded="true"] .faq-category-toggle__icon::after {
	background: #fff;
}

.faq-category-toggle[aria-expanded="true"] .faq-category-toggle__icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

/* ═══════════════════════════════════════════
   ACCORDION ITEMS (individual Q&A)
═══════════════════════════════════════════ */
.faq-accordion {
	border-bottom: 1px solid var(--fc-line, rgba(255,255,255,0.12));
	margin-bottom: 0.5rem;
}

.faq-item {
	background: transparent;
	border-bottom: none;
	border-top: 1px solid var(--fc-line, rgba(255,255,255,0.08));
}

.faq-button {
	background: transparent;
	font-family: var(--font-primary);
	font-size: clamp(1rem, 1.8vw, 1.3rem);
	font-weight: 400;
	color: var(--fc-ink);
	padding: 1rem 0.35rem;
	transition: color 0.2s ease;
}

.faq-button:not(.collapsed) {
	background: transparent;
	color: var(--fc-accent, #b70000);
	font-weight: 600;
}

.faq-button:focus {
	box-shadow: none;
}

.faq-button::after {
	background-image: none;
	content: "+";
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 300;
	color: var(--fc-muted, rgba(255,255,255,0.4));
	transform: none;
	flex-shrink: 0;
}

.faq-button:not(.collapsed)::after {
	content: "−";
	color: var(--fc-accent, #b70000);
}

.faq-answer {
	padding: 0 0.35rem 1.25rem 0.35rem;
	font-family: var(--font-primary);
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	line-height: 1.7;
	color: var(--fc-muted);
}

/* ═══════════════════════════════════════════
   DOWNLOADS
═══════════════════════════════════════════ */
.faq-downloads {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--fc-line, rgba(255,255,255,0.12));
	text-align: center;
}

.faq-downloads__title {
	margin: 0 0 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	font-family: var(--font-secondary);
	font-size: clamp(1.2rem, 2.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--fc-ink);
}

.faq-downloads__title::before,
.faq-downloads__title::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--fc-line, rgba(255,255,255,0.12));
}

.faq-downloads__actions {
	margin-top: 0.95rem;
}

.faq-downloads__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fc-accent, #b70000);
	color: #fff;
	text-decoration: none;
	padding: 0.8rem 1.5rem;
	font-family: var(--font-primary);
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	border-radius: 3px;
	transition: background 0.2s ease;
}

.faq-downloads__button:hover,
.faq-downloads__button:focus-visible {
	background: #9d2321;
	color: #fff;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
	.faq-body {
		padding: 1rem 1rem 2.5rem;
	}

	.faq-category-toggle {
		padding: 1.1rem 0.1rem;
	}

	.faq-downloads__title {
		gap: 0.7rem;
		letter-spacing: 0.06em;
	}
}
