<?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_7246821f-d83d-4a47-96bc-338584da78c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_3a082fb8-2a0c-4de1-aca4-4c0fb8cf655d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_8f5a176e-f0df-4e3a-af34-85e41ac5f1f7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_a3b907b4-1fab-4333-8ab2-4345a6f4e5d5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_3f41df3d-e74d-4a5a-911b-41211899de44">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_8908a430-51d0-42d9-8fa3-2051c0a3e2be">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_4af3e314-b60a-452b-a7f4-81edcd323f2d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_9117c9dd-a4c2-4aef-89ae-188649c29695">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_cabb2856-6b46-4058-9d2f-aa5909da872a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_16ad697f-acc8-414f-850a-f4c8435a2275">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_7246821f-d83d-4a47-96bc-338584da78c3"
      id="F_63ccb6ea-6044-4831-9528-7ff99f499e78">&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,358,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_7246821f-d83d-4a47-96bc-338584da78c3"
      decimals="-3"
      id="F_abc06c31-27eb-4dcf-8a40-3d9fd3c4ba2c"
      unitRef="U_USD">4358000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
