<?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_8e924302-3695-4f7f-80f0-c19c7b89cd4e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-09</startDate>
            <endDate>2026-10-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_7a9b8961-ecc7-4790-9728-b751eba80478">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_834e253b-99d9-40be-9bc5-75d4b71c64db">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_bd4a5ad2-520e-4aba-a186-d69b3fdaea08">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_067c947b-b231-4620-b04a-28625660fd2f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_a8cf2d0a-eeb8-4e4c-8b69-bd6883f219fd">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_85f93884-b4db-4bff-adce-5aae10431f7f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_041d02a6-c06e-4319-8622-f2000e912476">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_5a868c6b-d266-4f4b-8149-058ee8d73b79">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_d7be8190-701e-43e7-840f-f46b229662b2">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      id="F_a7799324-f6f0-4a13-998a-361187eee225">&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;2,040,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_8e924302-3695-4f7f-80f0-c19c7b89cd4e"
      decimals="-3"
      id="F_9e6461fe-c0f1-4ea9-a8ab-508d9c7eaa0b"
      unitRef="U_USD">2040000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
