v3.26.1
DERIVATIVES - Schedule of Derivative Location On Balance Sheet (Details) - USD ($)
$ in Thousands
Feb. 28, 2026
Aug. 31, 2025
Commodity | Prepaid Expenses and Other Current Assets    
Derivatives, Fair Value [Line Items]    
Derivative assets (other current assets) $ 12,283 $ 14,957
Commodity | Other Noncurrent Assets    
Derivatives, Fair Value [Line Items]    
Derivative assets (other current assets) 44,899 43,944
Commodity | Accounts Payable and Accrued Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) 5,715 282
Commodity | Other Noncurrent Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) 465 0
Foreign exchange | Prepaid Expenses and Other Current Assets    
Derivatives, Fair Value [Line Items]    
Derivative assets (other current assets) 3,936 4,809
Foreign exchange | Accounts Payable and Accrued Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) 873 809
Foreign exchange | Other Noncurrent Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) $ 0 $ 12