'use strict';(function(){var root=document.querySelector('[data-frozen-evidence]');if(!root)return;var tabs=[].slice.call(root.querySelectorAll('[data-evidence-tab]'));var panels=[].slice.call(root.querySelectorAll('[data-evidence-panel]'));function openTab(code,focus){tabs.forEach(function(t){var on=t.getAttribute('data-evidence-tab')===code;t.classList.toggle('is-active',on);t.setAttribute('aria-selected',on?'true':'false');});panels.forEach(function(p){p.classList.toggle('is-active',p.getAttribute('data-evidence-panel')===code);});try{history.replaceState(null,'','#'+code);}catch(e){}if(focus){var p=root.querySelector('[data-evidence-panel="'+code+'"]');if(p)p.focus();}}tabs.forEach(function(t){t.addEventListener('click',function(){openTab(t.getAttribute('data-evidence-tab')||'overview',false);});});var initial=(location.hash||'').replace('#','');if(initial&&root.querySelector('[data-evidence-panel="'+initial+'"]'))openTab(initial,false);})();
