<?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_6c92219a-702a-486f-be67-ca76583c5e98">
        <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:FormTp
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_34ed67c5-379b-47de-bebf-61cdb0b9a4b1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_e6cd4799-5755-4e26-9153-b14d641bccf2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_10b5bf72-1f04-441f-8333-9c22b9b9f700">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_23515c19-5196-4ab2-881f-8a16e12f473f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_1f0ff12b-0915-4749-8c56-78ad760fe5ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_76c8c73c-2a5d-4201-a98f-8a93faec5558">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_1cfc1cf1-fbe2-4ef5-abbb-fa576f883087">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_e31bff71-b4e5-4298-a4e5-c7ad9caf0c5c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_b4207e6f-62b3-41b0-bc04-0c81e4bbeca0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      id="F_d42240b9-283f-465d-bcc2-dd208f93ce6c">&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;6,232,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,588,000 maximum aggregate offering price with respect to notes linked to the EURO STOXX 50&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) $4,644,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; Futures Excess Return Index.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_6c92219a-702a-486f-be67-ca76583c5e98"
      decimals="0"
      id="F_e8edb57c-08b4-476a-890b-bba6d257d2ef"
      unitRef="U_USD">6232000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
