<?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_7460137c-0512-471c-b08c-850573eafad0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_cb45e200-793f-4a5f-b192-6d3122487932">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_5b7e034d-ad2a-4d96-acc3-8686cd00bfec">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_df6d8cc5-76d7-46dd-ae28-f4f021390e5d">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_10c00c37-e7c2-401c-9486-e5b803d3d910">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_0dc19574-8f2d-444b-a32d-fd33e795ed35">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_a4f81fdc-a020-48a0-b601-7c673c9fc305">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_00ee1153-cb7a-437f-9c83-9ef81c617c40">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_0d999075-2917-4e69-8a57-19b30759e9a5">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_c31f8457-4499-436a-bd83-2975e0a39949">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7460137c-0512-471c-b08c-850573eafad0"
      id="F_599ed817-f9d9-46ec-b0ac-e9f0b5acf1c1">&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;531,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_7460137c-0512-471c-b08c-850573eafad0"
      decimals="-3"
      id="F_b60ca6e6-ecb6-48d9-8553-8c7e2735fd76"
      unitRef="U_USD">531000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
