<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b62c344c-bd64-4964-b4c6-956655886d51">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_e907992b-a7fc-4949-aa08-ca037139f12c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_d4a750b7-bcdf-4159-a284-f12b56c8cf7d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_26756c66-aaf2-4180-b36a-df320df3d43a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_b9da409d-cf5c-4da7-ad2e-1a5b32806937">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_49840d7a-9f13-4ae1-a457-1a55edc4dfbc">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_1a6b08c9-33e8-4fc5-a3fa-819aa7034ae8">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_eb5e40bc-7e91-40a7-9bee-dc7143011253">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_a41308c1-a137-427c-a60c-2fd2229c87f3">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_137b5f4f-ed33-4237-b87e-3037dbb678ba">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b62c344c-bd64-4964-b4c6-956655886d51"
      id="F_e86c43ef-0b70-46c9-8a4e-20d080ebe582">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;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,571,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,387,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) $184,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_b62c344c-bd64-4964-b4c6-956655886d51"
      decimals="0"
      id="F_0e4bb03f-f769-4ae5-91c9-e4290d1f2776"
      unitRef="U_USD">1571000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
