<?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_6c81a405-081f-4147-b126-9e883e053aa4">
        <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:CombinedProspectusTableNa
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_fe94b5d2-0f25-479f-b334-5ce342bd01d9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_93e8b82b-726b-443f-bb32-0446b7d864a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_cff82e86-4fc8-4266-b751-f50a3998020a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_54644d12-ef62-4191-858e-26030a496f98">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_f5946f2d-74a2-4869-8f67-20bc5f705c5a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_1f5b0131-be6e-44e3-97c0-569fbf82013d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_f9bbdfb1-1c77-4e89-b37f-729c3a7f12ad">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_4c3cd166-35e5-4c90-8df2-c7fdb247801c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_c4a0af64-f22d-4689-8b3a-5e39db708c1b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6c81a405-081f-4147-b126-9e883e053aa4"
      id="F_16f64bf9-490f-4fd0-ab53-2f1b39778d90">&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;6,079,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_6c81a405-081f-4147-b126-9e883e053aa4"
      decimals="-3"
      id="F_020dc458-8905-4f86-a5fd-7bcd0c75e6fc"
      unitRef="U_USD">6079000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
