Loans and allowance for loan losses - Allowance for loan losses (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Mar. 31, 2021
Mar. 31, 2020
Dec. 31, 2020
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance $ 3,970 $ 3,186 $ 3,186
Provision for (Recovery of) Loan Losses   400 950
Charge-offs (8) (156) (292)
Recoveries 30 14 126
Ending Balance 3,992 3,444 3,970
Consumer And Other [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 190    
Ending Balance 786   190
Construction and land development      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 499 185 185
Provision for (Recovery of) Loan Losses (231) 303 289
Recoveries   1 25
Ending Balance 268 489 499
Construction and land development | Residential [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 214 48 48
Provision for (Recovery of) Loan Losses (114) 170 141
Recoveries   1 25
Ending Balance 100 219 214
Construction and land development | Commercial [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 285 137 137
Provision for (Recovery of) Loan Losses (117) 133 148
Ending Balance 168 270 285
Commercial real estate      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 2,517 1,589 1,589
Provision for (Recovery of) Loan Losses (293) 397 928
Ending Balance 2,224 1,986 2,517
Commercial real estate | Owner Occupied [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 1,047 671 671
Provision for (Recovery of) Loan Losses (148) 188 376
Ending Balance 899 859 1,047
Commercial real estate | Non-Owner Occupied [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 1,421 831 831
Provision for (Recovery of) Loan Losses (135) 227 590
Ending Balance 1,286 1,058 1,421
Commercial real estate | Multifamily [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 47 85 85
Provision for (Recovery of) Loan Losses (9) (17) (38)
Ending Balance 38 68 47
Commercial real estate | Farmland [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 2 2 2
Provision for (Recovery of) Loan Losses (1) (1)  
Ending Balance 1 1 2
Consumer real estate      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 269 678 678
Provision for (Recovery of) Loan Losses (56) (412) (392)
Charge-offs     (85)
Recoveries 15 7 68
Ending Balance 228 273 269
Consumer real estate | Home equity lines [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 24 271 271
Provision for (Recovery of) Loan Losses (9) (231) (247)
Ending Balance 15 40 24
Consumer real estate | First Deed of Trust [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 166 343 343
Provision for (Recovery of) Loan Losses (21) (189) (190)
Recoveries 1 3 13
Ending Balance 146 157 166
Consumer real estate | Second Deed of Trust [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 79 64 64
Provision for (Recovery of) Loan Losses (26) 8 45
Charge-offs     (85)
Recoveries 14 4 55
Ending Balance 67 76 79
Commercial and industrial loans | Commercial and industrial loans (except those secured by real estate)      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 408 572 572
Provision for (Recovery of) Loan Losses (13) (31) (58)
Charge-offs   (135) (135)
Recoveries 15 3 29
Ending Balance 410 409 408
Commercial and industrial loans | Guaranteed Student loans [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 87 108 108
Provision for (Recovery of) Loan Losses (3) 16 27
Charge-offs (8) (20) (48)
Ending Balance 76 104 87
Commercial and industrial loans | Consumer And Other [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 36 30 30
Provision for (Recovery of) Loan Losses 2 9 26
Charge-offs   (1) (24)
Recoveries   3 4
Ending Balance 38 41 36
Commercial and industrial loans | Unallocated [Member]      
Financing Receivable, Allowance for Credit Losses [Line Items]      
Beginning Balance 154 24 24
Provision for (Recovery of) Loan Losses 594 118 130
Ending Balance $ 748 $ 142 $ 154