Related Party Transactions - Schedule of reconciliation of total net transfers to and from the parent to the corresponding amount presented in the consolidated and combined statement of cash flows (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
|
| Related Party Transaction [Line Items] | |||
| Less: depreciation expense allocated from the Former Parent | $ 84.2 | $ 66.0 | $ 65.3 |
| Stock-based compensation | 13.9 | 11.0 | 10.3 |
| Former Parent | |||
| Related Party Transaction [Line Items] | |||
| Total net transfers to the Former Parent per consolidated and combined changes in equity | 0.0 | 0.0 | (32.7) |
| Less: non-cash net asset contribution from the Former Parent | 0.0 | 0.0 | 7.6 |
| Less: depreciation expense allocated from the Former Parent | 0.0 | 0.0 | 1.2 |
| Stock-based compensation | 0.0 | 0.0 | 6.1 |
| Total net transfers to the Former Parent per consolidated and combined statement of cash flows | $ 0.0 | $ 0.0 | $ (47.6) |