<?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_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_6e5f0d92-8b53-4353-8307-87360e6c713e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_d77b5324-f372-4e3e-96cc-b7bb8aacf2b0">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_7628b934-b045-4586-a49a-89dd51f5b909">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_05641f2f-2206-43a5-bcc6-3810a1a10630">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_15ea65f7-c89b-4ca6-937d-c55490007fd2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_1e8c035a-88e6-421b-9eb7-5246b06a4ebd">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_bba8ea68-a769-4731-99ab-798412ce936c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_4791eb91-3096-4ccf-9583-d4673472d7d9">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_f5a148a7-3037-4adf-8848-039c0bb52552">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      id="F_fd63c1e3-0f36-42e0-9f40-753cb5ba9199">&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;11,024,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_a9e4430c-aee3-4274-a4a9-1f1c5b49f6d0"
      decimals="-3"
      id="F_aba0f238-ffde-4385-9a68-e65ee570e694"
      unitRef="U_USD">11024000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
