<?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_bd8795a0-981d-4681-9948-6bc898e9f71d">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_b899b72f-d370-4298-96c8-307c21097285">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_43e2d4f4-d670-404b-b3c8-63007992ca1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_6bbd26af-944a-48e6-b015-dd125e075903">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_67d449ca-9c9b-466e-a49d-c87c5e6aac16">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_c412658a-67d5-4382-861d-5eb3d7c8dbf2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_c77f3b16-c467-41c2-8fac-02fb01d94593">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_6d4238da-281b-4edc-bea8-2f0ba0afc543">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_f841054b-eb83-4920-aca1-2b149f633ab5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_4f12b93a-cf9e-4ef5-90d3-51872fa5d738">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bd8795a0-981d-4681-9948-6bc898e9f71d"
      id="F_bdf4b067-1952-434d-85f6-45fbbb4ee4c0">&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;2,716,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) $1,686,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) $1,030,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_bd8795a0-981d-4681-9948-6bc898e9f71d"
      decimals="-3"
      id="F_a783d265-666c-4d15-be66-044da77ed111"
      unitRef="U_USD">2716000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
