<?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_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_e9769da2-98f6-40ed-94bf-2e9cfd77431e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_1d1b565a-fe2f-48ac-acf6-161739f3a423">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_b6945342-388c-422d-929a-83d79b0bbeaa">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_b7464df9-5cac-4f93-a2f8-91372fb76350">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_21a81aa9-0d1a-4b46-990d-d357ff03cb17">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_304097a1-7091-456a-8c8b-32a78e327529">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_aeeac3dc-bb73-41a9-a383-fb3e3c9af0da">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_c47c56eb-c94c-4ef2-a9ac-8712672b32d5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_e5bea568-4878-45cc-b249-1ae8231b1a15">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      id="F_bfbabfb5-427f-4c85-bba6-4312352410ae">&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,976,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_0c75045a-5218-4a1d-9eb4-f4a57bbd17b9"
      decimals="-3"
      id="F_e9002cc8-f921-4737-9628-365d95910f4d"
      unitRef="U_USD">1976000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
