Derivative Instruments and Hedging Activities - Schedule of Gain (Loss) Recognized in Earnings for Economic (Non-Designated) Derivative Financial Instruments (Detail) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
May 31, 2026 |
May 31, 2025 |
|
| Derivative [Line Items] | ||
| Gain (Loss) Recognized in Earnings | $ 7,534 | $ (5,511) |
| Commodity Contracts | Cost of Goods Sold | Continuing Operations | ||
| Derivative [Line Items] | ||
| Gain (Loss) Recognized in Earnings | 415 | 600 |
| Foreign Currency Exchange Contracts | Miscellaneous Expense, Net | Continuing Operations | ||
| Derivative [Line Items] | ||
| Gain (Loss) Recognized in Earnings | $ 7,119 | $ (6,111) |