<?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_82037a95-8afb-4909-9bc9-0a42edefcb7e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_0b981417-5a6b-42d2-a9eb-7ae20b2b7b2d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_a8899cef-800f-4d07-9ab2-a208de550cea">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_b16ab0c0-5ebb-4a73-bab8-1d96b8db7877">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_005b406a-ae22-4eb1-8a33-b3878b2b8651">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_6c66db5f-8bbc-4dd7-9690-8742ef424bd4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_0fa96c84-ef02-4811-a95e-a2b6ec3a62bc">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_5bb68b85-7184-4043-92af-5a152502ccf9">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_97c01641-5c6b-45aa-86fb-c9adf83a1d02">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_c26c2365-424b-4505-b6ac-aab09835971e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      id="F_eaeea5af-d896-44e8-86e1-1fa4d055eadf">&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;670,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_82037a95-8afb-4909-9bc9-0a42edefcb7e"
      decimals="-3"
      id="F_d1f0757b-fde6-4f4f-b667-677a0adca289"
      unitRef="U_USD">670000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
