<?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_f9247a93-12bb-4862-8c2b-c8f032b0bf30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_2c38fbde-bcd0-4fbe-bb81-f29988c4e38f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_bf53e8cb-6dbf-4499-abad-75786e6026f0">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_b7d0cf26-7d99-4822-94aa-9f1d4fb338f3">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_1baf7c19-097b-4dff-bbf3-fe92e4ae67d6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_6283bb0a-e0b8-49d8-a96d-5e2ccf2ce27a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_8299c954-7fa3-4db7-9fdb-42354c769274">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_f888b531-ef14-4000-a610-611abf1ce943">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_9c686835-ec80-4bb9-9957-d467a2433fd8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_cf094ad3-81a6-4124-a2d9-9e1e881b3e6f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      id="F_dd97422b-91e8-481e-85d6-e354b66985b8">&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,610,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_f9247a93-12bb-4862-8c2b-c8f032b0bf30"
      decimals="-3"
      id="F_14219367-8555-44a8-930c-f4e5949cecb2"
      unitRef="U_USD">1610000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
