Rational means a person weighs the benefits and costs in their own mind and acts accordingly.
Being bad at math, committing mass murder, giving your life to save another, giving to charity, gambling with the odds against you, assaulting a spouse: none of these things are inconsistent with ‘rationality’ as defined in economics.
I agree, but it isn't the act of weighing; it is the choice of an objectively better outcome that makes the choice rational. A rational person seeks to maximize an objective value, like, say, utility. So they'll typically assume that given a set of fixed alternatives with known probabilities of outcomes, a person will behave in the manner that will result in highest utility.
Choosing suboptimal outcomes is simply irrational. That's all there is to it.