<?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_a6124970-b8ef-40c9-be38-b350d813f8fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_f70cafe8-ec8b-4c3a-b3ed-3480f93fec5d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_ae2c2467-ffc4-45c2-a012-b95ba0df099c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_9194fe12-be98-4a75-b4df-98e70bee5b64">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_932b45db-ef44-4530-a07f-9a7b118ad43f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_60c92f65-3fea-42b5-9f8e-5a549e634d62">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_32949fb0-e118-4e53-8fbc-95c7ead35217">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_3635c530-7a33-48cc-bb88-e7b3ee17e656">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_f5ce1978-d0c0-47b2-8621-08bdc01052c5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_005db318-57dc-4f28-bbfb-125c367d9455">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a6124970-b8ef-40c9-be38-b350d813f8fc"
      id="F_0c28c228-fc77-49ec-919a-5b5f6f28c79b">&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;2,701,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_a6124970-b8ef-40c9-be38-b350d813f8fc"
      decimals="0"
      id="F_cda80d0e-cee8-4e8c-976f-39bcaa7b4670"
      unitRef="U_USD">2701000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
