<?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_08eca8b2-58f8-41b7-820f-1430d1cc5589">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_c446ae42-b229-4ebd-a088-a513ab4c5003">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_7dd6a17f-0d2b-40b1-97a1-10a53eea2a97">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_f75fec6b-bbe4-4229-b613-69bd0a0759d7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_2e868be7-a702-49ad-8862-0f26b0d8babb">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_80374403-ad4c-480e-8e5e-71198ce6ad1a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_c19a02fc-db6e-40b9-a14f-9d68334b458c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_6dcf4a4e-e85b-40a1-8f4c-2b0f8c8dd68a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_ad2f1ddf-d920-4ac7-a0cd-e95fec0dd66e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_82d84d11-6279-4df9-aa52-7003267f8c87">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      id="F_782cc14d-8b40-4fa4-8f19-1415c5206522">&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;2,000,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_08eca8b2-58f8-41b7-820f-1430d1cc5589"
      decimals="-6"
      id="F_d060a13d-a769-449a-8187-0fa38360658a"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
