; or (ii) occurred in connection with any act of nonconsensual sex; (B) an escape, attempted escape, or conspiracy to escape from within a security perimeter or custody, or both; (C) possession of weapons; or (D) possession of illegal narcotics with intent to distribute. (15) Solitary confinement The term solitary confinement means confinement characterized by substantial isolation in a cell, alone or with other inmates, including administrative segregation, disciplinary segregation, and confinement in any facility designated by the Bureau of Prisons or the United States Marshals Service as a special housing unit, a special management unit, an administrative maximum facility, or any other housing area that is separate from or in any way more restrictive than the general population of the facility in terms of hours out of cell, programming, services, congregate engagement with other people, visits, communications, items, or any other aspect of daily living. (16) Special administrative measures The term special administrative measures means measures used to— (A) prevent disclosure of classified information upon written certification to the Attorney General by the head of an element of the intelligence community (as defined under section 3 of the National Security Act of 1947 ( 50 U.S.C. 3003 )) that the unauthorized disclosure of such information would pose a threat to national security and that there is a danger that the inmate will disclose such information, as described by section 501.2 of title 28, Code of Federal Regulations, or any successor thereto