<?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_d8dc2edb-2da4-4a9e-8ecc-dff13d774088">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_188e03ea-1ada-4b7b-b52e-890f630206c2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_0ccd6883-78ec-42c6-b130-3189cb18ab0c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_4c33d97f-84c8-4b1b-9c0f-320793625233">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_4b7bd3a3-c651-49aa-8bff-8552a68f7193">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_d73796dc-472b-438e-bf2a-29ef9b64c2b6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_17af0861-f0b7-49a7-87e5-3d717c9a8591">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_404a6f8b-d43f-4049-9175-dc52dc3dc944">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_0b3e82f1-e7b5-4f9a-ba4b-5f97bee743dc">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_1fb58232-6a20-4499-9aea-bb15329f3d3c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      id="F_2bbb9f5d-aef5-45a2-bd61-4d07ec178f90">&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;25,789,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_d8dc2edb-2da4-4a9e-8ecc-dff13d774088"
      decimals="-3"
      id="F_f59f76a2-7ee0-4b67-b234-8ed5d6037dc5"
      unitRef="U_USD">25789000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
