/**
 * FAQ Accordion component
 *
 * Variation A — Refined accordion on white. Centered header, thin black
 * top rule, light gray dividers, plus/minus icon toggled via the
 * is-open state on the item and aria-expanded on the button.
 *
 * All styles scoped under .tps-faq to avoid global conflicts.
 */

.tps-faq {
	box-sizing: border-box;
	width: 100%;
	background: #ffffff;
	border-radius: 6px;
	padding: clamp(2rem, 4vw, 3.5rem);
	border: 1px solid #c5c3bf;
	color: #111;
}

.tps-faq *,
.tps-faq *::before,
.tps-faq *::after {
	box-sizing: border-box;
}

.tps-faq__inner {
	max-width: 760px;
	margin: 0 auto;
}

/* ---------- Header ---------- */

.tps-faq__header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e5e3;
	
}

.tps-faq__heading {
	margin: 0;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #111;
	font-family: Karla !important;
}

.tps-faq__description {
	margin-top: 1rem;
	font-size: 16px;
	line-height: 1.6;
	color: #555;
	max-width: 640px;
	
}

.tps-faq__description > *:first-child {
	margin-top: 0;
}

.tps-faq__description > *:last-child {
	margin-bottom: 0;
}

.tps-faq__description p {
	margin: 0 0 0.85em;
}

.tps-faq__description a {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- List ---------- */

.tps-faq__list {
	/* When there's a header present, header's bottom border serves as the
	   list's visual top. When headless, add a fallback top border. */
}

/* No header present? give the list its own top rule. */
.tps-faq__inner > .tps-faq__list:first-child {
	border-top: 1px solid #e5e5e3;
}

/* ---------- Item ---------- */

.tps-faq__item {
	border-bottom: 1px solid #e5e5e3;
	min-width: 0;
	max-width: 100%;
}

/* Reset the heading wrapper so the button is the visible interactive control */
.tps-faq__question-wrap {
	margin: 0;
	padding: 0;
	font: inherit;
	white-space: normal;
	max-width: 100%;
}

/* ---------- Question (the button) ---------- */

.tps-faq__question {
	width: 100%;
	max-width: 100%;
	padding: 1.35rem 0;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	cursor: pointer;
	text-align: left;
	color: inherit;
	font: inherit;
	white-space: normal;
	-webkit-appearance: none;
	appearance: none;
	transition: none;
	font-family: Karla;
	font-weight: 600;
}

.tps-faq__question:hover,
.tps-faq__question:focus,
.tps-faq__question:active,
.tps-faq__question:focus-visible {
	background: transparent;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
}

.tps-faq__question:focus-visible {
	outline: 2px solid #111;
	outline-offset: 4px;
	border-radius: 2px;
}

.tps-faq__question-text {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #444;
	line-height: 1.3;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	transition: color 0.2s ease;
}

/* Open state — bolder, darker text */
.tps-faq__item.is-open .tps-faq__question-text,
.tps-faq__question[aria-expanded="true"] .tps-faq__question-text {
	font-weight: 700;
	color: #111;
}

.tps-faq__question:hover .tps-faq__question-text {
	color: #111;
}

/* ---------- Icon (plus / minus) ---------- */

.tps-faq__icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	/* Match question-text first-line height so icon center aligns with first line */
	margin-top: calc((1rem * 1.3 - 18px) / 2);
	margin-left: 0.5rem;
}

/* Horizontal bar — always rendered */
.tps-faq__icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1.5px;
	background: #111;
	transform: translateY(-50%);
}

/* Vertical bar — rotates out when open */
.tps-faq__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 1.5px;
	background: #111;
	transform: translateX(-50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.tps-faq__item.is-open .tps-faq__icon::after,
.tps-faq__question[aria-expanded="true"] .tps-faq__icon::after {
	transform: translateX(-50%) scaleY(0);
	opacity: 0;
}

/* Lighter icon color when question is closed */
.tps-faq__question[aria-expanded="false"] .tps-faq__icon::before,
.tps-faq__question[aria-expanded="false"] .tps-faq__icon::after {
	background: #777;
}

/* ---------- Panel (answer) ---------- */

.tps-faq__panel {
	padding: 0 0 1.5rem;
}

.tps-faq__panel[hidden] {
	display: none;
}

.tps-faq__answer {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #555;
	max-width: 720px;
}

.tps-faq__answer > *:first-child {
	margin-top: 0;
}

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

.tps-faq__answer p {
	margin: 0 0 1em;
}

.tps-faq__answer a {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tps-faq__answer ul,
.tps-faq__answer ol {
	margin: 0 0 1em;
	padding-left: 1.25rem;
}

.tps-faq__answer li {
	margin-bottom: 0.35em;
}

/* ---------- Mobile ---------- */

@media (max-width: 540px) {
	.tps-faq {
		padding: 1.75rem 1.25rem;
	}

	.tps-faq__header {
		margin-bottom: 1.5rem;
		padding-bottom: 1.25rem;
	}

	.tps-faq__question {
		padding: 1rem 0;
		gap: 1rem;
	}

	.tps-faq__question-text {
		font-size: 0.9375rem;
	}

	.tps-faq__answer {
		font-size: 0.9375rem;
	}

	.tps-faq__icon {
		width: 16px;
		height: 16px;
		margin-top: 0.2rem;
	}
}