<?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_b716402d-2bff-473c-a3df-0da01563ded0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_0950b285-3606-41c8-84fa-e69ac8293f47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_f9b51946-39c2-413c-baa3-420ba0831712">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_25b2db72-4011-4bf0-92a6-849becbc239a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_eed8cddb-0a33-414f-9f63-e302d8161777">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_66c5d65c-75fd-447d-8f30-dde5eb24aca8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_83dae3c8-e6db-4cd0-bb8e-69e87fea35fd">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_90988796-c19e-4289-98e0-ed74ace421d6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_ddf06d68-0dbb-4df7-8e11-2bcde57b9235">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_f6c6e3ca-7768-4cbb-bc90-d995da41272c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b716402d-2bff-473c-a3df-0da01563ded0"
      id="F_8c33287a-e818-456b-8e03-08357a902720">&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,346,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_b716402d-2bff-473c-a3df-0da01563ded0"
      decimals="0"
      id="F_c64ec333-f9a5-4b61-96dc-2ed560ec1e24"
      unitRef="U_USD">1346000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
