v3.25.2
Pension Plans - Changes Recognized in Other Comprehensive Income, Pension (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Amounts recognized as a component of net periodic benefit cost:      
Total recognized in other comprehensive loss (income) $ (11,986) $ (64,117) $ (4,619)
Pension Benefits | U.S. Plans      
Changes in plan assets and benefit obligations recognized in other comprehensive loss (income):      
Net (gain) loss arising during the year (9,393) (61,722)  
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) (8,613) (16,822)  
Total recognized in other comprehensive loss (income) (18,008) (78,546)  
Pension Benefits | Non-U.S. Plans      
Changes in plan assets and benefit obligations recognized in other comprehensive loss (income):      
Prior service cost 299 (1)  
Net (gain) loss arising during the year 5,129 3,075  
Effect of exchange rates on amounts included in AOCI 570 133  
Amounts recognized as a component of net periodic benefit cost:      
Amortization or curtailment recognition of prior service (cost) benefit (159) 127  
Amortization or settlement recognition of net (loss) (1,196) (783)  
Total recognized in other comprehensive loss (income) $ 4,643 $ 2,551