<?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_51c1295f-24c6-406f-b8b8-b76aadb96dd2">
        <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:CombinedProspectusTableNa
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_e0e3a60c-06a0-41c4-bb0f-cafc9725e954">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_f609be02-9472-46d1-a2fa-3d515e6b620c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_4ecb138f-9e7f-4263-ac38-a71936898ccb">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_7a5a243d-679d-4bfb-b544-a3e62c0f87aa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_92ff6919-4cd8-4557-98ed-b658323b80be">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_1d225420-d10a-4e43-8d5d-2dd6a23a536f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_8aebfbbb-a200-4661-a925-27ece24ff5b6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_1fa2671d-95b0-4017-8e32-d26ac1aa9a86">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_8883245a-0521-45bd-90e2-bf8f7b8a220d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      id="F_77664bc0-fee2-434f-bac5-3ec812a33f1c">&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;30,505,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_51c1295f-24c6-406f-b8b8-b76aadb96dd2"
      decimals="-3"
      id="F_9b244127-c96d-4732-938d-b576319f7734"
      unitRef="U_USD">30505000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
