<?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_d8a9ab32-7824-4e8a-893f-48a7e24a8a36">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_77c01c9e-43e4-4a14-bbcf-b25ca50b5a95">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_791137a2-45be-4f20-b040-96cd6080fad1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_ad817eb6-ea33-4390-94b3-1a9d8804baaa">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_e4e524d2-3cf8-462f-b0a5-351e658d9f18">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_0afb500d-1a0a-4821-a099-fc27b3c5cff6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_d5f68e16-cdfe-49f2-8f40-7894a213a690">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_56390c22-140a-4f04-aa51-0c6fb999ce2b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_26a4e57b-d31c-42fc-a681-9111bc938e37">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_37e5c276-65ef-4e3e-a7af-c603da5dfb33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      id="F_5b165d67-b3a1-4ee8-acb5-4abfe80660ca">&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;680,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_d8a9ab32-7824-4e8a-893f-48a7e24a8a36"
      decimals="-3"
      id="F_008e6ee1-b361-4711-9778-49cd528a419d"
      unitRef="U_USD">680000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
