<?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_1d65b948-5797-4506-b6d2-b13b81b42385">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_2b54e2ce-aff6-48ce-b5d5-4faef8cbd6f3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_72e24c7e-5ad1-43d1-b1c9-245dae707d35">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_25fac801-f428-4efe-8586-804af4ea350f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_706a3c68-178d-49d4-b35c-f9221ef71235">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_9fe9a4a5-1db1-41a9-9a11-134e899593b8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_b2632c52-231d-4e97-8db0-e1c1807f5a06">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_108c3227-6bc7-40d4-9ae5-552909e857d4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_7f330eeb-913e-4aed-8afa-ac69ce8caf98">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_5b6ada83-c876-4cdf-9255-28156d8efd83">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1d65b948-5797-4506-b6d2-b13b81b42385"
      id="F_ec08974b-ca30-41e0-840a-f61c7a45809d">&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,732,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_1d65b948-5797-4506-b6d2-b13b81b42385"
      decimals="-3"
      id="F_8a88fb30-c57c-4c31-92dc-57c88c0fa28a"
      unitRef="U_USD">2732000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
