v3.26.1
Stock-Based Compensation - Additional Information (Detail) - USD ($)
shares in Thousands, $ 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]      
Common stock authorized for issuance 8,558,849    
Pre-tax stock-based compensation expense $ 13,734 $ 16,186 $ 16,688
Pre-tax stock-based compensation from continuing operations [1] 13,734 13,521 13,155
Stock based compensation expense, after tax 10,416 12,107 14,999
Unrecognized compensation cost $ 26,271    
Non-Qualified Stock Options      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Purchase price percentage of fair market value on the grant date for stock options 100.00%    
Stock options expiration period 10 years    
Pre-tax stock-based compensation expense   888 1,485
Total intrinsic value of stock options exercised $ 968    
Cash received from the exercise of stock options 898    
Tax benefit realized from share-based payment awards $ 1,005    
Non-Qualified Stock Options | First Anniversary | Issued On or After June 30, 2011      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Stock options vesting percentage 33.00%    
Non-Qualified Stock Options | Second Anniversary | Issued On or After June 30, 2011      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Stock options vesting percentage 33.00%    
Non-Qualified Stock Options | Third Anniversary | Issued On or After June 30, 2011      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Stock options vesting percentage 33.00%    
Non-Qualified Stock Options | Maximum      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Purchase price percentage of fair market value on the grant date for stock options 100.00%    
Service-Based Restricted Common Shares      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Pre-tax stock-based compensation expense $ 7,260 $ 13,901 $ 14,046
Pre-tax stock-based compensation, period of recognition 3 years    
Performance Shares      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Stock options expiration period 3 years    
[1] See “Use of Non-GAAP Financial Measures and Definitions” for additional information.