<?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_c97549d0-a3c0-4a05-84f5-1010c15b0fc5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_1d9f50a8-45fa-4531-97c2-a0921350e7cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_26de260d-c3e2-4033-befe-9e9d2f4b0d45">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_4a446a83-531c-4280-a492-67a783b7801c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_b93db441-c340-4669-bd97-8b1284679499">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_76ef1afa-136b-407b-807d-8a3c335fad46">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_e14ea33f-5f63-48d1-b1ff-2d7f449ecb0d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_c0ed64a1-d5a6-4d49-96b3-646f11c6f732">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_922ef794-c64e-4c90-844a-92333fc53da2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_c97a4846-ac7f-4f46-9d3b-d076bf44cb19">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      id="F_1e4bb99f-f4c1-44ab-98dc-3b3ffc4f85f0">&lt;p style="font-size:10pt;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,162,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_c97549d0-a3c0-4a05-84f5-1010c15b0fc5"
      decimals="-3"
      id="F_7054aff9-c3e0-4280-9ee6-9ba8162c0057"
      unitRef="U_USD">1162000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
