v3.26.1
Restructuring - Summary of Activity in Restructuring Reserves (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
May 31, 2024
Restructuring Cost and Reserve [Line Items]      
Additions charged to expense $ 42,612 $ 24,979 $ 30,008
MAP 2025      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 13,487 17,369  
Additions charged to expense 18,194 24,979 30,008
Cash payments charged against reserve (23,802) (28,466)  
Non-cash charges and other adjustments 87 (395)  
Restructuring Reserve, Ending Balance 7,966 13,487 17,369
MAP 2025 | Severance and benefit costs (credits)      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 13,055 17,351  
Additions charged to expense 10,785 17,693 23,982
Cash payments charged against reserve (16,121) (22,126)  
Non-cash charges and other adjustments 130 137  
Restructuring Reserve, Ending Balance 7,849 13,055 17,351
MAP 2025 | Facility Closure and Other Related Costs      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 432 18  
Additions charged to expense 7,409 6,754 1,471
Cash payments charged against reserve (7,681) (6,340)  
Non-cash charges and other adjustments (43) 0  
Restructuring Reserve, Ending Balance 117 432 18
MAP 2025 | Other Restructuring Costs      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 0 0  
Additions charged to expense 0 532 4,555
Cash payments charged against reserve 0 0  
Non-cash charges and other adjustments 0 (532)  
Restructuring Reserve, Ending Balance 0 0 $ 0
2026 Restructuring Action      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 0    
Additions charged to expense 24,418    
Cash payments charged against reserve (17,951)    
Non-cash charges and other adjustments 354    
Restructuring Reserve, Ending Balance 6,821 0  
2026 Restructuring Action | Severance and benefit costs (credits)      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 0    
Additions charged to expense 23,003    
Cash payments charged against reserve (16,655)    
Non-cash charges and other adjustments 354    
Restructuring Reserve, Ending Balance 6,702 0  
2026 Restructuring Action | Facility Closure and Other Related Costs      
Restructuring Cost and Reserve [Line Items]      
Restructuring Reserve, Beginning Balance 0    
Additions charged to expense 1,415    
Cash payments charged against reserve (1,296)    
Non-cash charges and other adjustments 0    
Restructuring Reserve, Ending Balance $ 119 $ 0