v3.25.2
Income Taxes - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2025
May 31, 2024
May 31, 2023
Income Taxes [Line Items]      
Foreign tax credits $ 9,373 $ 7,124 $ 5,324
Research and development credit 2,078 615 1,385
Reduction in deferred tax liability 22,801    
Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued 385 246 $ 145
Unrecognized Tax Benefits that Would Impact Effective Tax Rate 3,849 $ 2,739  
Undistributed earnings in foreign subsidiaries 294,933    
Undistributed earnings in foreign subsidiaries not permanently reinvested 124,734    
Deferred tax on undistributed foreign earnings $ 170,199    
Tax Year 2024      
Income Taxes [Line Items]      
Minimum effective tax rate 15.00%