<?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_d279c83b-546f-4b80-bf99-f6600185adf8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-13</startDate>
            <endDate>2026-04-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_3f70957b-9eed-4efb-b882-eacfcf7849e3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_67ae2db6-00d8-4e25-9a85-51c5e7f8601b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_251346c7-9815-4be7-9b7b-c12b15c14d38">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_b7800151-937b-4246-bb57-1806c25b5934">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_ea62de4c-660a-41df-9b62-abb37ffaec1c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_5819c88d-9953-43b5-b59c-be8fa78c4bfe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_a4408a84-438e-49db-86dc-1c9116642c4e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_9a25390c-c480-41fc-bd7e-5bbb0a84b007">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_63a9cbb8-8763-471a-be0a-9f3584c26677">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d279c83b-546f-4b80-bf99-f6600185adf8"
      id="F_5b31d2c4-502e-459f-8382-d689c5f8420c">&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,200,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_d279c83b-546f-4b80-bf99-f6600185adf8"
      decimals="0"
      id="F_6dddcfc7-ae40-4917-969e-1966d1d00cb1"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
