<?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_89909ed8-4191-482f-bad2-0ad092039ec8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-22</startDate>
            <endDate>2026-07-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_e416e36c-6c42-4cb9-b7dc-7c6604f500fb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_8c9d75dd-3a85-4251-952e-b14b4a763cd6">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_e1b0cf39-0688-44ba-acd3-bd934ed26cce">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_c5ba4b12-87a9-4a7e-a95b-d2dbda689f32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_ab295b07-bb45-4dde-a0be-1c340951e8d2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_2acdcf70-4315-4434-9144-0507c0ffb51c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_4b17cea2-f3ae-49a3-8b8d-b2e7b7662f5f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_b53f11e8-6d9b-476e-aceb-3ac793246863">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_d3cbdd02-fac1-422c-8516-cf64459439a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_89909ed8-4191-482f-bad2-0ad092039ec8"
      id="F_2a224495-9460-4f89-b9fa-2a95cf36835e">&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;600,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_89909ed8-4191-482f-bad2-0ad092039ec8"
      decimals="-3"
      id="F_50240349-b76e-4ca4-8d75-824eed12d7fb"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
