<?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_293060c8-a09a-43fc-8ac5-795a446df2fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_e4f7f5fa-0e58-4343-8604-f8432d459f32">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_755ef3bf-1bb3-469c-88d7-69163b50df9b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_73173d93-3eb4-4207-8b71-2b37b2373a5a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_738a394a-9b7e-4143-9897-da750331f666">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_e962683d-667c-4cc9-80e2-b2fbebf7c377">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_669ee619-3f37-46f3-9a53-877e7e609f95">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_90299ee6-1750-427b-812d-0356f7360586">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_9f668e8b-00bd-42b1-a7a2-d232ceecb122">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_0332b123-0292-4ae5-a082-f4109cc65f48">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_293060c8-a09a-43fc-8ac5-795a446df2fa"
      id="F_46800653-5e69-4e78-ae55-ab750cf9f473">&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;9,372,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_293060c8-a09a-43fc-8ac5-795a446df2fa"
      decimals="-3"
      id="F_e4c47cff-8ee7-41e1-b965-87d46d776d04"
      unitRef="U_USD">9372000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
