<?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_3fa56408-0783-42bb-ab9e-e62fb165da60">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_f2873eb9-b9e4-4efd-bafa-f9adcc46d695">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_fcb87fe6-0bb7-4ed1-a0b0-bf188b373ba2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_53f2851c-29cb-4394-b02c-7709f85ea51b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_44410461-9767-46bb-94f7-24eed81307ca">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_f2c0352f-ed8e-42b4-805f-14331320242e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_b25eb905-1990-499d-925b-d076cb8f01f0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_e0276ce0-64c6-4e94-89e3-7a38a482d8ee">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_9b8ce654-e259-45cf-be66-e49554edba79">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_bab1d132-6b2d-4f81-a499-ac3769ffef71">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3fa56408-0783-42bb-ab9e-e62fb165da60"
      id="F_82d9641f-b913-4e92-ad71-1b697a175c8b">&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;258,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_3fa56408-0783-42bb-ab9e-e62fb165da60"
      decimals="-3"
      id="F_2198318a-af1c-4844-acd9-bd657582caf5"
      unitRef="U_USD">258000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
