<?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_f863b142-3f70-43e1-9382-a78afcb5c8ee">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_9df0ff32-4e0c-42ef-bf23-e2a5f00b7ff5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_634c67e8-ca6e-40c9-b2aa-87f993795f44">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_b186b6a0-fe86-464b-ab9a-0f97a1d9be6c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_c7c6778d-682a-45ea-9417-6fe799743851">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_0493f70e-32f1-4d13-bde2-fa0e4d23bb91">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_d77c6455-d1b1-4874-9dbe-d7e5806cf2aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_b4758b92-419e-4b9e-98cb-d5eb6f337e4c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_89cd099a-e08d-4dd8-8237-39d9b6521983">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_2c3cbb44-25f2-4e59-b699-4a93f96de000">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      id="F_86c93a95-9de0-4b7e-9309-271527ec3b21">&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;1,015,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_f863b142-3f70-43e1-9382-a78afcb5c8ee"
      decimals="-3"
      id="F_2f357ceb-438d-424d-8c62-8da49c654c78"
      unitRef="U_USD">1015000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
