<?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_4d0773b0-9397-4567-8afe-55c51aee14aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_4557054b-4de3-435b-8bc7-517d0e4e6ead">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_9469f027-7667-4990-bdff-1fca8a7f7e73">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_e098c854-492f-421d-8d86-563d32d18cfb">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_01881b7b-d02f-4f40-9b79-a77f1a5a5e39">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_21ed3249-f28c-4e0c-a0fd-78a7491cb6ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_7d001e07-efc6-4e1e-bc5f-6790e2ddce4f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_214e6727-385b-4a62-a9f9-92bfd60708dd">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_3f2a1d3d-c288-4d8f-8667-441545ba8fba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_db38b177-0816-4821-a8e4-5c8dd4f960e8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4d0773b0-9397-4567-8afe-55c51aee14aa"
      id="F_f466667e-806b-4d93-8c44-86a59ad03293">&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;8,462,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_4d0773b0-9397-4567-8afe-55c51aee14aa"
      decimals="0"
      id="F_313fab75-a020-4962-bebb-2b124497c045"
      unitRef="U_USD">8462000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
