<?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_5797b562-b16c-4a0d-9a0c-c96a7324439e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_169c49a4-9681-4030-889f-a31f4bae006c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_915ebdcc-6941-4178-b355-e54b0a44e2f9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_889c7955-5a1a-4736-9f48-cb7747e676c9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_566aff0a-1bc0-48b4-a21d-717397d6bc30">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_52a0a6b4-2177-486d-94b3-26e324fb8711">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_239ba81c-c8ff-44cb-9af1-d784f51feaa7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_f4d919a1-84f0-4602-a18c-384c399404e3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_9407b082-d57e-4924-b318-a40e6e1c8d11">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_a6818f26-8bd2-42ee-b557-9d37b03a8109">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      id="F_66f14ae2-8c2a-400a-bb3f-fcb874c1cfab">&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;9,906,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_5797b562-b16c-4a0d-9a0c-c96a7324439e"
      decimals="0"
      id="F_79c3bc98-edc5-404c-ad92-f4ec50fd24f8"
      unitRef="U_USD">9906000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
