<?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_fe6c91a2-08fb-47c5-873b-f5b564c26278">
        <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_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_a56b466a-f4c3-4448-a8eb-aeab8aa2c9c9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_9d572be2-a4e8-4430-bed1-f484e3e27e28">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_097efec9-7d26-4290-83d4-29865d63f1e6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_6a6a935b-d281-49fe-ae96-55724e32f654">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_a1c04a37-2dda-494d-ab5c-c7b891a3b00a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_08b70f10-a7bd-4ba9-b46a-9750767759ab">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_910ce999-8af3-41cc-ae0f-dd40974c2008">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_0f5348fc-ed00-4248-adcc-2c6037aef511">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_f4b9a8f9-8efd-4218-94c1-d1c88a124aa2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      id="F_2027baff-1633-46a7-ade1-55870e5aca5f">&lt;p style="tab-size:26.66px;font-size:12pt;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,194,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,934,000 maximum aggregate offering price with respect to notes linked to the S&amp;amp;P 500&#xae; Index., (ii) $260,000 maximum aggregate offering price with respect to notes linked to the Russell 2000&#xae; Index.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_fe6c91a2-08fb-47c5-873b-f5b564c26278"
      decimals="-3"
      id="F_8b72973c-da2a-49f8-9952-5f83a77a9832"
      unitRef="U_USD">3194000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
