Debt - Additional Information (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||||||
|---|---|---|---|---|---|---|---|---|
Feb. 12, 2026 |
Jan. 13, 2026 |
Jun. 30, 2026 |
Jun. 30, 2026 |
Jun. 30, 2025 |
Feb. 11, 2026 |
Dec. 31, 2025 |
Oct. 21, 2021 |
|
| Line of Credit Facility [Line Items] | ||||||||
| Gain on extinguishment of debt | $ 2,541 | $ 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 (as defined in Note 10), 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 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 June 30, 2026, $29.6 million remained available under the equipment line of credit. | |||||||
| Line of Credit Facility, Current Borrowing Capacity | $ 169,858 | $ 169,858 | $ 377,406 | |||||
| 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 | $ 29,600 | $ 29,600 | ||||||
| Senior Notes [Member] | ||||||||
| Line of Credit Facility [Line Items] | ||||||||
| Senior Notes, Noncurrent | $ 450,000 | |||||||
| Debt instrument, interest rate, stated percentage | 5.125% | 5.125% | 5.125% | |||||
| Accrued interest paid | $ 200 | |||||||
| Principal amount repurchased | $ 37,900 | 37,900 | ||||||
| Gain on extinguishment of debt | 2,500 | 2,500 | ||||||
| Approximate amount of repurchase | 35,100 | 35,100 | ||||||
| GPM [Member] | Maximum | P N C Credit Line Agreement [Member] | ||||||||
| Line of Credit Facility [Line Items] | ||||||||
| Debt instrument face amount | $ 56,000 | |||||||
| GPM [Member] | Minimum | P N C Credit Line Agreement [Member] | ||||||||
| Line of Credit Facility [Line Items] | ||||||||
| Debt instrument face amount | 140,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 Additional Drew | $ 4,000 | $ 4,000 | ||||||