Leases - Schedule of Supplemental Cash Flow and Other Information Related to Leases (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Leases [Abstract] | |||
| Operating cash flows from operating leases | $ 101.0 | $ 111.5 | $ 121.7 |
| Right-of-use assets obtained in exchange for operating lease liabilities (non-cash) | 17.5 | 3.0 | 24.9 |
| Right-of-use asset reductions related to operating lease modifications and terminations (non-cash) | $ (5.7) | $ (14.4) | $ (23.0) |