<?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_9e69bd6e-a8fe-4125-b381-e572b69a8ab6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_4c05ea3b-530e-4c05-bc56-29d5ebbd060b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_8db5394a-0688-4159-84ff-a634414101ec">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_aefee1c6-a40f-4523-8fea-9cd729d8adce">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_a3cbb6e9-274c-415d-b45a-c0e160c139b7">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_692fe991-dc6d-4426-9fc9-5460d39ead22">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_661699e5-1719-4f9e-9cc0-a0ebcf44112c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_682db340-7fdd-41a2-b28b-96ed77d8ea9c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_08909ecd-2da0-4074-9453-c6601ff3b988">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_0baa8556-fff8-43be-b916-379ba021527b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      id="F_032ba247-2623-4623-b3c0-eb31d635a756">&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;880,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_9e69bd6e-a8fe-4125-b381-e572b69a8ab6"
      decimals="-3"
      id="F_4722cc5e-4ad3-4056-a01d-ff1509f7a0a1"
      unitRef="U_USD">880000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
