Treasury Stock - Schedule of repurchase of common stock (Details) - USD ($) $ in Millions |
12 Months Ended | 26 Months Ended | ||||||
|---|---|---|---|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
May 31, 2026 |
Mar. 18, 2026 |
Dec. 17, 2025 |
Mar. 19, 2025 |
Mar. 20, 2024 |
|
| Equity, Class of Treasury Stock [Line Items] | ||||||||
| Total current Board authorizations | $ 485.0 | $ 485.0 | ||||||
| Purchases of treasury stock at cost | (268.6) | $ (70.9) | $ (156.8) | (302.0) | ||||
| Remaining Board authorization at May 31, 2026 | 183.0 | $ 183.0 | ||||||
| Board Authorized Share Repurchase Program | ||||||||
| Equity, Class of Treasury Stock [Line Items] | ||||||||
| Total current Board authorizations | $ 297.0 | $ 80.0 | $ 53.4 | $ 54.6 | ||||
| Purchases of treasury stock at cost | $ (150.6) | |||||||