<?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_1e1fc20b-80c3-4bb8-b544-97c5c9320c99">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_1f4c55dc-ff0a-4954-ab05-0fdd587bc9c0">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_6bf9520b-6429-45cd-99ea-b8f6378b1161">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_d2c07a12-7a45-4e58-bc25-5a6eb37d21e2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_21ab7d3a-7566-423e-8adf-a5d4f9f537c3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_16e3aa49-61d9-4a0d-b7ea-29ea963a5482">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_0c563bad-7287-4726-bf43-8a88880a0959">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_ee033b53-2f61-455a-88d3-1f809879a61c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_7c1bdbbf-4bd8-491f-9e24-b6fdf1882a0f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_5e0ed473-6310-4d0b-a0bf-a4caf0666395">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      id="F_6b976b6d-201e-48f6-8fae-aeca48691169">&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;2,304,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; (comprised of (i) $1,346,000 maximum aggregate offering price with respect to notes linked to the S&amp;amp;P 500&#xae; Index., (ii) $958,000 maximum aggregate offering price with respect to notes linked to the Russell 2000&#xae; Index.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_1e1fc20b-80c3-4bb8-b544-97c5c9320c99"
      decimals="-3"
      id="F_c8e285d7-06bd-4db7-a2dd-b68b082378e5"
      unitRef="U_USD">2304000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
