<?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_5297ddf6-bc72-41ec-858b-0fe4977c6722">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_39e825dc-e275-46bd-8095-96b06019dc47">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_5ca7f563-a564-45d1-ba6a-627a7af77fcf">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_5ffdc003-d33e-45f2-b05b-2bf986aee0bd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_65ef5116-5657-4023-8470-aa5b6920da41">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_a1d545d3-e8e9-46fb-9aac-6b7016efe67d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_13562f60-1908-41ab-b6d4-59bd0fbb4530">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_95fc4ae8-aeb2-486f-a652-7fa68dd02f2e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_ba017de2-79bd-46a0-8cdd-15307a3c1d94">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_ab2912d8-3d11-4a35-8afc-dec73393f78c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      id="F_7ea0a549-713b-425b-b7c8-25de9b50c789">&lt;p style="tab-size:26.66px;font-size:12pt;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,000,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_5297ddf6-bc72-41ec-858b-0fe4977c6722"
      decimals="-6"
      id="F_35e16f5d-b7d1-429b-ac83-ebc68585af95"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
