<?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_1ca3444a-c400-4749-b274-65a5abdf0221">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_3ea632b7-1524-4d16-8101-e823229e5273">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_b849aa68-2425-4f7c-b952-43e6a22de5b7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_5f13d35b-9378-417c-87aa-87bb9317e21f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_131c54e0-5f77-4a12-8490-a6d09a89c4be">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_9c8400f4-1962-4d68-9933-e6ab83d99c6c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_94e47a24-0f13-4e69-8f86-3f6f5cbc6c01">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_00e498eb-318c-40ef-a39e-a1a22167ac5b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_b286257d-91b9-4273-891f-8167e2bcdd51">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_e37cfea3-4f41-4128-9041-479e924025dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_1ca3444a-c400-4749-b274-65a5abdf0221"
      id="F_82c01c5f-ff5c-4c3b-931b-2bfccf0d2958">&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;412,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_1ca3444a-c400-4749-b274-65a5abdf0221"
      decimals="-3"
      id="F_5b9fa803-bb8a-4a8f-8eb3-2cbfb24fd58f"
      unitRef="U_USD">412000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
