<?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_159da1bb-f600-4e9c-913b-5b8b3984e141">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_06fe2163-d1a2-4dd7-9642-6a8ca57607af">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_3a776bbe-250c-4f12-af86-032c96a7aaa2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_00e64db9-f9a7-47f4-aa85-c752cdef9b43">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_e24b7adf-3e63-4103-917d-d865c0d0bbb3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_3c3e664e-26d2-4583-82dd-2a3f60f1f7a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_6926a847-43dc-4084-bc37-b22e176bf6b4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_e9fcd4d2-1481-424c-b542-d529a9804935">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_6a083f40-092a-4f41-96e2-78df9cbdfc96">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_02445652-06e1-4567-8f90-9e84dc98ca44">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_159da1bb-f600-4e9c-913b-5b8b3984e141"
      id="F_7eb42d41-4239-4f4f-aec8-66aa05c06616">&lt;p style="font-size:10pt;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;1,084,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_159da1bb-f600-4e9c-913b-5b8b3984e141"
      decimals="-3"
      id="F_f97d34c9-9cb4-43bb-8927-5897f03eb1d3"
      unitRef="U_USD">1084000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
