<?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_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_608917d8-ee27-48cc-99e5-0d41c8e2f6de">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_5d1f3d6d-9f61-457b-8738-3310a6e386e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_18ba1e18-de9e-49c9-8ae5-e93f0a4f474a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_b298d83b-5d03-426c-8f62-15ec82adbb22">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_d5d28c78-335a-432e-a7c6-c78d377ea8c3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_3ecc1b54-7201-464b-af9f-bf1dbb2257b5">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_5b350b6c-9ea9-47c0-943e-43daeb3278be">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_e33b6917-6114-4e2a-be37-f3a7f2fe3bc9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_919ab647-ea12-407c-8622-6a6b1fd4b27c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      id="F_f307bfe6-ef84-48a0-92f8-fa86ea06b376">&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,879,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_0a23b8e4-74e9-4ab7-a865-8261eacc5bb8"
      decimals="-3"
      id="F_c62122c0-7019-48d1-9bcf-d73e643722de"
      unitRef="U_USD">1879000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
