v3.26.1
Derivative Contracts - Pre-Tax Effects of Derivatives Designated as Cash Flow Hedging Instruments (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Derivative Instruments, Pre-Tax Effects Of Derivatives Designated As Cash Flow Hedging Instruments [Roll Forward]      
Beginning balance $ 24,679 $ 41,424 $ 48,170
Gross unrealized gains (losses) recognized in other comprehensive loss 7,877 (1,897) 10,826
Ending balance 6,340 24,679 41,424
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold      
Derivative Instruments, Pre-Tax Effects Of Derivatives Designated As Cash Flow Hedging Instruments [Roll Forward]      
Net losses (gains) reclassified from cash flow hedge in accumulated other comprehensive loss into profit or loss: 43 1,447 1,072
Income Statement Location [Axis]: us-gaap:GeneralAndAdministrativeExpense      
Derivative Instruments, Pre-Tax Effects Of Derivatives Designated As Cash Flow Hedging Instruments [Roll Forward]      
Net losses (gains) reclassified from cash flow hedge in accumulated other comprehensive loss into profit or loss: (3,033) 1,828 2,320
Income Statement Location [Axis]: us-gaap:InterestExpenseNonoperating      
Derivative Instruments, Pre-Tax Effects Of Derivatives Designated As Cash Flow Hedging Instruments [Roll Forward]      
Net losses (gains) reclassified from cash flow hedge in accumulated other comprehensive loss into profit or loss: (7,163) (26,344) (29,946)
Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense      
Derivative Instruments, Pre-Tax Effects Of Derivatives Designated As Cash Flow Hedging Instruments [Roll Forward]      
Net losses (gains) reclassified from cash flow hedge in accumulated other comprehensive loss into profit or loss: (12,840) 7,194 7,718
Income Statement Location [Axis]: us-gaap:SellingAndMarketingExpense      
Derivative Instruments, Pre-Tax Effects Of Derivatives Designated As Cash Flow Hedging Instruments [Roll Forward]      
Net losses (gains) reclassified from cash flow hedge in accumulated other comprehensive loss into profit or loss: $ (3,223) $ 1,027 $ 1,264