import { ready } from '@site/js/utils/dom.js';
import Tabs from '@core/js/plugins/mtc_tabs.js';

/**
 * FAQ section accordion (vanilla).
 *
 * Each `<div class="faqQuestionAnswerWrap">` becomes an accordion via the
 * Tabs class in `mode: 'accordion'` — clicking the heading slides the
 * paired answer open and closes the previously-open one.
 */
ready(() => {
    document.querySelectorAll('.faqQuestionAnswerWrap').forEach((el) => {
        new Tabs(el, { mode: 'accordion' });
    });
});
