v3.26.1
Pension Plans - Changes Recognized in Other Comprehensive Income, Pension (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
May 31, 2024
Amounts recognized as a component of net periodic benefit cost:      
Total recognized in other comprehensive (income) loss $ (44,343) $ (11,986) $ (64,117)
Pension Benefits | U.S. Plans      
Changes in plan assets and benefit obligations recognized in other comprehensive loss (income):      
Prior service cost 1    
Net (gain) loss arising during the year (44,904) (9,393)  
Amounts recognized as a component of net periodic benefit cost:      
Amortization or curtailment recognition of prior service (cost) benefit (2) (2)  
Amortization or settlement recognition of net (loss) (5,794) (8,613)  
Total recognized in other comprehensive (income) loss (50,699) (18,008)  
Pension Benefits | Non-U.S. Plans      
Changes in plan assets and benefit obligations recognized in other comprehensive loss (income):      
Prior service cost   299  
Net (gain) loss arising during the year (5,945) 5,129  
Effect of exchange rates on amounts included in AOCI (77) 570  
Amounts recognized as a component of net periodic benefit cost:      
Amortization or curtailment recognition of prior service (cost) benefit 106 (159)  
Amortization or settlement recognition of net (loss) (1,225) (1,196)  
Total recognized in other comprehensive (income) loss $ (7,141) $ 4,643