Cal. Welf. & Inst. Code § 875
(a) In addition to the types of treatment specified in Sections 727 and 730, commencing July 1, 2021, the court may order that a ward who is 14 years of age or older be committed to a secure youth treatment facility for a period of confinement described in subdivision (b) if the ward meets all of the following criteria:
(3) The court has made a finding on the record that a less restrictive, alternative disposition for the ward is unsuitable. In determining this, the court shall consider all relevant and material evidence, including the recommendations of counsel, the probation department, and any other agency or individual designated by the court to advise on the appropriate disposition of the case. The court shall additionally make its determination based on all of the following criteria:
(b)
(c)
(1) In making its order of commitment, the court shall additionally set a maximum term of confinement for the ward based upon the facts and circumstances of the matter or matters that brought or continued the ward under the jurisdiction of the court and as deemed appropriate to achieve rehabilitation. The maximum term of confinement shall represent the longest term of confinement in a facility that the ward may serve subject to the following:
(d)
(2) An individual rehabilitation plan shall do all of the following:
(e)
(1)
(f)
(1) Upon a motion from the probation department or the ward, the court may order that the ward be transferred from a secure youth treatment facility to less restrictive program, such as a halfway house, a camp or ranch, or a community residential or nonresidential service program. The purpose of a less restrictive program is to facilitate the safe and successful reintegration of the ward into the community. The court shall consider the transfer request at the next scheduled treatment review hearing or at a separately scheduled hearing. The court shall consider the recommendations of the probation department on the proposed change in placement. Approval of the request for a less restrictive program shall be made only upon the court’s determination that the ward has made substantial progress toward the goals of the individual rehabilitation plan described in subdivision (d) and that placement is consistent with the goals of youth rehabilitation and community safety. In making its determination, the court shall consider both of the following factors:
(g) A secure youth treatment facility, as described in this section, shall meet the following criteria:
(h)