<?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_42316c95-4f7a-4c03-ae9e-b61226d06422">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_bae3a6f1-1a59-4566-815f-81726bab4a97">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_22fe057e-c2e8-4774-901b-1df644aff0f5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_10513537-faae-4497-b830-37d07b5b4dc3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_9743b515-566a-4706-a017-816b368ce301">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_30f497e3-779b-4552-9b0c-ecaeced85d6f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_34d8d531-5fc7-4968-ad4e-e95cfa355c8c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_00e57148-1fb7-439f-9ec5-9134ea1bfaad">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_ca47bbcd-4948-410a-8c10-3378b216c83c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_418a1a3f-30e3-4e3b-af03-671e70155402">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_42316c95-4f7a-4c03-ae9e-b61226d06422"
      id="F_2eab7da9-4d73-4f11-8303-9621b96fa528">&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,000,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_42316c95-4f7a-4c03-ae9e-b61226d06422"
      decimals="-6"
      id="F_16cdaf25-92ff-4131-a325-22043fc74917"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
