Restructuring - Summary of Charges Recorded in Connection with Restructuring by Reportable Segment (Parenthetical) (Details) - USD ($) $ in Thousands |
12 Months Ended | ||||
|---|---|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
|||
| Restructuring Cost and Reserve [Line Items] | |||||
| Current Year Charges | $ 42,612 | $ 24,979 | $ 30,008 | ||
| MAP 2025 | |||||
| Restructuring Cost and Reserve [Line Items] | |||||
| Current Year Charges | 18,194 | 24,979 | 30,008 | ||
| MAP 2025 | Other Restructuring Costs | |||||
| Restructuring Cost and Reserve [Line Items] | |||||
| Current Year Charges | 0 | 532 | 4,555 | ||
| MAP 2025 | PCG Segment | |||||
| Restructuring Cost and Reserve [Line Items] | |||||
| Current Year Charges | 5,840 | 6,126 | 10,155 | ||
| MAP 2025 | PCG Segment | Other Restructuring Costs | |||||
| Restructuring Cost and Reserve [Line Items] | |||||
| Current Year Charges | [1] | $ 0 | $ 0 | 4,555 | |
| MAP 2025 | PCG Segment | Other Restructuring Costs | Trade Name | |||||
| Restructuring Cost and Reserve [Line Items] | |||||
| Impairment of indefinite-lived assets | $ 3,300 | ||||
| |||||