<?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_31ec8067-610b-42c8-ab5e-21f8374ffffc">
        <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>
    <ffd:SubmissnTp
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_b4267ef9-47a3-45b5-b2a5-c0b69a907a62">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_6b81ea69-5978-4894-867b-16dd726ec6c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_f1114eb9-24a2-4c84-aa5c-49736e3650f8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_a30c1df5-9b29-4eec-8d4e-3bb187992e8e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_954b06e8-3146-49c0-a78f-b0325235edee">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_93a730d8-3d1c-49b4-94a2-f16efad3ed31">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_7083f11b-e165-48e2-9bba-183ab29fe14b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_7304512d-06ba-4f27-95d2-0383e502f006">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_6b52ba3e-0502-4d68-a881-08f49b187ee1">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      id="F_031cd0e3-27a8-4125-a0b6-7c49d0905a36">&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;3,927,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_31ec8067-610b-42c8-ab5e-21f8374ffffc"
      decimals="-3"
      id="F_d6342054-9235-4ac4-9b20-d91efe54fbf9"
      unitRef="U_USD">3927000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
