<?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_c7cd9d52-8692-4543-a544-3c99a3a653d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_d9b42e1a-c5aa-42a6-a25d-c6c35a6d6d52">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_c6e6bfc8-5561-406a-89da-fe96471142b4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_343f676c-f04d-4d7e-8c2c-8a0724c67a28">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_ee91d203-7153-4a04-8baf-b1b69918f7ac">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_3cde3f8a-3f1b-4b58-a6c1-1aa92872746c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_8ca26b2e-ee1e-4fd8-af49-038f677bdcc2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_553bf55a-9a45-408e-825f-dacbfd194910">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_c6745de9-0fc3-4f25-adaa-f019178317fa">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_8ec19929-eb52-4003-9e7b-ba83e77475f8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      id="F_9f1909b3-1d02-477b-b325-cea8222ecaee">&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;500,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_c7cd9d52-8692-4543-a544-3c99a3a653d7"
      decimals="-3"
      id="F_96c42acc-f5e1-4a4d-8e2e-cee579b90dab"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
