/**
 * FAQ accordion.
 *
 * <details>/<summary> only — no JavaScript, so it opens on the first tap even
 * while the rest of the page is still loading, and it keeps working if scripts
 * fail.
 *
 * Tokens are the site's current ("new") design system, not the older brown one:
 * cards are #FFFBF0 on a #FCC443 hairline with an 8px radius, body copy is
 * 15px/24px #101820, and #983E31 is the accent. Section headings are 27px/36px
 * 600 uppercase, matching .section-title.
 *
 * The block is capped well below the 1206px .holder — long questions set across
 * the full container are unreadable, and a FAQ is read, not scanned.
 */

.bogika-faq {
	max-width: 860px;
	margin: 32px 0 40px;
	color: #101820;
	font-size: 15px;
	line-height: 24px;
}

.bogika-faq__title {
	margin: 0 0 16px;
	font-size: 27px;
	font-weight: 600;
	line-height: 36px;
	text-transform: uppercase;
	color: #101820;
}

.bogika-faq__item {
	margin-bottom: 8px;
	border: 1px solid #fcc443;
	border-radius: 8px;
	background: #fffbf0;
	transition: border-color .2s ease, background-color .2s ease;
}

.bogika-faq__item:last-child {
	margin-bottom: 0;
}

.bogika-faq__item:hover {
	border-color: #983e31;
}

.bogika-faq__item[open] {
	background: #fff;
	border-color: #983e31;
}

.bogika-faq__q {
	position: relative;
	display: block;
	padding: 16px 52px 16px 20px;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: #101820;
	cursor: pointer;
	/* Both are needed: list-style covers Firefox, the pseudo-element Safari. */
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
}

.bogika-faq__q::-webkit-details-marker {
	display: none;
}

.bogika-faq__q:focus-visible {
	outline: 2px solid #983e31;
	outline-offset: -2px;
	border-radius: 8px;
}

/* Chevron: down when closed, up when open. Two borders on a rotated square —
   no icon font, no SVG request. */
.bogika-faq__q::after {
	content: '';
	position: absolute;
	right: 22px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -7px;
	border-right: 2px solid #983e31;
	border-bottom: 2px solid #983e31;
	transform: rotate(45deg);
	transition: transform .2s ease, margin-top .2s ease;
}

.bogika-faq__item[open] > .bogika-faq__q::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.bogika-faq__a {
	padding: 0 52px 18px 20px;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	color: #101820;
}

.bogika-faq__a > *:first-child {
	margin-top: 0;
}

.bogika-faq__a > *:last-child {
	margin-bottom: 0;
}

.bogika-faq__a p {
	margin: 0 0 12px;
}

.bogika-faq__a ul,
.bogika-faq__a ol {
	margin: 0 0 12px;
	padding-left: 20px;
}

.bogika-faq__a li {
	margin-bottom: 4px;
}

.bogika-faq__a a {
	color: #983e31;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bogika-faq__a a:hover {
	color: #643633;
}

@media (prefers-reduced-motion: no-preference) {
	.bogika-faq__item[open] > .bogika-faq__a {
		animation: bogika-faq-reveal .18s ease-out;
	}

	@keyframes bogika-faq-reveal {
		from {
			opacity: 0;
			transform: translateY(-4px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}
}

@media screen and (max-width: 767px) {
	.bogika-faq {
		margin: 24px 0 32px;
	}

	.bogika-faq__title {
		margin-bottom: 12px;
		font-size: 20px;
		line-height: 28px;
	}

	.bogika-faq__q {
		padding: 14px 44px 14px 16px;
		font-size: 15px;
		line-height: 22px;
	}

	.bogika-faq__q::after {
		right: 18px;
	}

	.bogika-faq__a {
		padding: 0 44px 16px 16px;
		font-size: 14px;
		line-height: 22px;
	}
}
