XML 82 R53.htm IDEA: XBRL DOCUMENT v3.24.1
Derivative Financial Instruments and Hedging Activities - Commodity Derivatives (Details) - Commodity derivatives - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Feb. 29, 2024
Feb. 28, 2023
Feb. 29, 2024
Feb. 28, 2023
Cost of goods sold        
Derivative [Line Items]        
Pretax gains (losses) reclassified from AOCI related to cash flow hedges $ 2,585 $ (9,129) $ 10,667 $ (16,058)
Cash Flow Hedging        
Derivative [Line Items]        
Pretax gains (losses) recorded in OCI related to cash flow hedges $ 7,932 $ 20,830 $ 1,622 $ (8,759)