moved maxTopInset into card