<?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_b3b9137d-82d9-44e5-b2c1-d26c3caf3464">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_69b86846-01f0-4bd8-884c-5cfd86464be6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_1fa9f0a4-a4e4-4a9a-87f3-4a980081895f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_090041d9-d53b-4bb6-b79b-233cbe543ff0">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_3f869de7-b6f7-42d5-b7a9-744290f67e91">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_66921bd1-252f-4ada-8505-f57ebfe5e14c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_a631bf36-71d0-4060-bda1-c015b136f66b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_cab98ca7-c705-4756-90c9-95abc5958f95">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_566d6bd3-7a7d-43b6-a672-d2aaf260a828">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_8e9a9329-c6aa-4ba0-93e0-5a9a1980e54f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      id="F_d83abecf-99c4-4817-83d1-82c7133062c7">&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,601,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_b3b9137d-82d9-44e5-b2c1-d26c3caf3464"
      decimals="-3"
      id="F_f3b8552e-ac9f-4df2-af62-d82b9f9c51b3"
      unitRef="U_USD">2601000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
