<?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_590d38f5-1b43-4768-a7e8-5c734f56ef08">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_e7cf3f7d-846a-417f-b752-aa2387ff1ab3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_da942bca-4e48-4641-92ef-c7642a52ae54">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_4ba4f069-49c8-4e0b-8c22-329501ed84b9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_d72e6931-a9a5-46c6-9fc4-f506ef1688b2">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_f1b31ca4-e4e8-43df-ac3f-b759898369b3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_785e63a4-906e-4c2d-a73a-d8bb416a2861">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_b40977ba-ad2c-4c87-94b4-027f9fe50896">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_ad7e8756-34ed-43c0-b386-061a9c6c0377">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_fe805485-b7e1-444e-8a08-41f1f86e507e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      id="F_22d5a71a-a6b4-4661-a067-9a8bcd45124f">&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;2,500,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_590d38f5-1b43-4768-a7e8-5c734f56ef08"
      decimals="-3"
      id="F_95adbad6-0c50-4c48-af32-14ba883b65c4"
      unitRef="U_USD">2500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
