<?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_20b5741a-16a2-4bdf-9099-da94d187d58b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_25e68166-81a6-4fbe-a8ea-a5300e89fb68">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_7fc2f145-75e0-4ea6-87e7-4a619f8ffd98">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_9310b8d4-7392-4f95-98ea-98a1ebd5637a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_53ed4c34-b302-41c9-a869-684281ebb1d9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_f812aee5-9c4d-4c75-8092-7fc9f4d064a6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_da9df359-7f6c-44a6-b716-e6ffa7be076e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_c5bc1589-f4a8-4b0b-98e0-c5b3d00db8bc">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_cbc1587e-05f3-489d-9101-ce58687f6fa9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_871136fe-4e08-4317-a0e6-e915c7b438b6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_20b5741a-16a2-4bdf-9099-da94d187d58b"
      id="F_28eff236-f300-40ee-ab82-274546be1012">&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;3,143,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) $2,101,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,042,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_20b5741a-16a2-4bdf-9099-da94d187d58b"
      decimals="-3"
      id="F_779d4a6e-ef59-4e80-80d9-88bbe669ca59"
      unitRef="U_USD">3143000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
