<?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_78997378-1881-4e4e-96b3-17fce36a736e">
        <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:CombinedProspectusTableNa
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_85c0ce67-a437-465d-85bc-e10ed5db4a3e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_de149ecf-9bfe-48e7-a045-b2c61cca510b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_42afabe9-e412-483b-b36b-f844dbfebc33">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_987901b5-48e6-4fa1-9cc4-8c5223f2d9ae">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_c25e91e9-0d54-4ee8-b318-32239dcff36a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_3ba60319-802e-41bf-bf6c-27382c83986d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_de17f31d-9698-4847-9154-0be2af92beef">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_278172f5-8052-4554-9380-4dd21dc25bf7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_a56ca64f-c096-4b13-b504-48cc6a2c84af">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_78997378-1881-4e4e-96b3-17fce36a736e"
      id="F_2fd063c5-f13b-410a-a090-27e38b890143">&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,000,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_78997378-1881-4e4e-96b3-17fce36a736e"
      decimals="-6"
      id="F_0f84a874-18ad-47cf-be3d-d6145d78ad8a"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
