v3.26.3
Restructuring - Summary of Activity in Restructuring Reserves (Detail) - USD ($)
$ in Thousands
3 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Restructuring Cost and Reserve [Line Items]    
Charges (credits) to expense $ 5,157 $ 8,814
MAP 2025    
Restructuring Cost and Reserve [Line Items]    
Restructuring Reserve, Beginning Balance 7,966 13,487
Charges (credits) to expense 645 8,814
Cash payments charged against reserve (2,863) (6,939)
Non-cash charges and other adjustments (52) 105
Restructuring Reserve, Ending Balance 5,696 15,467
MAP 2025 | Severance and benefit costs    
Restructuring Cost and Reserve [Line Items]    
Restructuring Reserve, Beginning Balance 7,849 13,055
Charges (credits) to expense (245) 7,076
Cash payments charged against reserve (1,890) (5,286)
Non-cash charges and other adjustments (52) 188
Restructuring Reserve, Ending Balance 5,662 15,033
MAP 2025 | Facility Closure and Other Related Costs    
Restructuring Cost and Reserve [Line Items]    
Restructuring Reserve, Beginning Balance 117 432
Charges (credits) to expense 890 1,738
Cash payments charged against reserve (973) (1,653)
Non-cash charges and other adjustments 0 (83)
Restructuring Reserve, Ending Balance 34 $ 434
2026 Restructuring Action    
Restructuring Cost and Reserve [Line Items]    
Restructuring Reserve, Beginning Balance 6,821  
Charges (credits) to expense 4,512  
Cash payments charged against reserve (7,571)  
Non-cash charges and other adjustments (54)  
Restructuring Reserve, Ending Balance 3,708  
2026 Restructuring Action | Severance and benefit costs    
Restructuring Cost and Reserve [Line Items]    
Restructuring Reserve, Beginning Balance 6,702  
Charges (credits) to expense 4,027  
Cash payments charged against reserve (7,024)  
Non-cash charges and other adjustments (54)  
Restructuring Reserve, Ending Balance 3,651  
2026 Restructuring Action | Facility Closure and Other Related Costs    
Restructuring Cost and Reserve [Line Items]    
Restructuring Reserve, Beginning Balance 119  
Charges (credits) to expense 485  
Cash payments charged against reserve (547)  
Non-cash charges and other adjustments 0  
Restructuring Reserve, Ending Balance $ 57