<?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_c38b8b21-5040-4ea3-8110-dd3e6051d24e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_0c6442c5-93b2-4edc-bea3-6ccce2e83c99">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_81ea718d-1d1a-4a80-bc9f-8a361c63f41c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_b25f30ec-0f1a-4eb5-b2db-b7940b99f627">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_38a667c2-ffb5-445b-bb47-fd832a5d3d70">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_dd3d0859-0442-4aa5-83c4-f1a73a078c05">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_1ab46790-8759-4977-8a16-6b102c7b2f75">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_17535295-252c-4661-91b8-261700c08878">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_902d02bf-95a0-4a0c-82df-ecac5a1fc8a0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_25602413-39c0-41a5-aafe-a27de1595747">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      id="F_2a2aff5f-7f60-4e05-89f8-df5cf1ab215f">&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;626,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_c38b8b21-5040-4ea3-8110-dd3e6051d24e"
      decimals="-3"
      id="F_e2a40c8b-f8a7-415b-a5d5-4411a92eb98b"
      unitRef="U_USD">626000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
