<?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_aba89854-7781-48a5-9e44-6a787264d9d8">
        <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:FormTp
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_6b400047-34de-4b52-a57a-9816554c8d73">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_fb6ae0e4-f09d-4013-97df-94715961130d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_7da635f3-1da3-4ae0-9a83-d8741334d08c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_eee0e9e6-2ee3-4de7-9ae1-e1b55f5abb34">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_a0077d0c-6af7-4f3e-ba76-7c0784d0bdef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_41a709b4-7e5c-4e00-854e-9ebabe305ab4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_ee0b7801-cae2-41d1-ad11-9371466c14b3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_71ad1d22-61ab-4e0a-9ba2-1c9e0b44192a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_f098b9db-30fe-45c7-a95a-14584d775c4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aba89854-7781-48a5-9e44-6a787264d9d8"
      id="F_bc99f8ee-2402-42ef-aaaa-25b69765777c">&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;82,511,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_aba89854-7781-48a5-9e44-6a787264d9d8"
      decimals="-3"
      id="F_ee21007e-6aa4-498c-845b-9957e768f333"
      unitRef="U_USD">82511000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
