<?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_501f8dc2-aaf1-4870-87b7-aec768d4930f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_e98a0c31-d29b-400e-ad7f-b66650b6b3c4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_ccb20d46-35cd-4a2e-b619-1c916cf1ba52">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_544c70c5-7c54-4b41-a186-81f56bdf6450">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_e68a04c6-85d4-4687-9b35-17aefc1f0e87">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_3a929567-6f0e-4c13-8255-f221f8dffb4c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_6000b1e9-b652-476a-9e3f-eb7f2c7cae31">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_b15cd915-67f1-430b-a2f4-66aaa35afb05">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_a36333d5-2cfa-4fa7-bf2b-d1cb74e22ae8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_74156ad4-f65a-4388-b645-49c1ec32bc98">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      id="F_1f591126-5693-4405-9470-8a003d3ad938">&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;3,000,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,000,000 maximum aggregate offering price with respect to notes linked to the Class A common stock of CrowdStrike Holdings, Inc., (ii) $1,000,000 maximum aggregate offering price with respect to notes linked to the common stock of ServiceNow, Inc. and (iii) $1,000,000 maximum aggregate offering price with respect to notes linked to the common stock of Snowflake Inc.).&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_501f8dc2-aaf1-4870-87b7-aec768d4930f"
      decimals="-6"
      id="F_d54d7205-7ea0-4536-8353-eec866ee03a0"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
