<?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_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_07ff2942-0dfc-42aa-86db-bef4518b93b9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_1f0c958f-a7a9-43e4-b168-f69ae9e206ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_68d2b34d-2f39-41bc-aa75-f53622a500b3">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_05d8e412-c302-48ab-9501-47c9ca555c32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_004c4931-996f-452c-bc92-eed8a374dfdb">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_9e93d185-ec54-4529-862b-cbf8980138e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_261514cd-da98-4ad3-8dc5-9f6552e19b79">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_c9e4376c-a464-4682-bdc9-68e15ceb7687">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_086eb688-3298-4018-8aad-415ff8df32f8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      id="F_efb23324-8c0a-4632-b7b4-5dba565565a0">&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;500,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_73d0ccc5-b83c-48a7-beb9-5d0d58e450c0"
      decimals="-3"
      id="F_79822ffe-8953-4ef7-92eb-c23059406265"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
