SAN FRANCISCO — The California Supreme Court appeared headed Tuesday for a middle ground on the hot-button issue of mixed motives in employment discrimination cases.

Several justices sounded poised to hold employers liable for discrimination under California’s Fair Employment and Housing Act if discrimination is “a substantial factor” in termination or demotion — regardless of whether the employer also had legitimate reasons for the job action.