<?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_58b075f5-cb68-470f-9e47-ee177f89e1ea">
        <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:FeeExhibitTp
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_e8ded4a2-7419-4ae5-8c0f-b90156a0452d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_84a36f45-48a7-4637-b12f-56a3c518910a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_0453fead-c3ad-4d3c-af59-2a773d71a962">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_7b5cdcbe-6059-4e6f-af26-6bb922e8eee8">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_61c01e28-1e78-4350-a6a4-d5a8e08aa699">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_355d36cf-78a6-4999-b0a6-8f9fc9320990">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_bf010175-312a-4cb3-bdaf-a10d9684e6f0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_b5c74dd4-8ad6-42f0-8e68-745d0c22c39c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_ef15d85e-74ae-4357-836d-3f7f202e51eb">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      id="F_2ae8115a-0c19-4541-985d-59e861a8eef6">&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;514,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_58b075f5-cb68-470f-9e47-ee177f89e1ea"
      decimals="-3"
      id="F_3e0503a6-2402-4262-b450-811ebe8334f0"
      unitRef="U_USD">514000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
