<?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_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_7bd30314-4d78-44e1-a357-3042ac2c6d02">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_c0ced71d-7a89-4a5f-95eb-91c8f68df236">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_26d558f5-5db9-44aa-a821-7b8b15a78374">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_ee1ffae7-bfd2-4b79-ad1d-cfe4d482ca79">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_15125690-808a-4861-b42f-6d5f8586d8d3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_90ba2fd2-bd4b-400e-a851-67b00a23f31c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_cf228203-e81b-402f-8e3f-c83ca0f5d956">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_1e56db57-941b-4325-bf4d-a3a56facd6ce">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_3836586d-cba0-4bac-9d6f-43683f800948">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      id="F_23ee2819-3864-4dd0-9efa-472da535d09b">&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;880,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_5a4c4cf0-2f72-4ea7-8fac-52f18ffe7d50"
      decimals="0"
      id="F_b80fd391-d82e-4a4d-a8f3-88ebb1e461a9"
      unitRef="U_USD">880000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
