<?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_eb554742-399e-4ef4-b4a3-4f8a3a4356ff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-16</startDate>
            <endDate>2026-03-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_dd8a7be5-0a15-40f1-848f-7e66640561a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_b306c1ca-46ed-4c02-b7ac-02b5ee55049a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_1afa6c69-9a43-4a74-9dbb-468d718b4d13">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_efcb4454-5bd8-4d57-982c-944de9972b47">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_1d5dc2a0-548d-4539-a1e5-572cccc93b8a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_2a34906f-44e5-4456-a0ca-dbb2f460c6c9">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_91faa6b6-148b-4c06-aaef-7ac08e20fd86">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_c63d95ce-a205-4b23-a4cf-bacb7db267d0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_dc8332bb-e799-4a0a-881b-e5bf5d8aebbe">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      id="F_b4436801-70dc-46ea-9d4f-9d9da4ade9a3">&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;7,994,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_eb554742-399e-4ef4-b4a3-4f8a3a4356ff"
      decimals="0"
      id="F_15d01d5c-a9c7-4740-bef2-18166b1603a7"
      unitRef="U_USD">7994000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
