<?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_6a15edce-44ab-4a32-ad99-95e421b7f6d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_b897655e-9b89-4fe1-ab50-ebface4f92dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_e08bde3d-da77-48fd-af95-a11afd13a523">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_d42bd14a-e082-4b07-b290-278c4f2ca187">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_af119e68-2c23-4f66-9753-cddb9e5d9c7c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_261235b6-039a-476c-9c4a-c3db89f1f8b2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_e0a88648-b155-413f-8e89-749abecf13fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_c0aa2581-db15-479f-b3f2-a4865db8aa94">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_c6a07560-592a-4c18-b472-f0a8ac2450a6">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_bd366f0e-2a01-4fa2-a345-8d8b7e3a40c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      id="F_2ab5db1c-bb16-4d75-8220-6af52a306f98">&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;2,840,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_6a15edce-44ab-4a32-ad99-95e421b7f6d8"
      decimals="-3"
      id="F_dd14a14a-2856-404a-9484-ced8959f2ec6"
      unitRef="U_USD">2840000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
