Temporary custody of a juvenile before trial in a secure confinement facility. Detention is imposed after a judge determines that a youth must remain in custody prior to a delinquency proceeding for his/her own protection or the protection of society, or to ensure his/her appearance at the hearing. Detention for youth is different from jail for adults, both because juveniles do not have a right to bail and because youth in detention generally receive education and treatment services. (JLC.org)