<?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_cae811ef-5b3c-40c2-8c82-8a017412e0ab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_c86c4839-a43d-4b00-903a-78297234252c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_9df61b55-1c84-4c71-88dc-d103ca4da5c3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_f69fd0da-fe13-40a5-8651-fda2fd7655d2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_85cbe47a-61d6-4140-b93c-5f05f1bd1d7c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_4904a318-7d09-4011-ab55-a5abd35288ed">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_03546839-1965-4185-9919-1dd61ce55d2d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_d6ef651e-7e91-4b60-a43d-ff4e0c7ff99d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_c82134ec-997f-47f4-a455-9c5bdcb91f9e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_e77b0a47-002f-4371-925c-7ad5a8eaaac6">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      id="F_6098ec3d-f21d-4b13-a322-35317b76b81e">&lt;p style="font-size:10pt;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;7,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_cae811ef-5b3c-40c2-8c82-8a017412e0ab"
      decimals="-6"
      id="F_f847c8e0-cda8-434d-ba12-00826c32661c"
      unitRef="U_USD">7000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
