<?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_79bda4d2-e41f-4194-a426-b9fa2a48d546">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_3ce17463-c3ef-4653-a93d-539c1735a1d0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_56df5aa3-5efa-428f-b1be-fb4e5ff40a7a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_98b2ea13-4c0d-466b-8373-6bfd61401f2e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_8468dd15-e930-4bfa-9953-b109bb3f0032">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_3e98ffa9-8348-4965-a40a-f870e12acc43">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_e58f778f-ef8d-4f24-832b-31afa7e78dec">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_f0b4c789-392e-4316-bc60-507f66509d31">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_3defc264-4247-434f-9a67-b8dc8cba8d54">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_2038a69a-9ad8-48b6-857f-72dd71213cfc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      id="F_e43252cf-e70b-4072-b3c1-79e0135a9f9b">&lt;p style="tab-size:26.66px;font-size:8.040000000000001pt;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;8,319,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,353,000 maximum aggregate offering price with respect to notes linked to the EURO STOXX 50&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;vertical-align:super;font-size:8.040000000000001pt;line-height:1.5;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) $5,966,000 maximum aggregate offering price with respect to notes linked to the S&amp;amp;P 500&#xae; Futures Excess Return Index.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_79bda4d2-e41f-4194-a426-b9fa2a48d546"
      decimals="-3"
      id="F_15a6a625-29f7-4a20-b308-30fcf5cfd232"
      unitRef="U_USD">8319000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
