<?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_39fbd832-5731-4d07-bb85-0e53e9d33539">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_a644790e-d7c0-47f8-bf58-cc5d60a250d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_c242a3d7-d49e-4c4b-b3d3-8f9ce0defb39">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_6e79fa71-fc6d-4f8f-98a3-efde5d9a7a6c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_2ba6b9ed-3a59-431a-aeda-b956482a4d29">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_cfb86ebe-14c6-4f43-a962-200720307eb6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_6720e982-5743-4714-84b5-9576b48a81d5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_f614d735-d542-466b-96cb-ddfcedcda82a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_b75b3de8-29f4-41e4-820f-0df340b2d6f1">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_c482d22b-7e6f-471f-95ac-acfa465ed205">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_39fbd832-5731-4d07-bb85-0e53e9d33539"
      id="F_561c953f-db58-4f44-80e9-35806b75f8b0">&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;606,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_39fbd832-5731-4d07-bb85-0e53e9d33539"
      decimals="-3"
      id="F_d1166865-cbfc-47f2-92e9-59678726ced5"
      unitRef="U_USD">606000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
