<?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_6c5dc29a-9b1a-41a5-be30-1468e25d6767">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_1e52dcc3-033a-46e5-bd4f-c0195dc9b4dd">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_e6799e57-cf11-4b75-bc00-77b3a02b9c9d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_b63f522a-b8e7-4a20-99b4-14aa5d304798">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_f5f2b0f9-368d-4c1c-a597-95d54a9022bc">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_bae6c3f3-77a9-44cc-860e-f0a51c9eb3b6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_ead23b10-0b7d-4146-905f-0f2f1cb84370">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_f5a8290e-00c1-4670-9362-057c65512718">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_b216f1aa-a20d-4e21-b6db-370628bde98e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_e5c10130-3092-4b91-b645-87f085330115">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      id="F_5ea79ae4-f84e-4c04-9bf7-7090a7d62d7f">&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;11,674,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_6c5dc29a-9b1a-41a5-be30-1468e25d6767"
      decimals="-3"
      id="F_f6998dc9-5c0b-4c31-aeb9-cdb3a5ae6d75"
      unitRef="U_USD">11674000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
