<?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_9e61da6f-2dfe-40d0-8275-ff4af193a36a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_dc30bd43-df22-4c4d-8d77-3b832c014bb5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_20cd3d68-8c8d-45fb-bd5f-e5e17998a05e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_da5a9bd8-4d28-43b9-a874-ddaa9f8bb84c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_bb89022d-d989-444a-8db3-5ff4e24544fb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_196fc232-0764-436c-ab73-7746938d6653">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_49faf137-3fb2-4157-9173-7a4d6d4b405f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_e205edfd-bd23-4153-b0b0-d5a6d061ca89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_08fdd4b8-238d-409c-b01f-014b6ff37b94">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_06acfbcb-735c-4594-8e7f-648f0fd65c94">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      id="F_926aa30b-3e21-4e94-bce7-66548a00b51e">&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,666,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_9e61da6f-2dfe-40d0-8275-ff4af193a36a"
      decimals="-3"
      id="F_9ffc60fe-c25e-4942-8a78-87fe1c8be115"
      unitRef="U_USD">2666000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
