<?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_c5812503-f51b-457e-a16f-1ccd15a73686">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_d7f2796e-77ab-4dc9-aa03-d04d2ae4a85c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_75ddff4a-5399-4413-b527-8c6a24419942">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_972b1fb0-fc25-4deb-9aa0-49eaeacbeaf4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_626713c3-44b4-4733-bf62-b5cfdb0ab312">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_c25a44d2-a284-4b38-8526-ae688ea453db">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_13b3ceb2-72e3-4bf1-8ba7-13b0404f284f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_1828e730-6ee2-4b11-9bce-a603ee976726">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_32c99f2c-a62c-43f7-a2e8-fb3039bdcd8f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_fbab6097-753d-41b5-be4c-1323468509ad">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c5812503-f51b-457e-a16f-1ccd15a73686"
      id="F_624764f7-f74b-43d2-a969-4d578a17aac3">&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;5,252,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_c5812503-f51b-457e-a16f-1ccd15a73686"
      decimals="-3"
      id="F_4e7e23c2-037a-4b6a-85af-bec2c13f5368"
      unitRef="U_USD">5252000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
