v3.25.2
Inventories - Schedule of Inventory (Details) - USD ($)
$ in Thousands
Jun. 30, 2025
Dec. 31, 2024
Inventory [Line Items]    
Crude oil and feedstocks $ 286,607 $ 302,980
Refined products and blendstock 490,853 504,456
Warehouse stock and other 264,019 281,882
Total 1,041,479 1,089,318
RINs and environmental obligations 301,217 231,982
Titled Inventory    
Inventory [Line Items]    
Crude oil and feedstocks 159,527 124,910
Refined products and blendstock 490,853 504,456
Warehouse stock and other 246,479 281,882
Total 896,859 911,248
Inventory Financing Agreements    
Inventory [Line Items]    
Crude oil and feedstocks 127,080 178,070
Refined products and blendstock 0 0
Warehouse stock and other 17,540 0
Total 144,620 178,070
Renewable Identification Numbers “RINs” and Environmental Credits    
Inventory [Line Items]    
Warehouse stock and other 171,200 195,000
RINs and environmental obligations $ 301,200 $ 232,000