<?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_605fb244-8ada-4b51-af22-7afd3a625009">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_3f260616-0f32-411a-aeea-ff5b1f0411ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_7d08fd24-1ac2-48e4-93f2-6bd7b981ffe3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_039321b4-415f-4270-b3b9-408769a9b23e">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_ead4f07b-a8b0-4e86-830a-5927995b2b91">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_289d5caf-b6df-4833-b019-63c754ce632b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_3fedcb19-d0e3-4097-a267-4638ddff5fe6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_f8bb3060-2aee-4494-ac6b-37e0f318d980">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_c2ebdbdf-acc7-4f57-a312-5174925845c4">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_b7c87ea5-74e2-4aa5-9cfe-8aaeaf93c454">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      id="F_5292fba4-e43c-4e41-aaa7-41339255f295">&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 offering.  The maximum aggregate offering price for such offering 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,332,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;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_605fb244-8ada-4b51-af22-7afd3a625009"
      decimals="-3"
      id="F_dcd0a4fc-28cc-4f33-928a-f2a100444842"
      unitRef="U_USD">2332000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
