{
 "version": "2.2",
 "instance": {
  "c497.htm": {
   "nsprefix": "cik0000795384",
   "nsuri": "http://troweprice.com/20230228",
   "dts": {
    "schema": {
     "local": [
      "c497-20231002.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://xbrl.sec.gov/dei/2022/dei-2022.xsd",
      "https://xbrl.sec.gov/rr/2022/rr-2022.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "c497-20231002_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "c497-20231002_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "c497-20231002_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "c497-20231002_pre.xml"
     ]
    },
    "inline": {
     "local": [
      "c497.htm"
     ]
    }
   },
   "keyStandard": 10,
   "keyCustom": 0,
   "axisStandard": 1,
   "axisCustom": 0,
   "memberStandard": 0,
   "memberCustom": 1,
   "hidden": {
    "total": 7,
    "http://xbrl.sec.gov/dei/2022": 7
   },
   "contextCount": 2,
   "entityCount": 1,
   "segmentCount": 1,
   "elementCount": 38,
   "unitCount": 3,
   "baseTaxonomies": {
    "http://xbrl.sec.gov/dei/2022": 8,
    "http://xbrl.sec.gov/rr/2022": 2
   },
   "report": {
    "S1": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "c497.htm",
      "contextRef": "Context_S000002150Member_S000002150SummaryMember",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:SupplementToProspectusTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "true",
     "longName": "000000019 - Disclosure - T. Rowe Price Maryland Tax-Free Money Fund",
     "section": 0,
     "shortName": "T. Rowe Price Maryland Tax-Free Money Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "c497.htm",
      "contextRef": "Context_S000002150Member_S000002150SummaryMember",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:SupplementToProspectusTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "c497.htm",
      "contextRef": "Context",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:ProspectusDate",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000000069 - Disclosure - Document and Entity Information",
     "section": 1,
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "c497.htm",
      "contextRef": "Context",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:ProspectusDate",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R1": {
     "role": "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
     "longName": "01001 - Document - Document and Entity Information {Elements}",
     "shortName": "Document and Entity Information",
     "isDefault": "false",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Risk/Return",
     "order": "1",
     "firstAnchor": {
      "contextRef": "Context",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "c497.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Context",
      "name": "dei:EntityRegistrantName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "c497.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://troweprice.com/20230228/role/RRSummary2",
     "longName": "01002 - Document - Risk/Return Summary (T. Rowe Price Maryland Tax-Free Money Fund) {Unlabeled}",
     "shortName": "Risk/Return Summary (T. Rowe Price Maryland Tax-Free Money Fund)",
     "isDefault": "false",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Risk/Return",
     "order": "2",
     "firstAnchor": {
      "contextRef": "Context_S000002150Member_S000002150SummaryMember",
      "name": "rr:SupplementToProspectusTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "c497.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R3": {
     "role": "http://troweprice.com/20230228/role/RRDetailData3",
     "longName": "01003 - Disclosure - Risk/Return Detail Data (T. Rowe Price Maryland Tax-Free Money Fund) {Elements}",
     "shortName": "Risk/Return Detail Data (T. Rowe Price Maryland Tax-Free Money Fund)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Risk/Return",
     "order": "3",
     "firstAnchor": {
      "contextRef": "Context_S000002150Member_S000002150SummaryMember",
      "name": "rr:SupplementToProspectusTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "c497.htm",
      "first": true
     },
     "uniqueAnchor": null
    }
   },
   "tag": {
    "rr_SupplementToProspectusTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "SupplementToProspectusTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplement to Prospectus [Text Block]",
        "terseLabel": "Supplement to Prospectus [Text Block]",
        "documentation": "This element contains the text of a prospectus supplement (submission type 497) not already contained in an element containing amended text or other data from a previous submission."
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "rr_RiskReturnAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "RiskReturnAbstract",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk/Return:",
        "terseLabel": "Risk/Return:"
       }
      }
     },
     "auth_ref": []
    },
    "cik0000795384_S000002150Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://troweprice.com/20230228",
     "localname": "S000002150Member",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "S 000002150 [Member]",
        "terseLabel": "T. Rowe Price Maryland Tax-Free Money Fund",
        "documentation": "T. Rowe Price Maryland Tax-Free Money Fund"
       }
      }
     },
     "auth_ref": []
    },
    "rr_ShareholderFeesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ShareholderFeesTableTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Fees [Table]",
        "terseLabel": "Shareholder Fees [Table]",
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to ShareholderFeesData."
       }
      }
     },
     "auth_ref": []
    },
    "rr_Component3OtherExpensesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "Component3OtherExpensesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_OtherExpensesOverAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Fund may subdivide this caption into no more than three subcaptions that identify the largest expense or expenses comprising \"Other Expenses,\" but must include a total of all \"Other Expenses.\" Alternatively, the Fund may include the components of \"Other Expenses\" in a parenthetical to the caption."
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "rr_Component2OtherExpensesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "Component2OtherExpensesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_OtherExpensesOverAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Fund may subdivide this caption into no more than three subcaptions that identify the largest expense or expenses comprising \"Other Expenses,\" but must include a total of all \"Other Expenses.\" Alternatively, the Fund may include the components of \"Other Expenses\" in a parenthetical to the caption."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "rr_ProspectusDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ProspectusDate",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus Date",
        "terseLabel": "Prospectus Date",
        "documentation": "The date of the prospectus."
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "rr_FeeWaiverOrReimbursementOverAssets": {
     "xbrltype": "NonPositivePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "FeeWaiverOrReimbursementOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_NetExpensesOverAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses. If there were expense reimbursement or fee waiver arrangements that reduced any Fund operating expenses and will continue to reduce them for no less than one year from the effective date of the Fund's registration statement, a Fund may add two captions to the table one caption showing the amount of the expense reimbursement or fee waiver, and a second caption showing the Fund's net expenses after subtracting the fee reimbursement or expense waiver from the total fund operating expenses. The Fund should place these additional captions directly below the \"Total Annual Fund Operating Expenses\" caption of the table and should use appropriate descriptive captions, such as \"Fee Waiver [and/or Expense Reimbursement]\" and \"Total Annual Fund Operating Expenses After Fee Waiver [and/or Expense Reimbursement],\" respectively. If the Fund provides this disclosure, also disclose the period for which the expense reimbursement or fee waiver arrangement is expected to continue, and briefly describe who can terminate the arrangement and under what circumstances."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "rr_AnnualFundOperatingExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "AnnualFundOperatingExpensesTableTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Fund Operating Expenses [Table]",
        "terseLabel": "Annual Fund Operating Expenses [Table]",
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to OperatingExpensesData."
       }
      }
     },
     "auth_ref": []
    },
    "rr_AcquiredFundFeesAndExpensesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "AcquiredFundFeesAndExpensesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "rr_ExpensesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ExpensesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_NetExpensesOverAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses. If the Fund is a Feeder Fund, reflect the aggregate expenses of the Feeder Fund and the Master Fund in a single fee table using the captions provided. In a footnote to the fee table, state that the table and Example reflect the expenses of both the Feeder and Master Funds. If the prospectus offers more than one Class of a Multiple Class Fund or more than one Feeder Fund that invests in the same Master Fund, provide a separate response for each Class or Feeder Fund.  Base the percentages of \"Annual Fund Operating Expenses\" on amounts incurred during the Fund's most recent fiscal year, but include in expenses amounts that would have been incurred absent expense reimbursement or fee waiver arrangements. If the Fund has changed its fiscal year and, as a result, the most recent fiscal year is less than three months, use the fiscal year prior to the most recent fiscal year as the basis for determining \"Annual Fund Operating Expenses.\""
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "rr_BarChartTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "BarChartTableTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bar Chart [Table]",
        "terseLabel": "Bar Chart [Table]",
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to BarChartData."
       }
      }
     },
     "auth_ref": []
    },
    "rr_ExpenseExampleWithRedemptionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ExpenseExampleWithRedemptionTableTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, With Redemption [Table]",
        "terseLabel": "Expense Example, With Redemption [Table]",
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to ExpenseExample."
       }
      }
     },
     "auth_ref": []
    },
    "rr_PerformanceTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "PerformanceTableTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance [Table]",
        "terseLabel": "Performance [Table]",
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to PerformanceTableData."
       }
      }
     },
     "auth_ref": []
    },
    "rr_ProspectusTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ProspectusTable",
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus:",
        "terseLabel": "Prospectus:",
        "documentation": "Prospectus Table."
       }
      }
     },
     "auth_ref": [
      "r2"
     ]
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "rr_NetExpensesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "NetExpensesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses."
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "rr_ShareClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ShareClassDomain",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All members of this domain must be elements with name starting with \"C\" and consisting of a 9-digit Fund share class CIK."
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "rr_ProspectusShareClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ProspectusShareClassAxis",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Class [Axis]",
        "terseLabel": "Share Class [Axis]",
        "documentation": "Prospectus Share Class Axis."
       }
      }
     },
     "auth_ref": [
      "r2"
     ]
    },
    "dei_DocumentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "DocumentDomain",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus",
        "terseLabel": "Prospectus",
        "documentation": "Type of the document as assigned by the filer, corresponding to SEC document naming convention standards."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentEffectiveDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "DocumentEffectiveDate",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Effective Date",
        "terseLabel": "Document Effective Date",
        "documentation": "The date when a document, upon receipt and acceptance, becomes officially effective, in YYYY-MM-DD format. Usually it is a system-assigned date time value, but it may be declared by the submitter in some cases."
       }
      }
     },
     "auth_ref": []
    },
    "rr_ManagementFeesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ManagementFeesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management Fees include investment advisory fees (including any fees based on the Fund's performance), any other management fees payable to the investment adviser or its affiliates, and administrative fees payable to the investment adviser or its affiliates that are not included as \"Other Expenses.\""
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "dei_EntityInvCompanyType": {
     "xbrltype": "invCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "EntityInvCompanyType",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "EntityInvCompanyType",
        "terseLabel": "EntityInvCompanyType",
        "documentation": "One of: N-1A (Mutual Fund), N-1 (Open-End Separate Account with No Variable Annuities), N-2 (Closed-End Investment Company), N-3 (Separate Account Registered as Open-End Management Investment Company), N-4 (Variable Annuity UIT Separate Account), N-5 (Small Business Investment Company), N-6 (Variable Life UIT Separate Account), S-1 or S-3 (Face Amount Certificate Company), S-6 (UIT, Non-Insurance Product)."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "dei_DocumentInformationDocumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "DocumentInformationDocumentAxis",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document [Axis]",
        "terseLabel": "Document [Axis]",
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": []
    },
    "rr_ExpenseExampleNoRedemptionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "ExpenseExampleNoRedemptionTableTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example, No Redemption [Table]",
        "terseLabel": "Expense Example, No Redemption [Table]",
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to ExpenseExampleNoRedemption."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registrant Name",
        "terseLabel": "Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Series [Axis]",
        "terseLabel": "Series [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "rr_MarketIndexPerformanceTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "MarketIndexPerformanceTableTextBlock",
     "presentation": [
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Market Index Performance [Table]",
        "terseLabel": "Market Index Performance [Table]",
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to MarketIndexPerformanceData."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "EntityDomain",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "DocumentType",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "terseLabel": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "rr_DistributionAndService12b1FeesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "DistributionAndService12b1FeesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Distribution [and/or Service] (12b-1) Fees\" include all distribution or other expenses incurred during the most recent fiscal year under a plan adopted pursuant to rule 12b-1 [17 CFR 270.12b-1]. Under an appropriate caption or a subcaption of \"Other Expenses,\" disclose the amount of any distribution or similar expenses deducted from the Fund's assets other than pursuant to a rule 12b-1 plan."
       }
      }
     },
     "auth_ref": [
      "r12"
     ]
    },
    "dei_DocumentCreationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2022",
     "localname": "DocumentCreationDate",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Creation Date",
        "terseLabel": "Document Creation Date",
        "documentation": "The date the document was made available and submitted, in YYYY-MM-DD format. The date of submission, date of acceptance by the recipient, and the document effective date are all potentially different."
       }
      }
     },
     "auth_ref": []
    },
    "rr_OtherExpensesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "OtherExpensesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "\"Other Expenses\" include all expenses not otherwise disclosed in the table that are deducted from the Fund's assets or charged to all shareholder accounts. The amount of expenses deducted from the Fund's assets are the amounts shown as expenses in the Fund's statement of operations (including increases resulting from complying with paragraph 2(g) of rule 6-07 of Regulation S-X [17 CFR 210.6-07]).  \"Other Expenses\" do not include extraordinary expenses as determined under generally accepted accounting principles (see Accounting Principles Board Opinion No. 30). If extraordinary expenses were incurred that materially affected the Fund's \"Other Expenses,\" disclose in a footnote to the table what \"Other Expenses\" would have been had the extraordinary expenses been included."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "rr_DistributionOrSimilarNon12b1FeesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "DistributionOrSimilarNon12b1FeesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Distribution [and/or Service] (12b-1) Fees\" include all distribution or other expenses incurred during the most recent fiscal year under a plan adopted pursuant to rule 12b-1 [17 CFR 270.12b-1]. Under an appropriate caption or a subcaption of \"Other Expenses,\" disclose the amount of any distribution or similar expenses deducted from the Fund's assets other than pursuant to a rule 12b-1 plan."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "rr_Component1OtherExpensesOverAssets": {
     "xbrltype": "NonNegativePure4Type",
     "nsuri": "http://xbrl.sec.gov/rr/2022",
     "localname": "Component1OtherExpensesOverAssets",
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "parentTag": "rr_OtherExpensesOverAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Fund may subdivide this caption into no more than three subcaptions that identify the largest expense or expenses comprising \"Other Expenses,\" but must include a total of all \"Other Expenses.\" Alternatively, the Fund may include the components of \"Other Expenses\" in a parenthetical to the caption."
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "cik0000795384_S000002150SummaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://troweprice.com/20230228",
     "localname": "S000002150SummaryMember",
     "presentation": [
      "http://troweprice.com/20230228/role/DocumentAndEntityInformation1",
      "http://troweprice.com/20230228/role/RRDetailData3",
      "http://troweprice.com/20230228/role/RRSummary2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "S 000002150 Summary [Member]",
        "terseLabel": "Prospectus Summary",
        "documentation": "Prospectus Summary"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "1",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "1",
   "Subsection": "a",
   "Paragraph": "3"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "instructions",
   "Paragraph": "3",
   "Subparagraph": "a"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "instructions",
   "Paragraph": "3",
   "Subparagraph": "b"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "instructions",
   "Paragraph": "3",
   "Subparagraph": "c",
   "Clause": "i"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "instructions",
   "Paragraph": "3",
   "Subparagraph": "c",
   "Clause": "iii"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "instructions",
   "Paragraph": "3",
   "Subparagraph": "d"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "table",
   "Paragraph": "1",
   "Subparagraph": "10"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "table",
   "Paragraph": "1",
   "Subparagraph": "11"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form",
   "Number": "N-1A",
   "Chapter": "A",
   "Section": "3",
   "Subsection": "table",
   "Paragraph": "1",
   "Subparagraph": "9"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "313"
  }
 }
}
