<?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_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-21</startDate>
            <endDate>2026-09-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_cb0aed75-e182-4611-aa25-ce48e79c16db">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_1caa481a-d357-4a67-ab5a-3503f1c85a41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_fe7feb19-3ad9-4395-9e6a-4c055dee1601">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_c0dc2482-08aa-4d59-b5ff-057e3b8c4ec9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_153aa18f-f47a-42a9-8037-e61f39c89755">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_a032a3aa-010e-4f97-b5f3-d51ed29b2312">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_bebad172-0c83-4c82-92b9-f9001e338ac9">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_0065fada-e2fb-42ad-9821-4c56a403edbd">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_e02c1db2-d579-4a34-866e-7d1032f123e8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      id="F_2eb58a30-b91d-4f85-a0c4-348dc0f86e60">&lt;p style="tab-size:26.66px;font-size:12pt;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;5,328,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_a3438ee6-0679-48c8-ad6a-cef5e2a4cb83"
      decimals="-3"
      id="F_1d4bbfb6-191a-4c22-a998-3caf91882d09"
      unitRef="U_USD">5328000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
