<?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_65227a13-b7cb-4a9a-9814-5de5dd249310">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_05e31fc1-378c-47a7-9ce7-e002288b481b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_5ac0d475-f86f-4472-9c93-96e5c28aa459">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_86e24227-078c-469c-9084-686f53b94cd9">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_ab74a9dd-46cf-40a1-b42a-5eb4da380f08">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_b7c67ed9-8d1e-49e1-8b17-76eb28575a86">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_ddee3e34-28e9-4b74-bbbb-eb14dcb795b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_bf9437d3-8c4b-4274-bc83-9c1e9563b406">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_be5a47dd-7067-47b8-951b-d338f1156e32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_d1e5ba00-0bc0-487c-9e1c-42e4abf87231">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_65227a13-b7cb-4a9a-9814-5de5dd249310"
      id="F_b633d7a4-4b34-47ef-863f-f90fdc4c6403">&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;285,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_65227a13-b7cb-4a9a-9814-5de5dd249310"
      decimals="-3"
      id="F_2e13f55f-a67a-4a6c-885f-d400860a73d9"
      unitRef="U_USD">285000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
