<?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_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_a9c4e21f-84ec-4c61-bff2-b0e885873097">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_18b74097-1a1d-4ce0-8345-ed1ff1ec65a2">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_488243d2-44e2-4721-af7a-8958d8a09d64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_f2f92f6d-942b-43b0-883b-997239366edd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_139cbfaf-1585-440b-90b2-b1f47f2beef9">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_1aa7479f-a45c-4a21-a2a1-b9985c981db2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_ed13baeb-8d6f-4939-8758-89a0c8a9559c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_0d002b19-f018-48b0-b8c0-da5a7111a21a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_2a51e088-569c-4ef1-8189-ed050122519c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      id="F_fbc927ec-349e-45c2-b279-f9c86554a22e">&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;5,810,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_cc7a8b7c-bf68-4da7-9d59-fb6f5a13a22f"
      decimals="0"
      id="F_5ca8990c-4daf-46e4-967c-448b3d7babc3"
      unitRef="U_USD">5810000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
