<?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_95d97798-2766-42f4-b94d-7bddc6dfe383">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_5e8c7cc5-36cf-408f-a011-590f6ce78985">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_f4038a02-613f-4514-9280-dbe1123eff27">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_acaf330e-c65f-4429-98e4-ebc75a1a3b55">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_180e2d04-df2e-4ae3-9d8d-d582f3008ed8">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_c3a40236-7499-46bb-beec-b2afbebb72d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_364e8359-4a88-4df8-9dcb-a3548ca2bae7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_b6385906-de74-4930-8362-58508686c6e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_117112fc-adf8-4579-b146-ed6a3f8bf950">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_bbfce4ce-eacd-41b9-abbb-ad83c7ecf01f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_95d97798-2766-42f4-b94d-7bddc6dfe383"
      id="F_b703ca5f-e256-4f62-9a84-c45153554684">&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;1,754,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_95d97798-2766-42f4-b94d-7bddc6dfe383"
      decimals="-3"
      id="F_fbe34c52-b1ba-4c94-bf39-1c6e875ccd99"
      unitRef="U_USD">1754000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
