<?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_d02282d6-4438-4b1f-a864-8b3aee126b3d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_939fe143-8c14-4564-9906-4c44b8d2c9aa">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_1f12d4dd-32bd-4ee4-8256-bebf153b0daf">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_84216f81-511d-49bc-b98a-ab8ce4f1b5a4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_a687a6f5-a991-41ed-865d-d6a3cfffd772">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_3afd60cf-25f1-41e7-8e14-d934c50bbf3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_4710245a-32d5-4f0e-8280-86b58d42532a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_69b4974e-5773-4cfd-93f3-a2d4f306816e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_7ec1def2-5d2d-450b-9690-d31c605c1fd1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_c6f999d2-ea79-4c09-b3c5-a93785392678">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      id="F_71098832-1b77-44e5-9340-6fcd758411e1">&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,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_d02282d6-4438-4b1f-a864-8b3aee126b3d"
      decimals="-6"
      id="F_bbea6957-e9eb-4871-bb28-9cf665b4170b"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
