; and (W) monitoring for compliance with the core requirements and providing training and technical assistance on the core requirements to secure facilities; ; (H) by striking paragraph (11) and inserting the following: (11) (A) in accordance with rules issued by the Administrator, provide that a juvenile shall not be placed in a secure detention facility or a secure correctional facility, if— (i) the juvenile is charged with or has committed an offense that would not be criminal if committed by an adult, excluding— (I) a juvenile who is charged with or has committed a violation of section 922(x)(2) of title 18, United States Code, or of a similar State law; (II) a juvenile who is charged with or has committed a violation of a valid court order issued and reviewed in accordance with paragraph (23); and (III) a juvenile who is held in accordance with the Interstate Compact on Juveniles as enacted by the State; or (ii) the juvenile— (I) is not charged with any offense; and (II) (aa) is an alien; or (bb) is alleged to be dependent, neglected, or abused; and (B) require that— (i) not later than 3 years after the date of enactment of the Juvenile Justice Reform Act of 2018 , unless a court finds, after a hearing and in writing, that it is in the interest of justice, juveniles awaiting trial or other legal process who are treated as adults for purposes of prosecution in criminal court and housed in a secure facility— (I) shall not have sight or sound contact with adult inmates; and (II) except as provided in paragraph (13), may not be held in any jail or lockup for adults; (ii) in determining under clause (i) whether it is in the interest of justice to permit a juvenile to be held in any jail or lockup for adults, or have sight or sound contact with adult inmates, a court shall consider— (I) the age of the juvenile; (II) the physical and mental maturity of the juvenile; (III) the present mental state of the juvenile, including whether the juvenile presents an imminent risk of harm to the juvenile