<?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_98a31f76-b4da-45f2-88dc-8d80162b2aa4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_60052fee-328d-4182-9818-a824452292ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_aef24c0f-d716-4dfe-bf37-84b633a602dd">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_a615fe38-538a-4948-a238-10f13032539c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_703f662b-603c-4910-9cbe-0a33b41bd8b6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_6a52f466-7e0a-436c-bda1-d8eb77eeff16">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_f7e3915f-fa73-4564-88f3-fc80d9a9a525">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_d80c879a-5fd0-4ab4-a5a1-519d6976b68d">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_0746632b-a736-4532-abd8-818f35e3db70">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_018d20fe-dea1-4c70-8444-20f596c08b84">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      id="F_686cbb13-a26a-4c54-ab30-e2b64931b728">&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;3,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_98a31f76-b4da-45f2-88dc-8d80162b2aa4"
      decimals="-6"
      id="F_82db17cd-5075-416e-acd9-d825f8accc65"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
