v3.26.1
Derivative Instruments and Hedging Transactions - Summary of Net Gains (Losses) on Derivative Instruments (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Derivative [Line Items]      
Realized gains (losses) on futures commodity contracts, net $ 11,809 $ (101,020) $ 1,662
Future commodity and forward contracts      
Derivative [Line Items]      
Unrealized gains (losses) on open futures commodity and forward contracts and open sale and purchase commitments, net 259,358 (50,496) 18,225
Commodity Contract      
Derivative [Line Items]      
Realized losses on futures commodity contracts, net $ (247,549) $ (50,524) $ (16,563)
Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] Cost of Product and Service Sold Cost of Product and Service Sold Cost of Product and Service Sold