<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_dd914710-e0b6-4198-98d9-3d4acb7c2644">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_fb538291-afaa-4e12-b2ca-3b3a31c56690">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_38dd1038-00c7-483d-ac12-d942923fe9eb">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_e6af494c-11d8-437a-ad5e-896e35d9ba10">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_8f5faff1-8c8c-4b17-8173-ce55bf3ea2bf">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_3b5940ed-77c1-4190-9635-1aa098e89480">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_9dde627b-5026-475b-886e-2e08150b8a76">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_18f2df8a-69b1-4923-8950-8ef0d675911c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_937c0d0d-f2d7-4d77-8e7c-4b8e6859a491">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_5e69c659-ae53-4737-b940-01ee8e00fab5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      id="F_226063c1-bd4d-45e4-8182-f9c7685bef7e">&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,566,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_dd914710-e0b6-4198-98d9-3d4acb7c2644"
      decimals="0"
      id="F_add801d8-6e96-4326-9ea9-3c675a7a31aa"
      unitRef="U_USD">1566000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
