; and (ii) during the period in which the State furnishes such medical assistance, maintain on an annual basis a level of funding expended by the State (and political subdivisions thereof) other than under this title from non-Federal funds— (I) for inpatient services furnished for the purpose of treating a substance use disorder in institutions for mental diseases that is not less than the level of such funding for such services and care as of the date of the enactment of this subsection or, if higher, as of the date the State applies to the Secretary to include such medical assistance under the State plan or under a waiver of such plan; and (II) for specified non-IMD services described in subparagraph (B) that is not less than the level of such funding for such services as of the date of the enactment of this subsection or, if higher, as of the date the State applies to the Secretary to include such medical assistance under the State plan or under a waiver of such plan. (B) Specified non-imd services described For purposes of subparagraph (A)(ii)(II), specified non-IMD services described in this subparagraph are the following: (i) Inpatient services, other than such services described in subparagraph (A)(ii)(I). (ii) Outpatient and community-based services for individuals who are furnished substance use disorder treatment services, such as— (I) substance use disorder treatment; (II) evidence-based recovery and support services, including short-term detoxification services; (III) clinically directed therapeutic treatment to facilitate recovery skills, relapse prevention, and emotional coping strategies; (IV) substance use disorder pharmacotherapy and drug screening; (V) counseling and clinical monitoring; (VI) withdrawal management and related treatment designed to alleviate acute emotional, behavioral, cognitive, or biomedical distress resulting from, or occurring with, an individual’s use of alcohol and other drugs