Inventories - Additional Information (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
|
| Inventory Disclosure [Abstract] | ||
| Unrealized gains (losses) included in inventory balance | $ (71,100) | $ 94,800 |
| Premium on metals position | $ 11,245 | $ 35,295 |