<?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_615160e5-acdd-4fcb-b852-87a43e9c9240">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_150ea2c5-acfd-4192-8143-aaef3e7f544b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_f3f8bfaa-cde5-4334-9548-215861e2c5f3">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_f5c5261a-cfac-4a5c-8eac-ce355291f90d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_97240892-1524-4b05-8136-d00ae38851d7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_f899f007-427c-446c-9a23-0e6843c6fdc6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_18eab706-7c34-42f3-bc57-083a6c8596b8">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_2a789f4e-12df-48b3-8fa9-630a8df624d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_20f2a69f-69b9-45ed-969f-10ec09fb5bfa">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_a6831680-677c-4815-8623-2f078f364c6a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_615160e5-acdd-4fcb-b852-87a43e9c9240"
      id="F_2c30bd33-93ae-47da-99f5-6202ad36d048">&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;3,094,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_615160e5-acdd-4fcb-b852-87a43e9c9240"
      decimals="-3"
      id="F_3a274064-1610-4c01-b332-78f67e544dcf"
      unitRef="U_USD">3094000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
