<?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_42d9b0d4-60d2-4b07-8498-8c31280fe69b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_6f3f8eef-6eea-4c0f-9b47-0057ae7ecbc9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_6166564e-f317-4eb6-a821-fdf2dfdcbdb0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_6e8faa61-0ef3-484b-a3aa-e4354aac6582">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_5944d4b6-fc3a-400c-8e83-de4cf531fc42">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_13e71b74-b3e6-4435-926c-e4dc0e342540">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_0a871b3e-8e0f-4583-b884-71ea5ca74719">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_3a7c73f8-ffb3-4cb7-9ff1-60e0671bba39">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_70af49c7-0e05-46d2-ac67-7eeaa2ec8e14">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_d33a99ab-cd65-4114-8f6a-b757153a4ab3">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      id="F_3354db50-4b64-4be8-9bfd-bd2fe8d22ace">&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;590,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_42d9b0d4-60d2-4b07-8498-8c31280fe69b"
      decimals="-3"
      id="F_29be2ca1-27c1-4545-a020-303d9b275bf6"
      unitRef="U_USD">590000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
