Pretax Net Actuarial Loss and Prior Service (Cost) Credits Recognized in Accumulated Other Comprehensive Income (Loss) not Affecting Retained Earnings, Pension (Detail) - Pension Benefits - USD ($) $ in Thousands |
May 31, 2024 |
May 31, 2023 |
|---|---|---|
| U.S. Plans | ||
| Schedule of Net Periodic Benefit Costs and Assumptions for Defined Benefit Postretirement Plans [Line Items] | ||
| Net actuarial loss | $ (126,481) | $ (205,025) |
| Prior service (costs) credit | (8) | (10) |
| Total recognized in accumulated other comprehensive income not affecting retained earnings | (126,489) | (205,035) |
| Non-U.S. Plans | ||
| Schedule of Net Periodic Benefit Costs and Assumptions for Defined Benefit Postretirement Plans [Line Items] | ||
| Net actuarial loss | (32,209) | (29,764) |
| Prior service (costs) credit | 424 | 530 |
| Total recognized in accumulated other comprehensive income not affecting retained earnings | $ (31,785) | $ (29,234) |