<?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_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29">
        <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:SubmissnTp
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_a034c059-4838-4a58-949f-f99d0a5dd9f4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_7cd7fba3-11cd-46d1-b17c-495b5169bf70">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_aa7d26e9-56c1-4777-8441-f701e1d45868">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_c5abf11e-34bb-4bbd-8b28-d82e7f22f46c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_74eff07f-ca71-49ae-b734-b249e91fc097">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_5355a266-70c9-42ba-8339-f4f4c3fe2406">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_80caef51-358c-4247-9d8f-09bb4236a863">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_87282edf-0c24-419d-a66d-f2bacefc9be4">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_6d0c1b50-f3f0-4783-a62c-1385b058518f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      id="F_c29913b6-8f39-4e59-90f2-2424efb3ccfe">&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;10,122,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_3fd00846-7c31-4a4f-a6f1-76a0f8f6ce29"
      decimals="0"
      id="F_73ed94eb-4792-43e0-969f-6e685d887604"
      unitRef="U_USD">10122000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
