<?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_9da6e9d2-1dfd-4192-a239-fde7699bfb7d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_8d834931-7fe0-4641-a250-5545eab23fff">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_f685c280-674f-4d45-ac20-663d5d8813f9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_2879db31-b83b-43ae-a75f-91bccdfc4cae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_4f3f592e-13b9-4b2e-98e2-da1a566f2586">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_e6f76fcb-b740-447e-aa83-fae9433484b5">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_165c2cc5-9c33-495b-acef-42bb8773994b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_295d7350-139d-483f-a09f-cfac974a8a79">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_090a9365-7f01-4d8a-b5da-8a746262b1b9">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_57be63b9-e181-4d3f-8cb5-a348459846fc">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      id="F_e521951b-6721-4ff0-a547-3050f791f66a">&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;658,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_9da6e9d2-1dfd-4192-a239-fde7699bfb7d"
      decimals="-3"
      id="F_8655be9a-d494-4a9b-8155-c126f2909113"
      unitRef="U_USD">658000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
