<?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_27027972-8fb6-4548-9c85-0be6be01f6ed">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-21</startDate>
            <endDate>2026-08-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_25939c4a-018f-4ffe-9620-5ea74055b525">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_9903963d-8201-4459-b7c0-976cf7437af3">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_6f3cd3b0-88e7-459c-8010-29339070d483">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_a44c2ca3-86d2-4d26-aaf0-76c733818336">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_9ab61d5b-ecba-4c10-8576-fb0a81f7a24c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_844e1a41-4348-4bcc-940b-cf0831d5e1e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_930db9b7-a51a-42b2-b7b5-8f903198e633">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_d49a8166-9eb4-41d0-9604-f8e939d555d2">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_b4af4904-109c-45e1-80ec-ac8b5faf06a8">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_27027972-8fb6-4548-9c85-0be6be01f6ed"
      id="F_8d53947b-9a95-4ea2-8aa9-a683ae3e4249">&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;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_27027972-8fb6-4548-9c85-0be6be01f6ed"
      decimals="-3"
      id="F_155ffbae-1537-4b82-a9b2-c59cc3d592d1"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
