<?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_20a65664-7bcc-4b71-9e7d-571cdfec756e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_fe8d020b-7650-43cf-850f-e90b3e7f761b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_d066c8aa-e45f-4095-9b8b-9e314c9498a9">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_22730ecd-3931-42ca-a60f-37ba1cd464d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_68524865-5e00-4b5c-a6f4-d1e215b4bd46">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_7fbd9a41-3946-4a07-b9c9-76d4ccdcf50b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_2768d634-b186-44d5-9765-48aee1830d37">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_6074564e-c69e-49fe-9fb3-f88062496bcd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_5a1f7834-be52-4c1c-a214-f0ee2d09d0fe">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_32440a44-e096-4826-bd76-047922156dda">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      id="F_4b277882-73bd-4fd4-8988-db1b23957c78">&lt;p style="tab-size:26.66px;font-size:12pt;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;2,000,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_20a65664-7bcc-4b71-9e7d-571cdfec756e"
      decimals="-6"
      id="F_ec00b9cc-2e54-48f1-aea6-ece7dca17748"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
