<?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_1fefa563-fa0b-40a8-af37-cb695c8ada57">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_515effa0-f7f7-4735-a91d-484a648b2757">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_3839b6f2-a85c-41df-ae63-bd9ebf97a5b6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_4eb3e689-10cf-4aa9-ac49-33a5887ae70c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_48db6f27-1f42-4d15-a57f-e70a3c07186e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_904b87f7-fc1c-45e6-b8e0-7a598aa5c7d5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_6d65d040-3540-4c02-8941-42a4093218d9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_c0476811-f0b7-44a0-95b0-40a3c13c4c20">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_c7f9a0ac-ffc0-4856-9a7d-8be4d89646af">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_d240e1b0-088d-4200-b410-11a8bbf5702e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      id="F_531ae012-d6f1-4b5a-bca6-cd167f71bf58">&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;10,294,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_1fefa563-fa0b-40a8-af37-cb695c8ada57"
      decimals="-3"
      id="F_bae8bd25-87e9-4841-90cc-143004840db7"
      unitRef="U_USD">10294000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
