Quarterly report [Sections 13 or 15(d)]

Debt - Additional Information (Details)

v3.26.3
Debt - Additional Information (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 9 Months Ended
Feb. 12, 2026
Jan. 13, 2026
Jul. 31, 2026
Sep. 30, 2026
Sep. 30, 2026
Sep. 30, 2025
Aug. 04, 2026
Feb. 11, 2026
Dec. 31, 2025
Oct. 21, 2021
Line of Credit Facility [Line Items]                    
Gain on extinguishment of debt         $ 7,444 $ 0        
Description of payment terms         extend the maturity date from December 22, 2027, to the earliest of: (i) February 13, 2031, (ii) the date that is six months prior to the maturity date of the Senior Notes, or any permitted refinancing thereof, subject to certain conditions, and (iii) the date that is six months prior to the maturity date of the Capital One Line of Credit (as defined below). Concurrently, APC and certain of APC’s subsidiaries entered into a separate amended and restated credit agreement with PNC providing for a secured revolving credit facility (the “APC Line of Credit”) with substantially similar terms as those under the PNC Credit Agreement; provided that the aggregate principal amount available thereunder is up to $84 million.          
Borrowings under the lines of credit       $ 624,743 $ 624,743       $ 912,145  
Borrowings outstanding under a line of credit description         In addition, on February 11, 2026, GPM refinanced and consolidated its real estate loans and certain of its borrowing under the equipment line of credit under the M&T Credit Agreement into a term loan with an aggregate principal balance of $73.0 million (the “M&T Term Loans”) and a maturity date of February 10, 2031, and $8.3 million aggregate amount borrowed under the equipment line of credit. The equipment line of credit for up to $45.0 million was extended to purchase equipment on or before February 2031. As of September 30, 2026, $18.8 million remained available under the equipment line of credit.          
Line of Credit Facility, Current Borrowing Capacity       174,431 $ 174,431       $ 377,406  
P N C Credit Line Agreement [Member]                    
Line of Credit Facility [Line Items]                    
Borrowings under the lines of credit       0 0          
Maximum | Agreement With M&T Bank [Member]                    
Line of Credit Facility [Line Items]                    
Line of credit, remained available               $ 45,000    
M&T Term Loans [Member] | Agreement With M&T Bank [Member] | Equipment [Member]                    
Line of Credit Facility [Line Items]                    
Line of credit, remained available       $ 18,800 $ 18,800          
Senior Notes [Member]                    
Line of Credit Facility [Line Items]                    
Senior Notes, Noncurrent                   $ 450,000
Debt instrument, interest rate, stated percentage       5.125% 5.125%          
Accrued interest paid         $ 1,000          
Principal amount repurchased       $ 100,000 100,000          
Gain on extinguishment of debt       4,900 7,400          
Approximate amount of repurchase       91,900 91,900          
GPM [Member] | APC Line of Credit [Member]                    
Line of Credit Facility [Line Items]                    
Debt instrument face amount             $ 214,000      
GPM [Member] | Maximum | P N C Credit Line Agreement [Member]                    
Line of Credit Facility [Line Items]                    
Debt instrument face amount $ 140,000           130,000      
GPM [Member] | Minimum | P N C Credit Line Agreement [Member]                    
Line of Credit Facility [Line Items]                    
Debt instrument face amount 56,000           $ 56,000      
GPM [Member] | M&T Term Loans [Member] | Agreement With M&T Bank [Member]                    
Line of Credit Facility [Line Items]                    
Principal balance amount               73,000    
Line of Credit Facility, Current Borrowing Capacity               $ 8,300    
Apc [Member] | Maximum | P N C Credit Line Agreement [Member]                    
Line of Credit Facility [Line Items]                    
Aggregate principal amount $ 84,000                  
Revolving Credit Facility [Member] | GPMP                    
Line of Credit Facility [Line Items]                    
Line of credit principal amount increase       1,000,000 1,000,000          
Line of Credit Facility, Current Borrowing Capacity       $ 800,000 $ 800,000          
Repayment of debt   $ 206,700                
Line of credit facility     $ 4,000