v3.25.2
Convertible Notes (Details) - USD ($)
12 Months Ended
Mar. 03, 2025
Jul. 15, 2022
Mar. 11, 2019
Mar. 01, 2019
May 18, 2018
Apr. 11, 2017
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Debt Instrument [Line Items]                  
Repayments of convertible debt             $ 156,168,000 $ 0 $ 60,501,000
Outstanding amount             2,103,554,000 2,454,992,000  
Debt financing costs             18,842,000 22,975,000  
Convertible Notes                  
Debt Instrument [Line Items]                  
Outstanding amount               156,168,000  
Unamortized discount             0 395,000  
Debt financing costs             0 254,000  
Interest expense             7,287,000 10,884,000 10,980,000
2022 Notes | Convertible Notes                  
Debt Instrument [Line Items]                  
Face amount         $ 103,500,000 $ 225,000,000      
Stated rate         4.95% 4.95%      
Proceeds from debt, net of issuance costs         $ 100,749,000 $ 218,010,000      
Original debt                 $ 3,000
Shares issued (in shares)                 300
Converted instrument rate                 100.2305%
Converted instrument rate amount per principal amount                 $ 1,000
Repayments of convertible debt   $ 60,498,000              
Outstanding amount   $ 0              
2025 Notes | Convertible Notes                  
Debt Instrument [Line Items]                  
Face amount     $ 26,250,000 $ 175,000,000          
Stated rate       6.375%          
Proceeds from debt, net of issuance costs     $ 198,674,000            
Repayments of convertible debt $ 156,168,000                
Outstanding amount             $ 0 $ 156,168,000  
Option to purchase term       13 days          
Optional over-allotment amount       $ 26,250,000