<?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_74e19c0d-dfcf-42a1-9692-03f44aca600c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_99d4fae9-8113-4668-bb80-a890400cc0c5">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_be901842-ab8a-45b8-b324-793a4f229d06">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_1f468eee-0353-4722-b0f3-89bc93215f52">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_25bb494d-ebf7-473d-b2d7-54e7614ff5a8">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_b93467e8-2b40-4bd0-835c-479dba29047b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_f979846c-5266-40a6-b700-65acf494c696">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_6ba88451-baf3-4cfd-bf0f-efce0ca6096d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_4287b32e-a7f1-427c-9e47-71cd372f50b1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_e8fd516c-0989-4137-bf39-0b26c113a855">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      id="F_d39a69a1-4fa1-4fa0-a5b7-f9872db11048">&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;9,845,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_74e19c0d-dfcf-42a1-9692-03f44aca600c"
      decimals="-3"
      id="F_11063b30-d66c-4687-94f3-2c05d909a7a2"
      unitRef="U_USD">9845000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
