<?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_191f1623-f5c3-47c3-84b2-c141ac78cca9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_fc09dc80-3847-409b-882e-d69df24e4c8b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_2928a4d9-5a63-49c8-a469-627e0dd43660">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_d81ce128-04f1-4749-bb78-f25849e4777c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_530a5c2a-1644-44f1-a785-2508f6e64f38">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_d28012f5-0d11-4003-b3eb-4c4c368f846d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_529d7eae-b5e5-4dd6-a48d-2b9f4259e0e6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_2f11eea6-7c52-446f-b38d-60a3f3ecf0cf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_8ba677b9-36de-4fd1-8a33-fb4f391577ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_a1aee7b8-2101-4c98-8543-98edcd524bee">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      id="F_d3873dd1-ada4-4610-b8b4-d2a1ec347bec">&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;2,525,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_191f1623-f5c3-47c3-84b2-c141ac78cca9"
      decimals="-3"
      id="F_8b52ed3f-3785-4697-b72d-d667803869dc"
      unitRef="U_USD">2525000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
