<?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_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_ec6c9b54-6485-4b6f-be82-9a50a7c36189">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_c74f1ed6-7955-4cb9-99d6-695acd52428c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_fe44df2b-7517-41c3-9c27-af8494286b64">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_45b3e072-9249-4f3f-9bc2-8b97bd1d0e51">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_4da18868-2683-44cc-a723-d5aecf4cf34a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_b660a70d-c09a-463c-adaf-6d8e2f6e0e0f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_d622b541-7e80-4e9d-ab74-3cb9c0f4edb7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_d6ae51c6-b40d-46d5-82f7-a5054ebc1d10">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_46e3ee09-54c9-4988-ac22-28b70807d090">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      id="F_d5b40b7f-4221-420f-b4bb-84ac4a7661fa">&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;4,049,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_ea03e395-28d2-4d01-ba20-ef9d2fdb7bd7"
      decimals="-3"
      id="F_2770f52f-b5e1-41c6-9b37-118d2c9a7b6b"
      unitRef="U_USD">4049000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
