/*
 * [wartegg_faq] – matches the w23 theme (Gotham / Mercury, türkis).
 * Selectors start with "body" to win over the theme's generic
 * ".items .item p / ul / h3" rules.
 *
 * Sizes are in px, not rem: the theme (Bootstrap 3) sets html to 10px.
 * The question size is the same for every heading level, which only sets
 * the document outline.
 */

body .wartegg-faq {
	--faq-accent: rgb(62, 175, 147);
	--faq-accent-dark: rgb(38, 128, 106);
	--faq-line: rgba(62, 175, 147, .3);
	--faq-text: #333;
	--faq-caret: .75em;
	--faq-gap: .7em;
	width: 100%;
	margin-right: 0;
	text-align: left;
}

/* Jump links (full FAQ only) */
body .wartegg-faq .faq-toc ul {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin: 0 0 2.5em;
	padding: 0;
	list-style: none;
}
body .wartegg-faq .faq-toc li {
	margin: 0;
	padding: 0;
	list-style: none;
}
body .wartegg-faq .faq-toc li::marker {
	content: none;
}
body .wartegg-faq .faq-toc li::before,
body .wartegg-faq .faq-toc li::after {
	content: none;
	display: none;
}
body .wartegg-faq .faq-toc a {
	display: inline-block;
	padding: .35em .9em;
	border: 1px solid var(--faq-accent);
	border-radius: 2em;
	font-family: 'Gotham SSm A', 'Gotham SSm B', Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: var(--faq-accent);
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
body .wartegg-faq .faq-toc a:hover,
body .wartegg-faq .faq-toc a:focus {
	background: var(--faq-accent);
	color: #fff;
}

/* Columns */
body .wartegg-faq .faq-columns {
	display: flex;
	flex-direction: column;
}
@media (min-width: 992px) {
	body .wartegg-faq.faq-cols-2 .faq-columns {
		flex-direction: row;
		align-items: flex-start;
		gap: 5%;
	}
	body .wartegg-faq.faq-cols-2 .faq-column {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* Category */
body .wartegg-faq .faq-category {
	margin: 0 0 2.5em;
	scroll-margin-top: 100px;
}
body .wartegg-faq .faq-category-title {
	margin: 0;
	padding: 0 0 .6em;
	border-bottom: 2px solid var(--faq-accent);
	font-family: 'Gotham SSm A', 'Gotham SSm B', Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--faq-text);
	scroll-margin-top: 100px;
}
/* A lone title above the columns (single category) */
body .wartegg-faq > .faq-category-title {
	margin-bottom: 0;
}

/* Question */
body .wartegg-faq .faq-item {
	border-bottom: 1px solid var(--faq-line);
	scroll-margin-top: 100px;
}
body .wartegg-faq .faq-column > .faq-item:first-child {
	border-top: 1px solid var(--faq-line);
}
body .wartegg-faq .faq-item summary {
	display: flex;
	align-items: baseline;
	gap: var(--faq-gap);
	padding: .85em 0;
	cursor: pointer;
	list-style: none;
}
body .wartegg-faq .faq-item summary::-webkit-details-marker {
	display: none;
}
body .wartegg-faq .faq-item summary:focus-visible {
	outline: 2px solid var(--faq-accent);
	outline-offset: 2px;
}
body .wartegg-faq .faq-caret {
	flex: 0 0 var(--faq-caret);
	width: var(--faq-caret);
	text-align: center;
	color: var(--faq-accent);
	transition: transform .2s ease;
}
body .wartegg-faq .faq-item[open] > summary .faq-caret {
	transform: rotate(180deg);
}
body .wartegg-faq .faq-question {
	margin: 0;
	padding: 0;
	font-family: 'Gotham SSm A', 'Gotham SSm B', Helvetica, Arial, sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--faq-accent);
	transition: color .15s;
}
body .wartegg-faq .faq-item summary:hover .faq-question,
body .wartegg-faq .faq-item[open] > summary .faq-question {
	color: var(--faq-accent-dark);
}

/* "All FAQ" link – looks like a question row, with an arrow */
body .wartegg-faq .faq-cta {
	display: flex;
	align-items: baseline;
	gap: var(--faq-gap);
	padding: .85em 0;
	border-bottom: 1px solid var(--faq-line);
	text-decoration: none;
}
body .wartegg-faq .faq-column > .faq-cta:first-child {
	border-top: 1px solid var(--faq-line);
}
body .wartegg-faq .faq-cta .faq-question {
	font-weight: 500;
}
@media (min-width: 992px) {
	body .wartegg-faq .faq-question {
		font-size: 19px;
	}
}
body .wartegg-faq .faq-cta .faq-caret {
	transition: transform .2s ease;
}
body .wartegg-faq .faq-cta:hover .faq-question,
body .wartegg-faq .faq-cta:focus .faq-question {
	color: var(--faq-accent-dark);
}
body .wartegg-faq .faq-cta:hover .faq-caret,
body .wartegg-faq .faq-cta:focus .faq-caret {
	transform: translateX(3px);
}

/* Answer – indented to line up with the question text */
body .wartegg-faq .faq-answer {
	padding: 0 0 1.1em calc(var(--faq-caret) + var(--faq-gap));
	font-family: 'Mercury SSm A', 'Mercury SSm B', Georgia, 'Times New Roman', Times, serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--faq-text);
	animation: wartegg-faq-in .2s ease;
}
body .wartegg-faq .faq-answer p {
	margin: 0 0 .6em;
	text-align: left;
}
body .wartegg-faq .faq-answer ul,
body .wartegg-faq .faq-answer ol {
	margin: 0 0 .6em;
	padding-left: 1.1em;
}
body .wartegg-faq .faq-answer li {
	margin: 0 0 .2em;
}
body .wartegg-faq .faq-answer > :last-child {
	margin-bottom: 0;
}

@keyframes wartegg-faq-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	body .wartegg-faq .faq-caret,
	body .wartegg-faq .faq-answer {
		transition: none;
		animation: none;
	}
}
