<?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_ea2fba67-47ad-42a4-ad74-196bb00dbee8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_2bb4309d-3b54-4512-99b3-77e412c01cc5">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_6ce9d401-fe85-4af8-8839-ea5510191416">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_32c44628-73d0-49cc-857f-341c296825e1">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_921b37eb-2a3c-4dd1-91d3-ec9a9e8a2b66">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_b76dc335-2b84-467b-b1fc-b5599e0dafc7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_8ab8f442-6cc7-44d0-9b0f-152303cc9dcc">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_3ce75bb6-97ce-46a7-84f5-a91195c02800">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_8ffa9ef6-9e88-4069-8a74-e3c14615646a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_d48fce8b-74e6-42eb-bd93-e0f1453ee777">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      id="F_52e58dad-5854-4023-9290-ba641a451d1b">&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;2,726,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_ea2fba67-47ad-42a4-ad74-196bb00dbee8"
      decimals="-3"
      id="F_bc34bd1f-6df7-4db9-ac3d-52322c832df4"
      unitRef="U_USD">2726000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
