Eco-friendly synthesis of N,S co-doped hierarchical nanocarbon as a highly efficient metal-free catalyst for the reduction of nitroarenes.