XML 86 R57.htm IDEA: XBRL DOCUMENT v3.25.1
Derivative Financial Instruments and Hedging Activities - Commodity Derivatives (Details) - Commodity derivatives - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Feb. 28, 2025
Feb. 29, 2024
Feb. 28, 2025
Feb. 29, 2024
Cost of goods sold        
Derivative [Line Items]        
Pretax gains (losses) reclassified from AOCI related to cash flow hedges $ 3,568 $ 2,585 $ 8,097 $ 10,667
Cash Flow Hedging        
Derivative [Line Items]        
Pretax gains (losses) recorded in OCI related to cash flow hedges $ 6 $ 7,932 $ 1,829 $ 1,622