<?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_c2bfaab4-6d0f-429a-8884-a940778bb398">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_446bfe0b-b3ab-4e09-8b5f-ad4f67c21576">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_e0b93e25-e8e2-4205-8328-3ce7e68cc428">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_954ade6c-3f5d-44d6-9655-1950c81b9e5e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_f2ce2be5-ce82-4a33-9d54-07559a924533">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_86ecb90a-2826-463f-aece-93783ce1664d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_4b03417c-9f78-4332-b9e6-3bf3e8f8ceb0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_0de970d3-eff4-40d4-a4fb-2a2514276d9d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_0fe51c07-3596-41fb-9ef1-4cd124805666">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_d382f8f5-f338-4f94-a768-83145b78e95b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c2bfaab4-6d0f-429a-8884-a940778bb398"
      id="F_c75becf9-28de-4d54-8839-093a61737acf">&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,100,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_c2bfaab4-6d0f-429a-8884-a940778bb398"
      decimals="-3"
      id="F_f68c7c3e-f9d2-45f7-a7ae-800e00c1f928"
      unitRef="U_USD">1100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
