<?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_da1b27e5-1450-4629-b0bd-5eaa97e180da">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_278388aa-e8bf-46fd-80ea-6cbe3d5d55b7">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_c41bd2e4-f5bd-4383-aff9-ed5c1dff50b5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_7bbdd1b1-d88a-4ec2-9ca5-1199da578ff0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_77a831cd-14e9-4623-81cd-0edf56405f4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_02489cf7-ace9-42fa-b2e5-23bb7cee674a">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_dfd48008-0eec-439a-9d7f-ceb497dc4598">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_043e6a38-700f-4c00-9067-db5f9fe1a08b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_8f1ea2a0-02d4-4b30-8b93-2c217c22297d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_3b64c6ae-29f1-4323-897a-d8454ce53c61">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      id="F_13f5011a-fdda-4c57-88ad-3919751c4141">&lt;p style="font-size:10pt;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;1,547,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,056,000 maximum aggregate offering price with respect to notes linked to the S&amp;amp;P 500&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;vertical-align:super;font-size:8.040000000000001pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#xae;&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; Index., (ii) $491,000 maximum aggregate offering price with respect to notes linked to the Russell 2000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;vertical-align:super;font-size:8.040000000000001pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;&#xae;&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; Index.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_da1b27e5-1450-4629-b0bd-5eaa97e180da"
      decimals="-3"
      id="F_f2c2ed1a-23a3-4e71-8524-1cf355d9fcd2"
      unitRef="U_USD">1547000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
