<?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_c2071810-0c85-4b2f-8395-3bd0502eaad9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-13</startDate>
            <endDate>2026-07-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_d4a417c2-d889-46c8-844e-ec3e590bc57b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_66a76dce-3cba-496d-9fe0-2bbe736ba119">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_0dfeaa52-052c-466e-a30b-fd2a19adb9d5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_e4571063-4d99-4a13-b94b-134e95fd9a89">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_dc787c7f-b141-4d07-b396-a674e6b0f8b9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_807e0e80-c988-4c56-8489-53306b58af57">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_1264c19d-21d5-4cf7-a079-c18f1f674233">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_5e517baf-4204-491f-9f16-25fb16fa09f8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_9fb18dca-fde9-4999-8f67-2e99a1ff7a3b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      id="F_06e1344a-b6da-4bc0-a6dc-aebc7d0b015c">&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;44,126,770&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_c2071810-0c85-4b2f-8395-3bd0502eaad9"
      decimals="0"
      id="F_5e0c9388-05d2-4c30-8c75-125dbae14dc1"
      unitRef="U_USD">44126770</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
