/* FAQ section of an inner page: questions that open to show their answers. */

.faq {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: clamp(70px, 8vw, 120px) auto 0;
    padding: 0 var(--gutter);
}

.faq__title {
    margin: .35em 0 clamp(24px, 3vw, 40px);
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2.5625rem, 4.1vw, 4rem);
    text-align: center;
    color: var(--c-accent);
}

.faq__item { border-top: 1px solid var(--c-line); }
.faq__item:last-of-type { border-bottom: 1px solid var(--c-line); }

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px;
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border-right: 1.6px solid var(--c-accent);
    border-bottom: 1.6px solid var(--c-accent);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s;
}

.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item summary:focus-visible { border-radius: 6px; outline-offset: 2px; }

.faq__answer { max-width: 44em; padding: 0 4px 22px; font-size: 1.0625rem; color: var(--c-ink-soft); }
.faq__answer > * + * { margin-top: .6em; }
.faq__answer :where(ul, ol) { margin-bottom: 0; padding-left: 1.3em; }
.faq__answer :where(h1) { margin: 0; font-size: 1.1em; }
.faq__answer a { color: var(--c-accent); text-underline-offset: 3px; }
