<?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_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_0ceca0cb-9e99-49e4-9c75-52a75086f0b0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_f8e4636c-be5d-4bec-9edb-96b9a6357fae">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_40d41975-a0e1-42b8-8711-f468d5c40eed">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_b479b0ad-2959-406e-8c61-17b4bc60936f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_f24d3590-682f-48ea-a5d6-3300e8470fc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_fe887bb3-ae03-4190-b14e-c62242ead371">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_9eb50d44-d636-4db4-8e2c-dc9a4abd7639">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_60db35a5-9240-4eb9-8636-61094bae71e6">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_8ce173fd-ddaa-4dbb-a0fe-1bd5abb6d949">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      id="F_41cdd3fd-1fa7-4088-89e8-d1257a1916eb">&lt;p style="tab-size:26.66px;font-size:12pt;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;823,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_6dfb8d79-021a-4817-bc7a-24b22b6dc7bf"
      decimals="-3"
      id="F_8612652a-cd5c-4a67-9a1d-c107aeac24d5"
      unitRef="U_USD">823000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
