<?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_61441520-a0c0-472d-8e14-cd0dac3997f5">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_cabe033e-fb59-429b-a760-994b21d365c4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_d917ed9b-2735-4afe-ad84-359900ed0126">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_3cd03d72-be8c-49e8-9ba3-0110540debbc">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_1f91fc97-463a-4c11-91db-685fd5a1d0a0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_0e942d1e-436a-4eb3-a6f8-825feddf73bc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_eb691dc3-a6c4-49d3-b79c-a77780e50360">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_17a78c5f-4bf5-4204-a007-15afca5644da">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_8563289f-19fc-4ea5-87d6-f2b77a8e0cef">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_2a2da1db-9b2f-4708-b70b-86fc909b56ea">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_61441520-a0c0-472d-8e14-cd0dac3997f5"
      id="F_93b916d1-fe37-432b-a8b3-8e52cb7f2fd3">&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,238,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_61441520-a0c0-472d-8e14-cd0dac3997f5"
      decimals="-3"
      id="F_9017eeab-65a2-4155-aaf7-5cd8cfd75715"
      unitRef="U_USD">2238000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
