<?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_295ed793-5205-4024-8bed-13daa2113ae4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_66fee9f9-2b06-49d9-948c-6ecea46438e1">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_09d96390-c35e-473d-96d2-74ae5453fa40">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_9ebc1d5e-acb5-4d5c-a880-77a874f7fcdd">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_d000aacb-cc31-43e3-9c61-922d515b8e2d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_d8795b3d-bf4c-4c29-9c74-cdcc3f09ccdf">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_74d144ab-3017-4c3a-9432-093a0a08a665">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_3ede89cc-77c1-440c-b4a4-9c7186fe8916">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_e3aff5ad-250a-49aa-9134-fef84505d566">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_39ba8130-4481-4b66-895d-decb5fea337d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_295ed793-5205-4024-8bed-13daa2113ae4"
      id="F_485fe204-46a3-40e2-a86b-8a6d826555a0">&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;941,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_295ed793-5205-4024-8bed-13daa2113ae4"
      decimals="-3"
      id="F_e135563b-c746-40e0-874d-f18af5ff736c"
      unitRef="U_USD">941000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
