<?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_5ce1611a-0c1b-42a9-b277-27d770215374">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_e6e98e94-899d-4e23-8152-51e576ac1865">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_08f08126-95dc-4635-bfa1-9ec321fff974">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_2fa60a14-f1fc-449f-ab6c-e24cf2b2e4c2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_f99bd001-c541-4d42-a362-fef98a3ce8aa">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_e8000e96-605f-4f13-812c-f5da0b667421">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_9931b442-ecaf-4159-9258-1343c4c12952">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_ea95a7e2-8045-46ea-88b5-d89de5098dc2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_71b3955b-52bb-48dd-bfa3-7195cb04a95c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_ae364b49-6456-46fb-b182-d4921e6a1644">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5ce1611a-0c1b-42a9-b277-27d770215374"
      id="F_a07314be-9a6e-49c0-89cf-87fa660f29c1">&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;166,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_5ce1611a-0c1b-42a9-b277-27d770215374"
      decimals="-3"
      id="F_5bb8b4e1-65a9-4988-977d-2f5006658eed"
      unitRef="U_USD">166000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
