<?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_14aad35a-e69d-4e3b-a21c-4a5d999c5389">
        <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>
    <ffd:OffsetTableNa
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_e80f1857-f2c7-4e5a-9c59-a4fdb5ede57c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_05f19b70-3bb9-45a4-ac72-1dee5d15db64">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_9fe9ba27-149c-403a-97d0-73ee788b60ec">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_4c266509-dc23-4869-b43e-422683f0d110">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_802a9c1d-0020-41c7-b795-abf139643a6a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_e5e0fd0c-8f2c-4bbd-98a9-5ee641db3daa">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_e2eefe7c-f233-43a0-8164-76bdd600088c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_30536d5e-ca4f-4cf5-821f-d2e44a5a34e8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_3a3147bb-3e93-45ad-8f6e-21fbbd779b7e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      id="F_ef293708-9ad6-4c51-b648-ffaae48d6228">&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;2,000,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_14aad35a-e69d-4e3b-a21c-4a5d999c5389"
      decimals="0"
      id="F_c62e36d5-5d08-4fd4-b157-a5e4d2780e93"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
