<?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_dc050faa-5e4b-44c5-961c-6839c5f3ac1c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_25ef9ccd-50be-457b-a480-e962afd9345d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_93e85039-8b1f-43c1-b17b-14330de34694">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_2cadc195-db94-4882-93fd-e188657c25b2">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_3204179d-d44c-481b-9813-98a1cd03332b">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_624894a4-9355-408d-8406-5d4f17d0cb82">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_0cace660-40c3-46e2-8338-5a72dcc02afd">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_8c6fbdd2-10ec-47f3-b6f2-01aa263e2973">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_b2ddf040-3f60-4739-a462-81ab88dcbaa9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_28c4c42b-c893-4ff2-9325-04b6b7e6ba2c">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      id="F_fd2f5ace-f7c4-4bba-9d69-b8a11b33f9fb">&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,175,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_dc050faa-5e4b-44c5-961c-6839c5f3ac1c"
      decimals="-3"
      id="F_ed7b5d57-decb-48df-8b7d-252345b4b753"
      unitRef="U_USD">1175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
