<?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_58ff8e34-6a02-49f4-87f9-e15a8516c2a0">
        <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>
    <ffd:SubmissnTp
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_0375a231-410c-44fd-ab67-eccb926c987a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_c86e6138-910b-4f9a-a7f4-87e5adb4d1b2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_3fb7fdaa-28fa-477a-b578-0aa6730325bf">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_2e35a2a2-c5f6-40e1-b2c5-18e1f9118baf">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_a48291bb-d6be-4961-9689-13a93b638a25">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_ee9f4433-4439-4a81-9e5b-63f7f8b6beab">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_e8ac3db5-688c-457f-8372-7d270748c38a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_b7869a6f-e367-4a1c-9c25-fead7b0f4ebb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_1c48374f-0d12-4cf3-9444-1ea60687a15e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      id="F_c9ca78af-f863-4341-991a-b9a6255b3dc0">&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,608,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_58ff8e34-6a02-49f4-87f9-e15a8516c2a0"
      decimals="-3"
      id="F_9b9582d8-50a2-4d24-8755-5eeab2a2de03"
      unitRef="U_USD">1608000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
