<?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_261022d2-57b2-4563-a249-4b5fa17497fe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_e0aefae4-ef8b-4f54-87a5-6670699ee7f4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_9547387c-6989-4ba9-8d11-bba0497ff811">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_fa2df3e8-7fdd-457e-9b6f-eff219b984cc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_d0c68bcc-9dfb-4171-824c-fa6a9fa44507">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_ee7b6a1c-9e5c-4038-9d55-2f2965cf5ad1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_d990d574-42f6-4ba0-8b95-71a41c5d21e0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_c5db0a5c-1ed8-4e20-ac23-94bcf83dd220">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_f61ecbd3-a8ea-4056-9f90-a1d809dbbe15">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_a7a8e66c-0c21-49a1-8ca1-0e47633279db">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_261022d2-57b2-4563-a249-4b5fa17497fe"
      id="F_7e8d72eb-cd3c-42a4-9502-0107f5f1127f">&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;307,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_261022d2-57b2-4563-a249-4b5fa17497fe"
      decimals="-3"
      id="F_9bb244df-5d7c-4fc3-bb8b-120964cbb8e4"
      unitRef="U_USD">307000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
