<?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_abe30a5a-da32-469c-a800-7848489df3cb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_9946369a-0714-4033-bfd3-e10cf4a7303c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_2eb07ee6-b0c9-4f75-acc6-8d02761035a5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_073bad76-b30e-4aba-bfec-1ba92077a495">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_daf0e87c-dc9f-42f9-a4c4-3925e2fb2fa9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_e1ef92fe-d9dc-45c8-91c2-06ba589b4dbd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_c17063c9-9392-460d-a38b-5c1571c55eb7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_55ceab84-79ba-450c-b34e-b8e28e2f806e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_47bef834-56c2-487f-80b9-8e6876f9c9e8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_ca3952a4-1bcb-477b-b876-3239bb6f7975">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_abe30a5a-da32-469c-a800-7848489df3cb"
      id="F_1624f495-1e82-4ae8-b363-1902c96e964f">&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,250,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_abe30a5a-da32-469c-a800-7848489df3cb"
      decimals="-3"
      id="F_2bbc13e6-7a7d-45c7-960e-925f408b2060"
      unitRef="U_USD">2250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
