/**
 * Yoast FAQ block — AU-style accordion.
 * Styles the native yoast/faq-block to match the theme's custom FAQ block:
 * numbered rows, "+" toggle, one-open-at-a-time. Collapse styles only apply
 * once JS adds `faq-au-ready`, so without JS the block stays a plain Q&A list.
 */

.wp-block-yoast-faq-block.faq-au-ready {
    max-width: 1100px;
    width: 100%;
    margin: 2.5rem auto 0;
    border-top: 1px solid var(--color-lighter-blue, #b7c9db);
}

.faq-au-ready .schema-faq-section {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-lighter-blue, #b7c9db);
    padding: 2.25rem 0;
    margin: 0;
}

.faq-au-index {
    flex: 0 0 auto;
    min-width: 65px;
    font-weight: 700;
    color: var(--color-lighter-blue, #b7c9db);
    font-size: 36px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    transition: color .25s ease, font-size .25s ease;
}

.schema-faq-section.active-row .faq-au-index {
    color: var(--color-light-blue, #3c7dbf);
    font-size: 48px;
}

.faq-au-body {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-au-ready .schema-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    cursor: pointer;
    color: var(--color-navy-blue, #002244);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

.faq-au-ready .schema-faq-question:focus-visible {
    outline: 2px solid var(--color-light-blue, #3c7dbf);
    outline-offset: 4px;
}

.faq-au-qtext {
    max-width: 80%;
    text-align: left;
}

.faq-au-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-lighter-blue, #b7c9db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-blue, #002244);
    transition: background .25s ease, color .25s ease;
}

.faq-au-icon svg {
    transition: transform .25s ease;
}

.schema-faq-section.active-row .faq-au-icon {
    background: var(--color-light-blue, #3c7dbf);
    color: #fff;
}

.schema-faq-section.active-row .faq-au-icon svg {
    transform: rotate(45deg);
}

.faq-au-ready .schema-faq-answer {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height .3s ease, margin-top .3s ease;
    color: var(--color-navy-blue, #002244);
    font-size: 1.125rem;
    line-height: 1.6;
}

.schema-faq-section.active-row .schema-faq-answer {
    margin-top: .9rem;
}

@media (max-width: 768px) {
    .faq-au-ready .schema-faq-section {
        gap: .9rem;
        padding: 1.5rem 0;
    }

    .faq-au-index {
        min-width: 34px;
        font-size: 20px;
    }

    .schema-faq-section.active-row .faq-au-index {
        font-size: 28px;
    }

    .faq-au-ready .schema-faq-question {
        font-size: 1.125rem;
    }

    .faq-au-ready .schema-faq-answer {
        font-size: 1rem;
    }

    .faq-au-icon {
        width: 40px;
        height: 40px;
    }
}
