/* Pulse TCM FAQs — front accordion (matches design: light rows, dark active header, smooth motion) */

.pulsetcm-faqs {
	margin: 2rem 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pulsetcm-faqs h2 {
	font-weight: 600;
	margin-bottom: 1rem;
}

.pulsetcm-faqs__items {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.pulsetcm-faqs__item + .pulsetcm-faqs__item {
	border-top: 1px solid #e0e0e0;
}

/* Trigger row (question) */
button.pulsetcm-faqs__trigger {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.95rem 1rem;
	border: none;
	background-color: #f9f9f9;
	color: #1d2327;
	text-align: left;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.35;
	transition:
		background-color 0.28s ease,
		color 0.2s ease;
	border-radius: 0;
}

.pulsetcm-faqs__trigger:hover {
	background-color: #ececec;
}

.pulsetcm-faqs__item--open .pulsetcm-faqs__trigger {
	background-color: #333333;
	color: #fff;
}

.pulsetcm-faqs__item--open .pulsetcm-faqs__trigger:hover {
	background-color: #3d3d3d;
}

/* Question text */
.pulsetcm-faqs__question {
	flex: 1 1 auto;
	min-width: 0;
}

/* Right: chevron */
.pulsetcm-faqs__chevron {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	transition: color 0.25s ease;
}

/* Transition must live on the same element that uses transform (here ::before). */
.pulsetcm-faqs__chevron::before {
	content: '›';
	font-size: 1.15rem;
	line-height: 1;
	font-weight: 600;
	display: block;
	transform: rotate(0deg);
	transform-origin: center;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulsetcm-faqs__item--open .pulsetcm-faqs__chevron {
	color: #fff;
}

.pulsetcm-faqs__item--open .pulsetcm-faqs__chevron::before {
	transform: rotate(90deg);
}

/* Expand/collapse panel — grid row animation */
.pulsetcm-faqs__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.38s ease;
}

.pulsetcm-faqs__item--open .pulsetcm-faqs__panel {
	grid-template-rows: 1fr;
}

.pulsetcm-faqs__panel-inner {
	min-height: 0;
	overflow: hidden;
}

/* Answer body (separate from header) */
.pulsetcm-faqs__content {
	padding: 1.1rem 1rem 1.25rem;
	border-top: 1px solid #e8e8e8;
	background-color: #fff;
	color: #2c3338;
	font-weight: 400;
	line-height: 1.6;
}

.pulsetcm-faqs__item--open .pulsetcm-faqs__content {
	border-top-color: #4a4a4a;
}

.pulsetcm-faqs__content p:last-child {
	margin-bottom: 0;
}

.pulsetcm-faqs__content p:first-child {
	margin-top: 0;
}

.pulsetcm-faqs__trigger:focus {
	outline: none;
}

.pulsetcm-faqs__trigger:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.pulsetcm-faqs__item--open .pulsetcm-faqs__trigger:focus-visible {
	outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.pulsetcm-faqs__trigger,
	.pulsetcm-faqs__chevron,
	.pulsetcm-faqs__chevron::before,
	.pulsetcm-faqs__panel {
		transition-duration: 0.01ms;
	}
}
