<?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_84364649-4b24-4355-8a85-c066962f39d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_99f11824-d11f-4340-bb28-ed75035eae25">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_1f512804-3238-4074-8486-d70509e39adf">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_12813f0d-77db-40a6-badb-9e06a6aa8794">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_eb28fe1b-3372-4106-8bc1-ab22d097060c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_0208ae93-576b-40b8-9b19-8bce01d91c0c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_c1c93d7f-bdd7-4577-9c7d-8cdaaa96562a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_7678ed2f-be9e-471f-8015-6e8df3bd157e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_a9c1575b-0053-4b03-ab8e-31a678bdc30d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_d207db5d-24ef-4c99-8748-02d9c0959035">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_84364649-4b24-4355-8a85-c066962f39d6"
      id="F_56d961d6-32a7-4e74-b47f-5b52fa8196ad">&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,342,050&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_84364649-4b24-4355-8a85-c066962f39d6"
      decimals="0"
      id="F_be1f78e4-2f48-452e-ad69-1baf7e6e3cdd"
      unitRef="U_USD">2342050</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
