<?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_62f2a122-1efc-49a0-ab42-b1cd558d9931">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_77f0e3b8-eeb8-4b3d-9f67-135f13f5fd34">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_33df1307-2b87-42cc-af2f-61b303fec3de">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_2b58e2af-9ccb-4047-9f63-dcda69bdfcd2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_522ca6b0-08c5-46aa-b9ea-c5c08d4a8901">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_c4730880-3963-47db-a851-5332b2a75034">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_126dab43-7088-4842-9b4a-8fd82975bb86">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_13277879-7585-42cc-b7b2-da972fec786e">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_a9ec13e5-c4c7-4b4a-b61b-fa2117daba12">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_b9586e9a-d141-4c89-81ac-068851f7622f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      id="F_05bcc99e-309b-4afa-a594-c674a6b3c7f5">&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;1,269,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_62f2a122-1efc-49a0-ab42-b1cd558d9931"
      decimals="-3"
      id="F_c4e1da1d-9a95-4f9f-910f-eaf3ddc34f98"
      unitRef="U_USD">1269000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
