<?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_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_30948823-75b9-4c77-8f16-de70f5b87d54">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_f3668157-6008-408f-8776-0664c8f19118">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_866ec9d9-08d5-423d-ba25-ba67d91adffe">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_231114f3-5dae-4426-9629-0206544d8a7c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_4847211d-0564-45be-9eb6-dc93b5ec4f6e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_a97fd860-aad8-4865-bb19-8e2c7b8fe87f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_c3baab17-882e-4613-afd6-1476dd3a855b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_668d47ba-a1e4-4f0e-9473-b03834cab773">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_5b187478-0e97-490c-a0de-83f4066daea9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      id="F_108071da-c572-4cb4-9a58-73f5c075f828">&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;832,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_ff51a25c-bd76-4bfd-97bf-21d90b65a3b3"
      decimals="-3"
      id="F_b07e7672-2b3e-41a4-b4d3-8383b6289bbb"
      unitRef="U_USD">832000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
