<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_ccd46575-6518-4f30-a1cc-a12f6be0caff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_c29b996d-e03f-4178-93dc-2c0c445aa572">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_2c57e053-b43c-4c83-bbc6-6e6d7e308e1e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_e6b79930-14ac-44df-9210-8b3eb8b939f6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_d71b6b77-3905-4468-8506-bf2742457f15">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_38962d59-8ada-469f-9155-04d9562ca6b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_bcdad41c-fb98-4de2-a3a6-1f0c237a9f8d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_0cc613d7-7192-4678-8c5e-fb07632bc5d2">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_2dbc058a-a572-453b-8187-e3ab17cf5353">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_e26a6a11-7949-408d-8d25-5ba87c4796c6">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      id="F_0f04ad1e-f43f-4013-a1cd-eed47e7f2172">&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,046,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_ccd46575-6518-4f30-a1cc-a12f6be0caff"
      decimals="0"
      id="F_b82b0983-777f-47f0-bb0a-6648e323a0e6"
      unitRef="U_USD">1046000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
