<?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_22ed913a-a0ed-4715-a302-0378c878393f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-03</startDate>
            <endDate>2026-09-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_89ad2529-86cb-4c8f-93ea-edcc6b2e9bad">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_368ea8ec-971e-4655-b575-05559d4a154a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_5a3cfb92-0fde-4e45-b703-628f3661707d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_6f11e13a-3da8-42ab-9021-05febdb1248f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_0619f5a8-2a2b-4373-83dc-69005bfe5897">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_d8ae02e2-cc86-4c8a-8b71-305f8ad27cf4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_5cd22494-a3cb-4852-a335-a689a8fed99f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_e1a59bec-82b9-4bd2-9ed3-4bcaa3746bc9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_36bacd56-ce68-4216-b25b-b0315719df08">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_22ed913a-a0ed-4715-a302-0378c878393f"
      id="F_31846294-c566-46e5-88ab-d1af57d7486a">&lt;p style="tab-size:26.66px;font-size:12pt;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;39,963,900&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_22ed913a-a0ed-4715-a302-0378c878393f"
      decimals="0"
      id="F_74eaa572-0312-4b9d-855f-1031d625e3ab"
      unitRef="U_USD">39963900</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
