<?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_c81ee1a2-be50-4b30-a2de-4be8769bd5b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_3781c1a9-f5ec-43e1-8b86-ddef3ef1f24b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_354f15ab-6d5f-4ead-9023-38b893c45d09">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_776d8029-a9f2-403b-89a8-17ccdfece983">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_893a9ff4-7b2e-4056-b35a-ce02510dcc54">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_67f29123-7c87-4587-83c4-daf59ccc9b37">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_3e5276ec-b68d-4092-84cc-6d868721d800">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_cb214800-4b5c-4f9b-bc66-1fd0acba91f9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_f5afac5c-66e6-4469-8131-e145ba9bee51">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_9a06f034-2e5b-4bb8-96c2-2dfc12329017">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      id="F_0f8503e2-12b3-4219-8901-8d6bc52438e1">&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 $&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;1,000,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_c81ee1a2-be50-4b30-a2de-4be8769bd5b5"
      decimals="-6"
      id="F_d657695f-433e-47d5-868c-dd103b5771c2"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
