v3.26.1
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
[1] Of the $4.6 million of other restructuring costs incurred during the year ended May 31, 2024, $3.3 million is associated with the impairment of an indefinite-lived tradename. See Note C, "Goodwill and Other Intangible Assets," of the Consolidated Financial Statements below for further description.