/* FAQ section on anvandningsomrade + funktion singles (views/components/faq-section.twig).
   Item styling and toggling come from blocks/faq-item (faq-item.css + faq-item.js). */

.faq-section {
	background-color: var(--primary-light);
	padding-top: calc(var(--section-padding-block) * 2);
	padding-bottom: calc(var(--section-padding-block) * 2);
	margin-top: var(--section-padding-block);
}

/* Kontor ([faq_section]) */
.faq-section.faq-section--white {
	background-color: var(--white);
}

/* CTA form (blocks/cta-form) directly after the FAQ: no gap between the two */
.faq-section + #formular {
	margin-top: 0;
}

/* Directly after a tinted section (kontor: the bg--light team-feed) the padding alone separates them */
.bg--light + .faq-section {
	margin-top: 0;
}

.faq-section__rubrik {
	margin: 0;
}

.faq-section__items {
	--faq-counter-width: 2.4rem;
	--faq-gap: 5rem;

	counter-reset: faq-counter;
	display: flex;
	flex-direction: column;
}

.faq-section__items .faq-item:first-child .faq-item__trigger {
	padding-top: 0;
}

@media screen and (max-width: 1025px) {
	.faq-section__rubrik {
		margin-bottom: 1.4rem;
	}
}

/* The block's --secondary-light equals the section background on Sondra, so tint separators and icons instead.
   --primary-subtle-light only exists on Sondra; SP (kontor) keeps --secondary-light, which differs from its background */
.faq-section .faq-item {
	border-bottom-color: var(--primary-subtle-light, var(--secondary-light));
}
.faq-section .faq-item__icon {
	background: var(--primary-subtle-light, var(--secondary-light));
}
