; and (2) by inserting after subsection (a) the following: (b) Prohibition on detention based on protected characteristics (1) In general No individual may be imprisoned or otherwise detained based solely on an actual or perceived protected characteristic of the individual. (2) Definition In this subsection, the term protected characteristic includes— (A) race; (B) ethnicity; (C) national origin; (D) religion; (E) gender; (F) gender identity; and (G) sexual orientation. .