<?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_55420921-07f9-450e-8f53-a3f5c4a990ae">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_7a3a93a3-f3f5-439a-9e22-55abf92566ff">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_97dd4357-407e-4777-9e2a-becbce1b35b5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_6a21832a-9c2d-43d8-9e89-0797cbc7ca31">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_1b93ff41-8644-4681-99df-0c5bfe0f1b5f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_13f53898-10e5-4c69-98c0-dc0b0ca75fd0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_d3cbd53a-4f2b-435d-9923-8ab8a1689f5e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_9597ac76-37bf-4314-ac79-f55d7ea1c8ac">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_d6ce8f0e-bc6e-4de1-8311-2dc0cbd07331">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_493fa8fd-dcf7-48f0-a662-143f5ec35e60">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_55420921-07f9-450e-8f53-a3f5c4a990ae"
      id="F_d16375e6-e793-47c3-8ae0-3890f15708ea">&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;751,000.00&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_55420921-07f9-450e-8f53-a3f5c4a990ae"
      decimals="2"
      id="F_f7380cb4-3905-4678-819b-08a82eaa33e6"
      unitRef="U_USD">751000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
