v3.26.1
Stock-Based Compensation Expense Included in Consolidated Statements of Income (Detail) - USD ($)
$ in Thousands
12 Months Ended
May 31, 2026
May 31, 2025
May 31, 2024
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Stock-based compensation expense, included in SG&A $ 33,237 $ 27,042 $ 25,925
Stock-based compensation expense, included in restructuring expense (389)    
Total stock-based compensation cost 32,848 27,042 25,925
Income tax (benefit) (4,427) (3,685) (3,627)
Total stock-based compensation cost, net of tax $ 28,421 $ 23,357 $ 22,298