<?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_296c1bf1-b4d1-453e-bef5-05c9813515f1">
        <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:FeeExhibitTp
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_b072cee9-7f63-433d-9e07-095ef2388776">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_db767ef4-79a3-4f7c-bcd3-9c91d1b63e0b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_41e54544-a654-4234-8e35-1d6344d193cf">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_1ec1c1dc-be80-46d5-a2c6-a6151b96bd53">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_4d2e3205-2e55-4b04-9e94-633661102c2d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_5bfd5ed2-828d-41ba-835f-c2c84c1f4df1">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_c9e3b8ba-2002-47a7-b1ec-f7203dc60924">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_9098a7f1-6475-408c-acea-f0f8f0cb6e96">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_9d3a3ffe-cdd8-48b2-8fcc-47fdab583d65">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      id="F_387e990b-5834-4cae-a25e-108f2e08d479">&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;3,627,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,822,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;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) $805,000 maximum aggregate offering price with respect to notes linked to the Russell 2000&lt;/span&gt;&lt;span style="text-transform:uppercase;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).&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_296c1bf1-b4d1-453e-bef5-05c9813515f1"
      decimals="-3"
      id="F_4fc8325f-3bee-4c65-ac65-3c6d2d9df8e6"
      unitRef="U_USD">3627000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
