; and (ii) there are no conditions of release that will reasonably ensure that the alien will appear for immigration proceedings, including bond or other conditions of release that reduce the risk of flight. (2) Exception for mandatory detainees The requirements described in paragraph (1) shall not apply if the Secretary of Homeland Security demonstrates by substantial evidence that the alien is subject to detention under subsection (g). (c) Custody decisions for vulnerable populations (1) In general Not later than 72 hours after an individual is detained under this section (unless the 72-hour requirement is waived in writing by the individual), an individual who is a member of a vulnerable population (as defined in section 3 of the Protecting the Rights of Families and Immigrants Who Legally Entered From Detention Act ) shall be released from the custody of the Department of Homeland Security and shall not be subject to electronic monitoring unless the Department demonstrates by a preponderance of the evidence that the individual— (A) is subject to mandatory custody or mandatory detention under subsection (g) or section 236A; (B) poses a risk to the national security of the United States; or (C) is a flight risk and the risk cannot be mitigated through supervision or placement in an alternative program. (2) Release An individual shall be released from custody under this subsection— (A) on the individual’s own recognizance; (B) by posting a minimum bond under subsection (a)(2)(a); or (C) on parole in accordance with section 212(d)(5)(A). (d) Decisions To detain aliens (1) In general All detention decisions under this section shall— (A) be made in writing by an official of the Department of Homeland Security; (B) specify the reasons for the decision, if the decision is made to continue the detention without bond or parole; and (C) be served upon the detainee, in the language spoken by the alien, not later than 72 hours after— (i) the commencement of the detention