<?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_240378b7-e60f-4192-b756-eba85c8275ce">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_dd58f0b3-78cd-4da4-9590-f0f9a01dd16e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_ca7414d1-406f-46cb-a6eb-eeadd309f513">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_3e8b4563-d7e8-4115-a90a-5a8a8f6082d3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_b0fb57dc-c6e7-45fd-8214-529f4b1ae000">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_8918f1bf-7901-41fe-af0e-c285d45ab5e8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_28263f7b-036f-47b5-b517-b69eb21f2b96">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_5e067953-aae9-450d-bf85-db9332538498">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_aaa1ce6a-457b-41e1-9155-6b0a551b613c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_e83c4d1a-6883-494a-8ff8-7eff6588ac1a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_240378b7-e60f-4192-b756-eba85c8275ce"
      id="F_933a4a51-3714-4d39-aedf-047a4a775ee2">&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;1,282,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_240378b7-e60f-4192-b756-eba85c8275ce"
      decimals="-3"
      id="F_7a84de87-1623-497e-bab4-7b6acb936d66"
      unitRef="U_USD">1282000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
