<?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_b3e60794-33d9-4c25-82a9-9746147466ea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_ad3bb345-43e8-4447-bf15-d6cf5130519b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_f602e0b9-e726-4d6f-87a5-f5bfa93dbbf5">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_9451d32d-76e8-401b-93ca-d6d65172675f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_b4e3be25-5704-4735-890e-8da54b8273a1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_874c8288-423c-4a44-abf5-05f37f51ed49">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_b2e2d9f3-1078-4ce1-9d07-b77acaf6db0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_91e89aa1-4204-4bb7-b931-f13c72a57157">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_426b718a-c7f2-49d3-becb-4a3f9c85ce58">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_bfd2dd0f-28d5-4d6d-b7fd-90bbc105f434">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b3e60794-33d9-4c25-82a9-9746147466ea"
      id="F_85480aba-32dc-4bbe-b9e2-5596b0f56dd4">&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,102,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_b3e60794-33d9-4c25-82a9-9746147466ea"
      decimals="-3"
      id="F_5ab5e0f6-2960-495f-a8b4-a1651152e813"
      unitRef="U_USD">1102000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
