<?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_6f5d71f6-d53f-48fb-9e63-897aae40b74d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_94f88c18-8935-4604-b7ef-1e64e02a3b7e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_2273e422-cb0c-4440-9bbb-8ad08c81cfb3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_c9cdf615-25a4-4c18-b8b4-532e7c2e27f3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_9ad4a171-d1bb-4ce3-b6d7-786a3b002922">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_20369510-c06f-4717-b191-9795ddd89e65">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_fda19ca2-afa5-4548-bd8c-1a7776edc642">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_01aec53c-18fc-4cb0-b1d1-845323a91339">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_634005b8-ee21-4500-9e10-1f3ec4a56aab">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_d90d4a31-8e80-4dec-b652-a34242a9b145">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      id="F_2cfca376-41e8-40ca-8241-65b71eda26a4">&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 offerings.  The combined maximum aggregate offering price for the offerings 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;6,559,440&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; (comprised of (i) $1,514,860 maximum aggregate offering price with respect to notes linked to the common stock of Amazon.com, Inc., (ii) $2,014,860 maximum aggregate offering price with respect to notes linked to the common stock of Dow Inc., (iii) $1,514,860 maximum aggregate offering price with respect to notes linked to the common stock of GE Vernova Inc. and (iv) $1,514,860 maximum aggregate offering price with respect to notes linked to the Class B common stock of United Parcel Service, Inc.).&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_6f5d71f6-d53f-48fb-9e63-897aae40b74d"
      decimals="0"
      id="F_3fa9456f-3afd-4300-adbd-59fb2a6c3980"
      unitRef="U_USD">6559440</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
