Assets Held for Sale and Divestiture - Additional Information (Detail) - USD ($) $ in Millions |
3 Months Ended | 12 Months Ended | |||
|---|---|---|---|---|---|
Aug. 31, 2025 |
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
Mar. 02, 2026 |
|
| Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] | |||||
| Consideration from sale of business | $ 160.0 | ||||
| Total consideration | $ 121.7 | $ 121.7 | $ 0.0 | $ 0.0 | |
| Gain on sale of business | 76.4 | 76.4 | $ 0.0 | $ 0.0 | |
| Revenue recognized | 1.5 | ||||
| Maximum | |||||
| Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] | |||||
| Additional contingent consideration | $ 3.5 | ||||
| Other Current Liabilities | |||||
| Income Statement, Balance Sheet and Additional Disclosures by Disposal Groups, Including Discontinued Operations [Line Items] | |||||
| Liability representing fair value of services expect to provide | $ 1.7 | ||||