/*
 * Category page content (task 6986).
 * px units on purpose: the theme changes the root font-size per breakpoint.
 */

/* ---------- Top description: one 2-line clamp for the whole text ---------- */

.cat-desc {
	max-width: 800px;
	margin: 15px auto 25px;
	padding: 0 15px;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
}

.cat-desc__text > :first-child {
	margin-top: 0;
}

.cat-desc__text > :last-child {
	margin-bottom: 0;
}

.cat-desc__text p {
	margin: 0 0 10px;
}

/* Collapsed: everything flows as one inline run, cut after 2 lines with an ellipsis. */
.cat-desc.is-collapsed .cat-desc__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.cat-desc.is-collapsed .cat-desc__text * {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
}

.cat-desc.is-collapsed .cat-desc__text > *::after,
.cat-desc.is-collapsed .cat-desc__text li::after {
	content: " ";
}

.cat-desc.is-collapsed .cat-desc__text br {
	display: none;
}

.cat-desc.is-collapsed .cat-desc__text img,
.cat-desc.is-collapsed .cat-desc__text iframe {
	display: none;
}

.cat-desc__text ul,
.cat-desc__text ol {
	display: inline-block;
	margin: 0 0 10px;
	padding-inline-start: 20px;
	text-align: start;
}

.cat-desc__toggle {
	display: block;
	margin: 12px auto 0;
	padding: 6px 18px;
	min-width: 110px;
	border: 1px solid #90172a;
	border-radius: 0;
	background: #90172a;
	color: #fff;
	font-family: "Heebo", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: color .2s linear, background .2s linear;
}

.cat-desc__toggle:hover,
.cat-desc__toggle:focus-visible {
	background: transparent;
	color: #90172a;
}

.cat-desc__toggle[hidden] {
	display: none;
}

@media (min-width: 576px) {
	.cat-desc {
		font-size: 14px;
	}
}

/* ---------- Bottom content + FAQ ---------- */

.cat-bottom {
	padding: 30px 0 50px;
	border-top: 1px solid #e4e4e4;
	margin-top: 20px;
}

.cat-bottom__inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: start;
	color: #222;
	font-family: "Heebo", sans-serif;
	font-size: 15px;
	line-height: 1.7;
}

.cat-bottom__content h2,
.cat-bottom__content h3,
.cat-bottom__content h4,
.cat-bottom__content h5,
.cat-bottom__content h6,
.cat-faq__title {
	font-family: "Heebo", sans-serif;
	color: #000;
	line-height: 1.3;
	margin: 28px 0 10px;
}

.cat-bottom__content > :first-child {
	margin-top: 0;
}

.cat-bottom__content h2,
.cat-faq__title {
	font-size: 22px;
	font-weight: 700;
}

.cat-bottom__content h3 {
	font-size: 19px;
	font-weight: 700;
}

.cat-bottom__content h4 {
	font-size: 17px;
	font-weight: 600;
}

.cat-bottom__content h5,
.cat-bottom__content h6 {
	font-size: 15px;
	font-weight: 600;
}

.cat-bottom__content p {
	margin: 0 0 14px;
}

.cat-bottom__content ul,
.cat-bottom__content ol {
	margin: 0 0 14px;
	padding-inline-start: 22px;
}

.cat-bottom__content ul {
	list-style: disc;
}

.cat-bottom__content ol {
	list-style: decimal;
}

.cat-bottom__content li {
	margin-bottom: 4px;
}

.cat-bottom__content a,
.cat-faq__answer a {
	color: #90172a;
	text-decoration: underline;
}

.cat-bottom__content a:hover,
.cat-faq__answer a:hover {
	text-decoration: none;
}

.cat-bottom__content img {
	max-width: 100%;
	height: auto;
}

/* FAQ accordion (native <details>: closed on load, answers stay in the HTML) */

.cat-faq {
	margin-top: 30px;
}

.cat-bottom__content:empty + .cat-faq,
.cat-bottom__inner > .cat-faq:first-child {
	margin-top: 0;
}

.cat-faq__title {
	margin-top: 0;
	margin-bottom: 14px;
}

.cat-faq__item {
	border-bottom: 1px solid #d8d8d8;
}

.cat-faq__item:first-of-type {
	border-top: 1px solid #d8d8d8;
}

.cat-faq__question {
	position: relative;
	display: block;
	padding: 14px 0;
	padding-inline-end: 36px;
	font-size: 16px;
	font-weight: 600;
	color: #000;
	cursor: pointer;
	list-style: none;
}

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

.cat-faq__question::marker {
	content: "";
}

.cat-faq__question::after {
	content: "+";
	position: absolute;
	inset-inline-end: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: #90172a;
}

.cat-faq__item[open] > .cat-faq__question::after {
	content: "\2212";
}

.cat-faq__question:hover,
.cat-faq__question:focus-visible {
	color: #90172a;
}

.cat-faq__answer {
	padding: 0 0 16px;
	padding-inline-end: 36px;
}

.cat-faq__answer > :last-child {
	margin-bottom: 0;
}

.cat-faq__answer p {
	margin: 0 0 10px;
}

.cat-faq__answer ul,
.cat-faq__answer ol {
	margin: 0 0 10px;
	padding-inline-start: 22px;
}

@media (max-width: 575px) {
	.cat-bottom {
		padding: 24px 0 36px;
	}

	.cat-bottom__inner {
		font-size: 14px;
	}

	.cat-bottom__content h2,
	.cat-faq__title {
		font-size: 20px;
	}

	.cat-bottom__content h3 {
		font-size: 17px;
	}

	.cat-bottom__content h4 {
		font-size: 16px;
	}

	.cat-faq__question {
		font-size: 15px;
	}
}
