<?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_0f76ebc1-ac51-40f3-865b-86468fb94ac2">
        <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>
    <ffd:SubmissnTp
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_31830dfb-b631-4368-a190-0ddd66543369">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_af1ce5c9-1777-47bf-813d-f0e37c2e780e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_03df11a9-5305-4e25-add0-1be10466d369">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_e585e28f-d05d-4550-8384-c128361aaec9">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_e3da85c0-306f-4cae-a008-9729cfacb6ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_7bbaa17b-5f02-4eef-b33a-25d2988fa048">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_a760d2c5-3f8b-4843-9879-4a4bcc505b54">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_0f5372da-3a48-4d6f-8b8d-0edcc5ee3371">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_2a4275e3-ac11-4741-ae2b-677bac65c0cd">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      id="F_993a0ded-4fe9-41ab-9520-9c6b83025114">&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;3,193,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_0f76ebc1-ac51-40f3-865b-86468fb94ac2"
      decimals="-3"
      id="F_51402839-ae10-40f2-a4a3-358619e06ea9"
      unitRef="U_USD">3193000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
