<?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_266cacab-8a6a-4942-b15c-61d80aa66d83">
        <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_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_57c251b9-5f16-4c97-bd3e-da249de4d6c7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_e8bda716-074b-4d99-811d-e16b75797771">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_68f362d6-2a3c-4c12-bbb7-bb9fcd686e38">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_9e3ba402-ec0a-4dc1-84b1-1d9a532838ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_bf1b4193-23d6-4b25-a07c-247e6e011c74">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_dc5da6a6-aaa5-4f88-9641-47af610ebf05">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_24e0358a-e111-4032-bbd7-eb063cc8ed70">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_1089d80a-0abb-4d3d-85bd-a234f507d525">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_4f232275-eac2-4f82-b2d1-4337a05a65e6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_266cacab-8a6a-4942-b15c-61d80aa66d83"
      id="F_95a1d492-f878-4a65-9b34-f3718cd05e42">&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,095,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_266cacab-8a6a-4942-b15c-61d80aa66d83"
      decimals="0"
      id="F_dbde3978-2085-44fe-81fc-5ad846f2d968"
      unitRef="U_USD">9095000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
