v3.26.1
Interim Financial Statements - Additional Information (Detail) - USD ($)
3 Months Ended 9 Months Ended
May 31, 2026
May 31, 2025
May 31, 2026
May 31, 2025
Organization, Consolidation and Presentation of Financial Statements [Line Items]        
Authorized amount under stock repurchase program $ 100,000,000   $ 100,000,000  
Remaining authorized repurchase amount $ 64,500,000   $ 64,500,000  
Number of shares repurchased 0      
Share repurchase program, current authorization of shares purchased   507,000 313,000  
Share repurchase program, current authorization of shares purchased amount     $ 13,300,000 $ 21,800,000
Repurchase program expiration date     Jan. 31, 2027  
Greenbrier-Astra Rail B.V.        
Organization, Consolidation and Presentation of Financial Statements [Line Items]        
Ownership percentage by parent 75.00%   75.00%