<?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_51f9e391-2e6c-4d19-9476-5cafde2c545f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_132d11d9-994d-4eb6-acfe-2553347df4d7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_01500825-19bd-43fd-8c12-9b1317b1b82d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_38e838d1-45ba-412a-a760-513fdd680e28">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_c8b412a7-7b42-47f8-a5fe-7e1fa5b0c603">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_f96b35a9-bcdc-4b88-93fb-c8240ac37f89">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_1cd3799e-1a4e-40e2-a692-cf944f58a731">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_b185b8ed-0c43-4b16-8399-07447ca61bf0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_ff24e922-5616-4bbf-8da0-7bbc31a26ba5">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_63b5436a-b258-429f-b761-a1539c1ede12">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      id="F_71c3aac8-690f-4e37-8c7a-2381627da0dc">&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;1,200,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_51f9e391-2e6c-4d19-9476-5cafde2c545f"
      decimals="-3"
      id="F_bc544d0a-5b34-4233-ad96-8f6afddd3c6a"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
