<?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_200c40ef-a481-420a-b4f6-5c63f8395a2d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_76db825b-6a91-4a26-8737-7b51f39f8309">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_a41b12fa-4535-4c46-a35f-436c3bb2abf1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_0e947889-1619-4842-b193-e6cb3678c6b5">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_7309f0bf-c3c8-4ec7-9e7a-f49d9b91c252">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_eeb48739-bce2-419e-a17a-aa8a1e745e1e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_921fb240-2596-49bb-bc67-829b7b8d44b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_c958bb61-ef87-4b41-82c2-f15ed0960fb9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_bacc7184-4f2a-409f-b90c-a6bd5d45ba5d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_c56c3f95-44e6-44c1-bc5e-ebf84fd6c976">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      id="F_898e4033-81a6-46d7-a889-8ea75e5e1ae4">&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;3,899,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_200c40ef-a481-420a-b4f6-5c63f8395a2d"
      decimals="-3"
      id="F_bc04ee2a-83f0-481e-a525-91753cac184f"
      unitRef="U_USD">3899000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
