<?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_4523a231-55b5-4cda-ad5a-d0eeb26bf982">
        <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_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_22eab9c1-1776-426a-afb0-52beedc25a4b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_f7dfe068-811a-4257-a998-aa6395fca061">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_def5b9e3-0547-45b3-bdfc-aaf05f7dbccd">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_0f5a0ed8-b6cb-4896-be4d-96ea996acbf0">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_f754aaa2-5e88-4c3b-bbd4-8369aa78cd52">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_4210d775-f20b-407a-a896-12a3ab88ba71">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_782fff63-6b7d-43d8-99c8-be3b97b40c55">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_1f83d81b-8b93-4dcf-88c0-e92776f53316">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_7a33f9cd-8176-40bc-8e29-6a498d6e5931">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      id="F_89dc30af-74b8-44a5-8b9b-f758b2965b03">&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;4,000,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_4523a231-55b5-4cda-ad5a-d0eeb26bf982"
      decimals="-6"
      id="F_9612ac9c-4030-42fe-a3d1-cbcfe4b082a6"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
