XML 66 R52.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Long-Term Debt and Short-Term Borrowings, Interest Rate Swap Agreement (Details) - Interest Rate Swap [Member] - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022
Interest Rate Swap Agreement [Abstract] |  |
Notional amount of swap | $ 12,000 |
Potential payment to counterparty | $ 649 |
Fixed interest rate | 3.16% |
Net payment rate on swap | 0.14% | 2.04%
LIBOR [Member] |  |
Interest Rate Swap Agreement [Abstract] |  |
Percentage of variable interest rate | 59.00% |
Term of variable rate | 1 month |
SOFR [Member] |  |
Interest Rate Swap Agreement [Abstract] |  |
Percentage of variable interest rate | 59.00% |
Basis spread adjustment | 0.11448% |
Variable Rate Pennsylvania Economic Development Financing Authority Exempt Facilities Revenue Refunding Bonds, Series 2008A, due 2029 [Member] |  |
Interest Rate Swap Agreement [Abstract] |  |
Interest rate spread | 0.68% | 1.22%
Overall effective rate, including variable interest and swap payments | 3.84% | 4.38%

X
- Definition The average percentage points added to the reference rate to compute the variable rate on the group of interest rate derivatives. + References No definition available. + Details
Name: | us-gaap_DerivativeAverageBasisSpreadOnVariableRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The percentage points added to the reference rate to compute the variable rate on the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeBasisSpreadOnVariableRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Fixed interest rate related to the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeFixedInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-1B Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480434/815-10-50-1A + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition Variable interest rate in effect as of the balance sheet date related to the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeVariableInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_InterestRateDerivativesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of the interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | yorw_DebtInstrumentTermOfVariableRate
Namespace Prefix: | yorw_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of variable interest rate paid by the counterparty on the notional amount of the interest rate derivative. + References No definition available. + Details
Name: | yorw_DerivativePercentageOfVariableInterestRate
Namespace Prefix: | yorw_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Net payment rate on interest rate derivative with the counterparty for the period. + References No definition available. + Details
Name: | yorw_NetPaymentRateOnSwaps
Namespace Prefix: | yorw_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The potential amount payable to the interest rate swap counter party due to certain violations of the terms and conditions of the swap agreement. + References No definition available. + Details
Name: | yorw_PotentialPaymentToCounterparty
Namespace Prefix: | yorw_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_InterestRateSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=yorw_LondonInterbankOfferedRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=yorw_VariableRatePennsylvaniaEconomicDevelopmentFinancingAuthorityExemptFacilitiesRevenueRefundingBondsSeries2008ADue2029Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |