<?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_b2664795-2ada-421d-8c19-a71468884a7a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_1c796a69-cc3f-4807-b65a-0fcc01f2ae9e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_8941214f-0a9c-4e39-b178-4ae27bf0a19a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_e558badd-6c4d-4063-9a4c-f23b8a176177">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_d73356d7-1571-4cff-a2ca-17fb2c0cfda9">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_b21f246a-7e9b-428b-9e99-caf81a9d90b1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_89038548-7db4-45dc-a462-c8bb1a6ed074">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_e4b2d220-e391-4dc0-877b-0fcb8f9a66b8">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_4b044aa4-a83c-4347-b0ce-c507fbbcaa92">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_f35590ce-3166-4519-99b1-3e4168c73708">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b2664795-2ada-421d-8c19-a71468884a7a"
      id="F_506f310c-ebed-425a-b844-b0ab01ae1a70">&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;100,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_b2664795-2ada-421d-8c19-a71468884a7a"
      decimals="-3"
      id="F_f46a0e73-ac89-4547-a9d6-e64288e5d759"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
