/**
 * Vacancies operational board interactions.
 */
(function () {
    'use strict';

    document.querySelectorAll('[data-vacancy-card]').forEach(function (card) {
        card.addEventListener('keydown', function (e) {
            if (e.key === 'Enter' && e.target === card) {
                var link = card.querySelector('[data-vacancy-open]');
                if (link) {
                    window.location.href = link.getAttribute('href');
                }
            }
        });
    });
})();
