; and (C) payment for treatments or therapy needed to repair harm to the child perpetuated by pursuit of gender transition determined necessary by the parent and the child’s medical providers. (5) Attorneys fees for defendant If a defendant in a civil action under this subsection prevails and the court finds that the plaintiff’s suit was frivolous, the court shall award a reasonable attorney’s fee in favor of the defendant against the plaintiff. (e) Definitions In this section: (1) Biological sex The term biological sex means the biological indication of male and female as determined by reproductive potential or capacity, such as sex chromosomes, naturally occurring sex hormones, gonads, and nonambiguous internal and external genitalia present at birth, without regard to a person's psychological, chosen, or subjective experience of gender. (2) Designated violation The term designated violation means an actual or threatened violation of this section. (3) ESEA The terms elementary school and secondary school have the meanings given the terms in section 8101 of the Elementary and Secondary Education Act of 1965 ( 20 U.S.C. 7801 ). (4) Gender identity The term gender identity means a person’s self-perception of their gender or claimed gender, regardless of the person’s biological sex. (5) Gender transition (A) In general The term gender transition includes both medical transition and social transition. (B) Medical transition The term medical transition means any medical, hormonal, or surgical intervention undertaken to alter the body of a person in order to assert an identity incongruent with biological sex or undertaken to create or facilitate the development of physiological or anatomical characteristics that resemble a sex different from the person's biological sex. (C) Social transition The term social transition means any action taken to affirm a person's asserted gender identity that is in contradiction to the person's biological sex, including but not limited to decisions pertaining to the use of sex-specific