/** * Wires a persistent scroll container to the per-route scroll memory. * * The decision logic is pure and lives in `scrollRestore.ts`; this is the thin * DOM/SvelteKit half. Call it once at component init (SvelteKit's navigation * hooks must be registered during initialisation, not from `onMount`), passing * a getter for the element — the element itself is bound later, so a getter is * the only way to hand it over from the top of `