<?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_bc18b303-50b3-480e-abaa-d65be81d15d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_dd6ebce6-f8d9-4af2-a281-85b6c4a7111a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_4b302f90-10ab-4191-975a-74b8902b94b6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_4f636095-be59-4f2a-920e-ca22753e51f8">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_5f84e632-c87b-47da-bed0-5d834a4ec483">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_17163458-90ad-4c4a-98bb-3b12b30694c8">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_a937cb70-4e09-43b0-8551-7f2d8f0313a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_5eb01cd1-66bc-43c9-9b70-f536732f0921">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_7492a12e-e345-477f-be40-eb45d4854910">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_6f301990-ffb1-4150-876f-bfc62723918f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_bc18b303-50b3-480e-abaa-d65be81d15d1"
      id="F_d514751e-a0a2-4dad-947c-b60b4457d8f8">&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;443,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_bc18b303-50b3-480e-abaa-d65be81d15d1"
      decimals="-3"
      id="F_bf456769-fc7c-4504-8c2b-d50b10322afa"
      unitRef="U_USD">443000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
