<?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_f7f016e5-c231-4864-a61d-0765c81890f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_f5647f61-b0b3-44eb-95f7-641bfab6bd2f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_f79ede1b-0b1c-4483-bf97-5ff006d0f585">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_82ddb9d8-8691-425d-bd89-52496e11b2e4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_e0a2232b-2037-4b93-995f-70f74d35e0df">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_eafd4f55-34bf-446d-b4cd-73f55cd65208">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_774deefd-a5c9-4f24-aca5-6654085762c6">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_e15d510a-025f-4817-b251-16ec42bf91bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_b8479054-4c52-4257-a0ea-094c860c1404">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_23ed8a3d-752d-4633-945f-9e98ff765d06">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7f016e5-c231-4864-a61d-0765c81890f3"
      id="F_1e1d6c0e-51cc-4e3d-b863-6d1d84fe6026">&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;938,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_f7f016e5-c231-4864-a61d-0765c81890f3"
      decimals="-3"
      id="F_8b95d57d-c54a-41a4-8ecd-cc2a2f617f4b"
      unitRef="U_USD">938000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
