<?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_cfeb2abc-d279-4fca-9c0f-579ca8dceca8">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_b5df3216-6805-41e9-857d-af07484e7aa4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_58e5f0ea-3e75-4c06-9053-a64fbb357900">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_c5ae100f-7666-433d-a670-e50dd7696324">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_a686dcb8-dab5-4f07-8b7b-7cf916e06a5e">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_270c3b12-c82a-4700-92d9-e6682884f162">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_074695f2-7f88-4df1-aa65-45dcde184f9c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_a0f7957f-ba56-407b-abd0-73d5e9db0313">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_d91790b1-ba0b-4aef-a555-f1edfddadd1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_9fcfe046-dba5-4641-b824-3d76f16c5ba3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      id="F_86c01bc6-0950-4f95-ac60-0ea2bd9980ed">&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;1,022,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_cfeb2abc-d279-4fca-9c0f-579ca8dceca8"
      decimals="-3"
      id="F_b21d1dbd-b8be-429c-b816-21cf000a45ff"
      unitRef="U_USD">1022000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
