<?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_f90e56d9-184a-429e-93d4-a81382ae49e1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_1808459a-b99f-41e6-a6ea-9d230fd03250">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_0a9fb196-6773-47f2-9e1a-4be916120476">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_3d1acb46-b635-48f7-9ccd-75cfdfda9fc3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_723f2faf-23f4-4364-9a4f-d0060cdcc579">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_10f53b7b-de2d-4b2e-9c28-11cb9308695d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_8e9820b4-c53f-4f32-939c-b7bc905a081c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_922e4cfa-6ef2-4c15-aec2-776d9f52466d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_ac1858ef-823c-4f3f-8fb6-cdb0fa6106c8">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_143e006a-ef6f-41be-b760-8929d61c6090">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f90e56d9-184a-429e-93d4-a81382ae49e1"
      id="F_6ffab94a-62ef-4970-9307-f1cab88346a5">&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;4,181,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_f90e56d9-184a-429e-93d4-a81382ae49e1"
      decimals="-3"
      id="F_be541c10-f5e5-4055-8ac7-00c968e0cf1d"
      unitRef="U_USD">4181000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
