/* FAQ - flex layout `faq`
   Live .block-faq: items ruled with 1px #E0E0E0, 24px/48px question padding,
   19.2px question, plus icon rotating 45° when open, answer sliding open. */
.faq {
    width: 100%;
    max-width: 100%;
    background: var(--background);

    & .faq_title {
        margin: 0 0 24px;
        font-size: 48px;
        font-weight: 500;
        text-transform: uppercase;
        color: var(--headings);

        @media (max-width: 768px) { font-size: 32px; }
    }

    & .faq_item {
        margin-bottom: 16px;
        border-bottom: 1px solid var(--grey-2);
    }

    & .faq_question {
        margin: 0;
        font-size: 19.2px;
        text-transform: none;
    }

    & .faq_toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0;
        padding: 24px 48px 24px 0;
        border: 0;
        background: none;
        color: var(--headings);
        font-family: var(--font-display);
        font-size: 19.2px;
        font-weight: 500;
        line-height: 1.3;
        text-align: left;
        cursor: pointer;
        transition: color .3s var(--ease);

        & span {
            color: inherit;
            font-family: inherit;
            font-size: inherit;
            font-weight: inherit;
        }

        &:hover { color: var(--text-muted); }

        &:focus-visible {
            outline: 2px solid var(--secondary);
            outline-offset: 4px;
            border-radius: var(--radius);
        }
    }

    & .faq_icon {
        position: absolute;
        top: 50%;
        right: 0;
        width: 24px;
        height: 24px;
        color: var(--primary);
        transform: translateY(-50%);
        transition: transform .3s var(--ease);
    }

    & .faq_item.is_open .faq_icon {
        transform: translateY(-50%) rotate(45deg);
    }

    & .faq_answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s var(--ease);

        &[hidden] { display: none; }
    }

    & .faq_answer_inner {
        padding: 0 32px 24px 0;

        & p {
            margin: 0 0 12px;
            font-size: 14px;
            line-height: 25.6px;
            color: var(--text);
        }

        & p:last-child { margin-bottom: 0; }
        & a { color: var(--secondary); }
    }
}
