<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_e949f702-3071-4f28-ad15-bdf6266a8043">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_a56bff63-8a35-4ff4-9258-ebcdb388e3a1">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_839833f7-1794-4314-9335-79ca229b2940">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_aa806df6-1c30-433c-bf2b-39fd8bb43748">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_e6964568-2afa-43fb-b405-0361e1381596">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_29fef2e9-4bba-455c-ac2a-c56ac037431f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_657d5cc3-ebe4-4879-a0eb-857fcd9dafbc">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_f6d69768-c78e-4e87-96e8-cab5f7c812cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_091fa2c1-812e-4ef0-a22c-3e1d4f390a20">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_9c37fcee-4a04-412a-813f-a0f5fbd518af">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e949f702-3071-4f28-ad15-bdf6266a8043"
      id="F_10574fb4-0e20-4cae-8d44-48c5ee601533">&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;659,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_e949f702-3071-4f28-ad15-bdf6266a8043"
      decimals="0"
      id="F_242cba88-35a0-457e-8af2-f12537c83e23"
      unitRef="U_USD">659000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
