<?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_36734d74-a2ed-4bcb-a9d0-de3f177d5714">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_9bf4dc8c-f473-4f7e-9d34-b3226a78994f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_5a09546b-1ea8-4e31-8026-2a0c5abc8eb1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_fab1611b-8d11-4c15-b5b9-c86c8d1b376e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_ff78c56a-814c-448b-933b-901c26d50016">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_11e16904-2868-48bd-bc77-2ba811a07d2a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_ff59e5de-fbd0-4979-98e5-063794ae9644">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_96307690-9923-4b18-b589-7193961bbc15">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_6c08d2eb-8a1b-44eb-8a2f-e852027fb562">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_a6a0659c-7dcb-450c-9601-bc27176da544">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      id="F_628e9c06-df66-4fd7-ab1b-6babeedc6049">&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;961,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_36734d74-a2ed-4bcb-a9d0-de3f177d5714"
      decimals="0"
      id="F_e25d9d86-bd73-47d4-a72a-3a18d4753033"
      unitRef="U_USD">961000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
