<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_1613929a-cdaa-4f5c-b5c4-e120138bd3b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_fda34701-2e7d-4816-8b92-d6103db3a55b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_0b2d77f2-5f06-4974-9acf-bf2631144f09">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_d712d737-304f-4ae2-9927-37d262568191">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_ba0a29ed-b472-4a17-9adc-28399f704188">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_8e11633c-6a3c-45d1-9ffb-924dd93c91f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_4c28f569-ea74-4dd0-b92e-549d25f626cd">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_ab06fd10-f557-4a21-9ebb-d09ff1c200cd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_3127afd3-d474-4462-8809-84e430765179">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      id="F_eccd8c25-808b-45c7-ac91-d4f58bef0219">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,930,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_1876f613-2f0f-4c21-b5ac-4b234dc8aae0"
      decimals="-3"
      id="F_67630564-8828-42d7-9b29-5181e25ef572"
      unitRef="U_USD">1930000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
