<?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_29819abd-5a01-4b2e-a53c-e4229252f0ab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_6a2aab24-91a9-4cce-959f-1e27064c499e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_31b76723-69cb-4dbb-ae59-7cfa17176854">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_4a72c824-b750-402b-ad84-5ad01127b1dc">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_68063069-aa63-4202-a3dd-bb45e53530d3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_aa73c2e9-2b34-4452-8c78-4db2c631d2d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_042e77c6-bcdc-4569-bd57-e77de13e8827">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_b59d90fe-62c7-4f0e-bf80-27c3abbf7c5f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_2ce69a7f-c58f-4703-bdbb-96327f9a2a55">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_e98db34d-91e2-45d8-8f1a-2d7ef99df034">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      id="F_91dfa40f-14d1-4338-9d89-c50aa4d80e65">&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;500,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_29819abd-5a01-4b2e-a53c-e4229252f0ab"
      decimals="0"
      id="F_cd652164-b6eb-473f-86d9-89d7a46b3bfc"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
