/**
 * TDS Component: Institutional FAQ (Semantic Accordion)
 * Logic: Low-motion, native HTML5 <details> element
 */

.uh-faq-group {
    border-top: 0; /* PURGED: Cleared for heading harmony */
    margin-bottom: var(--tds-space-05); /* Enforced 64px Grouping Gap */
}

/* Ensure the initial group is aligned with the container start */
.uh-faq-group:first-of-type {
    margin-top: 0;
}

.uh-faq-item {
    border-bottom: 1px solid var(--tds-border);
}

/* The clickable trigger */
.uh-faq-summary {
    font-family: var(--tds-font-system);
    font-weight: var(--tds-weight-semibold);
    color: var(--tds-text-main);
    padding-block: var(--tds-space-04);
    cursor: pointer;
    list-style: none; /* Hides default triangle in modern browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Hide default triangle in WebKit */
.uh-faq-summary::-webkit-details-marker {
    display: none;
}

.uh-faq-summary:hover,
.uh-faq-summary:focus,
.uh-faq-summary:focus-visible {
    color: var(--tds-brand-strong);
    background-color: var(--tds-brand-a04);
}

/* GPU-Accelerated Chevron Rotation */
.uh-faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--tds-text-muted);
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
	transform-origin: center;
}

.uh-faq-item[open] .uh-faq-icon {
    transform: rotate(180deg);
    color: var(--tds-brand-strong);
}

/* Content block */
.uh-faq-item + .uh-faq-item {
	margin-top: 0;
}

.uh-faq-content {
	padding-top: 0;
	padding-bottom: var(--tds-space-04);
	color: var(--tds-text-muted);
	max-width: var(--tds-reading-measure);
}
