<?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_a158d1b8-a0f0-4a2d-be7a-5085dd927228">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_abce6eee-7ae4-4231-948f-11dc897b7ce7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_754988b8-28b9-455e-99ab-a1d6389a1c3d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_ab2d2641-dd8f-4c66-bdeb-12e97282ac10">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_6b7def68-c94b-49a6-aa9c-fc7b0ad0caa3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_4a8fa951-1d30-46b7-babf-1ac3eef11bcb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_f564e460-c887-4986-a7a1-f4ca2ab33d8c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_650b0401-27e9-4619-930c-75303d676449">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_398d764f-edb2-4ac0-ab95-374aeaca63ab">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_d937192f-b982-4822-9ddc-b657020128ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      id="F_9d700ece-c228-45e3-a91b-43bf5da141b3">&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;1,940,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_a158d1b8-a0f0-4a2d-be7a-5085dd927228"
      decimals="-3"
      id="F_b3b57244-9aa3-41d7-b073-aa087075d584"
      unitRef="U_USD">1940000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
