/* ============================================================
   FAQs: the topic list (a row of links on phones and tablets; a column
   that stays in view beside the answers from 961px) and an accordion per
   topic, each question on a dotted rule with a gold plus that turns to a
   cross. assets/js/faqs.js keeps one open and animates the answers.
   (prototype: .faq-wrap, .faq-nav, .faq)
   ============================================================ */

.faqs__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.faqs__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The menu's hover: the dotted rule comes in dot by dot under the word. */
.faqs__topic {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	font-size: var(--size-label);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
}

.faqs__topic::after {
	content: "";
	position: absolute;
	right: 0.2em;
	bottom: 2px;
	left: 0;
	height: 3px;
	background: var(--dots);
	-webkit-mask: var(--dots-mask);
	mask: var(--dots-mask);
	-webkit-mask-position: var(--dots-hidden);
	mask-position: var(--dots-hidden);
	transition: var(--dots-transition);
}

.faqs__topic:focus-visible::after,
.faqs__topic[aria-current="true"]::after {
	-webkit-mask-position: var(--dots-shown);
	mask-position: var(--dots-shown);
}

@media (hover: hover) {
	.faqs__topic:hover::after {
		-webkit-mask-position: var(--dots-shown);
		mask-position: var(--dots-shown);
	}
}

.faqs__groups {
	display: grid;
	gap: 56px;
	max-width: 820px;
}

.faqs__group {
	scroll-margin-top: calc(var(--header-h-scrolled) + 32px);
}

.faqs__title {
	margin-bottom: 14px;
	font-size: var(--size-h2);
	line-height: 1.08;
}

.faq {
	background: var(--dots-line) 0 100% / 8px 3px space no-repeat;
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question:focus-visible {
	outline-offset: 2px;
}

/* The plus: two gold strokes that turn into a cross when open. */
.faq__icon {
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
}

.faq__icon::before,
.faq__icon::after {
	content: "";
	position: absolute;
	top: 7.25px;
	left: 0;
	width: 16px;
	height: 1.5px;
	background: var(--color-accent);
	transition: transform 0.4s var(--ease);
}

.faq__icon::after {
	transform: rotate(90deg);
}

.faq[open]:not(.is-closing) .faq__icon::before {
	transform: rotate(45deg);
}

.faq[open]:not(.is-closing) .faq__icon::after {
	transform: rotate(135deg);
}

@media (hover: hover) {
	.faq__question:hover .faq__icon::before,
	.faq__question:hover .faq__icon::after {
		background: var(--color-text);
	}
}

.faq__answer {
	overflow: hidden;
}

.faq__answer-inner {
	padding: 0 40px 24px 0;
	font-size: 15px;
	line-height: 1.8;
}

.faq__answer-inner p + p {
	margin-top: 1em;
}

@media (min-width: 961px) {
	.faqs__inner {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: clamp(40px, 7vw, 110px);
	}

	.faqs__nav {
		position: sticky;
		top: calc(var(--header-h-scrolled) + 32px);
		align-self: start;
	}

	.faqs__topics {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.faqs__groups {
		gap: 72px;
	}

	.faq__question {
		padding: 22px 0;
	}
}
