Inventories - Schedule of Inventory (Details) - USD ($) $ in Thousands |
Jun. 30, 2026 |
Dec. 31, 2025 |
|---|---|---|
| Inventory [Line Items] | ||
| Crude oil and feedstocks | $ 329,741 | $ 269,440 |
| Refined products and blendstock | 646,970 | 413,066 |
| Warehouse stock and other | 464,445 | 546,281 |
| Total | 1,441,156 | 1,228,787 |
| RINs and environmental obligations | 376,641 | 380,390 |
| Titled Inventory | ||
| Inventory [Line Items] | ||
| Crude oil and feedstocks | 215,048 | 144,363 |
| Refined products and blendstock | 646,970 | 413,066 |
| Warehouse stock and other | 464,445 | 546,281 |
| Total | 1,326,463 | 1,103,710 |
| Inventory Financing Agreements | ||
| Inventory [Line Items] | ||
| Crude oil and feedstocks | 114,693 | 125,077 |
| Refined products and blendstock | 0 | 0 |
| Warehouse stock and other | 0 | 0 |
| Total | 114,693 | 125,077 |
| Renewable Identification Numbers “RINs” and Environmental Credits | ||
| Inventory [Line Items] | ||
| Warehouse stock and other | 364,900 | 450,700 |
| RINs and environmental obligations | $ 376,600 | $ 380,400 |