/* Rocky Tops — FAQ widget. Self-contained. */

.rt-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rt-faq__item {
	background-color: #fff;
	border: 1px solid #E5DDCF;
	border-radius: 10px;
	overflow: hidden;
}

.rt-faq__q {
	margin: 0;
	font: inherit;
}

.rt-faq__trigger {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 18px 20px;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	text-align: left;
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1A1916;
	transition: color .25s ease, background-color .25s ease;
}
/* Neutralise the theme/browser default button styling across every state so
   it never "shows through". The widget's Question color controls have higher
   specificity ({{WRAPPER}} .rt-faq__trigger:hover) and override these. */
.rt-faq__trigger:hover,
.rt-faq__trigger:focus,
.rt-faq__trigger:active {
	background: transparent;
	box-shadow: none;
	color: #1A1916;
}
.rt-faq__trigger:focus { outline: none; }
.rt-faq__trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.rt-faq__q-text { flex: 1 1 auto; color: inherit; }

/* Toggle icon */
.rt-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: inherit;
}

/* Plus → minus */
.rt-faq--icon-plus .rt-faq__icon::before,
.rt-faq--icon-plus .rt-faq__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: currentColor;
	transition: transform .3s ease, opacity .3s ease;
}
.rt-faq--icon-plus .rt-faq__icon::before { width: 100%; height: 2px; transform: translate(-50%, -50%); }
.rt-faq--icon-plus .rt-faq__icon::after  { width: 2px; height: 100%; transform: translate(-50%, -50%); }
.rt-faq--icon-plus .rt-faq__item.is-open .rt-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

/* Chevron */
.rt-faq--icon-chevron .rt-faq__icon::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 38%;
	width: 60%;
	height: 60%;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
	transition: transform .3s ease;
}
.rt-faq--icon-chevron .rt-faq__item.is-open .rt-faq__icon::before {
	transform: translate(-50%, -10%) rotate(-135deg);
}

/* Answer (collapsible) */
.rt-faq__a {
	overflow: hidden;
	max-height: 0;
	transition: max-height .35s ease;
}
.rt-faq__item.is-open .rt-faq__a {
	/* JS sets an exact px height; this is the no-JS fallback. */
	max-height: 1500px;
}
.rt-faq__a-inner {
	padding: 0 20px 18px;
	color: #4A4842;
	font-family: 'Inter', system-ui, sans-serif;
	line-height: 1.6;
}
.rt-faq__a-inner > :first-child { margin-top: 0; }
.rt-faq__a-inner > :last-child { margin-bottom: 0; }
.rt-faq__a-inner a { color: #B5731A; }

/* Editor-only notice */
.rt-faq__notice {
	padding: 1rem 1.25rem;
	background: #FAF7F1;
	border: 1px dashed #D2C7B4;
	color: #6B6A63;
	font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
	.rt-faq__a,
	.rt-faq__icon::before,
	.rt-faq__icon::after { transition: none; }
}
