v3.26.1
Debt (Additional Information) (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 12 Months Ended
Jul. 01, 2026
Mar. 02, 2026
Oct. 29, 2025
Aug. 06, 2025
Jan. 17, 2025
Aug. 21, 2024
Jan. 26, 2024
Jan. 25, 2024
Nov. 22, 2022
Sep. 22, 2022
Apr. 11, 2022
Mar. 11, 2022
Aug. 12, 2021
Jun. 30, 2022
Sep. 30, 2022
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Mar. 01, 2026
Mar. 01, 2021
Line of Credit Facility [Line Items]                                        
Repayment of long-term debt                               $ 895,283 $ 109,873 $ 51,896    
Loss on debt extinguishment                               4,810 1,738 1,113    
Total principal                               673,000 $ 558,283      
Debt Issuance Costs Write-off                               4,701        
Capitalized debt issuance costs                               14,428        
Surety Bond                                        
Line of Credit Facility [Line Items]                                        
Guarantor Obligations, Current Carrying Value                               80,000        
Letter of Credit [Member] | Title IV Letter Of Credit                                        
Line of Credit Facility [Line Items]                                        
Letters of credit outstanding                               202,600        
Percentage of funds received                                 10.00%      
Revolving Credit Facility                                        
Line of Credit Facility [Line Items]                                        
Total principal                               163,000 $ 0      
Maximum borrowing capacity       $ 500,000                 $ 400,000              
Amount of borrowings or repayments                                 0 $ 0    
Amount borrowed                               500,000        
Amount repaid                               $ 337,000        
Commitment fee percentage                               0.25%        
Undrawn amount on letters of credit                               $ 337,000        
Additional borrowing capacity       $ 100,000                                
Debt instrument, maturity date       Aug. 06, 2030                 Aug. 12, 2026              
Line of credit                               163,000        
Debt Issuance Costs Write-off                               295        
Capitalized debt issuance costs                               $ 3,770        
Amortization period                               5 years        
Revolving Credit Facility | Subsequent Event                                        
Line of Credit Facility [Line Items]                                        
Amount repaid $ 163,000                                      
Undrawn amount on letters of credit $ 500,000                                      
Revolving Credit Facility | Location, Statement of Income, Balance [Axis]: us-gaap:InterestExpenseMember                                        
Line of Credit Facility [Line Items]                                        
Debt Issuance Costs Write-off                               $ 300        
Revolving Credit Facility | Alternate Base Rate | Minimum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate                               1.25%        
Revolving Credit Facility | Alternate Base Rate | Maximum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate                               2.00%        
Revolving Credit Facility | SOFR | Minimum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate                               2.25%        
Revolving Credit Facility | SOFR | Maximum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate                               3.00%        
Senior Secured Notes Due 2028 And Term B Loan | Maximum | Scenario Plan                                        
Line of Credit Facility [Line Items]                                        
Total net leverage ratio                               3.25        
Senior Secured Notes Due 2028                                        
Line of Credit Facility [Line Items]                                        
Debt instrument, face amount                                       $ 800,000
Fixed interest rate                                       5.50%
Repayment of long-term debt   $ 405,000                 $ 373,300     $ 20,800 $ 900          
Loss on debt extinguishment                               $ 2,600        
Total principal                               0 404,950      
Redemption price, percentage of principal amount redeemed   100.00%                 100.00%     90.00% 92.00%          
Debt Issuance Costs Write-off                               2,466        
Term B Loan                                        
Line of Credit Facility [Line Items]                                        
Debt instrument, face amount   $ 510,000                     $ 850,000              
Repayment of long-term debt   103,300 $ 50,000   $ 100,000   $ 50,000   $ 50,000 $ 100,000   $ 396,700                
Extinguishment of debt   103,300                                    
Loss on debt extinguishment   1,300                           1,900        
Total principal                               $ 510,000 $ 153,333   $ 103,300  
Reduction in margin interest rate           (0.75%) (0.50%)                          
Principal payment   $ 1,275                                    
Effective interest rate                               5.98%        
Debt instrument, maturity date   Mar. 02, 2033                     Aug. 12, 2028              
Debt instrument, issuance price, percent of principal amount   99.50%                                    
Debt instrument, issuance discount, percent   0.50%                                    
Debt Issuance Costs Write-off                               $ 1,940        
Capitalized debt issuance costs   $ 10,700                           $ 10,658        
Amortization period   7 years                                    
Term B Loan | Alternate Base Rate                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate   1.25%       1.75%                            
Term B Loan | Alternate Base Rate | Minimum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate             2.50% 3.00%                        
Term B Loan | Alternate Base Rate | Maximum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate             3.00% 3.50%                        
Term B Loan | Eurocurrency Rate | Minimum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate             3.50% 4.00%                        
Term B Loan | Eurocurrency Rate | Maximum                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate             4.00% 4.50%                        
Term B Loan | SOFR                                        
Line of Credit Facility [Line Items]                                        
Basic spread rate   2.25%       2.75%                            
Floor rate   0.75%       0.75% 0.75% 0.75%