<?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_934c4791-df85-4d19-be11-caf746bfa3de">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_65f287c6-9c79-4df2-b99a-aac27d03054b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_8ae29ca2-0dee-4c6f-bc4f-e16d8952db36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_9ce205ef-87c8-4e0a-8961-1ea3d2c375a4">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_323d0f34-6cee-415c-b414-ac708346a401">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_654ad44f-a73b-4b66-892d-896bc64900fb">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_8259a874-ddaa-4f2c-b983-b605a4aada95">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_7cd8decf-76fb-40ed-8242-3b8954b83ce9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_506f5620-c845-4309-b301-d049d7a4ab14">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_34701250-69fd-4ffb-80b0-1e4a0e06bd42">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_934c4791-df85-4d19-be11-caf746bfa3de"
      id="F_3a8f31c2-b2e4-469d-8c48-99dc209b9169">&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;385,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_934c4791-df85-4d19-be11-caf746bfa3de"
      decimals="-3"
      id="F_99773e2b-1985-4d49-81c6-6ba3d688cff8"
      unitRef="U_USD">385000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
