Loans and allowance for loan losses - Impaired loans (Details) - USD ($)
$ in Thousands
Sep. 30, 2020
Dec. 31, 2019
With no related allowance recorded    
Recorded Investment $ 8,359 $ 7,745
Unpaid Principal Balance 8,604 8,152
With an allowance recorded    
Recorded Investment 1,472 1,627
Unpaid Principal Balance 1,634 1,826
Related Allowance 104 159
Total    
Recorded Investment 9,831 9,372
Unpaid Principal Balance 10,238 9,978
Related Allowance 104 159
Construction and land development    
With no related allowance recorded    
Recorded Investment 289 337
Unpaid Principal Balance 289 337
Total    
Recorded Investment 289 337
Unpaid Principal Balance 289 337
Construction and land development | Commercial [Member]    
With no related allowance recorded    
Recorded Investment 289 337
Unpaid Principal Balance 289 337
Total    
Recorded Investment 289 337
Unpaid Principal Balance 289 337
Commercial real estate    
With no related allowance recorded    
Recorded Investment 4,812 4,393
Unpaid Principal Balance 4,827 4,408
With an allowance recorded    
Recorded Investment 1,125 1,414
Unpaid Principal Balance 1,125 1,414
Related Allowance 3 15
Total    
Recorded Investment 5,937 5,807
Unpaid Principal Balance 5,952 5,822
Related Allowance 3 15
Commercial real estate | Owner Occupied [Member]    
With no related allowance recorded    
Recorded Investment 3,121 2,089
Unpaid Principal Balance 3,136 2,104
With an allowance recorded    
Recorded Investment 1,125 1,414
Unpaid Principal Balance 1,125 1,414
Related Allowance 3 15
Total    
Recorded Investment 4,246 3,503
Unpaid Principal Balance 4,261 3,518
Related Allowance 3 15
Commercial real estate | Non-Owner Occupied [Member]    
With no related allowance recorded    
Recorded Investment 1,691 2,304
Unpaid Principal Balance 1,691 2,304
Total    
Recorded Investment 1,691 2,304
Unpaid Principal Balance 1,691 2,304
Consumer real estate    
With no related allowance recorded    
Recorded Investment 3,110 2,804
Unpaid Principal Balance 3,340 3,034
With an allowance recorded    
Recorded Investment 178 78
Unpaid Principal Balance 178 78
Related Allowance 85 9
Total    
Recorded Investment 3,288 2,882
Unpaid Principal Balance 3,518 3,112
Related Allowance 85 9
Consumer real estate | Home equity lines [Member]    
With no related allowance recorded    
Recorded Investment 300 300
Unpaid Principal Balance 300 300
Total    
Recorded Investment 300 300
Unpaid Principal Balance 300 300
Consumer real estate | First Deed of Trust [Member]    
With no related allowance recorded    
Recorded Investment 2,096 1,752
Unpaid Principal Balance 2,118 1,774
With an allowance recorded    
Recorded Investment 75 78
Unpaid Principal Balance 75 78
Related Allowance 8 9
Total    
Recorded Investment 2,171 1,830
Unpaid Principal Balance 2,193 1,852
Related Allowance 8 9
Consumer real estate | Second Deed of Trust [Member]    
With no related allowance recorded    
Recorded Investment 714 752
Unpaid Principal Balance 922 960
With an allowance recorded    
Recorded Investment 103  
Unpaid Principal Balance 103  
Related Allowance 77  
Total    
Recorded Investment 817 752
Unpaid Principal Balance 1,025 960
Related Allowance 77  
Commercial and industrial loans | Commercial and industrial loans (except those secured by real estate)    
With no related allowance recorded    
Recorded Investment 148 211
Unpaid Principal Balance 148 373
With an allowance recorded    
Recorded Investment 169 135
Unpaid Principal Balance 331 334
Related Allowance 16 135
Total    
Recorded Investment 317 346
Unpaid Principal Balance 479 707
Related Allowance $ 16 $ 135