<?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_8b882403-bde9-4562-957c-04e1598aef9a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_7b07f824-9a82-4e0c-bbc0-07ae9072c14e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_0d92cf5d-2075-47b8-a40a-c0dcf22d4553">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_95a725b6-0c04-42cf-b0ff-587c39481cfe">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_62a798df-e2ad-4ffd-977d-0f40f7ae1bf3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_0faa1dd2-415c-401e-8b95-9ac6147dd510">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_367c68ae-b66d-418b-a39c-82b29d481f37">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_6fc58de5-2d6b-4cec-8c6a-8b7f3992bc33">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_eb7ab724-30d9-4822-a9b5-109a44b54f46">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_39553c45-49e4-424f-9d33-fec1af05eaf3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8b882403-bde9-4562-957c-04e1598aef9a"
      id="F_5324c4df-b650-4724-b7f6-f74c4f7d1c86">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;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;4,697,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,550,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) $2,147,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_8b882403-bde9-4562-957c-04e1598aef9a"
      decimals="0"
      id="F_aa20631c-bd04-4358-8a44-49de90a234f9"
      unitRef="U_USD">4697000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
