Cal. Welf. & Inst. Code § 207.1
(b)
(1) A minor 14 years of age or older who is taken into temporary custody by a peace officer on the basis of being a person described by Section 602, and who, in the reasonable belief of the peace officer, presents a serious security risk of harm to self or others, may be securely detained in a law enforcement facility that contains a lockup for adults, if all of the following conditions are met:
(c) The Board of State and Community Corrections shall assist law enforcement agencies, probation departments, and courts with the implementation of this section by doing all of the following:
(d)
(1)
(2) Under the limited condition of temporary unavailability of transportation, an extension of the six-hour maximum period of detention set forth in paragraph (2) of subdivision (b) may be granted by the board to an offshore law enforcement facility. The extension may be granted only by the board, on an individual, case-by-case basis. If the extension is granted, the detention of minors under those conditions shall extend only until the next available mode of transportation can be arranged.
An offshore law enforcement facility that receives an extension under this paragraph shall comply with the requirements set forth in subdivision (b). The facility also shall provide a written report to the board that specifies when the next mode of transportation became available, and when the minor was delivered to a suitable juvenile facility. If the minor was detained in excess of 24 hours, the board shall verify the information contained in the report.
(f) No part of a building or a building complex that contains a jail may be converted or utilized as a secure juvenile facility unless all of the following criteria are met:
(g)
(h) This section shall not be deemed to prevent a peace officer or employee of an adult detention facility or jail from escorting a minor into the detention facility or jail for the purpose of administering an evaluation, test, or chemical test pursuant to Section 23157 of the Vehicle Code, if all of the following conditions are met: