<?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_4ba995f1-bd27-465e-9aab-d5b49855f666">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_008a3175-4476-49d6-bf74-d454fbdaf94d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_b884a5c7-625b-431c-ae86-44f368a980f3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_74f17c81-c6d6-4bae-a21f-5d197e22aba2">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_8108880a-3340-4f37-89a2-913d8722f6f5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_872ef2cf-597b-4f7d-b885-1e700e210527">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_9d6687b5-7011-4a0d-bbcf-92ea1ea3b830">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_6d163593-7573-4c32-98a3-b070dbe476de">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_7444e016-e460-4021-9b7e-e71cedc326ac">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_f714f086-30f3-44b6-8cd0-0dbd34ca5b16">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4ba995f1-bd27-465e-9aab-d5b49855f666"
      id="F_93fb3cf3-5243-4f68-86c1-94f6814934c7">&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;2,455,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_4ba995f1-bd27-465e-9aab-d5b49855f666"
      decimals="-3"
      id="F_14815dec-a923-4306-8b14-b8a58e740ac4"
      unitRef="U_USD">2455000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
