<?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_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_04c59b2b-28be-470c-a363-65655f6cd91a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_6dd9c045-ca56-413e-9939-ecb806d3188d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_5ee12c31-43e1-4fd5-ae26-5966198fbed6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_6fe00fbe-f55d-499d-a03d-3f4ae8c1915a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_c772ada3-b0c2-4bc1-a50f-769923094642">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_8d42c227-7d9c-4193-9279-4b45a758ae85">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_71da7b04-8e68-4ad4-9698-1d9681ba4464">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_f3a304b3-7f67-4948-be56-13f75c89f3fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_95f2917b-a6c6-4a4e-ba57-3b61d5d2027f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      id="F_2a57e197-fa76-4030-a944-f3d9aeb190d1">&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;3,000,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_9bd9a36a-856d-4bdb-b378-62fc10fc5f1f"
      decimals="-6"
      id="F_dfad5593-a09f-44e3-82b0-ff0ce757601e"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
