<?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_74ec206f-c95d-4187-8840-6637566ee5a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_b52d8311-1a7c-4458-b43c-e99c0d8ac972">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_adf5afe5-079f-48f4-a29d-0137ac9af789">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_dfdac48b-efdf-4de6-8292-68b9679bdd3a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_fb54391f-bfb6-4265-b704-d004e6281e82">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_bbf3d9ad-6f14-4596-bf82-f3c7aa4953ff">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_73223ce5-f1e1-47e7-b628-81b88b0544d8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_091193cd-dc12-4def-a9fc-61cf72be76c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_a2dc877c-41fa-49ad-9442-607746e7945b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_a05d13de-94e8-49cd-b89a-448a7658555e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_74ec206f-c95d-4187-8840-6637566ee5a4"
      id="F_4b6ea005-156c-40b6-8640-51c96fec3950">&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,348,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_74ec206f-c95d-4187-8840-6637566ee5a4"
      decimals="-3"
      id="F_f47495d4-53e4-4800-84f7-a4b57614702e"
      unitRef="U_USD">2348000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
