(gina.ready(function onGinaReady($){
/**
 * Roadmap handler
 *
 * Reveal hidden roadmap entries on click. Extracted from an inline <script>
 * in roadmap.html so the public bundle no longer needs a Content-Security-Policy
 * `script-src 'unsafe-inline'` reliance (ISO 27001 security-headers hardening).
 */

var RoadmapHandler = ( function onRoadmapHandled() {
    var self = {};

    var init = function() {
        handle();
    }

    var handle = function () {
        // Reveal hidden roadmap entries on click — one-shot, button hides itself
        // via `.is-expanded` on the parent section (`.roadmap-version` for a
        // changelog version's extra entries, `.roadmap-upcoming` for the "À venir"
        // drafts). No collapse path : users who want to re-hide a version can
        // collapse it via the outer `<summary>` click.
        document.addEventListener('click', function (e) {
            var btn = e.target.closest('[data-roadmap-more]');
            if (!btn) return;
            e.preventDefault();
            var section = btn.closest('.roadmap-version, .roadmap-upcoming');
            if (!section) return;
            section.classList.add('is-expanded');
            btn.setAttribute('aria-expanded', 'true');
        });
    }

    init()

})();
},window[originalContext]));
