<?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_28823426-0771-4ded-8f24-d31a9f0c02e6">
        <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_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_b173deac-f267-4124-95ab-2c68bb828069">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_4ddc6376-752b-4b00-a0a8-67ba43f36ddf">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_565de39e-2acb-4c26-ab13-169661b95c0f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_25d91ac6-7ea6-45fb-98fa-8892eba186b2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_b55f5b10-577f-43db-89d7-1e22c8b4292b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_4603f297-3873-4ee6-90b4-aa998e1f57dc">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_9dc8d2f1-6d22-4918-a00f-c53949886e12">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_e2aa98ad-01d5-42f5-827d-b3d936cb1cd8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_6e5902c5-76a9-4aad-9568-ac4281ebef01">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_28823426-0771-4ded-8f24-d31a9f0c02e6"
      id="F_71bdce97-94d7-48a2-badc-946501d3988d">&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,638,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_28823426-0771-4ded-8f24-d31a9f0c02e6"
      decimals="-3"
      id="F_d6c8cf17-7a8b-4995-93e0-b7b0bd79df5c"
      unitRef="U_USD">1638000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
