<?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_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_60e2cb59-9f20-479b-bf55-66f5d81aba90">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_c2aa3ed6-fdda-4d87-bd28-51e8fd5a2e85">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_b1530922-7fad-4181-804c-dc982360c956">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_80b1a471-667f-4c91-813f-50cf1fbce3f2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_6d30492a-d8a2-4488-85e7-fb1c8c69d3ec">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_c70ed574-4798-4a33-a26b-a82330af67f2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_3de6798f-8b15-44ad-aa44-fbc431221f04">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_d215b007-5d3a-4f56-ab2c-31714a11e38a">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_0afd5a56-d904-4e0c-846c-0e32af2adab6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      id="F_ad0515e0-2bee-4fdf-bf1d-d84621989fe4">&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;3,351,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_395fdb9c-08a6-45b3-bc4e-b6a435c5ecbb"
      decimals="-3"
      id="F_3cbeb2e4-8b73-4302-9c9f-87668decac70"
      unitRef="U_USD">3351000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
