<?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_5d5394cc-0b16-4fef-aa95-2875d07ca80e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-08</startDate>
            <endDate>2026-10-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_77587f85-5d4b-4334-b900-5068b61b8594">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_0205fa7a-027c-4204-9245-ab6124703c05">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_af3fc0a9-9516-4242-8621-b528bf3da5c4">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_18fdfa80-9533-466e-83af-692245e9147a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_0c9066f6-5bf7-4660-8d36-a3fa597fde6b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_a6509dd0-e5e3-485d-a66d-8d27b246bc60">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_f9cbe236-69ac-42a7-add6-8491c8eda502">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_10bb0c52-4f73-4854-a07c-4d88bcb48c6b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_440022df-5548-4061-a64b-ad8f80fc2ba6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      id="F_c47b3ccd-f1ca-4f7c-bfcc-ef5f7e3b3379">&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;400,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_5d5394cc-0b16-4fef-aa95-2875d07ca80e"
      decimals="-3"
      id="F_3ad17ab2-7927-4275-a9a0-964da5ebaf74"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
