Why profitable refiners sometimes close individual refineries, how U.S. refining capacity has changed, and why California faces greater fuel-supply risks.