A shrinking number of refineries, intense regulatory pressure, and the adoption of electric vehicles are making California's ...