<?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_14e9bf23-7c59-4c37-b072-124a34bad501">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_19fb14ce-7d43-4e9e-a1fe-08eb1a27e6a1">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_ca1f060d-4987-4eb5-9cc7-4484f2b60f7f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_91b5dcc5-2c00-4a88-a0bf-c41aecc6a568">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_3bf07d54-546c-491d-95e8-bf7df5e52b20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_961f58c4-a071-4a1f-b377-ab6ba89e6460">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_a9bb5d30-092a-4514-94d9-6c937b5bfe41">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_c619d08e-9dbb-4431-8a62-0573b8f6618f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_34ecd227-44f0-44af-af2f-22cc8a1a042f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_a50f0501-4140-430d-8f7f-f2aecb041582">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_14e9bf23-7c59-4c37-b072-124a34bad501"
      id="F_bc6f7d92-4fba-4b93-85e1-1983f408e560">&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;3,928,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_14e9bf23-7c59-4c37-b072-124a34bad501"
      decimals="-3"
      id="F_dca11135-c177-4648-b241-9b8f94954c91"
      unitRef="U_USD">3928000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
