<?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_f320c6ec-c6bd-4423-b30e-74fe1b2a2664">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_9889c1f0-4db0-4a30-87fe-83a168a0fd81">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_3e46bc06-10eb-40eb-84d3-c8aa2ff0bae8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_e99adb5c-e6d9-41a2-a105-4ce3340fc924">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_d41c36f5-2e05-437d-aed5-63492b107c4b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_3e3d0a86-0bd1-4447-a66a-f0fc81237710">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_4d65ccf2-b766-4ce1-9f04-2f027d189ffd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_edf555d8-8fc6-4c52-a06f-c79a273125de">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_d1f41aa8-019f-491d-96d6-bde0063b350a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_a4679c7d-02dc-4dcd-a40e-bab8cc0757bb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      id="F_461f35d8-5f22-4c6c-ad3c-a3f460476ef4">&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;1,599,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_f320c6ec-c6bd-4423-b30e-74fe1b2a2664"
      decimals="0"
      id="F_f953ff91-d1c1-4e10-8970-236e90fc22fe"
      unitRef="U_USD">1599000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
