<?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_fa83ed07-4e7b-453e-b07d-fbb778245f86">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_c2d705b9-bd99-4d8c-b979-b84611346946">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_ed9b219d-d31f-4c0a-a35b-48c701dcf239">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_f8f4a2fd-904c-4a91-94df-7d7dd68c985d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_b5b17723-c64b-4ac5-9dea-ea86dff72f37">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_85794b74-0a63-4d82-92b8-fbd9994bd773">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_a6e70af0-e484-4c49-939f-ea269714e75e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_fbd6c8ac-ca46-48ae-b503-4b00b3444520">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_7214b1bf-307f-4bdc-ad6e-730d12510fbd">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_72698ea8-7786-4f81-aff0-1dd7f422d5d4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      id="F_f25c55ce-cfc0-41a2-afd4-6b4677550bbd">&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;253,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_fa83ed07-4e7b-453e-b07d-fbb778245f86"
      decimals="-3"
      id="F_8e184932-1bc8-4e9b-9a16-1e1657300d60"
      unitRef="U_USD">253000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
