<?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_cbc3d91f-3add-4838-9a4c-af89eb0a755a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_c50a86f8-b5f9-4758-9056-9f85b91e49f9">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_d0b24e30-4e5e-4b54-a502-4170fd4794de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_27459fb4-fc0e-47d2-ba83-f708f59c575e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_22ad597f-aafa-4ef1-bfa1-c6f7f76e820e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_b9ca6aa6-759e-4e18-b6e0-5c834a620459">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_0c7c881e-8088-4b74-ba67-2a9ca3739873">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_0286e3a4-1fda-482f-ab6c-2a2ebe03fba5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_c22b5fb9-eead-4da0-89e3-fefd124d95cd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_123a0d7c-acb6-4460-bc71-0ab56408d3b5">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      id="F_d3fccb36-65e3-4b45-9969-5a95f72883c1">&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;1,702,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_cbc3d91f-3add-4838-9a4c-af89eb0a755a"
      decimals="-3"
      id="F_d9a03972-4b68-47e9-bbe9-9cce2465bf08"
      unitRef="U_USD">1702000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
