Learning-to-Optimize with PAC-Bayesian Guarantees: Theoretical Considerations and Practical Implementation (Journal of Machine Learning Research, 2026)