<?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_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_3c02157f-216a-4590-b6cb-1acbb216ee56">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_93700c62-220f-43e9-a698-f2bad35841bb">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_d8c12576-44b9-4d7c-8275-b559155d865d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_cda29dcf-7623-425d-bfb2-6fa9044edca2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_87b115b0-f1d2-42b9-8ca3-8a389c09718e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_6eaef829-fec1-4165-b465-8161796110ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_70a119e6-7071-452e-ad8f-2da17965e333">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_d2cf0b71-cfae-4489-98a8-4f263891f497">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_255bcdd6-af50-4936-96ef-a7d9dfb5760d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      id="F_e7390281-b852-4e3b-9e4b-d0b8c63804ea">&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;3,071,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_9ea89dba-5e5f-4967-90a6-87ac35fc2a5f"
      decimals="-3"
      id="F_1c6b93ed-9bca-4e2c-8673-953cb9492a16"
      unitRef="U_USD">3071000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
