<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_74bc2a34-746b-45c7-b941-f9c31b735e45">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_d2c4f346-0647-4fb3-8344-1f4e002ef454">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_9c70aa17-1b2d-4cea-86fa-099b4106a847">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_6a3e0fed-19eb-44d2-8625-e5c7a9fbb44b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_5766441f-ebbd-414b-b84c-be9bd3314177">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_288deef1-3e73-47bf-a57c-a89a7ae238e9">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_148eb6d3-aec5-47cc-b139-f1267bc2ecf7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_34692268-f0df-4b20-9a5b-e357d775d46b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_58db2cc5-ea58-43d9-ab4c-f218930079e6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      id="F_9da69314-6801-4802-91b7-b5947e836bca">&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;13,523,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_22cb2dcf-5637-4b51-bb49-42b7aad3b1df"
      decimals="0"
      id="F_d371ec45-368a-4809-b471-31fad90cb5a2"
      unitRef="U_USD">13523000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
