<?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_a7551b3d-0e11-430f-9cd0-9b048d72a7ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_bd1bbb94-eea6-4339-8187-f5c9d4c26b0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_37137cd9-7bc6-4b60-92da-36b1308c5232">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_b291fb40-fa2b-45b6-990f-15e45b3c8ccf">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_69db204c-b977-4ec2-96c4-ddc83cadb1d9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_86abb9bc-5315-4a74-8d96-cbd2e8e63c92">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_3b1c2247-9cb4-40cc-9257-668c2dbe9ae8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_188d8154-df69-4add-8532-dccd4597d125">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_081ee9a6-5290-44b8-8198-f857d3eeba3f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_e2c69843-976e-4985-aedb-f5d3e4a6b8ec">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      id="F_7ac6bf37-7cd9-4d95-939e-2fb2197b2303">&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;4,099,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_a7551b3d-0e11-430f-9cd0-9b048d72a7ba"
      decimals="-3"
      id="F_7f3ea602-b472-4a11-a71a-dd919472b4b9"
      unitRef="U_USD">4099000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
