(a) A child alleged to be delinquent may be detained, pending court hearing, in the following places:
(1) Detention home operated or licensed by the Youth Services Administration as specified in Title 3, section 1167.
(2) Any other suitable place designated by the court provided that no detention home or shelter care facility may be designated if it is a place to which children adjudicated delinquent may be committed under this subchapter, unless specifically ordered by the court.
(b) A delinquent child awaiting disposition or a child alleged to be delinquent who is 16 years of age or older may be detained in a jail or other facility for the detention of adults only if:
(1) the home or facility in subsection (a)(1) and (a)(2) of this section is unavailable, or not appropriate; and
(2) the detention is in a room separate and removed from adults by sight and sound; and
(3) adequate supervision is provided; and
(4) the facility is approved by the Family Division of the court.
(c) The official in charge of the jail or other facility for the detention of adult offenders or persons charged with crime shall inform the court immediately when a person, who is or appears to be under the age of 18 years, is received at the facility, and shall deliver him to the court upon request, or transfer him to a detention home designated by the court.
(d) A child alleged to be neglected or abused may be retained or placed in facilities for shelter care operated or licensed by the Department of Social Welfare, but such child shall not be detained in a jail or other facility intended or used for the detention of adults charged with criminal offenses or for children alleged or adjudicated to be delinquent.