; and (ii) the court may not issue a subsequent order described in clause (i) relating to a juvenile, unless the juvenile violates a valid court order after the date on which the court issues an order described in clause (i); (D) there are procedures in place to ensure that a juvenile held in a secure detention facility or secure correctional facility pursuant to a court order described in subparagraph (C)(i) does not remain in a secure detention facility or secure correctional facility longer than 3 days (with the exception of weekends and holidays) or the length of time authorized by the court, or authorized under applicable State law, whichever is shorter; and (E) a juvenile status offender held in a secure detention facility or secure correctional facility pursuant to a court order described in subparagraph (C)(i) may only be held in a secure detention facility or secure correctional facility 1 time in any 6-month period, provided that the conditions set forth in subparagraph (C) are satisfied. ; and (2) by adding at the end the following: (g) Additional requirement Not later than 1 year after the date of enactment of this subsection, no State receiving a formula grant under this part may use a valid court order described in subsection (a)(11)(A)(ii) to place a juvenile status offender in a secure detention facility or secure correctional facility. A State that can demonstrate hardship as determined by the Administrator may submit to the Administrator an application for a single 1-year extension to comply with the requirement described in this subsection, which shall describe— (1) the measurable progress and good faith effort in the State to reduce the number of juvenile status offenders who are placed in a secure detention facility or correctional facility pursuant to a court order described in subsection (a)(11)(A)(ii); and (2) a plan to comply with the requirement described in this subsection not later than 1 year after the date the extension is granted. .