<?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_89b24d17-f982-4af6-8f05-0485cc401182">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-22</startDate>
            <endDate>2026-07-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_5a02b6e0-9391-48b1-814f-46737c1d407b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_86caf212-3af6-43f5-b4c1-3854ac7c95f5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_fe83501d-45eb-4c63-8b8b-25d6fdb071ac">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_0ae94fce-9f28-4c09-ba06-fa8ce2fc4101">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_717ca9a1-c212-4afc-aa42-d231b7c3c10e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_781fab1b-c54a-4361-94ff-756cd92156f8">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_28d535c1-c26e-4325-b0b5-484200f859a8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_9d9502fb-1e10-4448-9828-de943fe806f8">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_136e53b2-c9c9-4516-8187-e80b19152a69">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      id="F_0dbe927f-5335-4ff5-a855-6428567b1521">&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 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;1,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;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_89b24d17-f982-4af6-8f05-0485cc401182"
      decimals="-6"
      id="F_bba3dbb5-4f08-40bb-b266-6326922d2922"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
