<?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_ca47a653-4582-4417-9e95-df52d757595e">
        <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_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_6fea5761-8f76-41c9-a461-326f3377ea19">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_8f0083a4-a279-4604-992a-6ecb45d87680">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_ee1a8164-696c-48f8-898e-1f61fffcecfc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_783e825a-51e4-44f8-ad85-95d57188762e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_b265484c-ef38-48fb-bf07-a668f2a9456d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_fbc019d6-87a9-42c9-9c6a-3ca805279474">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_dabc7ac3-f088-4242-bd4e-72736f1d7925">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_be43fbcc-0987-4334-a960-a7e002c8cd14">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_92588dbf-2c84-4930-a59a-75d325b44227">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ca47a653-4582-4417-9e95-df52d757595e"
      id="F_acd93695-8604-4009-b8b6-39dd7f2b1674">&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,301,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_ca47a653-4582-4417-9e95-df52d757595e"
      decimals="-3"
      id="F_a043db7a-3c3e-463f-aab3-8a2c53cac78c"
      unitRef="U_USD">2301000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
