<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_83ee89dd-5e11-4750-9b69-7dc14b15b310">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_cda4bd97-0d2a-4980-af36-f0e95c957145">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_08705766-5922-4705-8873-1a3ea12cdbfd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_25328482-4f5f-4f86-8ca7-767f22d1bfee">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_fd25a6d5-503c-4373-975e-882e7df826d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_f5d69b16-550d-41ef-a072-8ddc97d718e9">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_7e24cb5f-cfa3-46ac-bfd6-cb6476a36c82">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_4e839cce-ec18-47ad-91ae-7b02b2122dad">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_ddd9d819-9221-4879-b190-feda60737f18">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      id="F_e27ebb9b-4b46-44bf-bcd3-28f1bac9d03c">&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;5,702,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_749f9629-4b66-43cf-b5a8-cd3124ec6ce3"
      decimals="-3"
      id="F_f7973a59-5a24-4036-9c32-08663fdfb2af"
      unitRef="U_USD">5702000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
