<?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_d1afc86b-5a32-4aac-8eae-dc4737461fcf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_b0a8102c-a549-406d-a125-92be1b7d7260">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_bddda444-1163-46d0-b0cd-4553b207ddd3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_cf025530-996c-4d66-b0a8-c7b09b04a392">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_b7b4ab11-ca28-4ec3-b51e-eb25074b64f4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_d8109ac4-6a03-4e7a-8437-3cd9e112ec56">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_a5ab10c6-d585-4038-8f0a-f9e820f7461d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_d8324616-2be6-4bb1-aa5a-9473ba2f2414">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_33a1ed62-ae4f-4d82-a51a-50311050db7b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_0a4b600e-e178-4eb2-a2ca-150626e353a1">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      id="F_9e35c146-1281-454b-b879-d7cff265d7e6">&lt;p style="font-size:10pt;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,660,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_d1afc86b-5a32-4aac-8eae-dc4737461fcf"
      decimals="-3"
      id="F_50b3767b-3901-447b-a19f-186091f03ef2"
      unitRef="U_USD">1660000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
