<?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_9435ca35-8349-4da8-bd9d-2980e9ad212c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_95bb9d80-5ac2-4f86-9b9c-445e27b9a3af">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_df38a983-4e96-42c3-8dde-6a1792d5d970">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_d4ec6657-5aa1-4f06-9c9f-82cb8cf93472">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_265c9fae-0443-4037-900a-d2aafeee5e93">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_deec319d-726a-48fc-bed2-0ed88ecca5b6">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_261535ba-ee0a-486e-aef6-d7947584f75b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_fe36ffe3-869d-4068-bee8-c08fcb5baf73">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_9c090edc-196f-4f3f-bf6e-d0dade6d25db">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_16846991-416b-4f5c-9d12-30518442c2c9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      id="F_849204be-f6cf-48e3-b555-aeb5b407d540">&lt;p style="tab-size:26.66px;font-size:12pt;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,781,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_9435ca35-8349-4da8-bd9d-2980e9ad212c"
      decimals="-3"
      id="F_463db318-7fa4-461f-aaea-cc2e8e01258c"
      unitRef="U_USD">1781000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
