<?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_c6afd283-dcc8-4725-bea6-47f687cd073a">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_5b252870-24ab-49ac-a722-f380ae31c1b6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_4326d667-2c0c-4b4b-b7cb-3a60723b1022">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_31542163-1263-413e-9bc0-4bfe797e0805">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_f8ea4cdd-8d7c-4184-b087-93d71e71411b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_74cf5849-5931-4c71-b408-002c14478d05">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_f4f16511-6cbb-42e1-ad65-426cac8c8ebf">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_d36ea863-7c23-4a4f-9be0-ecca28e0c5fe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_ad7cd3ba-9e7b-474f-9d8b-980df9c08bd6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_64432bcc-f12e-49e9-8b20-a5721c06abb3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c6afd283-dcc8-4725-bea6-47f687cd073a"
      id="F_3878f8a2-10c0-48de-8616-0dbe90296f1f">&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;19,876,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_c6afd283-dcc8-4725-bea6-47f687cd073a"
      decimals="-3"
      id="F_3105a4fd-b249-4f65-b86e-3c9c022263b5"
      unitRef="U_USD">19876000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
