<?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_f0e8009f-8664-4ab5-b9a8-dc4e88534398">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_9737d682-4147-4fc3-90ab-9dfe6b47ee2d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_c7eb3377-0fe9-4a4f-a356-c6b13ea8e037">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_213cdd59-4bdc-40b7-88cb-3cb2cd72e60b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_3e5587bc-f25f-4329-b763-db6477f39cba">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_0c87160d-b97f-4ef0-a7c1-839a37c2f897">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_600f1266-8bb2-4f82-9b76-e720f746d263">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_88997670-8e98-441e-ad5e-1dedcd5ecd2b">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_02eaed8e-1ddb-4606-9820-546e5f6bb5ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_69d19fac-b129-4f81-b580-d5c5128d35f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      id="F_0301cc12-77ae-41a2-a774-7761fd42e4ef">&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;500,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_f0e8009f-8664-4ab5-b9a8-dc4e88534398"
      decimals="0"
      id="F_f3e74b79-8694-4594-b4d9-da12c57f2268"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
