<?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_c3da0672-5043-47ca-8b91-76a869158e93">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_f3d0c4ba-3e23-4d85-9c41-f6e1d7185a74">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_52629b35-ece5-4d6d-bae8-cfce33a944f2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_4692f2d4-2b79-471c-a27d-d8387bf48bee">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_e0c012bc-facd-45f7-bd28-969a88006313">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_849e55a4-73d2-4b31-971c-9f9214ca015a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_477f49ec-3519-46d1-b32c-3cac65857073">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_0ddb0688-08f8-4bbd-a000-f856e8bf5aa4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_cb370caf-1321-4f12-8d2a-2ac5afe05a85">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_248a4461-955f-4675-9fe1-5daaf6acc81d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c3da0672-5043-47ca-8b91-76a869158e93"
      id="F_9256aedc-e85c-410c-8977-66195996ae3b">&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;18,865,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_c3da0672-5043-47ca-8b91-76a869158e93"
      decimals="-3"
      id="F_6dbdf73a-72b7-49ff-8f54-59cac9e7a0c2"
      unitRef="U_USD">18865000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
