--- // Pre-selects the install-instructions tab that matches the visitor's OS. // // This piggybacks on Starlight's synced-tabs mechanism rather than fighting it. // A `` restores its active tab from // `localStorage["starlight-synced-tabs__install-os"]` via a script Starlight // inlines *before* the tabs render (so there is no flash of the wrong tab). All // we do here is seed that same key with the detected OS — and only when the // visitor has not already chosen a tab themselves, so a manual choice always wins. // // Requirements (mirrors Starlight's own restore script): // - Must be placed *before* the `` it targets, so this runs first. // - The stored value must equal one of the TabItem labels exactly // ("Linux" / "macOS" / "Windows"). // - Inlined, so it runs during parse before the restore script's // connectedCallback and paint. ---