<?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_84c7450a-391c-4223-86e7-8982befac681">
        <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:EntityRegistrantName
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_95f504f6-483a-4d23-9786-d83ef68499f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_97c88244-b588-45a5-8a35-b8beb9e8945d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_8a3bdfca-e5c0-4f99-8e5f-644d0c3962b5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_352dba6e-c07f-4f82-9c8d-57b630949292">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_e4e6a8cc-fe79-4b13-9366-26fda1a75a32">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_fab0232f-76d6-42ba-825d-23d3fad63afb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_6d260d26-6920-4f1b-ba7a-393769d203b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_f0a7427d-878b-4ece-b604-d150c6485c97">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_fc4ea2b1-2701-4ea5-abc4-6da604b7df2e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_84c7450a-391c-4223-86e7-8982befac681"
      id="F_02071206-8374-4e36-9609-f67f9bef0bc4">&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;18,507,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_84c7450a-391c-4223-86e7-8982befac681"
      decimals="-3"
      id="F_699c183a-b33d-4a29-b7ce-2b61eb2fda82"
      unitRef="U_USD">18507000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
