<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_eaaf43c3-1b3e-4b05-b0b0-642616788970">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_a6962890-f956-4e07-875c-41d35feddda3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_b92c39bf-2f05-4c99-8e46-ab280e0755c8">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_ee1cd51d-06b2-49c8-8fef-0ee55903e679">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_3cae4d39-c463-47fe-8325-00109194600d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_7d25405b-2290-4f42-802e-652f5ce31f77">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_4ee7068d-32c5-4d7a-b307-cb13a5197711">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_ecc29732-b5cb-47b2-ac31-3b3e97ed8053">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_702f99cb-d62e-4924-85f6-ba4bdadf4e60">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      id="F_952e9773-e366-460e-820c-9f80f8cdc154">&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;638,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_6d2dfcc8-2e21-4809-9076-4ae269aa0f12"
      decimals="0"
      id="F_e77add58-cf3b-4216-aa88-493381cf066e"
      unitRef="U_USD">638000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
