<?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_a358adfe-052f-4073-ae21-6fc26275f8c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-11</startDate>
            <endDate>2026-03-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_74040fd9-7d92-4441-80ab-cd57e70bda20">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_41cc17c0-9351-4f5d-8743-e5c7d474a8f8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_52de9694-2238-4cf0-ba86-5e2656c67146">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_400fc019-8255-49da-8c5e-8269b70e1798">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_2c62aba8-0f13-4552-824b-644d5134c589">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_4c9ef71a-0862-40b6-aca9-c1e5ceedeb53">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_5fc59b48-1bcb-4b9d-8d1e-01334f6a130d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_874eff39-baab-4d73-bc9f-a79bea86d613">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_3f18ba2b-8618-42b5-8b41-edb7776d0da4">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a358adfe-052f-4073-ae21-6fc26275f8c6"
      id="F_a4ce49e2-3859-4a9f-9f04-62da1dd2636b">&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,000,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_a358adfe-052f-4073-ae21-6fc26275f8c6"
      decimals="0"
      id="F_c5dfdce9-ba31-4cb5-876a-02767f24da0e"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
