<?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_fa48cacf-cc31-4417-8d51-04a1291b4ee3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_5b3e3224-629a-463f-860a-71ce9ebbd584">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_b9b0db19-506b-4635-b9ba-1009a529ffe0">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_6d136cc1-e575-495d-8679-be699151cadc">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_f25bf694-972e-44c5-8723-a0ca03f97bc3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_1a56c08c-0579-467e-b2b8-4a436e50f8a8">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_730b20ea-cb7a-4c13-a4fe-db704e951d99">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_b83eb07f-525b-4e3d-9378-7adef9a9f66a">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_bab2fc92-c97e-4cb0-9de9-bef51d4cbb60">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_840d95fa-ba41-4d82-9610-ffb6f40b7d69">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      id="F_70ac172a-7883-418c-bc24-0c372e624309">&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;3,524,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_fa48cacf-cc31-4417-8d51-04a1291b4ee3"
      decimals="-3"
      id="F_67004082-9185-4951-887b-ea09f24f920b"
      unitRef="U_USD">3524000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
