<?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_6297c4b3-d1a3-4486-8959-533bb40e3229">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_1588fe54-b70b-43c2-833a-7436fe9d36e7">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_2228978c-dc6a-4160-8011-e5b6d28a9a5c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_6a19d089-cd15-4509-90e5-626ed70286ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_26b12c57-98f5-41db-8d52-0a4f6a930f52">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_801109af-b3ab-497d-b0fc-15b32d6eadf5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_0c98a499-c5d9-4cb5-b2ae-7294c495e954">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_e7162100-efcb-4707-8602-90b7eab896db">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_96c4cdbd-282a-42d1-8f43-f3fdedf80ee9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_8b3990be-909c-4284-9277-6b777b0129bc">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_6297c4b3-d1a3-4486-8959-533bb40e3229"
      id="F_043e6016-fe0b-4d46-a0e8-619e3181ade6">&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,500,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_6297c4b3-d1a3-4486-8959-533bb40e3229"
      decimals="-3"
      id="F_da604a12-c6b9-4449-93cd-7c6de082d439"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
