A person is in custody when they are kept in prison, a young offenders institution, secure accommodation, or police cell.