<?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_e0169e34-09b2-46c1-9c33-f7cb26166135">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_465d4c81-ab13-4620-bfd1-ddf57737cde5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_a8d1f5ff-dfe3-4d72-b14d-0860fda57e6a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_ef2fffa2-c203-4fc4-be28-4a154636d8a9">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_7f117e80-84da-4e90-afd5-504206111ea2">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_afc9dd73-ee9c-4c7a-9568-975b34d82889">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_d8e474db-90be-4827-a066-c547a5e1a884">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_2e02a7a8-4fd0-4b36-8038-203eeb1e5c64">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_f22e302e-2269-4719-9349-764a938c5938">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_42c04d61-d719-4603-8535-1f90bf250345">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e0169e34-09b2-46c1-9c33-f7cb26166135"
      id="F_4e5ad57b-47d3-4fb2-9cf3-156d63f75700">&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;650,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_e0169e34-09b2-46c1-9c33-f7cb26166135"
      decimals="-3"
      id="F_ae2e7bd7-2e03-44e0-9ddb-6d39d481893b"
      unitRef="U_USD">650000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
