<?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_1d36b43b-eb4e-4806-9051-b3f45e415cc3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_6729a5ff-b41f-403a-b056-c8adb1b71be7">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_5dad1ecb-834f-4ae9-b5a6-995adfb27bc6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_4368cf5c-b5e3-4982-9bb6-3086b9dd5799">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_c4e7bfef-cff7-4b2d-95aa-f89b1767e2ae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_6aa9ae83-919f-4181-a2bb-6b15f5b22021">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_5f5bdf59-0270-4302-84d2-1506c346a653">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_1c21ec10-3423-43bb-b7e2-26348559120e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_de86beba-9863-48f6-bde8-15321181c433">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_7e18c0bb-ba0f-4069-9d57-7a1aa18fd5de">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      id="F_6760a88a-35b9-4b59-91a2-40f62886c3b5">&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;147,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_1d36b43b-eb4e-4806-9051-b3f45e415cc3"
      decimals="-3"
      id="F_fc5faa2c-6e70-4616-8f0d-3f8cfe1e1231"
      unitRef="U_USD">147000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
