/* FAQs page — accessible <details> disclosure list
?????????????????????????????????????????????????? */
.faqs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq {
    border: 1px solid var(--grey-200);
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
}

.faq__question {
    list-style: none;
    cursor: pointer;
    padding: 1rem 2.75rem 1rem 1.25rem;
    position: relative;
}

/* The question is an <h2> for SEO/AI outline; render it inline at body scale
   rather than as a default browser heading. */
.faq__question-text {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--slate-900);
    line-height: 1.4;
    display: inline;
}

.faq__question:hover .faq__question-text {
    color: var(--primary-600);
}

/* Hide the native disclosure triangle (we draw our own chevron). */
.faq__question::-webkit-details-marker {
    display: none;
}

/* Chevron indicator, rotates when the item is open. */
.faq__question::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 0.6rem;
    height: 0.6rem;
    margin-top: -0.45rem;
    border-right: 2px solid var(--primary-500);
    border-bottom: 2px solid var(--primary-500);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq[open] .faq__question::after {
    transform: rotate(-135deg);
}

/* Clear keyboard focus ring (matches the site-wide :focus-visible work). */
.faq__question:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: -2px;
}

.faq__answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.faq__answer p {
    margin: 0;
}

.faq__more {
    margin-top: 0.75rem !important;
}

@media only screen and (min-width: 993px) {
    .faq__question-text {
        font-size: var(--text-lg);
    }
}

/* Honor reduced-motion: don't animate the chevron for users who ask for less. */
@media (prefers-reduced-motion: reduce) {
    .faq__question::after {
        transition: none;
    }
}
