/**
* Synchronizes tab switching across tab groups that share the same data-tab-sync value.
* Add data-tab-sync="group-id" to the tab container (parent of tab buttons).
* Tab buttons must have data-tab with matching values across synchronized groups.
* Programmatic clicks (isTrusted: false) are ignored to avoid sync loops.
*
* Optional data-tab-sync-direction:
* - "down-only": only sync to tab groups that appear later in the DOM (below the clicked one).
* E.g. with A, B, C: A syncs B and C; B syncs C; C syncs none.
*
* @example Basic usage (bidirectional sync)
*