<?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_122f2a44-cf83-470d-bccf-ac0ebb385de7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_1fa9a7b6-702f-42f1-9495-63107f678142">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_e2d74119-b71a-47d7-a48c-f75ac5e49895">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_3815b70a-f2c0-4c21-87ae-11a3acf87cb5">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_ef1425e1-53c3-4e23-aa54-d2f6d59ff5e6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_5f65ec1a-8f4a-4a60-9afa-e4c428a3c284">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_4b1f49d8-4e32-45fe-905a-8379adadddf5">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_1e7b4ea8-91da-456e-9e91-005aee1e72d4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_ac17ee2e-614d-4a74-bda0-09b245b5c02a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_091b689c-f4cd-46a4-9403-f4ecbe2f8284">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      id="F_fe3b10c7-a715-4548-a18a-d245ded5cb34">&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;315,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_122f2a44-cf83-470d-bccf-ac0ebb385de7"
      decimals="-3"
      id="F_2981cf21-2067-49e0-b2d6-c6e0f0d1be7d"
      unitRef="U_USD">315000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
