v3.26.1
Interest Rate Swap Agreement (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Dec. 31, 2025
Interest Rate Swap Agreement [Abstract]          
Outstanding borrowings $ 192,040   $ 192,040   $ 224,660
Variable Interest Rate, Type [Extensible Enumeration]     yorw:DailySimpleSecuredOvernightFinancingRateMember    
Interest Rate Swap [Member]          
Interest Rate Swap Agreement [Abstract]          
Notional amount of swap $ 12,000   $ 12,000    
Fixed interest rate 3.16%   3.16%    
Percentage of variable interest rate 59.00%   59.00%    
Basis spread adjustment 0.11448%   0.11448%    
Net payment rate on swap 0.96% 0.54% 0.93% 0.53%  
Interest rate swap settlements reclassified from regulatory assets to interest expense $ 28 $ 16 $ 56 $ 32  
Overall interest rate swap (gain) loss (78) $ 55 (125) $ 169  
Interest rate swap settlements to be reclassified during the next 12 months 92   92    
Potential payment to counterparty 311   311    
Variable Rate Pennsylvania Economic Development Financing Authority Exempt Facilities Revenue Refunding Bonds, Series 2008A, due 2029 [Member]          
Interest Rate Swap Agreement [Abstract]          
Outstanding borrowings $ 12,000   $ 12,000   $ 12,000