<?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_41670f83-03cb-4c53-a3d0-e1499685988f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_05040ec7-9500-4c3b-9184-783568f9dcd5">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_b03017c2-ce6e-4969-9efd-36c8d595e296">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_4e377546-259c-4faf-b008-ca0bdde598e1">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_411e192a-c761-4cb9-95c1-18cae9074244">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_6e7b22b2-a388-4bd4-8b79-256b12362a4c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_2cedc853-ef43-4eeb-a773-f95b35f16365">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_ffb59d79-f705-4958-9108-7f963f11f792">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_995d69df-b601-42d6-ae10-4278c767a00b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_1ebe7cb6-6d95-4e04-bf2c-502e5828a2d6">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_41670f83-03cb-4c53-a3d0-e1499685988f"
      id="F_4044071a-093c-49bd-b7e6-4949652b0397">&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;350,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_41670f83-03cb-4c53-a3d0-e1499685988f"
      decimals="-3"
      id="F_86b547f5-833e-4b2a-ab7c-71311e98fe36"
      unitRef="U_USD">350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
