<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_75123546-2661-4dce-ba1f-6f79c5487035">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_a6112b46-a80c-4be6-b805-2f198e08eeab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_32fdcfcc-eedb-4a8c-941c-d6f1b11e3115">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_1e95e522-d4c8-41b2-ae5a-b739cb4ba6d4">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_580bfcdd-453a-4002-9156-0c1725dace0c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_8a655fd8-fbe9-47fe-a6e5-bd00a804c6b0">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_4af5ba21-a022-4a8e-afcf-58809db921fb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_aed724f2-385a-424a-9501-feaf6d43d169">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_d11d2155-6412-47f3-970b-d9e925ef83bf">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_fab50758-4524-496c-b40b-a987e2584168">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_75123546-2661-4dce-ba1f-6f79c5487035"
      id="F_cc9427a3-7a3c-4625-8b2a-6c93f708553c">&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,185,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_75123546-2661-4dce-ba1f-6f79c5487035"
      decimals="-3"
      id="F_e0b0666e-2ffe-4eea-90d4-72b938ce943f"
      unitRef="U_USD">2185000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
