<?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_82877866-2117-4a6e-82ff-33c0a6697dd6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_05d22a09-a6c8-43b5-9ab3-caf99d7a917b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_fbcb316b-e8d0-4161-951c-e74d6feeda68">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_e924eff1-e25a-4e60-a398-14a6e85e8ea5">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_c78687cb-c943-419c-9846-595d0f1b4d3b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_2e3d21dc-877d-4f20-8c16-00dc9da104ad">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_5707911c-912a-4fa5-a599-9a0122b856d1">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_82368d0e-9575-49e4-80d1-315f6820e4e2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_8dcd29c5-f20e-4bd3-bcc2-7a178a9637d6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_14f06b29-fa2c-49f6-9235-48a836037ad3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_82877866-2117-4a6e-82ff-33c0a6697dd6"
      id="F_90fb01d7-4692-49a0-8fb5-b9fea84ba90c">&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,252,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_82877866-2117-4a6e-82ff-33c0a6697dd6"
      decimals="-3"
      id="F_67f51a49-851a-4455-a988-2674509b11a1"
      unitRef="U_USD">1252000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
