<?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_fb618800-a803-4822-b522-e65fdb2a489c">
        <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:OffsetTableNa
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_5229a6d6-0470-47dd-a643-5c15e6992b29">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_d506a1da-fb6f-4906-b670-e93974ddd081">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_c9c86cb8-6438-44dc-a586-95170a2b0012">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_3f3dc8d4-89c1-42fd-894b-8d7fd0441111">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_053abbc6-9306-485a-9c05-840bc3eabdd6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_6c20c2dc-2c74-41c0-a567-a368d88ca735">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_48ecf5d8-f031-4873-bac5-7de4282fedb5">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_795950cc-685d-4507-81cf-51732f00c6e7">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_e380885f-62e1-496a-939d-03457d4c83af">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fb618800-a803-4822-b522-e65fdb2a489c"
      id="F_1d7f2a31-7948-449f-936c-7f6bc120ed54">&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;5,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_fb618800-a803-4822-b522-e65fdb2a489c"
      decimals="-6"
      id="F_89a24061-9963-4a7c-93ad-af190e76fcc7"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
