XML 48 R40.htm IDEA: XBRL DOCUMENT v3.23.4
Restructuring and Other Income, Net - Additional Information (Detail) - USD ($)
3 Months Ended 6 Months Ended
Oct. 31, 2022
Nov. 30, 2023
Nov. 30, 2022
Nov. 30, 2023
Nov. 30, 2022
Restructuring Cost and Reserve [Line Items]          
Restructuring and other expense, net   $ 0 $ (4,300,000) $ 0 $ (4,200,000)
Restructuring liabilities   $ 0   $ 0  
WSP Joint Venture          
Restructuring Cost and Reserve [Line Items]          
Net cash proceeds $ 20,800,000        
Pre-tax gain on sale of joint venture facility $ 3,900,000