v3.25.2
Restructuring - Summary of Activity in Restructuring Reserves (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Restructuring Cost and Reserve [Line Items]      
Additions charged to expense $ 24,979 $ 30,008 $ 15,465
MAP 2025      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 17,369 2,717  
Additions charged to expense 24,979 30,008 11,660
Cash payments charged against reserve (28,466) (10,804)  
Non-cash charges and other adjustments (395) (4,552)  
Restructuring Reserve, Ending Balance 13,487 17,369 2,717
MAP 2025 | Severance and benefit costs (credits)      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 17,351 2,717  
Additions charged to expense 17,693 23,982 8,502
Cash payments charged against reserve (22,126) (9,381)  
Non-cash charges and other adjustments 137 33  
Restructuring Reserve, Ending Balance 13,055 17,351 2,717
MAP 2025 | Facility Closure and Other Related Costs      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 18 0  
Additions charged to expense 6,754 1,471 621
Cash payments charged against reserve (6,340) (1,423)  
Non-cash charges and other adjustments 0 (30)  
Restructuring Reserve, Ending Balance 432 18 0
MAP 2025 | Other Restructuring Costs      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 0 0  
Additions charged to expense 532 4,555 2,537
Cash payments charged against reserve 0 0  
Non-cash charges and other adjustments (532) (4,555)  
Restructuring Reserve, Ending Balance $ 0 $ 0 $ 0