(A) It is unlawful for any minor who is subject to compulsory education or to compulsory continuation education by statute or court order to be present in any public place or on the premises of any establishment within the County during truancy curfew hours.
(B) It is unlawful for any parent, custodian or guardian of a minor to knowingly permit, or by insufficient control to allow, the minor to be present in any public place or on the premises of any establishment within the County during truancy curfew hours.
(C) It is a defense to prosecution under this Section or Section 26–4‑4 that the minor was:
accompanied by a parent, guardian, custodian or responsible adult if engaged in an activity which would constitute an excused absence from the school from which the minor would normally attend;
involved in an emergency;
going to or returning from a medical appointment without any detour or stop;
engaged in, going to or returning home from an employment activity pursuant to a cooperative school vocation program without any detour or stop;
in possession of valid proof that the minor is a student who has permission to leave the school campus;
a bona fide participant in an alternative education or home schooling program;
engaged in or subject to an authorized or excused absence from the school which the minor attends, including but not limited to lunch periods.