<?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_e0bfe546-b16b-433e-9ebf-a7e8f29307f9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_f2e19057-7169-4333-b3ac-86e244d0cfc9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_403390a8-3f8e-40c8-b020-3443ad7725cb">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_738c6c82-a22d-4a67-a7db-95998a2da683">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_5ee0e27a-f0fa-45ca-ad52-5c962ce245fd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_e84c6004-6400-422b-aaa6-d79aa7bbdd24">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_8dcbad4e-f9f5-40b9-a352-8dc52f43043f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_e43342d8-dd10-4a3c-8a23-75d1c248a8ae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_2656ea45-dedd-4a51-8781-32a7094f7181">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_f7ebdb65-572d-476d-906d-cc7d8c98e729">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      id="F_5b511321-16c8-4ba8-bda7-cd9520c949df">&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,913,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_e0bfe546-b16b-433e-9ebf-a7e8f29307f9"
      decimals="0"
      id="F_5cff93cc-cfc2-4753-b87d-188e4163d056"
      unitRef="U_USD">3913000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
