<?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_846242ae-7973-4ae3-890e-a08e68be2003">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_0f3f50a3-88c7-4a82-8fec-9c89cd9621f6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_9ab486e9-bbb5-43c6-9a46-02a1dca7eede">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_63172d86-9f4f-449e-a9aa-b7f8c1f21d5e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_f22e4bed-cd60-421a-aae7-ac8f5d5f6c12">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_ebfb510f-22ee-4b16-8b48-28ba507ba492">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_54ac88ff-1d03-4990-8bd9-b39f67d69633">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_4e0206b3-17d7-4420-bded-b594463666b2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_096dca7a-0ca3-47fd-b497-b2eda769dcb7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_dd9ab329-6f1b-4c17-9f68-7c1ee9897289">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_846242ae-7973-4ae3-890e-a08e68be2003"
      id="F_0039b8aa-0162-4631-9c01-5840bb687384">&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;9,519,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_846242ae-7973-4ae3-890e-a08e68be2003"
      decimals="0"
      id="F_04f333d4-4ebd-4f60-8802-e3b20e0845ce"
      unitRef="U_USD">9519000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
