Loans and allowance for loan losses - Average recorded investment in impaired loans (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2020
Sep. 30, 2020
With no related allowance recorded    
Average Recorded Investment $ 8,999 $ 8,666
Interest Income Recognized   170
With an allowance recorded    
Average Recorded Investment 1,194 1,270
Interest Income Recognized 14 22
Total    
Average Recorded Investment 10,193 9,936
Interest Income Recognized 14 192
Construction and land development    
With no related allowance recorded    
Average Recorded Investment 294 305
Total    
Average Recorded Investment 294 305
Construction and land development | Commercial [Member]    
With no related allowance recorded    
Average Recorded Investment 294 305
Total    
Average Recorded Investment 294 305
Commercial real estate    
With no related allowance recorded    
Average Recorded Investment 5,301 5,074
Interest Income Recognized   105
With an allowance recorded    
Average Recorded Investment 843 985
Interest Income Recognized 14 14
Total    
Average Recorded Investment 6,144 6,059
Interest Income Recognized 14 119
Commercial real estate | Owner Occupied [Member]    
With no related allowance recorded    
Average Recorded Investment 3,325 3,016
Interest Income Recognized   68
With an allowance recorded    
Average Recorded Investment 843 985
Interest Income Recognized 14 14
Total    
Average Recorded Investment 4,168 4,001
Interest Income Recognized 14 82
Commercial real estate | Non-Owner Occupied [Member]    
With no related allowance recorded    
Average Recorded Investment 1,976 2,058
Interest Income Recognized   37
Total    
Average Recorded Investment 1,976 2,058
Interest Income Recognized   37
Consumer real estate    
With no related allowance recorded    
Average Recorded Investment 3,249 3,119
Interest Income Recognized   65
With an allowance recorded    
Average Recorded Investment 179 122
Interest Income Recognized   2
Total    
Average Recorded Investment 3,428 3,241
Interest Income Recognized   67
Consumer real estate | Home equity lines [Member]    
With no related allowance recorded    
Average Recorded Investment 300 300
Interest Income Recognized   8
With an allowance recorded    
Average Recorded Investment   300
Interest Income Recognized   8
Total    
Average Recorded Investment 300  
Consumer real estate | First Deed of Trust [Member]    
With no related allowance recorded    
Average Recorded Investment 2,113 2,023
Interest Income Recognized   33
With an allowance recorded    
Average Recorded Investment 76 77
Interest Income Recognized   2
Total    
Average Recorded Investment 2,189 2,100
Interest Income Recognized   35
Consumer real estate | Second Deed of Trust [Member]    
With no related allowance recorded    
Average Recorded Investment 836 796
Interest Income Recognized   24
With an allowance recorded    
Average Recorded Investment 103 45
Total    
Average Recorded Investment 939 841
Interest Income Recognized   24
Commercial and industrial loans | Commercial and industrial loans (except those secured by real estate)    
With no related allowance recorded    
Average Recorded Investment 155 168
With an allowance recorded    
Average Recorded Investment 56 163
Interest Income Recognized   6
Total    
Average Recorded Investment 211 331
Interest Income Recognized   $ 6
Commercial and industrial loans | Consumer And Other [Member]    
With an allowance recorded    
Average Recorded Investment 116  
Total    
Average Recorded Investment $ 116