<?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_41c6a822-3a6b-402c-b0f5-ac73aa431f7a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_c9d9035a-d9f0-4323-a8ea-83f5df4f87e2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_0ec128cd-4d38-4fd3-8361-fdaf02f0cf0f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_1a0f8375-dbcc-4bbd-a3e5-b8dd54d9af88">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_f02a8b03-676f-4554-884b-83a5ca14b0c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_8e3fab94-f07c-4e27-b9c8-15dd0795fa7d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_18f9744a-8a34-4bed-824b-56c311febd81">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_2325e809-a7cf-4060-90d0-68a4b68ad974">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_53eb866e-78c0-49ef-8884-d971668dfa00">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_85434a1c-28dd-4f6a-a234-dc6d92985dff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      id="F_8e860f60-78bd-47d3-bedb-84b731467eef">&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,000,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_41c6a822-3a6b-402c-b0f5-ac73aa431f7a"
      decimals="-6"
      id="F_565d7afa-4172-4166-bbf1-8930d31484ba"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
