<?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_79fc0140-52ac-4823-bb3d-30bf59db58dd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_c96d3bbd-d172-4331-b652-336b6acfb82a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_2241fa29-881c-4a85-8745-406942e73539">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_872857d6-2971-4019-9de0-fedda176da01">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_2067a39d-5e82-4224-b2dc-0a2d1238b1f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_ac6b74cd-1e3d-4d2e-9ce9-16c6b2c6ad16">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_65785d8c-c582-4801-a5f3-13991e72c45d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_1a67e37f-8afd-4a61-8a9e-aa43801e8e6a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_0039d2a3-c527-4469-86a0-c9e6c1e14c7f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_57fd85fd-309c-4266-8780-b41f9f5e373c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      id="F_7c86bb9e-61b3-4ab6-adc5-07c9217a8219">&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;10,955,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_79fc0140-52ac-4823-bb3d-30bf59db58dd"
      decimals="-3"
      id="F_406a8aa7-8ec2-4543-a5e6-5b2ec92c4e97"
      unitRef="U_USD">10955000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
