When Karina Melendez missed multiple days of school during the winter of her sophomore year, it wasn’t because she was willfully truant or lazy. The student, who usually got straight As, had been placed in the foster care system and was balancing class at her Bronx public high school with court appointments, meetings with lawyers and social workers, and the emotional shock of uprooting her life.