<?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_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_8ee1fcff-3e6c-4e44-ba55-829af28852af">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_cf1e7a93-9a43-4b13-b4a1-37c19ead1330">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_513f84f0-f09f-437c-8615-5ad12a3a3848">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_0f35d062-372d-4de1-8284-525eb21d77db">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_6f151646-985e-4e49-b3a3-c925c4d6ef97">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_3be9c68c-5696-474d-8927-97249c07d1c6">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_e70a9428-1a5a-4cd4-834a-f88f255a316e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_6e28f540-7d16-4b20-a760-e12b0012b0d6">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_a30131d3-af54-4f31-b956-01d2dad13009">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      id="F_2c2ea4e3-7bda-4532-92f1-291d31791dd1">&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;8,000,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_41059b0d-7eea-40e8-bb3d-b2c2b6e8ca41"
      decimals="-6"
      id="F_3bb71137-4b5f-4b14-92ae-9b24dfd8b477"
      unitRef="U_USD">8000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
