<?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_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-03</startDate>
            <endDate>2026-06-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_a577d710-7601-403a-92b4-2f5e87c79a67">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_7a444c20-8c95-4442-a318-18a18fd02a68">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_fb5c56e2-f40e-4538-b948-c10af7373042">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_94f67891-d51f-4564-b32e-a63a2f3a21e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_9fb0477c-1ff7-412e-8f4e-0d447f49cf6a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_77fdef9d-b4ad-4ff7-a3da-471fd1703caf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_51ee6a5b-6be4-496d-84c7-2e64f8f872ab">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_ad653345-6362-4858-9514-a5e035094444">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_7e73d740-f3fd-41b5-9357-8a3b381c9d68">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      id="F_dbc1a510-0d32-4a01-8b9a-3c33ed77bf5b">&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;967,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_bfb1f26c-72a9-4c10-97a8-510cb8f7d3e5"
      decimals="-3"
      id="F_bb991ccd-3791-4a27-894c-6aea9953d538"
      unitRef="U_USD">967000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
