v3.26.1
Commitments and Contingencies (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2026
Mar. 31, 2022
Jun. 30, 2026
Long-term Purchase Commitment [Line Items]      
Renewable fuel standard obligation (in percentage) 100.00%   100.00%
Montana Refinery System      
Long-term Purchase Commitment [Line Items]      
Accrual for environmental loss contingencies $ 8,600   $ 8,600
Wyoming Refinery One      
Long-term Purchase Commitment [Line Items]      
Accrual for environmental loss contingencies 15,800   $ 15,800
Environmental costs recognized, period for recognition of one third costs (in years)     5 years
Environmental costs recognized, period for recognition (in years)     25 years
Wyoming Refinery      
Long-term Purchase Commitment [Line Items]      
Loss contingency, range of possible loss, portion not accrued $ 300   $ 300
Montana Refinery System | Minimum      
Long-term Purchase Commitment [Line Items]      
Environmental costs recognized, period for recognition (in years)     17 years
Montana Refinery System | Maximum      
Long-term Purchase Commitment [Line Items]      
Environmental costs recognized, period for recognition (in years)     27 years
Washington Department of Revenue | State Tax Authority      
Long-term Purchase Commitment [Line Items]      
Income tax examination, estimate of possible loss   $ 1,400