CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
What was the earliest week the team played the chicago cardinals in front of less than 25,312?
SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312