<?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_991517fb-bf84-4dbe-ad48-5597752fc075">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_a6448318-494f-4c8b-bd34-d1fee2933759">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_eac36b57-e5e1-413e-aafa-e9d75d4fcb5f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_4bb94525-48dd-468e-a0cd-3df91d778f81">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_ab0177db-7adb-42e0-baf1-05130f2557b6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_8695d954-b0e1-46fe-9e2c-1a56a82ea565">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_4e4ab608-458a-4928-9c84-7ef54f2d64d2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_b190e875-7036-47ee-9a46-2401061fa2b3">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_3767e616-fd09-4eb7-8aa5-0ec951184dfd">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_7d21339c-dd58-459f-a01d-565590a51189">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_991517fb-bf84-4dbe-ad48-5597752fc075"
      id="F_4b301a13-8cff-4269-9e8d-dd0f02fe6d85">&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,280,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_991517fb-bf84-4dbe-ad48-5597752fc075"
      decimals="-3"
      id="F_8cfcacd5-7ea8-4479-8533-65d7ecfee1e7"
      unitRef="U_USD">1280000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
