/* Scoped to: ss-sports-running-faq */
(function() {
  'use strict';
  var componentRoots = document.querySelectorAll('[data-component-slug="ss-sports-running-faq"]');
  componentRoots.forEach(function(componentRoot) {
    // Helper to query within component, with fallback to document for sibling elements
    var $ = function(sel) { 
      return componentRoot.querySelector(sel) || document.querySelector('[data-component-slug="ss-sports-running-faq"] ~ ' + sel) || document.querySelector(sel);
    };
    var $$ = function(sel) { 
      var results = componentRoot.querySelectorAll(sel);
      return results.length ? results : document.querySelectorAll(sel);
    };
    // Original component JS runs in this scope
    var faqButtons = componentRoot.querySelectorAll('.border button'); faqButtons.forEach(function(btn) { btn.addEventListener('click', function() { var parent = this.parentElement; var answer = parent.querySelector('div.px-6.pb-5'); var icon = this.querySelector('svg'); if (answer) answer.classList.toggle('hidden'); if (icon) icon.classList.toggle('rotate-180'); parent.classList.toggle('bg-gray-50'); parent.classList.toggle('bg-white'); }); });
  });
})();