<?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_eeaac461-25b9-4d8b-8f18-f8f3e4780c98">
        <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>
    <ffd:FormTp
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_44673531-daa6-42a4-93ce-33120ff25cfd">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_a1f736f2-08ab-4c5d-9b81-7c933815d2e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_22d47630-8a57-4e06-a753-8ff71970c12a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_85e75a7d-5c28-4b0b-9381-ea36d541bf53">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_25c40269-59a8-4095-ba35-fda4b50cd952">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_357dba4f-5eb6-40ac-b60f-46b73ecd4c7d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_5b92c311-222c-4459-b9ae-bae0d2be07cb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_df4333d4-1d6e-45b8-b578-3f6d97395125">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_16ac27f9-4c70-4d70-8bf7-7e970a36b0d8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      id="F_df69f072-baf6-47ff-9642-2d839b2d1b66">&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,198,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_eeaac461-25b9-4d8b-8f18-f8f3e4780c98"
      decimals="-3"
      id="F_28f7ca8c-8a3d-4a77-ae5f-f2db3dbb6726"
      unitRef="U_USD">2198000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
