v3.25.2
Fair Value and Derivatives - Schedule of Gain Loss From Derivatives Not Designated As Hedging Instruments Statements of Financial Performance And Location (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Not Designated as Hedging Instrument [Member] | Forward Contracts [Member] | Other Net [Member]      
Derivative [Line Items]      
Foreign currency forward contracts $ 484 $ 88 $ (10,092)