<?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_2658a2b7-34b9-437c-b6c1-2e73b17a076c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_7adae1e1-70cf-4f18-80fa-ef887102b0e7">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_a05522c4-298a-4cc1-80ec-25ca530e3da7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_ec2b71fa-b319-43be-9652-edf08208490d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_31cdbade-7bb9-42ad-b80a-af73adb74e3a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_b3daaeef-4660-4e48-bbb4-f5ea400eb4ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_1d0dd728-1f74-4b6e-9213-7525bb9296db">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_0b7a93e7-14d1-44d8-bb51-7917d474772b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_347bd4fd-5168-42df-adf1-d8effcdac374">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_ca0830e0-6012-41a4-bd1e-71e0863bd0f0">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      id="F_ef2f98de-a60f-4396-ba80-9f1368ca6f8d">&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;1,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_2658a2b7-34b9-437c-b6c1-2e73b17a076c"
      decimals="-6"
      id="F_9a342074-db24-479e-94dc-5b4283a1abbf"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
