<?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_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_8767a9e2-dfc0-43ee-a0ac-e693c5f22113">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_31a05217-bc76-4d16-ac5b-95a755f8abd3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_0f47ee58-9b1a-4e7e-8d03-95193fee1cc5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_e0619b56-4bc5-4f02-befc-b00d84916ca1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_922acf74-8bc6-4a49-b8a7-c95130ed807c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_3e27e070-12bd-4bf3-b1ef-5af7423c15e0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_f9026abf-6a4f-4fe0-a574-3091df7f9185">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_e7a78a95-5e0d-4de2-95d1-8ae589c8bd11">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_34d460ba-cea0-4cb0-998b-3af07f6cece5">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      id="F_a3c642cd-1c0a-46f1-aece-557e1773ec1e">&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,427,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,030,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) $397,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_f0ccf248-0bf4-47c3-a2dd-84bcfcc7c3fa"
      decimals="0"
      id="F_3d9b1957-f6b8-40fe-a4e1-70a5bf2e0a54"
      unitRef="U_USD">2427000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
