<?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_3af13e7f-76b2-47e1-8764-d0fd000cb9e8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_6a70db80-ef69-4a34-8d14-be2ffd0c5090">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_0d62c4d9-12f3-4e41-bf0a-89c0dce382db">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_2b8ef1d2-fbac-4cb2-912a-4cef311248c3">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_30b816d9-e81d-4fd4-adf7-18c3b2aef611">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_d0bbeb06-469c-4403-9430-fb2893cb4898">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_3a4b9f83-3dab-4605-a269-7b2b45687d6a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_795927e7-eb52-4080-ac3b-a7c04bc8db6f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_9fbca387-1a18-45cc-b82f-8d009e0be44c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_3b93d7b6-0442-47f7-b586-82d6c2255e0b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      id="F_b3322a25-c0db-4abd-bc9f-a600b2b5d220">&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;500,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_3af13e7f-76b2-47e1-8764-d0fd000cb9e8"
      decimals="-3"
      id="F_5f289b0a-44d1-4536-ba34-20bc5da35939"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
