<?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_a475513e-be65-4dcb-b095-bec9cfd453c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_819c9071-75bf-47db-a9ed-8f318836dfda">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_372f0f34-a904-4906-8efb-6a78987bf04f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_b1855cf6-1dfb-4bba-a167-a46e0606209b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_e029d91c-740a-4817-a488-41bbf4ee13a6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_ea75fd76-1740-45c1-9fe4-d889af4930d3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_60328cb1-24b4-45fa-a4d6-0444c247788d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_f7a54ba7-a425-4922-9775-ee8be09f9b11">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_42babdb2-15f9-4691-b73b-9491f6c0ab79">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_56306ddc-b32a-4054-b9c4-8903cfcaf8e5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a475513e-be65-4dcb-b095-bec9cfd453c3"
      id="F_f7ade47a-fbad-4f68-b1d3-3cbc11c31d38">&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,971,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_a475513e-be65-4dcb-b095-bec9cfd453c3"
      decimals="-3"
      id="F_0fcc8efc-8e6f-402a-8589-59e08754043d"
      unitRef="U_USD">1971000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
