<?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_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323">
        <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:OfferingTableNa
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_6ca0dea7-8873-4905-aff1-ca2cdc6f51ba">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_5da77b6f-2c91-435d-b786-1b43b7e91514">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_30ba2ab2-e3b2-448a-852f-46a240ef6d0c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_4b60370c-1452-4f64-a20f-c430b89a6622">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_62daf6c2-98eb-4dd0-8cad-cac2c5401725">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_f0c63f1b-341f-4410-8c24-cd801c8750f0">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_d100e9f7-5d78-4648-b374-5266ab2ed575">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_a37a6771-253b-4d25-8561-b4b5bccd2189">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_b113560b-57a0-443e-9a77-97e7031f9ec3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      id="F_6930baa2-f19f-4af9-a925-f2740cdd7819">&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;1,560,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_b8d5c0fe-ac5c-4daf-8157-9dcc8a7da323"
      decimals="-3"
      id="F_1a9c275e-da54-49c5-a19f-36cd24668dcd"
      unitRef="U_USD">1560000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
