<?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_4f1fd65a-492c-4282-9b30-47604a05bee8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_419631e4-445e-4008-a7d7-f1ac73568413">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_bd2f7556-715f-446a-9f9b-cb3c2e8a2d1a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_82e5f3cb-f34a-4d41-b276-e5a0d4d8f818">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_fb5fa8a1-55ad-42a1-a3f2-6082a1b2a2d9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_18600418-5219-4aca-9d01-444062fe6007">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_3edcb7d1-2d1c-41df-bbd7-c29c4f28635b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_4c6c805b-7461-4a18-9e8d-e243d253cf34">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_e5be9205-cce0-4bbe-9096-f4800c4296bf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_ec49e966-4d2b-4e6f-af25-47d6bd205adc">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4f1fd65a-492c-4282-9b30-47604a05bee8"
      id="F_409f63d8-e881-4039-875d-903b88b9021a">&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;3,938,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_4f1fd65a-492c-4282-9b30-47604a05bee8"
      decimals="-3"
      id="F_817b3eb4-44ed-417f-9eba-da2729152ccf"
      unitRef="U_USD">3938000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
