v3.26.1
Income taxes - Narrative (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Tax Credit Carryforward [Line Items]      
Total tax expense/(benefit) and effective tax rate 0.90% 7.00% (13.60%)
Total income tax expense (benefit) and effective tax rate $ (6,062) $ 6,560 $ 3,453
Income (loss) before income taxes (708,683) 93,501 $ (25,467)
Valuation allowance 209,386 $ 25,281  
Internal Revenue Service (IRS)      
Tax Credit Carryforward [Line Items]      
Tax carryforward $ 1,731,700