v3.26.1
DERIVATIVES - Schedule of Derivative Location On Balance Sheet (Details) - USD ($)
$ in Thousands
May 31, 2026
Aug. 31, 2025
Commodity | Prepaid Expenses and Other Current Assets    
Derivatives, Fair Value [Line Items]    
Derivative assets (other current assets) $ 10,927 $ 14,957
Commodity | Other Noncurrent Assets    
Derivatives, Fair Value [Line Items]    
Derivative assets (other current assets) 39,169 43,944
Commodity | Accounts Payable and Accrued Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) 4,301 282
Commodity | Other Noncurrent Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) 386 0
Foreign exchange | Prepaid Expenses and Other Current Assets    
Derivatives, Fair Value [Line Items]    
Derivative assets (other current assets) 1,027 4,809
Foreign exchange | Accounts Payable and Accrued Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) 802 809
Foreign exchange | Other Noncurrent Liabilities    
Derivatives, Fair Value [Line Items]    
Derivative liabilities (accrued expenses and other payables) $ 0 $ 12