Derivative Financial Instruments and Hedging Activities - Schedule of Foreign Currency Gain (Loss) Recognized in OCI for Non-Derivative Instruments Designated as Net Investment Hedges (Detail) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Feb. 28, 2026 |
Feb. 28, 2025 |
Feb. 28, 2026 |
Feb. 28, 2025 |
|
| Foreign Currency Net Investment Hedge | Non-derivative Designated As Hedging Instrument | ||||
| Derivative [Line Items] | ||||
| Net gain (loss) recognized in OCI | $ (1,960) | $ 1,842 | $ (4,265) | $ 4,335 |