<?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_351ed04c-e7a9-4737-bb70-3735cee52aa7">
        <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:CombinedProspectusTableNa
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_024148e6-ae44-4233-b4f2-3e1699f3a477">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_7f4d6fe8-be48-4364-ace3-ec5523f3d683">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_8805c74e-a159-4552-9f3f-ab233f3022c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_a59443c8-9795-438d-92d9-263230d5fc1f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_5987e543-ec85-4d9a-816e-fe0abae8007a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_0e71437e-aa18-479e-87e1-05eca4a22ac2">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_c9b88d2f-beb8-4d63-905a-c0f0ffb1e829">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_74edf0e9-609c-454c-84e7-90139454b98e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_a593a1ad-9cb9-40a3-8b3a-592e6eae7e5b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      id="F_134f8330-1a13-4506-be73-eaa87bda362b">&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;895,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_351ed04c-e7a9-4737-bb70-3735cee52aa7"
      decimals="-3"
      id="F_957a93c0-9504-4812-a7f7-2701a67d95fb"
      unitRef="U_USD">895000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
