<?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_d0702bb8-1507-4ee1-b71c-d6df21192724">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_c52bf047-106b-4540-9fda-934b0477d6cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_4d198270-06d4-42aa-8e78-68ce73c9c18b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_1ed35828-9b2b-41c7-b819-c8173dc387f0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_d0862b96-2180-44a3-8eb6-49fa2f74cac7">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_391dd93d-55a3-4bd3-9445-2462a1e3c5b9">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_885ab191-9fe6-4b24-a8c5-0c5e0cf2b3bb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_f0669a26-bb99-4d71-acb8-e262f62b9596">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_9d9760fd-d050-43c3-b706-1fb319f55a00">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_5d5590f7-a21c-4427-86b5-c63b065540a9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d0702bb8-1507-4ee1-b71c-d6df21192724"
      id="F_906929a3-2506-4fe7-b8c8-a54c4e81c788">&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,642,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_d0702bb8-1507-4ee1-b71c-d6df21192724"
      decimals="-3"
      id="F_e5882a4f-f76d-4e8c-97b0-e5c9e9c58bfd"
      unitRef="U_USD">1642000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
