v3.26.3
Equity - Additional Information (Detail) - USD ($)
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Jan. 07, 2026
Jan. 08, 2025
Stockholders Equity Note [Line Items]          
Shares available for grant 1,500,000 800,000 1,000,000    
Performance based share based compensation and dividend equivalent rights 382,000 [1] 300,000 400,000    
Percentage of weighted EBITDA 40.00% 60.00% 60.00%    
percentage of weighted ROIC 30.00% 20.00% 20.00%    
Percentage of weighted peer group TSR 30.00% 20.00% 20.00%    
Authorized amount under stock repurchase program $ 100,000,000        
Unamortized compensation cost of restricted stock unit grants $ 16,900,000        
Unamortized compensation cost of restricted stock unit grants expected to be recognized over weighted average period 2 years        
Number of shares repurchased   517,000 38,000    
Share repurchase program, current authorization of shares purchased 313,000        
Number of shares repurchased amount   $ 22,200,000 $ 1,300,000    
Share repurchase program, current authorization of shares purchased amount $ 13,300,000        
Accrued excise taxes 0 100,000 0    
Remaining authorized repurchase amount $ 64,500,000       $ 100,000,000
Repurchase program expiration date Jan. 31, 2027        
Selling, Administrative and Cost of Revenue          
Stockholders Equity Note [Line Items]          
Restricted stock compensation expense $ 15,500,000 17,500,000 17,100,000    
Minimum          
Stockholders Equity Note [Line Items]          
Payout percentage 0.00%        
Vesting period of compensation expense 1 year        
Maximum          
Stockholders Equity Note [Line Items]          
Payout percentage 200.00%        
Vesting period of compensation expense 3 years        
Unvested Restricted Stock Grants          
Stockholders Equity Note [Line Items]          
Fair value of awards granted $ 18,700,000 $ 17,500,000 $ 17,300,000    
2021 Stock Incentive Plan          
Stockholders Equity Note [Line Items]          
Number of shares authorized 3,200,000     1,000,000  
2017 Amended and Restated Stock Incentive Plan          
Stockholders Equity Note [Line Items]          
Number of shares reserved 700,000        
[1] Includes 180 thousand time-based and 202 thousand performance-based restricted stock unit awards.