/**
 * FAQ page: page-templates/faq.php.
 * From 1280 (2171:676): 316px topic list, 64px gap, the groups beside it;
 * 120px under the body. Topic list: white, line border, radius 28, 12px
 * padding, 4px between items; items 12 / 14px padding, radius 18, 36px icon
 * circle with an 18px icon, 16px semibold label; the current group cream.
 * "Sticky on scroll. Each item scrolls to its group, active group
 * highlighted." Group head: 52px icon circle with a 24px icon, 16px gap, H2;
 * 20px to the accordion (archive/faq.css). 64px between groups (one group
 * framed).
 * 1024-1279 (not designed): a 260px list, 40px gap.
 * 768-1023 (not designed): the topics as a horizontal row above the groups.
 * Below 768 (client, 19 Oct 2026): the three topics stacked, full width; H2
 * group titles 28px.
 */

.faq-page__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	padding-bottom: var(--section-space);
}

.faq-nav::-webkit-scrollbar {
	display: none;
}

.faq-nav__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq-nav__link {
	display: flex;
	gap: 12px;
	align-items: center;
	box-sizing: border-box;
	min-height: 52px;
	padding: 8px 18px 8px 8px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-pill);
	background: var(--color-white);
	color: var(--color-ink);
	font-size: var(--text-label-m);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-label-m);
	text-decoration: none;
}

.faq-nav__link:hover,
.faq-nav__link.is-active {
	background: var(--color-cream);
}

.faq-page__groups {
	display: flex;
	flex-direction: column;
	gap: 45px; /* phones (client, 19 Oct 2026); 64px from 768 */
	min-width: 0;
}

.faq-group {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.faq-group__head {
	display: flex;
	gap: 12px;
	align-items: center;
}

.faq-group__title {
	max-width: 250px; /* phones (client, 19 Oct 2026) */
	margin: 0;
	color: var(--color-black);
	font-family: var(--font-display);
	font-size: 28px; /* phones (client, 19 Oct 2026); Heading/H2 from 768 */
	font-weight: var(--weight-extrabold);
	letter-spacing: var(--tracking-h2);
	line-height: var(--leading-h2);
}

@media (min-width: 768px) {
	.faq-nav {
		margin-right: calc(-1 * var(--container-gutter));
		margin-left: calc(-1 * var(--container-gutter));
		overflow-x: auto;
		scrollbar-width: none;
	}

	.faq-nav__list {
		flex-direction: row;
		width: max-content;
		padding: 0 var(--container-gutter);
	}

	.faq-group__head {
		gap: var(--space-sm);
	}

	.faq-group__title {
		max-width: none;
		font-size: var(--text-h2);
	}

	.faq-page__groups {
		gap: var(--space-xl);
	}
}

@media (min-width: 1024px) {
	.faq-page__body {
		flex-direction: row;
		gap: var(--space-lg);
		align-items: flex-start;
	}

	.faq-nav {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-stuck-height, 88px) + var(--space-md));
		flex: none;
		box-sizing: border-box;
		width: 260px;
		margin: 0;
		padding: 12px;
		overflow: visible;
		border: 1px solid var(--color-line);
		border-radius: 28px;
		background: var(--color-white);
	}

	.faq-nav__list {
		flex-direction: column;
		gap: 4px;
		width: auto;
		padding: 0;
	}

	.faq-nav__link {
		min-height: 0;
		padding: 12px 14px;
		border: 0;
		border-radius: 18px;
	}

	.faq-page__groups {
		flex: 1 1 0;
	}
}

@media (min-width: 1280px) {
	.faq-page__body {
		gap: var(--space-xl);
	}

	.faq-nav {
		width: 316px;
	}
}
