XML 77 R57.htm IDEA: XBRL DOCUMENT v3.24.2
Restructuring - Additional Information (Detail) - USD ($)
12 Months Ended
May 31, 2024
May 31, 2023
May 31, 2022
MAP to Growth      
Restructuring Cost And Reserve [Line Items]      
Restructuring costs $ 0 $ 3,800,000 $ 6,300,000
Restructuring, Incurred Cost, Statement of Income or Comprehensive Income [Extensible Enumeration] Restructuring charges Restructuring charges Restructuring charges
MAP 2025      
Restructuring Cost And Reserve [Line Items]      
Total expected costs increased, amount $ 21,900,000    
MAP 2025 | Severance and benefit charges      
Restructuring Cost And Reserve [Line Items]      
Total expected costs increased, amount 19,500,000    
MAP 2025 | Facility Closure and Other Related Costs      
Restructuring Cost And Reserve [Line Items]      
Total expected costs increased, amount $ 2,400,000