<?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_2b811406-ae93-4688-9c1c-1e409199a82b">
        <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:OffsetTableNa
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_44f737b7-2879-4db7-a2fe-7624d08afd1d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_19d6c5ec-a073-4441-bf29-5142f2e31710">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_cdb601d3-0cd0-4231-bb92-f84a15494da8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_6a6bcdca-f616-4afc-819e-6c14b05b3c76">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_9454ab4d-4b75-4347-95cb-6ea56a706290">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_a4b556d4-5b80-4c78-9afa-80b3a0b25fbf">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_3596fc78-d250-4d68-a721-7b199e7a6439">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_b44411a0-5e4f-488e-937d-4a2d086a5b61">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_17af54fa-434e-458e-9354-9e1fe7b32446">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2b811406-ae93-4688-9c1c-1e409199a82b"
      id="F_c9347f28-5b4b-4daa-ac75-76b5a61ae65b">&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,287,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,492,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) $795,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;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_2b811406-ae93-4688-9c1c-1e409199a82b"
      decimals="-3"
      id="F_3c01a188-30f6-480c-8701-bf28994517a2"
      unitRef="U_USD">3287000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
