/* Scoped to: ss-technology-template-finance_work */
(function() {
  'use strict';
  var componentRoots = document.querySelectorAll('[data-component-slug="ss-technology-template-finance_work"]');
  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-technology-template-finance_work"] ~ ' + 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
    const tabs = document.querySelectorAll(".tab-heading"); const contents = document.querySelectorAll(".tab-content"); function activateTab(index) { tabs.forEach(tab => { tab.classList.toggle("active", Number(tab.dataset.index) === index); }); contents.forEach(content => { content.classList.toggle("hidden", Number(content.dataset.index) !== index); }); } tabs.forEach(tab => { tab.addEventListener("click", () => { activateTab(Number(tab.dataset.index)); }); }); activateTab(0);
  });
})();