<?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_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-21</startDate>
            <endDate>2026-10-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_688a6a6d-7679-45b6-95d1-5b42d295a869">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_2fa86ef7-b5f2-4a20-a2fe-cca75582d8f6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_64cb29a7-1fa9-416c-bca1-66cbc2e878b8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_ec740120-fd8c-4c6f-be3f-7e3a94c9971c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_fed76e9d-2040-4467-9b8c-f60f883ef687">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_16ec25ea-6de1-4c07-ac42-9052ee9e35a7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_12312b20-7a35-4e48-bfb0-0424753c1744">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_39a8062e-e0b3-4fe3-b10e-3e14a4d45111">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_b069dfdf-7756-488e-b040-4c80df3f5d89">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      id="F_04055d51-df1b-4c9a-bfe2-8e100d63b97e">&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;13,625,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_0cb48fca-7fd7-4b9a-8311-2c3e843f1a9c"
      decimals="-3"
      id="F_f8c35495-674e-49f3-b452-30649cfac15e"
      unitRef="U_USD">13625000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
