<?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_419eaac9-49c4-4c02-bde5-d2042ed8b181">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_d204c3b2-7a55-4b34-9866-3e2dde07aed7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_00b49c5c-c22e-4bd1-9b65-795726817136">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_5113513e-d946-4cab-ac89-d36a7a9422ac">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_36c08023-c830-476b-a724-26b6587c10c6">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_fae406f7-e0d5-472f-820f-a4302bd8062f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_326d4094-3688-414f-a7ad-1da0ba9afa26">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_827453e4-8aaf-41c7-8798-7c431fe8ddbd">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_e0653c3b-5b0b-4ac1-a082-1c539158656e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_df1d956b-15be-45d0-affe-4de55c048706">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      id="F_4067a881-e2dc-4b6f-bf3f-fcfc611d7d45">&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;4,340,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_419eaac9-49c4-4c02-bde5-d2042ed8b181"
      decimals="-3"
      id="F_be56acc3-0416-49cf-9af7-11ca03e00578"
      unitRef="U_USD">4340000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
