; and (H) a detained youth who is not charged with a criminal offense at an initial detention hearing is released unless— (i) in the case of a youth who is detained for delinquency, a probation violation, or a status offense, the State brings a petition or formal charge against the youth not later than 15 working days after the initial detention decision; (ii) except as provided in clause (i), in the case of a youth who is detained for criminal conduct for which the maximum term of imprisonment is less than one year, the State brings a formal charge against the youth not later than 30 working days after the initial detention decision; or (iii) except as provided in clause (i), in the case of a youth who is detained for criminal conduct for which the maximum term of imprisonment is one year or greater, the State brings a formal charge against the youth not later than 60 days after the initial detention decision. (2) Status as youth For purposes of this subsection, the determination of whether an individual is a youth shall be based on the individual’s age at the time that the individual is taken into custody for the alleged criminal conduct. (3) Definitions For the purpose of this subsection: (A) The term detention hearing means a hearing— (i) conducted by a duly appointed or elected judge or, if a judge is not available, a referee appointed for the purpose of conducting detention hearings