<?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_318ce228-1967-4c76-ae21-50b740952104">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_674ef95c-1b22-4b36-8d6f-11e24978ccac">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_ee4647b6-e243-4fc1-974c-7a86eab0bd71">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_790dbd63-3586-46a2-81c0-ab2f4f971112">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_365938da-fab1-41f0-ad37-a989ba5e25de">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_7e3046f0-e84c-40dc-b164-075676202299">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_87543ad6-0772-467b-913f-4a4d2f0597fc">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_62c47260-ffb5-4ece-a3fd-30adcf4291f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_967f90ce-7b5a-435f-9403-a65f859caf55">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_465d0709-c2f6-4399-a13c-ede9daded624">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_318ce228-1967-4c76-ae21-50b740952104"
      id="F_b0baf9e9-608d-4ffa-ab15-d4bd6b2d145e">&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;6,050,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_318ce228-1967-4c76-ae21-50b740952104"
      decimals="-3"
      id="F_71ca44ae-c918-419c-bb84-e67c1f376bf1"
      unitRef="U_USD">6050000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
