<?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_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_802cbbb9-c2ad-46db-956a-9cff629ebcc8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_3425273d-6178-40fb-8a9c-3da5c3a7c2c6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_5170dc31-90f9-420d-8f35-08b9f00c1f66">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_494ca281-f69d-4c3d-ac26-3d191d8c47a2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_c3f7d628-757a-4bcd-bf24-a0014e8e33aa">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_2258fcb2-cdb8-4341-95df-4bd5b04c43a0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_7b1404fa-d3b7-4f7a-8852-e4fa7d292d6d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_7d5fda5d-fd5d-4d40-a2f8-ecfab86d5f7c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_f3ebd28b-0cb8-4fff-82e8-74dbea8559ba">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      id="F_0eba1bd2-6f99-4fee-b881-f6a6f9f0f3a5">&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,722,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_f67a84b3-7ff1-48c6-96ff-e6ae1d64a023"
      decimals="-3"
      id="F_20eee73e-ce11-48c8-9c45-d7533eb210c1"
      unitRef="U_USD">1722000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
