v3.26.3
Derivative Financial Instruments and Hedging Activities - Schedule of Gain (Loss) Recognized in Earnings (Detail) - USD ($)
$ in Thousands
3 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Derivative [Line Items]    
Gain (Loss) Recognized in Earnings $ (140) $ 627
Commodity Contracts | Location, Statement of Income, Balance [Axis]: us-gaap:CostOfRevenue | Continuing Operations    
Derivative [Line Items]    
Gain (Loss) Recognized in Earnings (130) (47)
Foreign Currency Exchange Contracts | Location, Statement of Income, Balance [Axis]: us-gaap:OtherNonoperatingIncomeExpense | Continuing Operations    
Derivative [Line Items]    
Gain (Loss) Recognized in Earnings $ (10) $ 674