/* Kategoritexten med FAQ (inc/kategori-faq.php).
   Figma: D / PLP 3127:9856 (blocket 3127:9857) och M / PLP 2089:1576 (blocket 2335:3443).
   Bas = en kolumn (mobil och surfplatta), två kolumner från 1025 px, mobiltypografi upp till 768 px.
   Media queries ligger sist: alla regler har samma specificitet, så ordningen avgör. */

.hs-faq-section {
	--hs-faq-fs: 16px;
	--hs-faq-lh: 22px;
	--hs-faq-indent: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 16px; /* .hgs-description har 32 px överst; Figma: 48 px under sidnumreringen */
	color: #000;
}

/* ---- kort ---- */
.hgs-description .hs-faq-card,
.hgs-description .hs-faq {
	background: #fff;
	border: 1px solid #f6f6f6;
	border-radius: 16px;
}
.hgs-description .hs-faq-card {
	padding: 23px 15px; /* Figma 24/16 med kanten innanför (inside stroke) */
}
.hgs-description .hs-faq-card__title {
	margin: 0;
	font-family: 'Satoshi Bold', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 26px;
	letter-spacing: 0;
	text-transform: none;
	color: #000;
}
.hgs-description .hs-faq-card--intro .hs-faq-card__title {
	text-align: center;
}
.hgs-description .hs-faq-card__title + .hs-faq-card__text {
	margin-top: 16px;
}

/* ---- brödtext i kort och svar ---- */
.hgs-description .hs-faq-card__text,
.hgs-description .hs-faq__a {
	font-family: 'Satoshi Medium', sans-serif;
	font-weight: 500;
	font-size: var(--hs-faq-fs);
	line-height: var(--hs-faq-lh);
	color: #000;
}
.hgs-description .hs-faq-card__text > *,
.hgs-description .hs-faq__a > * {
	margin: 0;
}
/* Tom rad mellan stycken som i Figma; listor ligger tätt mot texten före och efter. */
.hgs-description .hs-faq-card__text > p + p,
.hgs-description .hs-faq__a > p + p,
.hgs-description .hs-faq-card__text > * + :is(h1, h2, h3, h4, h5, h6),
.hgs-description .hs-faq__a > * + :is(h1, h2, h3, h4, h5, h6) {
	margin-top: var(--hs-faq-lh);
}
.hgs-description .hs-faq-card__text :is(ul, ol),
.hgs-description .hs-faq__a :is(ul, ol) {
	padding-left: var(--hs-faq-indent);
	list-style-position: outside;
}
.hgs-description .hs-faq-card__text ul,
.hgs-description .hs-faq__a ul {
	list-style-type: disc;
}
.hgs-description .hs-faq-card__text li,
.hgs-description .hs-faq__a li {
	margin: 0;
}
.hgs-description .hs-faq-card__text :is(strong, b, h1, h2, h3, h4, h5, h6),
.hgs-description .hs-faq__a :is(strong, b, h1, h2, h3, h4, h5, h6) {
	font-family: 'Satoshi Bold', sans-serif;
	font-weight: 700;
}
/* Underrubriker i ett svar (t.ex. h5 på Målvaktsbenskydd) – finns inte i Figma, samma stil som frågan. */
.hgs-description .hs-faq-card__text :is(h1, h2, h3, h4, h5, h6),
.hgs-description .hs-faq__a :is(h1, h2, h3, h4, h5, h6) {
	font-size: var(--hs-faq-fs);
	line-height: var(--hs-faq-lh);
	letter-spacing: 0;
	text-transform: none;
	color: #000;
}

/* ---- frågor ---- */
.hgs-description .hs-faqs {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.hgs-description .hs-faqs__col {
	display: contents; /* en kolumn: frågorna i textens ordning via order */
}
.hgs-description .hs-faq {
	order: var(--hs-faq-order, 0);
	padding: 15px; /* Figma 16 med kanten innanför: stängd fråga = 56 px */
}
.hgs-description .hs-faq__q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	cursor: pointer;
	list-style: none;
}
.hgs-description .hs-faq__q::-webkit-details-marker {
	display: none;
}
.hgs-description .hs-faq__q::after {
	content: '';
	flex: none;
	width: 24px;
	height: 24px;
	background: url(icon-add.svg) center / 24px 24px no-repeat;
}
.hgs-description .hs-faq[open] > .hs-faq__q::after {
	background-image: url(icon-remove.svg);
}
.hgs-description .hs-faq__q:focus-visible {
	outline: 2px solid #000;
	outline-offset: 4px;
	border-radius: 4px;
}
.hgs-description .hs-faq__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-family: 'Satoshi Bold', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0;
	text-transform: none;
	color: #000;
}
.hgs-description .hs-faq__a {
	margin-top: 16px;
}

/* ---- desktop: två kolumner (Figma D / PLP) ---- */
@media (min-width: 1025px) {
	.hgs-description .hs-faqs {
		flex-direction: row;
		align-items: flex-start;
	}
	.hgs-description .hs-faqs__col {
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		gap: 16px;
		min-width: 0;
	}
	.hgs-description .hs-faq-card--intro .hs-faq-card__text {
		column-count: 2;
		column-gap: 16px;
	}
}

/* ---- mobil: 14/20 och listindrag 21 (Figma M / PLP) ---- */
@media (max-width: 768px) {
	.hs-faq-section {
		--hs-faq-fs: 14px;
		--hs-faq-lh: 20px;
		--hs-faq-indent: 21px;
	}
}
