a. Within 24 hours after a juvenile is taken into judicial custody, the court shall order that the juvenile be taken into temporary protective custody or released to the juvenile’s parent, guardian or custodian or other suitable person, as directed by the juvenile’s parent or guardian. b. Temporary protective custody of a juvenile may be authorized only by court order.