<?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_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_9038610e-ac04-46c1-90e5-02313b522f18">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_f68bf31c-1a96-44c5-9eb2-bb3e47d09f14">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_bda9bba3-43cc-4e7c-b155-7f13d2ca2e80">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_96a1cda2-0993-40d0-b092-4f9816860209">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_1c0f6a2c-bef1-4aac-acbe-e6ee6420eeb2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_c3f20ad7-7269-425a-b788-83cd8bb59907">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_40c4c9c8-5866-4b73-a8a4-7f38bfb231af">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_960cd9d2-7ce5-4865-abd1-bdf2bf447af9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_7e9d27a1-20b5-4422-9be3-8e3d2537c528">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      id="F_71dc058a-2ec4-4138-b38d-e20a073b1df3">&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;157,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_3a3a4e1f-b2d4-45b0-a9cc-337fc945f5e9"
      decimals="-3"
      id="F_d41af16b-de69-4f78-b8ec-b638fe33d393"
      unitRef="U_USD">157000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
