<?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_8059b467-e25d-415d-a2b0-02946d24f4c7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_7df5db64-cdc6-4f36-a4fb-68b0aacb6f0e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_e3ce28b3-7e7a-477f-88f0-6285ce0c4f88">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_f1f52e8f-c496-4369-af84-6d45890d7264">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_07226c18-0adc-47bf-beb4-4ef0d6713844">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_25bd04f4-f5d5-4b1e-8e67-498ef41132af">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_eb22baf2-e913-4d4d-8d2f-af3d775048f5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_82a4d26c-95d9-457f-a5bc-8e18341ef55f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_b4e3a278-1aff-44b2-b554-d8e2f8365248">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_d8065604-d009-4813-aedc-6f3dc95d83aa">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8059b467-e25d-415d-a2b0-02946d24f4c7"
      id="F_eb43578d-76bd-4439-a65a-a85ef83ec01c">&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;7,703,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_8059b467-e25d-415d-a2b0-02946d24f4c7"
      decimals="-3"
      id="F_8184113b-3c87-486e-b168-07e960d1bf54"
      unitRef="U_USD">7703000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
