<?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_d0acf24f-2f95-4717-a07e-ba8efc8ccc67">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_84aa2ac6-c471-4ee9-a045-2b8a55c72a02">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_bce1cbc7-6ab4-4de4-9eef-51af6385ddb6">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_21011c88-092a-4052-8b80-f970fc37ec05">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_56a79b0e-4bc2-47a5-8e23-5dc15efaf5ea">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_0bde7ba6-6080-44ff-8aa1-da8da432e06e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_a3edd605-d137-4b52-8bb3-7607217e3c88">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_47119f86-5384-4c7b-8361-66c497355cc2">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_26dada53-1abb-437c-8af0-53f40b920a94">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_62b31f3d-24b6-4eef-b2a6-b374c9743838">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      id="F_7506641c-fe4f-4d22-82a2-26a14e683de6">&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 offerings.  The combined maximum aggregate offering price for the offerings 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,370,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; (comprised of (i) $691,000 maximum aggregate offering price with respect to notes linked to the S&amp;amp;P 500&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;vertical-align:super;font-size:8.040000000000001pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#xae; &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;Index, (ii) $679,000 maximum aggregate offering price with respect to notes linked to the Russell 2000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;vertical-align:super;font-size:8.040000000000001pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#xae;&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; Index.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_d0acf24f-2f95-4717-a07e-ba8efc8ccc67"
      decimals="-3"
      id="F_5f18f9d2-d69f-44b6-8ab3-729f4a2347ec"
      unitRef="U_USD">1370000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
