<?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_1c908720-6183-4fab-aeb0-ee54ca53ab0c">
        <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:OfferingTableNa
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_fe309538-a182-463f-898f-c810a55e73c8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_358e38ec-2f45-49cb-bdca-eff9ea790d43">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_c9435102-efd9-4746-b78a-7125087e9b16">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_f694334a-8c8e-4d85-a41c-a4e54982b30e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_6b4d20d5-01aa-47f8-946c-22131229f2dd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_7c259974-725f-4253-9528-606d66736fff">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_f4a15295-b757-4b10-9a66-d6b93763f8a0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_dfd9718a-ffb9-42b4-91b4-79226f2b176e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_26f9b81a-dbe3-4e75-a738-8abbc8358afc">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      id="F_9e5bf9cc-cd9d-4829-9220-9cb556fa1e91">&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;3,193,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,300,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) $1,893,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_1c908720-6183-4fab-aeb0-ee54ca53ab0c"
      decimals="-3"
      id="F_c19adbe9-696d-4c0d-b178-99b65ff478f4"
      unitRef="U_USD">3193000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
