<?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_4a8649d4-c618-4b6b-9c35-d60cff3f2229">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_60ba0887-8488-4195-a522-7304b18133b7">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_79d6ea03-711f-45dc-bc60-d014cb82d36e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_994f8c2d-4824-4eac-8789-699669d54a44">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_e95a59e5-b127-4ed8-b17a-32d00580f32e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_522d6b64-1ba2-48fc-8dca-ad80001b7aec">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_15327f02-f846-4b15-91c5-21776a545ea3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_9ccfcc10-5a52-4b03-a8bd-88552903e24f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_cd318797-8053-479d-83e6-218f9f1fcb40">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_c1c28438-0737-42c5-9499-2f303c7d1d2c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      id="F_17a268bb-68be-4ac6-84c7-38d72aa94ab1">&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 offering.  The maximum aggregate offering price for such offering 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;52,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;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_4a8649d4-c618-4b6b-9c35-d60cff3f2229"
      decimals="-3"
      id="F_bd25a4f2-5dc8-4b94-ae77-e052a5cdd1e7"
      unitRef="U_USD">52000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
