<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_f07f17a4-d690-4a95-a63c-970eb0b43dee">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_7ba1658f-72b3-4a5c-afcc-c7c7631777ad">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_df0019aa-7576-4020-a4e0-00724d0d0968">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_5f41e728-e4d7-48f2-a54a-e6e54a2004dd">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_39d517f3-05fa-4f23-bc6a-1a2494997c0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_f8210631-d9b0-48a6-8eed-672aaf7d1176">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_32d13859-8584-4a0f-b554-92012f642a08">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_02ba1380-3dad-4949-87ec-1ccf6a8fc2b1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_040c6950-b04e-40d5-9ea2-3d0e35d8f543">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      id="F_f8d0f5db-120a-43f7-a826-c15431b71a33">&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,590,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,388,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) $202,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_451656a3-22c3-4e8b-bc2e-7548f7ab33e1"
      decimals="0"
      id="F_f974e4e8-fc04-4f87-9bd9-fb2e0769c48d"
      unitRef="U_USD">2590000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
